Tweak deskutils/just version 1.5.0
[dports.git] / net-mgmt / check_nwc_health / Makefile
1 PORTNAME=       check_nwc_health
2 PORTVERSION=    10.3
3 PORTREVISION=   1
4 CATEGORIES=     net-mgmt
5 MASTER_SITES=   https://labs.consol.de/assets/downloads/nagios/
6
7 MAINTAINER=     leres@FreeBSD.org
8 COMMENT=        Nagios plugin to monitor network equipment via SNMP
9 WWW=            https://labs.consol.de/nagios/check_nwc_health
10
11 LICENSE=        GPLv2
12 LICENSE_FILE=   ${WRKSRC}/COPYING
13
14 RUN_DEPENDS=    p5-File-Slurp>=0:devel/p5-File-Slurp \
15                 p5-JSON-XS>=4.0:converters/p5-JSON-XS \
16                 p5-JSON>=4.0:converters/p5-JSON
17
18 USES=   perl5
19
20 GNU_CONFIGURE=  yes
21 CONFIGURE_ARGS= --prefix=${PREFIX} \
22                 --with-nagios-user=${NAGIOSUSER} \
23                 --with-nagios-group=${NAGIOSGROUP} \
24                 --with-perl=${PERL}
25
26 NAGIOSUSER?=    nagios
27 NAGIOSGROUP?=   nagios
28 USERS=          ${NAGIOSUSER}
29 GROUPS=         ${NAGIOSGROUP}
30
31 PLIST_FILES=    libexec/check_nwc_health
32
33 post-patch:
34         ${REINPLACE_CMD} -e "s| /bin/sed| ${SED}|" -e "s| /bin/grep| ${GREP}|" \
35             ${WRKSRC}/plugins-scripts/Makefile.in
36         # Remove unused expression that is problematic for pkg-fallout
37         # under 12.3 but causes no problems anywhere else
38         ${REINPLACE_CMD} -e "/@AWK@/d" ${WRKSRC}/plugins-scripts/subst.in
39
40 .include <bsd.port.mk>