Update databases/py-barman to 1.6.0. Version 1.6.0 - 29 Feb 2016 - Support for streaming replication connection through the streaming_conninfo server option - Support for the streaming_archiver option that allows Barman to receive WAL files through PostgreSQL's native streaming protocol. When set to 'on', it relies on pg_receivexlog to receive WAL data, reducing Recovery Point Objective. Currently, WAL streaming is an additional feature (standard log archiving is still required) - Implement the receive-wal command that, when streaming_archiver is on, wraps pg_receivexlog for WAL streaming. Add --stop option to stop receiving WAL files via streaming protocol. Add --reset option to reset the streaming status and restart from the current xlog in Postgres. - Automatic management (startup and stop) of receive-wal command via cron command - Support for the path_prefix configuration option - Introduction of the archiver option (currently fixed to on) which enables continuous WAL archiving for a specific server, through log shipping via PostgreSQL's archive_command - Support for streaming_wals_directory and errors_directory options - Management of WAL duplicates in archive-wal command and integration with check command - Verify if pg_receivexlog is running in check command when streaming_archiver is enabled - Verify if failed backups are present in check command - Accept compressed WAL files in incoming directory - Add support for the pigz compressor (thanks to Stefano Zacchiroli zack@upsilon.cc) - Implement pygzip and pybzip2 compressors (based on an initial idea of Christoph Moench-Tegeder christoph@2ndquadrant.de) - Creation of an implicit restore point at the end of a backup - Current size of the PostgreSQL data files in barman status - Permit archive_mode=always for PostgreSQL 9.5 servers (thanks to Christoph Moench-Tegeder christoph@2ndquadrant.de) - Complete refactoring of the code responsible for connecting to PostgreSQL - Improve messaging of cron command regarding sub-processes - Native support for Python >= 3.3 - Changes of behaviour: - Stop trashing WAL files during archive-wal (commit:e3a1d16) - Bug fixes: - Atomic WAL file archiving (#9 and #12) - Propagate "-c" option to any Barman subprocess (#19) - Fix management of backup ID during backup deletion (#22) - Improve archive-wal robustness and log messages (#24) - Improve error handling in case of missing parameters Version 1.5.1 - 16 Nov 2015 - Add support for the 'archive-wal' command which performs WAL maintenance operations on a given server - Add support for "per-server" concurrency of the 'cron' command - Improved management of xlog.db errors - Add support for mixed compression types in WAL files (SF.net#61) - Bug fixes: - Avoid retention policy checks during the recovery - Avoid 'wal_level' check on PostgreSQL version < 9.0 (#3) - Fix backup size calculation (#5)diff -r1.6 -r1.7 pkgsrc/databases/py-barman/Makefile
(fhajny)
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.6 2015/10/20 08:42:43 fhajny Exp $ | 1 | # $NetBSD: Makefile,v 1.7 2016/03/04 16:55:45 fhajny Exp $ | |
2 | 2 | |||
3 | DISTNAME= barman-1.5.0 | 3 | DISTNAME= barman-1.6.0 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | CATEGORIES= databases python | 5 | CATEGORIES= databases python | |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pgbarman/} | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pgbarman/} | |
7 | 7 | |||
8 | MAINTAINER= filip@joyent.com | 8 | MAINTAINER= filip@joyent.com | |
9 | HOMEPAGE= http://www.pgbarman.org/ | 9 | HOMEPAGE= http://www.pgbarman.org/ | |
10 | COMMENT= Backup and Recovery Manager for PostgreSQL | 10 | COMMENT= Backup and Recovery Manager for PostgreSQL | |
11 | LICENSE= gnu-gpl-v3 | 11 | LICENSE= gnu-gpl-v3 | |
12 | 12 | |||
13 | DEPENDS+= ${PYPKGPREFIX}-argcomplete-[0-9]*:../../devel/py-argcomplete | 13 | DEPENDS+= ${PYPKGPREFIX}-argcomplete-[0-9]*:../../devel/py-argcomplete | |
14 | DEPENDS+= ${PYPKGPREFIX}-argh>=0.21.2:../../devel/py-argh | 14 | DEPENDS+= ${PYPKGPREFIX}-argh>=0.21.2:../../devel/py-argh | |
15 | DEPENDS+= ${PYPKGPREFIX}-psycopg2-[0-9]*:../../databases/py-psycopg2 | 15 | DEPENDS+= ${PYPKGPREFIX}-psycopg2-[0-9]*:../../databases/py-psycopg2 | |
16 | DEPENDS+= rsync-[0-9]*:../../net/rsync | 16 | DEPENDS+= rsync-[0-9]*:../../net/rsync |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.6 2015/11/04 17:41:16 agc Exp $ | 1 | $NetBSD: distinfo,v 1.7 2016/03/04 16:55:45 fhajny Exp $ | |
2 | 2 | |||
3 | SHA1 (barman-1.5.0.tar.gz) = 9833e9023b011fbd87d3c68ad867683c8acbc356 | 3 | SHA1 (barman-1.6.0.tar.gz) = 580403f8ae63e096050ff0ae5840285d791814aa | |
4 | RMD160 (barman-1.5.0.tar.gz) = d2e81a588f2135efe7785b910e91d77cade49106 | 4 | RMD160 (barman-1.6.0.tar.gz) = 7ed0b8983107dc9bc457eb03c55c4feee4e28d66 | |
5 | SHA512 (barman-1.5.0.tar.gz) = 7b9501277868b141f3813a545fe5463a1f7cddb0d4aaeb6c13a21aa969ced4a0a53a38ecb6e091b84c0174dae0593235cb8b586bdd244b30776273030cdfc1e8 | 5 | SHA512 (barman-1.6.0.tar.gz) = 2f214fd85b19a098e5e16f32f781c6af1ab18d369b40afbbda118b4e7663beec8cdb44482171f7195a17c48949cc0f6fdec0eafda1b33add159e4e6144ddda4a | |
6 | Size (barman-1.5.0.tar.gz) = 128132 bytes | 6 | Size (barman-1.6.0.tar.gz) = 157048 bytes | |
7 | SHA1 (patch-barman_utils.py) = 30723ff650fcbe0c1cf5108424d997bf96898fd4 | 7 | SHA1 (patch-barman_utils.py) = 725e8d6b4531dbfcb1e75d25059fc4af5744d49d |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.2 2015/10/20 08:42:43 fhajny Exp $ | 1 | @comment $NetBSD: PLIST,v 1.3 2016/03/04 16:55:45 fhajny Exp $ | |
2 | bin/barman | 2 | bin/barman | |
3 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | 3 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | |
4 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | 4 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | |
5 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | 5 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | |
6 | ${PYSITELIB}/${EGG_INFODIR}/requires.txt | 6 | ${PYSITELIB}/${EGG_INFODIR}/requires.txt | |
7 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | 7 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | |
8 | ${PYSITELIB}/barman/__init__.py | 8 | ${PYSITELIB}/barman/__init__.py | |
9 | ${PYSITELIB}/barman/__init__.pyc | 9 | ${PYSITELIB}/barman/__init__.pyc | |
10 | ${PYSITELIB}/barman/__init__.pyo | 10 | ${PYSITELIB}/barman/__init__.pyo | |
11 | ${PYSITELIB}/barman/backup.py | 11 | ${PYSITELIB}/barman/backup.py | |
12 | ${PYSITELIB}/barman/backup.pyc | 12 | ${PYSITELIB}/barman/backup.pyc | |
13 | ${PYSITELIB}/barman/backup.pyo | 13 | ${PYSITELIB}/barman/backup.pyo | |
14 | ${PYSITELIB}/barman/backup_executor.py | 14 | ${PYSITELIB}/barman/backup_executor.py | |
@@ -34,34 +34,46 @@ ${PYSITELIB}/barman/fs.pyc | @@ -34,34 +34,46 @@ ${PYSITELIB}/barman/fs.pyc | |||
34 | ${PYSITELIB}/barman/fs.pyo | 34 | ${PYSITELIB}/barman/fs.pyo | |
35 | ${PYSITELIB}/barman/hooks.py | 35 | ${PYSITELIB}/barman/hooks.py | |
36 | ${PYSITELIB}/barman/hooks.pyc | 36 | ${PYSITELIB}/barman/hooks.pyc | |
37 | ${PYSITELIB}/barman/hooks.pyo | 37 | ${PYSITELIB}/barman/hooks.pyo | |
38 | ${PYSITELIB}/barman/infofile.py | 38 | ${PYSITELIB}/barman/infofile.py | |
39 | ${PYSITELIB}/barman/infofile.pyc | 39 | ${PYSITELIB}/barman/infofile.pyc | |
40 | ${PYSITELIB}/barman/infofile.pyo | 40 | ${PYSITELIB}/barman/infofile.pyo | |
41 | ${PYSITELIB}/barman/lockfile.py | 41 | ${PYSITELIB}/barman/lockfile.py | |
42 | ${PYSITELIB}/barman/lockfile.pyc | 42 | ${PYSITELIB}/barman/lockfile.pyc | |
43 | ${PYSITELIB}/barman/lockfile.pyo | 43 | ${PYSITELIB}/barman/lockfile.pyo | |
44 | ${PYSITELIB}/barman/output.py | 44 | ${PYSITELIB}/barman/output.py | |
45 | ${PYSITELIB}/barman/output.pyc | 45 | ${PYSITELIB}/barman/output.pyc | |
46 | ${PYSITELIB}/barman/output.pyo | 46 | ${PYSITELIB}/barman/output.pyo | |
47 | ${PYSITELIB}/barman/postgres.py | |||
48 | ${PYSITELIB}/barman/postgres.pyc | |||
49 | ${PYSITELIB}/barman/postgres.pyo | |||
50 | ${PYSITELIB}/barman/process.py | |||
51 | ${PYSITELIB}/barman/process.pyc | |||
52 | ${PYSITELIB}/barman/process.pyo | |||
47 | ${PYSITELIB}/barman/recovery_executor.py | 53 | ${PYSITELIB}/barman/recovery_executor.py | |
48 | ${PYSITELIB}/barman/recovery_executor.pyc | 54 | ${PYSITELIB}/barman/recovery_executor.pyc | |
49 | ${PYSITELIB}/barman/recovery_executor.pyo | 55 | ${PYSITELIB}/barman/recovery_executor.pyo | |
56 | ${PYSITELIB}/barman/remote_status.py | |||
57 | ${PYSITELIB}/barman/remote_status.pyc | |||
58 | ${PYSITELIB}/barman/remote_status.pyo | |||
50 | ${PYSITELIB}/barman/retention_policies.py | 59 | ${PYSITELIB}/barman/retention_policies.py | |
51 | ${PYSITELIB}/barman/retention_policies.pyc | 60 | ${PYSITELIB}/barman/retention_policies.pyc | |
52 | ${PYSITELIB}/barman/retention_policies.pyo | 61 | ${PYSITELIB}/barman/retention_policies.pyo | |
53 | ${PYSITELIB}/barman/server.py | 62 | ${PYSITELIB}/barman/server.py | |
54 | ${PYSITELIB}/barman/server.pyc | 63 | ${PYSITELIB}/barman/server.pyc | |
55 | ${PYSITELIB}/barman/server.pyo | 64 | ${PYSITELIB}/barman/server.pyo | |
56 | ${PYSITELIB}/barman/utils.py | 65 | ${PYSITELIB}/barman/utils.py | |
57 | ${PYSITELIB}/barman/utils.pyc | 66 | ${PYSITELIB}/barman/utils.pyc | |
58 | ${PYSITELIB}/barman/utils.pyo | 67 | ${PYSITELIB}/barman/utils.pyo | |
59 | ${PYSITELIB}/barman/version.py | 68 | ${PYSITELIB}/barman/version.py | |
60 | ${PYSITELIB}/barman/version.pyc | 69 | ${PYSITELIB}/barman/version.pyc | |
61 | ${PYSITELIB}/barman/version.pyo | 70 | ${PYSITELIB}/barman/version.pyo | |
71 | ${PYSITELIB}/barman/wal_archiver.py | |||
72 | ${PYSITELIB}/barman/wal_archiver.pyc | |||
73 | ${PYSITELIB}/barman/wal_archiver.pyo | |||
62 | ${PYSITELIB}/barman/xlog.py | 74 | ${PYSITELIB}/barman/xlog.py | |
63 | ${PYSITELIB}/barman/xlog.pyc | 75 | ${PYSITELIB}/barman/xlog.pyc | |
64 | ${PYSITELIB}/barman/xlog.pyo | 76 | ${PYSITELIB}/barman/xlog.pyo | |
65 | man/man1/barman.1 | 77 | man/man1/barman.1 | |
66 | man/man5/barman.5 | 78 | man/man5/barman.5 | |
67 | share/examples/barman/barman.conf | 79 | share/examples/barman/barman.conf |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: patch-barman_utils.py,v 1.1 2015/06/09 15:06:39 fhajny Exp $ | 1 | $NetBSD: patch-barman_utils.py,v 1.2 2016/03/04 16:55:45 fhajny Exp $ | |
2 | 2 | |||
3 | Make portable for non-glibc platforms too. | 3 | Make portable for non-glibc platforms too. | |
4 | --- barman/utils.py.orig 2015-04-17 13:05:38.000000000 +0000 | 4 | --- barman/utils.py.orig 2016-02-22 08:01:31.000000000 +0000 | |
5 | +++ barman/utils.py | 5 | +++ barman/utils.py | |
6 | @@ -239,7 +239,7 @@ def fsync_dir(dir_path): | 6 | @@ -253,7 +253,7 @@ def fsync_dir(dir_path): | |
7 | :param str dir_path: The directory to sync | 7 | :param str dir_path: The directory to sync | |
8 | :raise OSError: If fail opening the directory | 8 | :raise OSError: If fail opening the directory | |
9 | """ | 9 | """ | |
10 | - dir_fd = os.open(dir_path, os.O_DIRECTORY) | 10 | - dir_fd = os.open(dir_path, os.O_DIRECTORY) | |
11 | + dir_fd = os.open(dir_path, os.O_RDONLY) | 11 | + dir_fd = os.open(dir_path, os.O_RDONLY) | |
12 | try: | 12 | try: | |
13 | os.fsync(dir_fd) | 13 | os.fsync(dir_fd) | |
14 | except OSError, e: | 14 | except OSError as e: |