diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2002-05-25 02:16:58 +0000 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2002-05-25 02:16:58 +0000 |
commit | c986c50ee5f1996c991de77dbf33d8ec4aff49cd (patch) | |
tree | 254538c068c6ffad36f08222eb40a2c3c9e65484 | |
parent | 88b86e448b004ff2b16103204e35b324879b0fea (diff) | |
download | FreeBSD-ports-c986c50ee5f1996c991de77dbf33d8ec4aff49cd.zip FreeBSD-ports-c986c50ee5f1996c991de77dbf33d8ec4aff49cd.tar.gz |
(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)
-rw-r--r-- | net-mgmt/net-snmp-devel/Makefile | 5 | ||||
-rw-r--r-- | net-mgmt/net-snmp-devel/pkg-plist | 6 | ||||
-rw-r--r-- | net-mgmt/net-snmp/Makefile | 5 | ||||
-rw-r--r-- | net-mgmt/net-snmp/pkg-plist | 6 | ||||
-rw-r--r-- | net-mgmt/net-snmp53/Makefile | 5 | ||||
-rw-r--r-- | net-mgmt/net-snmp53/pkg-plist | 6 | ||||
-rw-r--r-- | net/net-snmp/Makefile | 5 | ||||
-rw-r--r-- | net/net-snmp/pkg-plist | 6 |
8 files changed, 36 insertions, 8 deletions
diff --git a/net-mgmt/net-snmp-devel/Makefile b/net-mgmt/net-snmp-devel/Makefile index ca93d2c..c8d7823 100644 --- a/net-mgmt/net-snmp-devel/Makefile +++ b/net-mgmt/net-snmp-devel/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-devel/pkg-plist b/net-mgmt/net-snmp-devel/pkg-plist index f9cf36f..2314dea 100644 --- a/net-mgmt/net-snmp-devel/pkg-plist +++ b/net-mgmt/net-snmp-devel/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 diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile index ca93d2c..c8d7823 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 f9cf36f..2314dea 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 diff --git a/net-mgmt/net-snmp53/Makefile b/net-mgmt/net-snmp53/Makefile index ca93d2c..c8d7823 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 f9cf36f..2314dea 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 diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile index ca93d2c..c8d7823 100644 --- a/net/net-snmp/Makefile +++ b/net/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/net-snmp/pkg-plist b/net/net-snmp/pkg-plist index f9cf36f..2314dea 100644 --- a/net/net-snmp/pkg-plist +++ b/net/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 |