8d6597e0bb
With hat: portmgr Sponsored by: Absolight
37 lines
1,001 B
Makefile
37 lines
1,001 B
Makefile
# Created by: Lawrence Chen <beastie@tardisi.com>
|
|
# $FreeBSD$
|
|
|
|
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>
|