diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2003-09-06 12:21:05 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2003-09-06 12:21:05 +0000 |
commit | 529f9db8ebc0f68d5cb550ad61497ebb326a6d1a (patch) | |
tree | c60cf4f155866c36e07f77ad6e010408b9d96385 /net-mgmt/net-snmp/Makefile | |
parent | Project is now located at SourceForge. Update MASTER_SITES, add WWW and (diff) |
Upgrade to 5.0.9.
Convert to use rc.subr script.
Heads up!
Variable name in /etc/rc.conf is changed to $snmpd_enable and
$snmpd_flags. Old variables are imported for transition.
Diffstat (limited to 'net-mgmt/net-snmp/Makefile')
-rw-r--r-- | net-mgmt/net-snmp/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile index 312cb98db434..45767c531a76 100644 --- a/net-mgmt/net-snmp/Makefile +++ b/net-mgmt/net-snmp/Makefile @@ -6,8 +6,7 @@ # PORTNAME= net-snmp -PORTVERSION= 5.0.8 -PORTREVISION= 3 +PORTVERSION= 5.0.9 CATEGORIES= net ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= net-snmp @@ -15,6 +14,13 @@ MASTER_SITE_SUBDIR= net-snmp MAINTAINER= kuriyama@FreeBSD.org COMMENT= An extendable SNMP implementation +.if !exists(/etc/rc.subr) +RUN_DEPENDS= ${LOCALBASE}/etc/rc.subr:${PORTSDIR}/sysutils/rc_subr +RC_SUBR= ${LOCALBASE}/etc/rc.subr +.else +RC_SUBR= /etc/rc.subr +.endif + USE_PERL5= yes USE_REINPLACE= yes USE_AUTOCONF_VER=213 @@ -99,6 +105,7 @@ CONFIGURE_ARGS+= --enable-ipv6 \ SHLIB_VERSION= 5 PLIST_SUB+= shlib=${SHLIB_VERSION} +RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} post-patch: @${REINPLACE_CMD} \ @@ -119,7 +126,9 @@ post-install: @( cd ${PREFIX}/sbin && ${STRIP_CMD} ${SBIN} ) @${FIND} ${PREFIX}/include/net-snmp ${PREFIX}/share/snmp/mibs -type f \ | ${XARGS} ${CHMOD} 644 - @${INSTALL_SCRIPT} -m 751 ${FILESDIR}/snmpd.sh.sample ${STARTUP_FILE} + @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ + ${FILESDIR}/snmpd.sh.sample > ${STARTUP_FILE} + @${CHMOD} 755 ${STARTUP_FILE} @${ECHO_MSG} @${CAT} ${PKGMESSAGE} |