Update lang/perl5.16 to version 5.16.3_22
[dports.git] / net-mgmt / nagios-check_dhcp.pl / Makefile
1 # Created by: Lawrence Chen <beastie@tardisi.com>
2 # $FreeBSD$
3
4 PORTNAME=       check_dhcp.pl
5 PORTVERSION=    0.1
6 CATEGORIES=     net-mgmt
7 MASTER_SITES=   http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=1526&cf_id=24&dummy=/
8 PKGNAMEPREFIX=  nagios-
9 DISTNAME=       ${PORTNAME}
10 EXTRACT_SUFX=
11
12 MAINTAINER=     beastie@tardisi.com
13 COMMENT=        Check the availability of a DHCP server using unicast delivery
14
15 RUN_DEPENDS=    ${LOCALBASE}/libexec/nagios/utils.pm:${PORTSDIR}/net-mgmt/nagios-plugins \
16                 p5-IO-Interface>=0:${PORTSDIR}/net/p5-IO-Interface \
17                 p5-Net-DHCP-Watch>=0:${PORTSDIR}/net/p5-Net-DHCP-Watch
18
19 USES=           perl5
20 USE_PERL5=      run
21
22 PLIST_FILES=    libexec/nagios/check_dhcp.pl
23 NO_BUILD=       yes
24 NO_WRKSUBDIR=   yes
25
26 post-patch:
27         @${REINPLACE_CMD} -e "s,/usr/bin/perl,${PERL}," ${WRKSRC}/${PORTNAME}
28
29 do-extract:
30         @${MKDIR} ${WRKDIR}
31         @${CP} ${DISTDIR}/${PORTNAME}   ${WRKDIR}/
32
33 do-install:
34         ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
35         ${INSTALL_SCRIPT} ${WRKSRC}/check_dhcp.pl ${STAGEDIR}${PREFIX}/libexec/nagios/check_dhcp.pl
36
37 .include <bsd.port.mk>