aboutsummaryrefslogtreecommitdiffstats
path: root/databases/nagios-check_postgres_replication/Makefile
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2011-06-14 21:39:56 +0000
committerBrooks Davis <brooks@FreeBSD.org>2011-06-14 21:39:56 +0000
commitc43376d335db62d4170fc267989d30d062fdce9c (patch)
tree2d7c7e4ce850bda83d82c23d7bf58b05303583fa /databases/nagios-check_postgres_replication/Makefile
parent97085c300de960b4f026c6d4b462d83536ca4100 (diff)
Add nagios-check_postgres_replication, a Nagios plugin to check the lag
between a postgresql streaming replica and master.
Diffstat (limited to 'databases/nagios-check_postgres_replication/Makefile')
-rw-r--r--databases/nagios-check_postgres_replication/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/databases/nagios-check_postgres_replication/Makefile b/databases/nagios-check_postgres_replication/Makefile
new file mode 100644
index 000000000000..80abade882b4
--- /dev/null
+++ b/databases/nagios-check_postgres_replication/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: check_postgres_replication
+# Date created: 2011-06-10
+# Whom: Brooks Davis <brooks@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= check_postgres_replication
+PORTVERSION= 2010.12.16
+CATEGORIES= databases python
+MASTER_SITES= https://gist.github.com/raw/743942/4b9454d6aaf919fe77d15ecea09c7a001ae83b59/ \
+ ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= brooks
+PKGNAMEPREFIX= nagios-
+DISTNAME= check_postgres_replication.py
+EXTRACT_SUFX=
+
+MAINTAINER= brooks@FreeBSD.org
+COMMENT= Nagios plugin to check the lag between a postgresql replica and master
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nagiosplugin>=0:${PORTSDIR}/sysutils/py-nagiosplugin \
+ ${PYTHON_PKGNAMEPREFIX}psycopg2>=0:${PORTSDIR}/databases/py-psycopg2
+
+USE_PYTHON= yes
+USE_PGSQL= yes
+
+NO_WRKSUBDIR= yes
+NO_BUILD= yes
+
+do-extract:
+ ${MKDIR} ${WRKDIR}
+ ${CP} ${DISTDIR}/${DISTNAME} ${WRKDIR}
+
+do-install:
+ ${MKDIR} ${PREFIX}/libexec/nagios
+ ${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME} \
+ ${PREFIX}/libexec/nagios/${DISTNAME:S/.py//}
+
+.include <bsd.port.mk>