aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2014-07-28 15:07:45 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2014-07-28 15:07:45 +0000
commit1577ee2ec3dd7cb8743e74229506406410d14b9e (patch)
tree1728e23ccf5e00000f7bf57ac3adf940dd39890d /net-mgmt
parente41724f7670534e61f8106a96b5cd5d0674b6fed (diff)
downloadports-1577ee2ec3dd7cb8743e74229506406410d14b9e.tar.gz
ports-1577ee2ec3dd7cb8743e74229506406410d14b9e.zip
Notes
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>