2023-08-16 22:26:55 +00:00
|
|
|
PKG_ARCH= *
|
|
|
|
|
|
|
|
COMMENT= Nagios plugin to monitor PostgresQL
|
|
|
|
DISTNAME= check_postgres-2.26.0
|
|
|
|
CATEGORIES= net databases
|
|
|
|
|
|
|
|
MAINTAINER= Stuart Henderson <stu.ports@spacehopper.org>
|
|
|
|
|
|
|
|
HOMEPAGE= http://bucardo.org/wiki/Check_postgres
|
2023-09-20 05:43:08 +00:00
|
|
|
SITES= http://bucardo.org/downloads/
|
2023-08-16 22:26:55 +00:00
|
|
|
|
|
|
|
# BSD
|
|
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
|
|
|
|
MODULES= perl
|
|
|
|
CONFIGURE_STYLE= perl
|
|
|
|
|
|
|
|
TEST_DEPENDS= ${RUN_DEPENDS} \
|
|
|
|
databases/postgresql,-server
|
|
|
|
|
|
|
|
RUN_DEPENDS= databases/p5-DBD-Pg
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@perl -pi -e 's,data space,data_space,g' ${WRKSRC}/t/CP_Testing.pm
|
|
|
|
@${SUBST_CMD} ${WRKSRC}/check_postgres.pl
|
|
|
|
|
|
|
|
INSTDIR= ${PREFIX}/libexec/nagios/
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${INSTDIR}
|
|
|
|
cd ${INSTDIR} && ${PREFIX}/bin/check_postgres.pl --symlinks
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|