aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-07-16 02:56:49 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-07-16 02:56:49 +0800
commitb4bc9cf610fcb7e4d0c9209fc411e554f145ab0e (patch)
tree87ef572abdcb27199f65104566781c2d8fc04372 /net-mgmt
parent7d76d4c1296ff9d62e433be07eaaf0659060197a (diff)
downloadfreebsd-ports-gnome-b4bc9cf610fcb7e4d0c9209fc411e554f145ab0e.tar.gz
freebsd-ports-gnome-b4bc9cf610fcb7e4d0c9209fc411e554f145ab0e.tar.zst
freebsd-ports-gnome-b4bc9cf610fcb7e4d0c9209fc411e554f145ab0e.zip
- Fix shebangs
- Add NO_ARCH Approved by: portmgr blanket MFH: 2015Q3 (blanket)
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/nagios-check_netsnmp/Makefile12
-rw-r--r--net-mgmt/nagios-check_netsnmp/files/check_netsnmp.in (renamed from net-mgmt/nagios-check_netsnmp/files/check_netsnmp)2
2 files changed, 10 insertions, 4 deletions
diff --git a/net-mgmt/nagios-check_netsnmp/Makefile b/net-mgmt/nagios-check_netsnmp/Makefile
index 505af866417c..c067f380938f 100644
--- a/net-mgmt/nagios-check_netsnmp/Makefile
+++ b/net-mgmt/nagios-check_netsnmp/Makefile
@@ -3,7 +3,7 @@
PORTNAME= check_netsnmp
PORTVERSION= 1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= # none
PKGNAMEPREFIX= nagios-
@@ -15,14 +15,20 @@ COMMENT= Nagios plug-in to get some common NetSNMP-exported information
RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/utils.pm:${PORTSDIR}/net-mgmt/nagios-plugins \
p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP
-USES= perl5
+USES= perl5 shebangfix
USE_PERL5= run
NO_BUILD= yes
+NO_ARCH= yes
PLIST_FILES= libexec/nagios/check_netsnmp %%DOCSDIR%%/check_netsnmp.html
+SUB_FILES= check_netsnmp
+SUB_LIST= PERL="${perl_CMD}"
+
+do-extract:
+ @${MKDIR} ${WRKSRC}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
- ${INSTALL_SCRIPT} ${FILESDIR}/check_netsnmp ${STAGEDIR}${PREFIX}/libexec/nagios
+ ${INSTALL_SCRIPT} ${WRKDIR}/check_netsnmp ${STAGEDIR}${PREFIX}/libexec/nagios
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${FILESDIR}/check_netsnmp.html ${STAGEDIR}${DOCSDIR}
diff --git a/net-mgmt/nagios-check_netsnmp/files/check_netsnmp b/net-mgmt/nagios-check_netsnmp/files/check_netsnmp.in
index 6d076e0d7a88..94bc6e814444 100644
--- a/net-mgmt/nagios-check_netsnmp/files/check_netsnmp
+++ b/net-mgmt/nagios-check_netsnmp/files/check_netsnmp.in
@@ -1,4 +1,4 @@
-#! /usr/bin/perl -w
+#!%%PERL%% -w
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42, (c) Poul-Henning Kamp):