1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
This commit is contained in:
Vanilla I. Shu 2014-07-28 15:07:45 +00:00
parent e41724f767
commit 1577ee2ec3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363174

View File

@ -12,13 +12,14 @@ COMMENT= Additional SNMP plugins for Nagios
LIB_DEPENDS= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp LIB_DEPENDS= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp
USES= gmake perl5 USES= gmake perl5
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
USE_AUTOTOOLS= automake14 autoheader autoconf USE_AUTOTOOLS= automake14 autoheader autoconf
OPTIONS_DEFINE= DOCS
NAGIOS_PLUGIN_DIR= ${PREFIX}/libexec/nagios NAGIOS_PLUGIN_DIR= ${PREFIX}/libexec/nagios
AUTOMAKE_ARGS= --add-missing AUTOMAKE_ARGS= --add-missing
CONFIGURE_ARGS= --sbindir=${PREFIX}/share/nagios/cgi-bin \ CONFIGURE_ARGS= --sbindir=${PREFIX}/share/nagios/cgi-bin \
--libexecdir=${NAGIOS_PLUGIN_DIR} \ --libexecdir=${NAGIOS_PLUGIN_DIR} \
--datadir=${PREFIX}/share/nagios \ --datadir=${PREFIX}/share/nagios \
@ -30,9 +31,6 @@ CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
# Workaround configure.in lameness. # Workaround configure.in lameness.
CPPFLAGS+= `net-snmp-config --cflags` CPPFLAGS+= `net-snmp-config --cflags`
NO_STAGE= yes
.include <bsd.port.pre.mk>
pre-configure: pre-configure:
@(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOMAKE_ENV} ${ACLOCAL} \ @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOMAKE_ENV} ${ACLOCAL} \
--acdir=${ACLOCAL_DIR}) --acdir=${ACLOCAL_DIR})
@ -43,12 +41,10 @@ pre-configure:
${AUTOCONF_ARGS}) ${AUTOCONF_ARGS})
do-install: do-install:
${MKDIR} ${NAGIOS_PLUGIN_DIR} ${MKDIR} ${STAGEDIR}${NAGIOS_PLUGIN_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/check_snmp_disk ${NAGIOS_PLUGIN_DIR} ${INSTALL_PROGRAM} ${WRKSRC}/check_snmp_disk ${STAGEDIR}${NAGIOS_PLUGIN_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/check_snmp_proc ${NAGIOS_PLUGIN_DIR} ${INSTALL_PROGRAM} ${WRKSRC}/check_snmp_proc ${STAGEDIR}${NAGIOS_PLUGIN_DIR}
.if !defined(NOPORTDOCS) ${MKDIR} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.post.mk> .include <bsd.port.mk>