aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/check_nwc_health/Makefile
blob: 8d161f0e2ab014f3437477607c4e52a45f7b26ba (plain) (blame)
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
34
35
36
37
38
39
PORTNAME=	check_nwc_health
PORTVERSION=	11.2.4
CATEGORIES=	net-mgmt
MASTER_SITES=	https://labs.consol.de/assets/downloads/nagios/

MAINTAINER=	leres@FreeBSD.org
COMMENT=	Nagios plugin to monitor network equipment via SNMP
WWW=		https://labs.consol.de/nagios/check_nwc_health

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

RUN_DEPENDS=	p5-File-Slurp>=0:devel/p5-File-Slurp \
		p5-JSON-XS>=4.0:converters/p5-JSON-XS \
		p5-JSON>=4.0:converters/p5-JSON

USES=	perl5

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--prefix=${PREFIX} \
		--with-nagios-user=${NAGIOSUSER} \
		--with-nagios-group=${NAGIOSGROUP} \
		--with-perl=${PERL}

NAGIOSUSER?=	nagios
NAGIOSGROUP?=	nagios
USERS=		${NAGIOSUSER}
GROUPS=		${NAGIOSGROUP}

PLIST_FILES=	libexec/check_nwc_health

post-patch:
	${REINPLACE_CMD} -e "s| /bin/sed| ${SED}|" -e "s| /bin/grep| ${GREP}|" \
	    ${WRKSRC}/plugins-scripts/Makefile.in
	# Remove unused expression that is problematic for pkg-fallout
	# under 12.3 but causes no problems anywhere else
	${REINPLACE_CMD} -e "/@AWK@/d" ${WRKSRC}/plugins-scripts/subst.in

.include <bsd.port.mk>