svn commit: r373768 - in head/databases: . pgbarman pgbarman/files

Matthew Seaman matthew at FreeBSD.org
Tue Dec 2 15:41:16 UTC 2014


Author: matthew
Date: Tue Dec  2 15:41:14 2014
New Revision: 373768
URL: https://svnweb.freebsd.org/changeset/ports/373768
QAT: https://qat.redports.org/buildarchive/r373768/

Log:
  New port:
  
  Barman: backup and recovery manager for PostgreSQL.
  
  Barman is an open-source administration tool for disaster recovery of
  PostgreSQL servers written in Python.
  
  It allows your organisation to perform remote backups of multiple
  servers in business critical environments and helps DBAs during the
  recovery phase.
  
  WWW: http://www.pgbarman.org/

Added:
  head/databases/pgbarman/
  head/databases/pgbarman/Makefile   (contents, props changed)
  head/databases/pgbarman/distinfo   (contents, props changed)
  head/databases/pgbarman/files/
  head/databases/pgbarman/files/patch-barman_config.py   (contents, props changed)
  head/databases/pgbarman/pkg-descr   (contents, props changed)
  head/databases/pgbarman/pkg-plist   (contents, props changed)
Modified:
  head/databases/Makefile

Modified: head/databases/Makefile
==============================================================================
--- head/databases/Makefile	Tue Dec  2 15:37:29 2014	(r373767)
+++ head/databases/Makefile	Tue Dec  2 15:41:14 2014	(r373768)
@@ -536,6 +536,7 @@
     SUBDIR += pgadmin3
     SUBDIR += pgagent
     SUBDIR += pgbadger
+    SUBDIR += pgbarman
     SUBDIR += pgbouncer
     SUBDIR += pgdbf
     SUBDIR += pgespresso

Added: head/databases/pgbarman/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/pgbarman/Makefile	Tue Dec  2 15:41:14 2014	(r373768)
@@ -0,0 +1,43 @@
+# Created by: MAtthew Seaman
+# $FreeBSD$
+
+PORTNAME=	barman
+DISTVERSION=	1.3.3
+CATEGORIES=	databases
+MASTER_SITES=	SF/${PKGNAMEPREFIX}${PORTNAME}/${DISTVERSION}
+PKGNAMEPREFIX=	pg
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX} barman-tutorial.en.pdf
+EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER=	matthew at FreeBSD.org
+COMMENT=	Backup and recovery manager for PostgreSQL
+
+LICENSE=	GPLv3
+
+RUN_DEPENDS=	rsync:${PORTSDIR}/net/rsync						\
+		${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-psycopg2	\
+		${PYTHON_PKGNAMEPREFIX}dateutil>=2.1:${PORTSDIR}/devel/py-dateutil	\
+		${PYTHON_PKGNAMEPREFIX}argh>0:${PORTSDIR}/devel/py-argh
+
+USERS=		barman
+GROUPS=		barman
+
+USES=		python pgsql
+WANT_PGSQL=	client
+USE_PYTHON=	autoplist distutils
+
+PORTDOCS=	barman-tutorial.en.pdf
+
+post-extract:
+	${CP} ${DISTDIR}/${PORTDOCS} ${WRKDIR}/
+
+post-patch:
+	${SED} -i -e "s@%%PREFIX%%@${PREFIX}@" ${WRKSRC}/barman/config.py
+
+post-install:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_MAN} ${WRKDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${ETCDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/barman.conf ${STAGEDIR}${ETCDIR}/barman.conf.sample
+
+.include <bsd.port.mk>

Added: head/databases/pgbarman/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/pgbarman/distinfo	Tue Dec  2 15:41:14 2014	(r373768)
@@ -0,0 +1,4 @@
+SHA256 (barman-1.3.3.tar.gz) = 3e3af2fec16ac2836965a4c135d9ef4959ed690fb40ef06571d03ff526448468
+SIZE (barman-1.3.3.tar.gz) = 111462
+SHA256 (barman-tutorial.en.pdf) = f05666353ba61d8faeed70fcb32a6bc46fa4450dce6af9df462c2efeffad6734
+SIZE (barman-tutorial.en.pdf) = 276813

Added: head/databases/pgbarman/files/patch-barman_config.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/pgbarman/files/patch-barman_config.py	Tue Dec  2 15:41:14 2014	(r373768)
@@ -0,0 +1,13 @@
+--- barman/config.py.orig	2014-12-02 14:47:11 UTC
++++ barman/config.py
+@@ -341,8 +341,8 @@ class Config(object):
+     """
+     CONFIG_FILES = [
+         '~/.barman.conf',
+-        '/etc/barman.conf',
+-        '/etc/barman/barman.conf',
++        '%%PREFIX%%/etc/barman.conf',
++        '%%PREFIX%%/etc/barman/barman.conf',
+     ]
+ 
+     _QUOTE_RE = re.compile(r"""^(["'])(.*)\1$""")

Added: head/databases/pgbarman/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/pgbarman/pkg-descr	Tue Dec  2 15:41:14 2014	(r373768)
@@ -0,0 +1,11 @@
+
+Barman: backup and recovery manager for PostgreSQL.
+
+Barman is an open-source administration tool for disaster recovery of
+PostgreSQL servers written in Python.
+
+It allows your organisation to perform remote backups of multiple
+servers in business critical environments and helps DBAs during the
+recovery phase.
+
+WWW: http://www.pgbarman.org/

Added: head/databases/pgbarman/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/pgbarman/pkg-plist	Tue Dec  2 15:41:14 2014	(r373768)
@@ -0,0 +1 @@
+ at sample %%ETCDIR%%/barman.conf.sample


More information about the svn-ports-head mailing list