freebsd-ports/net-mgmt/nagios-check_dhcp.pl/Makefile
Mathieu Arnold 8d6597e0bb Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:16:16 +00:00

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>