freebsd-ports/net-mgmt/nagios-check_dhcp.pl/Makefile
2021-04-06 16:31:07 +02:00

36 lines
989 B
Makefile

# Created by: Lawrence Chen <beastie@tardisi.com>
PORTNAME= check_dhcp.pl
PORTVERSION= 0.1
CATEGORIES= net-mgmt
MASTER_SITES= http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=1526&cf_id=24&dummy=/
PKGNAMEPREFIX= nagios-
DISTNAME= ${PORTNAME}
EXTRACT_SUFX=
MAINTAINER= beastie@tardisi.com
COMMENT= Check the availability of a DHCP server using unicast delivery
RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/utils.pm:net-mgmt/nagios-plugins \
p5-IO-Interface>=0:net/p5-IO-Interface \
p5-Net-DHCP-Watch>=0:net/p5-Net-DHCP-Watch
USES= perl5
USE_PERL5= run
PLIST_FILES= libexec/nagios/check_dhcp.pl
NO_BUILD= yes
NO_WRKSUBDIR= yes
post-patch:
@${REINPLACE_CMD} -e "s,/usr/bin/perl,${PERL}," ${WRKSRC}/${PORTNAME}
do-extract:
@${MKDIR} ${WRKSRC}
@${CP} ${DISTDIR}/${PORTNAME} ${WRKSRC}/
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
${INSTALL_SCRIPT} ${WRKSRC}/check_dhcp.pl ${STAGEDIR}${PREFIX}/libexec/nagios/check_dhcp.pl
.include <bsd.port.mk>