aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-07-28 23:07:45 +0800
committervanilla <vanilla@FreeBSD.org>2014-07-28 23:07:45 +0800
commitbaa0065863c9c91f29912cadb4f51417d92e90f0 (patch)
tree1728e23ccf5e00000f7bf57ac3adf940dd39890d /net-mgmt
parent74f860a84a0e091405a1e7fe77519db83ea3d48f (diff)
downloadfreebsd-ports-gnome-baa0065863c9c91f29912cadb4f51417d92e90f0.tar.gz
freebsd-ports-gnome-baa0065863c9c91f29912cadb4f51417d92e90f0.tar.zst
freebsd-ports-gnome-baa0065863c9c91f29912cadb4f51417d92e90f0.zip
Stagify.
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/nagios-snmp-plugins/Makefile26
1 files changed, 11 insertions, 15 deletions
diff --git a/net-mgmt/nagios-snmp-plugins/Makefile b/net-mgmt/nagios-snmp-plugins/Makefile
index 0c6ddff236ad..c70719597736 100644
--- a/net-mgmt/nagios-snmp-plugins/Makefile
+++ b/net-mgmt/nagios-snmp-plugins/Makefile
@@ -12,13 +12,14 @@ COMMENT= Additional SNMP plugins for Nagios
LIB_DEPENDS= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp
-USES= gmake perl5
-GNU_CONFIGURE= yes
+USES= gmake perl5
+GNU_CONFIGURE= yes
USE_AUTOTOOLS= automake14 autoheader autoconf
+OPTIONS_DEFINE= DOCS
NAGIOS_PLUGIN_DIR= ${PREFIX}/libexec/nagios
-AUTOMAKE_ARGS= --add-missing
+AUTOMAKE_ARGS= --add-missing
CONFIGURE_ARGS= --sbindir=${PREFIX}/share/nagios/cgi-bin \
--libexecdir=${NAGIOS_PLUGIN_DIR} \
--datadir=${PREFIX}/share/nagios \
@@ -30,9 +31,6 @@ CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
# Workaround configure.in lameness.
CPPFLAGS+= `net-snmp-config --cflags`
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
pre-configure:
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOMAKE_ENV} ${ACLOCAL} \
--acdir=${ACLOCAL_DIR})
@@ -43,12 +41,10 @@ pre-configure:
${AUTOCONF_ARGS})
do-install:
- ${MKDIR} ${NAGIOS_PLUGIN_DIR}
- ${INSTALL_PROGRAM} ${WRKSRC}/check_snmp_disk ${NAGIOS_PLUGIN_DIR}
- ${INSTALL_PROGRAM} ${WRKSRC}/check_snmp_proc ${NAGIOS_PLUGIN_DIR}
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
-
-.include <bsd.port.post.mk>
+ ${MKDIR} ${STAGEDIR}${NAGIOS_PLUGIN_DIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/check_snmp_disk ${STAGEDIR}${NAGIOS_PLUGIN_DIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/check_snmp_proc ${STAGEDIR}${NAGIOS_PLUGIN_DIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>