60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
32 lines
875 B
Makefile
32 lines
875 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
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nagiosplugin>=0:${PORTSDIR}/sysutils/py-nagiosplugin \
|
|
${PYTHON_PKGNAMEPREFIX}psycopg2>=0:${PORTSDIR}/databases/py-psycopg2
|
|
|
|
USES= pgsql python
|
|
|
|
NO_WRKSUBDIR= yes
|
|
NO_BUILD= yes
|
|
|
|
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>
|