2011-06-14 23:39:56 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= check_postgres_replication
|
|
|
|
PORTVERSION= 2010.12.16
|
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
2018-12-12 02:35:33 +01:00
|
|
|
PORTREVISION= 2
|
2011-06-14 23:39:56 +02:00
|
|
|
CATEGORIES= databases python
|
|
|
|
MASTER_SITES= https://gist.github.com/raw/743942/4b9454d6aaf919fe77d15ecea09c7a001ae83b59/ \
|
2015-05-14 12:15:04 +02:00
|
|
|
LOCAL/brooks
|
2011-06-14 23:39:56 +02:00
|
|
|
PKGNAMEPREFIX= nagios-
|
|
|
|
DISTNAME= check_postgres_replication.py
|
2017-04-21 20:00:46 +02:00
|
|
|
EXTRACT_SUFX= # empty
|
2011-06-14 23:39:56 +02:00
|
|
|
|
2014-07-28 16:45:47 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2011-06-14 23:39:56 +02:00
|
|
|
COMMENT= Nagios plugin to check the lag between a postgresql replica and master
|
|
|
|
|
2015-07-12 18:07:15 +02:00
|
|
|
LICENSE= MIT
|
|
|
|
|
2018-05-22 15:15:13 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nagiosplugin>=0:sysutils/py-nagiosplugin@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}psycopg2>=0:databases/py-psycopg2@${PY_FLAVOR}
|
2011-06-14 23:39:56 +02:00
|
|
|
|
2017-04-21 20:00:46 +02:00
|
|
|
USES= python shebangfix
|
|
|
|
SHEBANG_FILES= check_postgres_replication.py
|
2015-07-12 18:07:15 +02:00
|
|
|
NO_ARCH= yes
|
2011-06-14 23:39:56 +02:00
|
|
|
NO_BUILD= yes
|
2015-07-12 18:07:15 +02:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
|
|
|
PLIST_FILES= libexec/nagios/check_postgres_replication
|
2011-06-14 23:39:56 +02:00
|
|
|
|
|
|
|
do-extract:
|
2017-04-21 20:00:46 +02:00
|
|
|
@${CP} ${DISTDIR}/${DISTNAME} ${WRKSRC}
|
2011-06-14 23:39:56 +02:00
|
|
|
|
|
|
|
do-install:
|
2017-04-21 20:00:46 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${DISTNAME} \
|
|
|
|
${STAGEDIR}${PREFIX}/libexec/nagios/${DISTNAME:S/.py//}
|
2011-06-14 23:39:56 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|