aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/net-snmp
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2002-05-25 10:16:58 +0800
committerkuriyama <kuriyama@FreeBSD.org>2002-05-25 10:16:58 +0800
commitc986c50ee5f1996c991de77dbf33d8ec4aff49cd (patch)
tree254538c068c6ffad36f08222eb40a2c3c9e65484 /net-mgmt/net-snmp
parent88b86e448b004ff2b16103204e35b324879b0fea (diff)
downloadfreebsd-ports-gnome-c986c50ee5f1996c991de77dbf33d8ec4aff49cd.tar.gz
freebsd-ports-gnome-c986c50ee5f1996c991de77dbf33d8ec4aff49cd.tar.zst
freebsd-ports-gnome-c986c50ee5f1996c991de77dbf33d8ec4aff49cd.zip
(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)
Diffstat (limited to 'net-mgmt/net-snmp')
-rw-r--r--net-mgmt/net-snmp/Makefile5
-rw-r--r--net-mgmt/net-snmp/pkg-plist6
2 files changed, 9 insertions, 2 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile
index ca93d2cc6548..c8d782307eb3 100644
--- a/net-mgmt/net-snmp/Makefile
+++ b/net-mgmt/net-snmp/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-snmp/pkg-plist b/net-mgmt/net-snmp/pkg-plist
index f9cf36fbd736..2314dea4a0bd 100644
--- a/net-mgmt/net-snmp/pkg-plist
+++ b/net-mgmt/net-snmp/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