summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp53
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2002-05-25 02:16:58 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2002-05-25 02:16:58 +0000
commit9fd97a9ecc1cebbd6ca1240a5da336c448c78b40 (patch)
tree25c5ee5a73a1d3001c50d199190210132cf4d62a /net-mgmt/net-snmp53
parentInvert WITHOUT_RUBY logic. This should fix the bento build. (diff)
(1) Support IPv6 transport.
(2) Install snmpd.sh.sample and also install snmpd.sh if not exist. (not yet completed as pkg_add case) Requested by: ume, Katsuhisa ABE <katsuhisa.abe@nifty.com> (1) Vince Valenti <vince@blue-box.net> (2)
Notes
Notes: svn path=/head/; revision=59944
Diffstat (limited to 'net-mgmt/net-snmp53')
-rw-r--r--net-mgmt/net-snmp53/Makefile5
-rw-r--r--net-mgmt/net-snmp53/pkg-plist6
2 files changed, 9 insertions, 2 deletions
diff --git a/net-mgmt/net-snmp53/Makefile b/net-mgmt/net-snmp53/Makefile
index ca93d2cc6548..c8d782307eb3 100644
--- a/net-mgmt/net-snmp53/Makefile
+++ b/net-mgmt/net-snmp53/Makefile
@@ -7,6 +7,7 @@
PORTNAME= net-snmp
PORTVERSION= 5.0.1
+PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \
@@ -69,7 +70,8 @@ STARTUP_FILE= ${PREFIX}/etc/rc.d/snmpd.sh
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 400014
-CONFIGURE_ARGS+= --enable-ipv6
+CONFIGURE_ARGS+= --enable-ipv6 \
+ --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix"
.endif
SHLIB_VERSION= 5
@@ -83,6 +85,7 @@ post-install:
@( cd ${PREFIX}/sbin && strip ${SBIN} )
@( cd ${PREFIX}/include/net-snmp && ${CHMOD} 644 * )
@( cd ${PREFIX}/share/snmp/mibs && ${CHMOD} 644 * )
+ @${INSTALL_SCRIPT} -m 751 ${FILESDIR}/snmpd.sh.sample ${PREFIX}/etc/rc.d
@if [ ! -f ${STARTUP_FILE} ]; then \
${ECHO} "Creating ${PREFIX}/etc/rc.d/snmpd.sh startup file."; \
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/snmpd.sh.sample ${STARTUP_FILE}; \
diff --git a/net-mgmt/net-snmp53/pkg-plist b/net-mgmt/net-snmp53/pkg-plist
index f9cf36fbd736..2314dea4a0bd 100644
--- a/net-mgmt/net-snmp53/pkg-plist
+++ b/net-mgmt/net-snmp53/pkg-plist
@@ -23,7 +23,8 @@ bin/snmpusm
bin/snmpvacm
bin/snmpwalk
bin/traptoemail
-etc/rc.d/snmpd.sh
+@unexec if cmp -s %D/etc/snmpd.sh %D/etc/snmpd.sh.sample; then rm -f %D/etc/snmpd.sh; fi
+etc/rc.d/snmpd.sh.sample
include/net-snmp/agent/agent_callbacks.h
include/net-snmp/agent/agent_handler.h
include/net-snmp/agent/agent_index.h
@@ -213,6 +214,7 @@ share/snmp/mibs/UCD-DLMOD-MIB.txt
share/snmp/mibs/UCD-IPFWACC-MIB.txt
share/snmp/mibs/UCD-SNMP-MIB.txt
share/snmp/mibs/UDP-MIB.txt
+@unexec rm -f %D/share/snmp/mibs/.index 2>/dev/null || true
share/snmp/snmpconf-data/snmp-data/authopts
share/snmp/snmpconf-data/snmp-data/debugging
share/snmp/snmpconf-data/snmp-data/mibs
@@ -229,6 +231,8 @@ share/snmp/snmpconf-data/snmpd-data/trapsinks
share/snmp/snmpconf-data/snmptrapd-data/formatting
share/snmp/snmpconf-data/snmptrapd-data/snmpconf-config
share/snmp/snmpconf-data/snmptrapd-data/traphandle
+@dirrm include/net-snmp/library
+@dirrm include/net-snmp
@dirrm share/snmp/snmpconf-data/snmp-data
@dirrm share/snmp/snmpconf-data/snmpd-data
@dirrm share/snmp/snmpconf-data/snmptrapd-data