blob: 1f01891575974ea763c3987947b17329e519ccd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
PORTNAME= check_ups_health
PORTVERSION= 2.9.2.4
CATEGORIES= net-mgmt
MASTER_SITES= https://labs.consol.de/assets/downloads/nagios/
MAINTAINER= pi@FreeBSD.org
COMMENT= Nagios plugin to check various UPS systems
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= perl5
NO_ARCH= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-statefiles-dir=${NAGIOSDIR} \
--with-nagios-user=${NAGIOSUSER} \
--with-nagios-group=${NAGIOSGROUP} \
--with-mymodules-dir=${PREFIX}/libexec/nagios \
--with-mymodules-dyn-dir=${PREFIX}/libexec/nagios \
--libexecdir=${PREFIX}/libexec/nagios \
--with-perl=${PERL}
NAGIOSUSER?= nagios
NAGIOSGROUP?= nagios
NAGIOSDIR?= /var/spool/nagios
PLIST_FILES= libexec/nagios/check_ups_health
post-patch:
${REINPLACE_CMD} -e "s| /bin/sed| ${SED}|" -e "s| /bin/grep| ${GREP}|" \
${WRKSRC}/plugins-scripts/Makefile.in
.include <bsd.port.mk>
|