freebsd-ports/databases/nagios-check_postgres_replication/Makefile
Mathieu Arnold 4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00

36 lines
934 B
Makefile

# $FreeBSD$
PORTNAME= check_postgres_replication
PORTVERSION= 2010.12.16
CATEGORIES= databases python
MASTER_SITES= https://gist.github.com/raw/743942/4b9454d6aaf919fe77d15ecea09c7a001ae83b59/ \
LOCAL/brooks
PKGNAMEPREFIX= nagios-
DISTNAME= check_postgres_replication.py
EXTRACT_SUFX=
MAINTAINER= ports@FreeBSD.org
COMMENT= Nagios plugin to check the lag between a postgresql replica and master
LICENSE= MIT
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nagiosplugin>=0:sysutils/py-nagiosplugin \
${PYTHON_PKGNAMEPREFIX}psycopg2>=0:databases/py-psycopg2
NO_ARCH= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
USES= pgsql python
PLIST_FILES= libexec/nagios/check_postgres_replication
do-extract:
${MKDIR} ${WRKDIR}
${CP} ${DISTDIR}/${DISTNAME} ${WRKDIR}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME} \
${STAGEDIR}${PREFIX}/libexec/nagios/${DISTNAME:S/.py//}
.include <bsd.port.mk>