aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp53
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/net-snmp53')
-rw-r--r--net-mgmt/net-snmp53/Makefile138
-rw-r--r--net-mgmt/net-snmp53/distinfo1
-rw-r--r--net-mgmt/net-snmp53/files/patch-Makefile.in11
-rw-r--r--net-mgmt/net-snmp53/files/patch-Makefile.top11
-rw-r--r--net-mgmt/net-snmp53/files/patch-aa13
-rw-r--r--net-mgmt/net-snmp53/files/patch-aclocal.m448
-rw-r--r--net-mgmt/net-snmp53/files/patch-configure.in19
-rw-r--r--net-mgmt/net-snmp53/files/patch-diskio.c56
-rw-r--r--net-mgmt/net-snmp53/files/patch-freebsd5.h22
-rw-r--r--net-mgmt/net-snmp53/files/patch-hr_storage.c52
-rw-r--r--net-mgmt/net-snmp53/files/patch-hr_swrun.c86
-rw-r--r--net-mgmt/net-snmp53/files/patch-hr_system.c23
-rw-r--r--net-mgmt/net-snmp53/files/patch-interfaces.c16
-rw-r--r--net-mgmt/net-snmp53/files/patch-ipv6.c113
-rw-r--r--net-mgmt/net-snmp53/files/patch-local:Makefile.in11
-rw-r--r--net-mgmt/net-snmp53/files/patch-memory_freebsd2.c35
-rw-r--r--net-mgmt/net-snmp53/files/patch-snmpTCPIPv6Domain.c30
-rw-r--r--net-mgmt/net-snmp53/files/patch-snmpUCDIPv6Domain.c30
-rw-r--r--net-mgmt/net-snmp53/files/patch-snmpd.8.def13
-rw-r--r--net-mgmt/net-snmp53/files/patch-tcpTable.c26
-rw-r--r--net-mgmt/net-snmp53/files/patch-udpTable.c25
-rw-r--r--net-mgmt/net-snmp53/files/patch-vmstat_freebsd2.c14
-rw-r--r--net-mgmt/net-snmp53/files/snmpd.sh.sample35
-rw-r--r--net-mgmt/net-snmp53/pkg-descr12
-rw-r--r--net-mgmt/net-snmp53/pkg-message23
-rw-r--r--net-mgmt/net-snmp53/pkg-plist301
26 files changed, 0 insertions, 1164 deletions
diff --git a/net-mgmt/net-snmp53/Makefile b/net-mgmt/net-snmp53/Makefile
deleted file mode 100644
index 3146fef15ac6..000000000000
--- a/net-mgmt/net-snmp53/Makefile
+++ /dev/null
@@ -1,138 +0,0 @@
-# New ports collection makefile for: ucd-snmp
-# Date created: 26 June 1996
-# Whom: gpalmer
-#
-# $FreeBSD$
-#
-
-PORTNAME= net-snmp
-PORTVERSION= 5.1
-CATEGORIES= net ipv6
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= net-snmp
-
-MAINTAINER= kuriyama@FreeBSD.org
-COMMENT= An extendable SNMP implementation
-
-USE_REINPLACE= yes
-USE_AUTOCONF_VER=257
-USE_LIBTOOL= yes
-USE_RC_SUBR= yes
-INSTALLS_SHLIB= yes
-LIBTOOLFLAGS= --disable-ltlibs --release-ignore
-NO_LATEST_LINK= yes
-.if !defined(WITHOUT_PERL)
-USE_PERL5= yes
-.endif
-
-CONFIGURE_ARGS+=--enable-shared --with-mib-modules="${NET_SNMP_MIB_MODULES}" \
- --with-default-snmp-version="${DEFAULT_SNMP_VERSION}" \
- --with-sys-contact="${NET_SNMP_SYS_CONTACT}" \
- --with-sys-location="${NET_SNMP_SYS_LOCATION}" \
- --with-logfile="${NET_SNMP_LOGFILE}" \
- --with-persistent-directory="${NET_SNMP_PERSISTENTDIR}" \
- --with-gnu-ld --with-libwrap --with-libs="-lkvm -ldevstat" \
- --with-defaults
-.if defined(WITHOUT_PERL)
-PLIST_SUB+= WITHPERL="@comment "
-.else
-CONFIGURE_ARGS+= --with-perl-modules
-PLIST_SUB+= WITHPERL=""
-.endif
-
-DEFAULT_SNMP_VERSION?= 3
-NET_SNMP_SYS_CONTACT?= nobody@no.where
-NET_SNMP_SYS_LOCATION?=
-NET_SNMP_LOGFILE?= /var/log/snmpd.log
-NET_SNMP_PERSISTENTDIR?=/var/net-snmp
-NET_SNMP_MIB_MODULES?= host smux ucd-snmp/diskio
-
-MAN1= mib2c.1 \
- snmpbulkget.1 snmpbulkwalk.1 snmpcmd.1 snmpconf.1 \
- snmpdelta.1 snmpdf.1 snmpget.1 snmpgetnext.1 snmpinform.1 \
- snmpnetstat.1 snmpset.1 snmpstatus.1 snmptable.1 snmptest.1 \
- snmptranslate.1 snmptrap.1 snmpusm.1 snmpwalk.1
-MAN3= add_mibdir.3 add_module_replacement.3 default_store.3 \
- get_module_node.3 init_mib.3 init_mib_internals.3 mib_api.3 \
- netsnmp_agent.3 netsnmp_bulk_to_next.3 netsnmp_debug.3 \
- netsnmp_example_scalar_int.3 netsnmp_handler.3 \
- netsnmp_instance.3 netsnmp_library.3 \
- netsnmp_mib_handler_methods.3 netsnmp_mib_utilities.3 \
- netsnmp_mode_end_call.3 netsnmp_multiplexer.3 \
- netsnmp_old_api.3 netsnmp_read_only.3 netsnmp_scalar.3 \
- netsnmp_serialize.3 netsnmp_table.3 netsnmp_table_array.3 \
- netsnmp_table_data.3 netsnmp_table_dataset.3 \
- netsnmp_table_iterator.3 netsnmp_todo.3 netsnmp_watcher.3 \
- print_description.3 print_mib.3 print_objid.3 print_value.3 \
- print_variable.3 read_all_mibs.3 read_config.3 read_mib.3 \
- read_module.3 read_module_node.3 read_objid.3 shutdown_mib.3 \
- snmp_agent_api.3 snmp_alarm.3 snmp_api.3 \
- snmp_api_errstring.3 snmp_close.3 \
- snmp_error.3 snmp_free_pdu.3 snmp_open.3 snmp_perror.3 \
- snmp_read.3 snmp_select_info.3 \
- snmp_send.3 snmp_sess_api.3 snmp_sess_async_send.3 \
- snmp_sess_close.3 snmp_sess_error.3 snmp_sess_init.3 \
- snmp_sess_open.3 snmp_sess_perror.3 \
- snmp_sess_read.3 snmp_sess_select_info.3 \
- snmp_sess_send.3 snmp_sess_session.3 snmp_sess_timeout.3 \
- snmp_set_mib_warnings.3 snmp_set_save_descriptions.3 \
- snmp_timeout.3 snmp_trap_api.3
-.if !defined(WITHOUT_PERL)
-MAN3PERL= NetSNMP::default_store.3 NetSNMP::ASN.3 NetSNMP::OID.3 \
- NetSNMP::agent::default_store.3 \
- NetSNMP::netsnmp_request_infoPtr.3 \
- NetSNMP::agent.3 SNMP.3
-MAN3PERLPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
-_MANPAGES+= ${MAN3PERL:S%^%${MAN3PERLPREFIX}/man/man3/%}
-.endif
-MAN5= snmp.conf.5 snmp_config.5 snmpd.conf.5 \
- snmptrapd.conf.5 variables.5
-MAN8= snmpd.8 snmptrapd.8
-BIN= snmpbulkwalk snmpget snmpgetnext snmpnetstat snmpset \
- snmpstatus snmptest snmptranslate snmptrap snmpwalk
-SBIN= snmpd snmptrapd
-
-STARTUP_FILE= ${PREFIX}/etc/rc.d/snmpd.sh
-
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 400014
-CONFIGURE_ARGS+=--enable-ipv6 \
- --with-transports="UDP UDPIPv6 TCP TCPIPv6 Unix"
-.endif
-
-SHLIB_VERSION= 6
-PLIST_SUB+= shlib=${SHLIB_VERSION}
-RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
-
-post-patch:
- @${REINPLACE_CMD} \
- -e 's|%%LTCONFIG%%|${LIBTOOL_SHAREDIR}/ltconfig${LIBTOOL_VERSION}|g' \
- -e 's|%%LTMAIN%%|${LIBTOOL_SHAREDIR}/ltmain.sh|g' \
- ${WRKSRC}/aclocal.m4
-
-.if !defined(WITHOUT_PERL)
-post-build:
- @${FIND} ${CONFIGURE_WRKSRC}/perl -name Makefile | \
- ${XARGS} ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//'
-.endif
-
-pre-install:
- -@[ -f ${STARTUP_FILE} ] && \
- (echo "Remove old ${STARTUP_FILE} before install." && exit 1)
-
-post-install:
- @( cd ${PREFIX}/bin && ${STRIP_CMD} ${BIN} )
- @( cd ${PREFIX}/sbin && ${STRIP_CMD} ${SBIN} )
- @${FIND} ${PREFIX}/include/net-snmp ${PREFIX}/share/snmp/mibs -type f \
- | ${XARGS} ${CHMOD} 644
- @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${FILESDIR}/snmpd.sh.sample > ${STARTUP_FILE}
- @${CHMOD} 755 ${STARTUP_FILE}
- @${ECHO_MSG}
- @${CAT} ${PKGMESSAGE}
-
-.include <bsd.port.post.mk>
-
-# Dependency:
-# lang/php4,net/braa,net/docsis,net/ethereal,net/mbrowse,net/tethereal,net/zabbix,security/libfwbuilder
diff --git a/net-mgmt/net-snmp53/distinfo b/net-mgmt/net-snmp53/distinfo
deleted file mode 100644
index f10437e32d37..000000000000
--- a/net-mgmt/net-snmp53/distinfo
+++ /dev/null
@@ -1 +0,0 @@
-MD5 (net-snmp-5.1.tar.gz) = 14217471edb2b805b0e28c4c3cfd8c75
diff --git a/net-mgmt/net-snmp53/files/patch-Makefile.in b/net-mgmt/net-snmp53/files/patch-Makefile.in
deleted file mode 100644
index 405b874b64aa..000000000000
--- a/net-mgmt/net-snmp53/files/patch-Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.in.orig Wed Oct 22 22:13:07 2003
-+++ Makefile.in Fri Nov 14 12:59:36 2003
-@@ -15,7 +15,7 @@
- INSTALLHEADERS=version.h
- INCLUDESUBDIR=system
- INCLUDESUBDIRHEADERS= aix.h bsd.h bsdi3.h bsdi4.h bsdi.h cygwin.h darwin.h \
-- dynix.h freebsd2.h freebsd3.h freebsd4.h freebsd.h generic.h hpux.h \
-+ dynix.h freebsd2.h freebsd3.h freebsd4.h freebsd5.h freebsd.h generic.h hpux.h \
- irix.h linux.h mips.h netbsd.h openbsd.h osf5.h solaris2.6.h solaris2.7.h \
- solaris2.8.h solaris2.9.h solaris.h sunos.h svr5.h sysv.h ultrix4.h
- INCLUDESUBDIR2=machine
diff --git a/net-mgmt/net-snmp53/files/patch-Makefile.top b/net-mgmt/net-snmp53/files/patch-Makefile.top
deleted file mode 100644
index 33bed26b787a..000000000000
--- a/net-mgmt/net-snmp53/files/patch-Makefile.top
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.top.orig Thu Mar 6 05:08:26 2003
-+++ Makefile.top Sat Mar 29 21:54:50 2003
-@@ -59,7 +59,7 @@
- # generally, LIBCURRENT should stay the same unless major changes occur.
- # Increment REVISION every release.
- # Increment AGE if new stuff is available.
--LIB_LD_CMD = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -rpath $(libdir) -version-info $(LIBCURRENT):$(LIBREVISION):$(LIBAGE) -o
-+LIB_LD_CMD = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -rpath $(libdir) -release $(LIBCURRENT) -version-info $(LIBCURRENT):$(LIBREVISION):$(LIBAGE) -o
- LIB_EXTENSION = la
- LIB_VERSION =
- LIB_LDCONFIG_CMD = $(LIBTOOL) --mode=finish $(libdir)
diff --git a/net-mgmt/net-snmp53/files/patch-aa b/net-mgmt/net-snmp53/files/patch-aa
deleted file mode 100644
index 4d371fdbd56e..000000000000
--- a/net-mgmt/net-snmp53/files/patch-aa
+++ /dev/null
@@ -1,13 +0,0 @@
---- snmplib/Makefile.in.orig Wed Jul 17 02:50:49 2002
-+++ snmplib/Makefile.in Mon Jul 22 12:24:37 2002
-@@ -140,6 +140,10 @@
-
- libsnmp.$(LIB_EXTENSION)$(LIB_VERSION): ${TOBJS}
- $(LIB_LD_CMD) libsnmp.$(LIB_EXTENSION)$(LIB_VERSION) ${TOBJS}
-+ ld -Bshareable -soname libsnmp.so.4 \
-+ -o libsnmp.so ${OBJS}
-+ ln -f libsnmp.so \
-+ ../libsnmp.so.4
- $(RANLIB) libsnmp.$(LIB_EXTENSION)$(LIB_VERSION)
-
- #how to build dependencies
diff --git a/net-mgmt/net-snmp53/files/patch-aclocal.m4 b/net-mgmt/net-snmp53/files/patch-aclocal.m4
deleted file mode 100644
index eb2e519aa7f0..000000000000
--- a/net-mgmt/net-snmp53/files/patch-aclocal.m4
+++ /dev/null
@@ -1,48 +0,0 @@
---- aclocal.m4.orig Tue Sep 18 17:08:01 2001
-+++ aclocal.m4 Mon Jan 21 10:38:40 2002
-@@ -196,8 +196,23 @@
- AC_DEFUN([AC_PROG_LIBTOOL],
- [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
-
-+# Save cache, so that ltconfig can load it
-+AC_CACHE_SAVE
-+
-+# Actually configure libtool. ac_aux_dir is where install-sh is found.
-+CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
-+LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
-+LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
-+DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
-+${CONFIG_SHELL-/bin/sh} %%LTCONFIG%% --no-reexec \
-+$libtool_flags --no-verify --disable-ltlibs --release-ignore %%LTMAIN%% $lt_target \
-+|| AC_MSG_ERROR([libtool configure failed])
-+
-+# Reload cache, that may have been modified by ltconfig
-+AC_CACHE_LOAD
-+
- # This can be used to rebuild libtool when needed
--LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
-+LIBTOOL_DEPS="--disable-ltlibs --release-ignore %%LTMAIN%%"
-
- # Always use our own libtool.
- LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-@@ -224,6 +239,11 @@
- AC_REQUIRE([AC_EXEEXT])dnl
- dnl
-
-+case "$target" in
-+NONE) lt_target="$host" ;;
-+*) lt_target="$target" ;;
-+esac
-+
- _LT_AC_PROG_ECHO_BACKSLASH
- # Only perform the check for file, if the check method requires it
- case $deplibs_check_method in
-@@ -875,7 +895,7 @@
- # All known linkers require a `.a' archive for static linking (except M$VC,
- # which needs '.lib').
- libext=a
--ltmain="$ac_aux_dir/ltmain.sh"
-+ltmain="--disable-ltlibs --release-ignore %%LTMAIN%%"
- ofile="$default_ofile"
- with_gnu_ld="$lt_cv_prog_gnu_ld"
- need_locks="$enable_libtool_lock"
diff --git a/net-mgmt/net-snmp53/files/patch-configure.in b/net-mgmt/net-snmp53/files/patch-configure.in
deleted file mode 100644
index c3a85b528ce2..000000000000
--- a/net-mgmt/net-snmp53/files/patch-configure.in
+++ /dev/null
@@ -1,19 +0,0 @@
---- configure.in.orig Fri Nov 14 13:32:10 2003
-+++ configure.in Fri Nov 14 13:36:27 2003
-@@ -1357,7 +1357,7 @@
- # fall back
- CFLAG="-f"
- fi
--for i in /vmunix /hp-ux /stand/vmunix /dev/ksyms /kernel/unix /kernel/genunix /netbsd /unix /kernel /bsd /mach_kernel
-+for i in /vmunix /hp-ux /stand/vmunix /dev/ksyms /kernel/unix /kernel/genunix /netbsd /unix /kernel /bsd /mach_kernel /boot/kernel/kernel
- do
- if test -f $i -o $CFLAG $i; then
- ac_cv_KERNEL_LOC="$i"
-@@ -1376,6 +1376,7 @@
- # Check for mount table location
- #
-
-+# kuriyama: should /var/db/mounttab be used?
- AC_CACHE_CHECK(for mount table location,ac_cv_ETC_MNTTAB,
- [ac_cv_ETC_MNTTAB="unknown"
- for i in /etc/mnttab /etc/mtab /etc/filesystems
diff --git a/net-mgmt/net-snmp53/files/patch-diskio.c b/net-mgmt/net-snmp53/files/patch-diskio.c
deleted file mode 100644
index 609168f22e9c..000000000000
--- a/net-mgmt/net-snmp53/files/patch-diskio.c
+++ /dev/null
@@ -1,56 +0,0 @@
---- agent/mibgroup/ucd-snmp/diskio.c.orig Thu Mar 6 07:55:01 2003
-+++ agent/mibgroup/ucd-snmp/diskio.c Sat Mar 29 22:41:29 2003
-@@ -49,7 +49,12 @@
- #endif /* bsdi */
-
- #if defined (freebsd4) || defined(freebsd5)
-+#include <sys/param.h>
-+#if __FreeBSD_version >= 500101
-+#include <sys/resource.h>
-+#else
- #include <sys/dkstat.h>
-+#endif
- #include <devstat.h>
- #endif /* freebsd */
-
-@@ -380,7 +385,11 @@
- }
- memset(stat->dinfo, 0, sizeof(struct devinfo));
-
-+#if defined(freebsd5) && (__FreeBSD_version >= 500107)
-+ if ((devstat_getdevs(NULL, stat)) == -1) {
-+#else
- if ((getdevs(stat)) == -1) {
-+#endif
- fprintf(stderr, "Can't get devices:%s\n", devstat_errbuf);
- return 1;
- }
-@@ -429,6 +438,20 @@
- case DISKIO_DEVICE:
- *var_len = strlen(stat->dinfo->devices[indx].device_name);
- return (u_char *) stat->dinfo->devices[indx].device_name;
-+#if defined(freebsd5) && (__FreeBSD_version >= 500107)
-+ case DISKIO_NREAD:
-+ long_ret = (signed long) stat->dinfo->devices[indx].bytes[DEVSTAT_READ];
-+ return (u_char *) & long_ret;
-+ case DISKIO_NWRITTEN:
-+ long_ret = (signed long) stat->dinfo->devices[indx].bytes[DEVSTAT_WRITE];
-+ return (u_char *) & long_ret;
-+ case DISKIO_READS:
-+ long_ret = (signed long) stat->dinfo->devices[indx].operations[DEVSTAT_READ];
-+ return (u_char *) & long_ret;
-+ case DISKIO_WRITES:
-+ long_ret = (signed long) stat->dinfo->devices[indx].operations[DEVSTAT_WRITE];
-+ return (u_char *) & long_ret;
-+#else
- case DISKIO_NREAD:
- long_ret = (signed long) stat->dinfo->devices[indx].bytes_read;
- return (u_char *) & long_ret;
-@@ -441,6 +464,7 @@
- case DISKIO_WRITES:
- long_ret = (signed long) stat->dinfo->devices[indx].num_writes;
- return (u_char *) & long_ret;
-+#endif
-
- default:
- ERROR_MSG("diskio.c: don't know how to handle this request.");
diff --git a/net-mgmt/net-snmp53/files/patch-freebsd5.h b/net-mgmt/net-snmp53/files/patch-freebsd5.h
deleted file mode 100644
index 697589ec48b8..000000000000
--- a/net-mgmt/net-snmp53/files/patch-freebsd5.h
+++ /dev/null
@@ -1,22 +0,0 @@
---- /dev/null Sat Aug 16 16:33:01 2003
-+++ include/net-snmp/system/freebsd5.h Sat Aug 16 16:42:08 2003
-@@ -0,0 +1,19 @@
-+#include "freebsd.h"
-+
-+/*
-+ * freebsd4 is a superset of freebsd2 and freebsd3
-+ */
-+#define freebsd2 1
-+#define freebsd3 1
-+#define freebsd4 1
-+
-+#undef IFADDR_SYMBOL
-+#define IFADDR_SYMBOL "in_ifaddrhead"
-+
-+#undef PROC_SYMBOL
-+#define PROC_SYMBOL "allproc"
-+
-+#undef NPROC_SYMBOL
-+#define NPROC_SYMBOL "nprocs"
-+
-+#undef TOTAL_MEMORY_SYMBOL
diff --git a/net-mgmt/net-snmp53/files/patch-hr_storage.c b/net-mgmt/net-snmp53/files/patch-hr_storage.c
deleted file mode 100644
index a1eff0ab8301..000000000000
--- a/net-mgmt/net-snmp53/files/patch-hr_storage.c
+++ /dev/null
@@ -1,52 +0,0 @@
---- agent/mibgroup/host/hr_storage.c.orig Tue Feb 25 22:17:46 2003
-+++ agent/mibgroup/host/hr_storage.c Fri Nov 14 13:03:07 2003
-@@ -148,7 +148,7 @@
- #define HRFS_mount mnt_mountp
- #define HRFS_statfs statvfs
-
--#elif defined(HAVE_STATVFS)
-+#elif defined(HAVE_STATVFS) && defined(HAVE_MNTENT)
-
- extern struct mntent *HRFS_entry;
- extern int fscount;
-@@ -564,7 +564,7 @@
- }
- case HRSTORE_UNITS:
- if (store_idx > HRS_TYPE_FIXED_MAX)
--#if STRUCT_STATVFS_HAS_F_FRSIZE
-+#if defined(STRUCT_STATVFS_HAS_F_FRSIZE) && defined(HAVE_MNTENT)
- long_return = stat_buf.f_frsize;
- #else
- long_return = stat_buf.f_bsize;
-@@ -647,7 +647,15 @@
- i++)
- long_return += mbstat.m_mtypes[i];
- #elif defined(MBSTAT_SYMBOL)
-+#if !defined(__FreeBSD__) || __FreeBSD_version < 500021
- long_return = mbstat.m_mbufs;
-+#elif __FreeBSD_version < 500024
-+ /* mbuf stats disabled */
-+ return NULL;
-+#else
-+ /* XXX TODO: implement new method */
-+ return NULL;
-+#endif
- #elif defined(NO_DUMMY_VALUES)
- return NULL;
- #else
-@@ -705,7 +713,15 @@
- * mbpool.pr_size + (mclpool.pr_nget - mclpool.pr_nput)
- * mclpool.pr_size;
- #elif defined(MBSTAT_SYMBOL)
-+#if !defined(__FreeBSD__) || __FreeBSD_version < 500021
- long_return = mbstat.m_clusters - mbstat.m_clfree; /* unlikely, but... */
-+#elif __FreeBSD_version < 500024
-+ /* mbuf stats disabled */
-+ return NULL;
-+#else
-+ /* XXX TODO: implement new method */
-+ return NULL;
-+#endif
- #elif defined(NO_DUMMY_VALUES)
- return NULL;
- #else
diff --git a/net-mgmt/net-snmp53/files/patch-hr_swrun.c b/net-mgmt/net-snmp53/files/patch-hr_swrun.c
deleted file mode 100644
index 5ff95f18ca72..000000000000
--- a/net-mgmt/net-snmp53/files/patch-hr_swrun.c
+++ /dev/null
@@ -1,86 +0,0 @@
---- agent/mibgroup/host/hr_swrun.c.orig Fri Dec 20 00:07:30 2002
-+++ agent/mibgroup/host/hr_swrun.c Sat Aug 16 17:10:54 2003
-@@ -561,7 +561,11 @@
- string[ sizeof(string)-1 ] = 0;
- #endif
- #elif HAVE_KVM_GETPROCS
-+#if defined(freebsd5) && __FreeBSD_version >= 500014
-+ strcpy(string, proc_table[LowProcIndex].ki_comm);
-+#else
- strcpy(string, proc_table[LowProcIndex].kp_proc.p_comm);
-+#endif
- #elif defined(linux)
- sprintf(string, "/proc/%d/status", pid);
- if ((fp = fopen(string, "r")) == NULL)
-@@ -666,7 +670,11 @@
- *cp1 = 0;
- #endif
- #elif HAVE_KVM_GETPROCS
-+#if defined(freebsd5) && __FreeBSD_version >= 500014
-+ strcpy(string, proc_table[LowProcIndex].ki_comm);
-+#else
- strcpy(string, proc_table[LowProcIndex].kp_proc.p_comm);
-+#endif
- #elif defined(linux)
- sprintf(string, "/proc/%d/cmdline", pid);
- if ((fp = fopen(string, "r")) == NULL)
-@@ -857,7 +865,11 @@
- }
- #else
- #if HAVE_KVM_GETPROCS
-+#if defined(freebsd5) && __FreeBSD_version >= 500014
-+ switch ( proc_table[LowProcIndex].ki_stat ) {
-+#else
- switch (proc_table[LowProcIndex].kp_proc.p_stat) {
-+#endif
- #elif defined(dynix)
- switch (lowpsinfo.pr_state) {
- #elif defined(solaris2)
-@@ -952,9 +964,17 @@
- long_return = proc_buf->p_utime * 100 + proc_buf->p_stime * 100;
- #endif
- #elif HAVE_KVM_GETPROCS
-+#if defined(freebsd5) && __FreeBSD_version >= 500014
-+ /* XXX: Accessing ki_paddr causes sig10 ...
-+ long_return = proc_table[LowProcIndex].ki_paddr->p_uticks +
-+ proc_table[LowProcIndex].ki_paddr->p_sticks +
-+ proc_table[LowProcIndex].ki_paddr->p_iticks; */
-+ long_return = 0;
-+#else
- long_return = proc_table[LowProcIndex].kp_proc.p_uticks +
- proc_table[LowProcIndex].kp_proc.p_sticks +
- proc_table[LowProcIndex].kp_proc.p_iticks;
-+#endif
- #elif defined(linux)
- sprintf(string, "/proc/%d/stat", pid);
- if ((fp = fopen(string, "r")) == NULL)
-@@ -1023,7 +1043,14 @@
- long_return = proc_buf->p_swrss;
- #endif
- #elif HAVE_KVM_GETPROCS
--#if defined(freebsd3) && !defined(darwin)
-+#if defined(freebsd5) && __FreeBSD_version >= 500014
-+ /* XXX
-+ long_return = proc_table[LowProcIndex].ki_vmspace->vm_tsize +
-+ proc_table[LowProcIndex].ki_vmspace->vm_ssize +
-+ proc_table[LowProcIndex].ki_vmspace->vm_dsize;
-+ long_return = long_return * (getpagesize() / 1024); */
-+ long_return = 0;
-+#elif defined(freebsd3) && !defined(darwin)
- long_return =
- proc_table[LowProcIndex].kp_eproc.e_vm.vm_map.size / 1024;
- #else
-@@ -1303,8 +1330,13 @@
- #elif defined(solaris2)
- return proc_table[current_proc_entry++];
- #elif HAVE_KVM_GETPROCS
-+#if defined(freebsd5) && __FreeBSD_version >= 500014
-+ if ( proc_table[current_proc_entry].ki_stat != 0 )
-+ return proc_table[current_proc_entry++].ki_pid;
-+#else
- if (proc_table[current_proc_entry].kp_proc.p_stat != 0)
- return proc_table[current_proc_entry++].kp_proc.p_pid;
-+#endif
- #else
- if (proc_table[current_proc_entry].p_stat != 0)
- return proc_table[current_proc_entry++].p_pid;
diff --git a/net-mgmt/net-snmp53/files/patch-hr_system.c b/net-mgmt/net-snmp53/files/patch-hr_system.c
deleted file mode 100644
index ee1f01228bfd..000000000000
--- a/net-mgmt/net-snmp53/files/patch-hr_system.c
+++ /dev/null
@@ -1,23 +0,0 @@
---- agent/mibgroup/host/hr_system.c.orig Fri Nov 14 14:45:55 2003
-+++ agent/mibgroup/host/hr_system.c Fri Nov 14 14:46:01 2003
-@@ -276,11 +276,10 @@
- struct utmp *utmp_p;
- #endif
-
-+#ifndef UTMP_HAS_NO_TYPE
- setutent();
- while ((utmp_p = getutent()) != NULL) {
--#ifndef UTMP_HAS_NO_TYPE
- if (utmp_p->ut_type == USER_PROCESS) {
--#endif
- /* This block of code fixes zombie user PIDs in the
- utmp/utmpx file that would otherwise be counted as a
- current user */
-@@ -293,6 +292,7 @@
- }
- }
- endutent();
-+#endif
- return total;
- }
-
diff --git a/net-mgmt/net-snmp53/files/patch-interfaces.c b/net-mgmt/net-snmp53/files/patch-interfaces.c
deleted file mode 100644
index c9d465c00859..000000000000
--- a/net-mgmt/net-snmp53/files/patch-interfaces.c
+++ /dev/null
@@ -1,16 +0,0 @@
---- agent/mibgroup/mibII/interfaces.c.orig Sat Jun 8 00:18:03 2002
-+++ agent/mibgroup/mibII/interfaces.c Mon Jul 29 12:35:08 2002
-@@ -555,11 +555,9 @@
- ifp->ifm_type));
- }
- }
-- if (have_ifinfo && have_addr) {
-+ if (have_ifinfo) {
- return 0;
-- } else if (have_ifinfo && !(if_msg->ifm_flags & IFF_UP))
-- return 0;
-- else {
-+ } else {
- return -1;
- }
- }
diff --git a/net-mgmt/net-snmp53/files/patch-ipv6.c b/net-mgmt/net-snmp53/files/patch-ipv6.c
deleted file mode 100644
index 0ee3f76c99ad..000000000000
--- a/net-mgmt/net-snmp53/files/patch-ipv6.c
+++ /dev/null
@@ -1,113 +0,0 @@
---- agent/mibgroup/mibII/ipv6.c.orig Fri Feb 28 18:13:36 2003
-+++ agent/mibgroup/mibII/ipv6.c Wed Nov 19 00:16:27 2003
-@@ -1238,6 +1238,7 @@
- if (!auto_nlist("udb6", (char *) &udb6, sizeof(udb6)))
- return NULL;
- p = (caddr_t) udb6.in6p_next;
-+ DEBUGMSGTL(("mibII/ipv6", "start: p=%x\n", p));
- #else
- {
- const char *udblist = "net.inet.udp.pcblist";
-@@ -1254,11 +1255,11 @@
- oxig = (struct xinpgen *) sysctl_buf;
- xig = (struct xinpgen *) ((char *) oxig + oxig->xig_len);
- }
-+ DEBUGMSGTL(("mibII/ipv6", "start: xig=%p\n", xig));
- #endif
- found = hitnext = 0;
- memcpy((char *) newname, (char *) vp->name,
- (int) vp->namelen * sizeof(oid));
-- DEBUGMSGTL(("mibII/ipv6", "start: p=%x\n", p));
- while (
- #if !(defined(__FreeBSD__) && __FreeBSD__ >= 3)
- p && (u_long) p != auto_nlist_value("udb6")
-@@ -1266,12 +1267,16 @@
- xig->xig_len > sizeof(struct xinpgen)
- #endif
- ) {
-- DEBUGMSGTL(("mibII/ipv6", "looping: p=%x\n", p));
-
- #if !(defined(__FreeBSD__) && __FreeBSD__ >= 3)
-+ DEBUGMSGTL(("mibII/ipv6", "looping: p=%x\n", p));
- klookup((u_long) p, (char *) &in6pcb, sizeof(in6pcb));
- #else
- in6pcb = ((struct xinpcb *) xig)->xi_inp;
-+ if (!(in6pcb.inp_vflag & 0x02)) { /* Skip non-IPv6 pcb */
-+ xig = (struct xinpgen *) ((char *) xig + xig->xig_len);
-+ continue;
-+ }
- #endif
- j = (int) vp->namelen;
- for (i = 0; i < sizeof(struct in6_addr); i++)
-@@ -1283,8 +1288,8 @@
- else
- newname[j++] = 0;
- /*XXX*/
-- DEBUGMSGTL(("mibII/ipv6", "var_udp6 new: %d %d ",
-- (int) vp->namelen, j));
-+ DEBUGMSGTL(("mibII/ipv6", "var_udp6 new: %d %d ",
-+ (int) vp->namelen, j));
- DEBUGMSGOID(("mibII/ipv6", newname, j));
- DEBUGMSG(("mibII/ipv6", " %d\n", exact));
-
-@@ -1447,9 +1452,6 @@
- p));
- break;
- }
--#else
-- in6pcb = ((struct xinpcb *) xig)->xi_inp;
--#endif
- if (klookup
- ((u_long) in6pcb.in6p_ppcb, (char *) &tcp6cb, sizeof(tcp6cb))
- < 0) {
-@@ -1457,6 +1459,14 @@
- in6pcb.in6p_ppcb));
- break;
- }
-+#else
-+ in6pcb = ((struct xinpcb *) xig)->xi_inp;
-+ struct xtcpcb *xp = (struct xtcpcb *)xig;
-+ tcp6cb = xp->xt_tp;
-+ if (!(in6pcb.inp_vflag & 0x02)) { /* Skip non-IPv6 pcb */
-+ goto skip;
-+ }
-+#endif
- j = (int) vp->namelen;
- for (i = 0; i < sizeof(struct in6_addr); i++)
- newname[j++] = in6pcb.in6p_laddr.s6_addr[i];
-@@ -1590,6 +1600,7 @@
- #if defined(__FreeBSD__) && __FreeBSD__ >= 3
- char *sysctl_buf;
- struct xinpgen *xig, *oxig;
-+ struct xtcpcb *xp;
- #endif /* defined(__FreeBSD__) && __FreeBSD__ >= 3 */
-
- if (!initialized) {
-@@ -1646,11 +1657,7 @@
- DEBUGMSGTL(("mibII/ipv6", "looping: p=%x\n", p));
-
- #if !(defined(__FreeBSD__) && __FreeBSD__ >= 3)
-- if (klookup((u_long) p, (char *) &in6pcb, sizeof(in6pcb)) < 0)
--#else
-- in6pcb = ((struct xinpcb *) xig)->xi_inp;
--#endif
-- {
-+ if (klookup((u_long) p, (char *) &in6pcb, sizeof(in6pcb)) < 0) {
- DEBUGMSGTL(("mibII/ipv6", "klookup fail for in6pcb at %x\n",
- p));
- break;
-@@ -1662,6 +1669,14 @@
- in6pcb.in6p_ppcb));
- break;
- }
-+#else
-+ in6pcb = ((struct xinpcb *) xig)->xi_inp;
-+ xp = (struct xtcpcb *)xig;
-+ tcp6cb = xp->xt_tp;
-+ if (!(in6pcb.inp_vflag & 0x02)) { /* Skip non-IPv6 pcb */
-+ goto skip;
-+ }
-+#endif
- j = (int) vp->namelen;
- for (i = 0; i < sizeof(struct in6_addr); i++)
- newname[j++] = in6pcb.in6p_laddr.s6_addr[i];
diff --git a/net-mgmt/net-snmp53/files/patch-local:Makefile.in b/net-mgmt/net-snmp53/files/patch-local:Makefile.in
deleted file mode 100644
index 7f648103d7aa..000000000000
--- a/net-mgmt/net-snmp53/files/patch-local:Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- local/Makefile.in.orig Sat Apr 20 16:30:13 2002
-+++ local/Makefile.in Wed Apr 24 01:45:55 2002
-@@ -12,7 +12,7 @@
- # local info
- #
- SNMPCONFPATH=@SNMPCONFPATH@
--PERLSCRIPTS=snmpcheck tkmib mib2c fixproc ipf-mod.pl snmpconf traptoemail
-+PERLSCRIPTS=snmpcheck mib2c fixproc ipf-mod.pl snmpconf traptoemail
- SCRIPTSMADEFORPERL=snmpcheck.made tkmib.made mib2c.made fixproc.made \
- ipf-mod.pl.made snmpconf.made traptoemail.made
- PERLPROG=@PERLPROG@
diff --git a/net-mgmt/net-snmp53/files/patch-memory_freebsd2.c b/net-mgmt/net-snmp53/files/patch-memory_freebsd2.c
deleted file mode 100644
index 47f5da45ccc7..000000000000
--- a/net-mgmt/net-snmp53/files/patch-memory_freebsd2.c
+++ /dev/null
@@ -1,35 +0,0 @@
---- agent/mibgroup/ucd-snmp/memory_freebsd2.c.orig Sat Nov 9 23:59:53 2002
-+++ agent/mibgroup/ucd-snmp/memory_freebsd2.c Sat Aug 16 17:09:01 2003
-@@ -207,11 +207,13 @@
- auto_nlist(NSWDEV_SYMBOL, (char *) &nswdev, sizeof(nswdev));
- auto_nlist(DMMAX_SYMBOL, (char *) &dmmax, sizeof(dmmax));
-
-+#if !defined(freebsd5)
- sw = (struct swdevt *) malloc(nswdev * sizeof(*sw));
- if (sw == NULL)
- return;
-
- auto_nlist(SWDEVT_SYMBOL, (char *) sw, nswdev * sizeof(*sw));
-+#endif
-
- n = kvm_getswapinfo(kd, kswap, sizeof(kswap) / sizeof(kswap[0]), 0);
-
-@@ -242,7 +244,9 @@
- swapUsed *= pagesize;
- swapFree *= pagesize;
-
-+#if !defined(freebsd5)
- free(sw);
-+#endif
- }
- #endif
-
-@@ -274,7 +278,7 @@
- size_t total_size = sizeof(total);
- int total_mib[] = { CTL_VM, VM_METER };
-
-- long phys_mem;
-+ u_long phys_mem;
- size_t phys_mem_size = sizeof(phys_mem);
- int phys_mem_mib[] = { CTL_HW, HW_USERMEM };
-
diff --git a/net-mgmt/net-snmp53/files/patch-snmpTCPIPv6Domain.c b/net-mgmt/net-snmp53/files/patch-snmpTCPIPv6Domain.c
deleted file mode 100644
index 9a6e083a98bc..000000000000
--- a/net-mgmt/net-snmp53/files/patch-snmpTCPIPv6Domain.c
+++ /dev/null
@@ -1,30 +0,0 @@
---- snmplib/snmpTCPIPv6Domain.c.orig Fri Aug 9 22:57:43 2002
-+++ snmplib/snmpTCPIPv6Domain.c Sun Oct 6 01:07:12 2002
-@@ -62,13 +62,21 @@
- if (to == NULL) {
- return strdup("TCP/IPv6: unknown");
- } else {
-- char addr[INET6_ADDRSTRLEN];
-- char tmp[INET6_ADDRSTRLEN + 8];
-+ char tmp[NI_MAXHOST];
-
-- sprintf(tmp, "[%s]:%hd",
-- inet_ntop(AF_INET6, (void *) &(to->sin6_addr), addr,
-- INET6_ADDRSTRLEN), ntohs(to->sin6_port));
-- return strdup(tmp);
-+/*
-+ * NI_WITHSCOPEID will be obsoleted. But some implementations require
-+ * this flag to retrieve scoped name.
-+ * (2002-07-25: kuriyama@FreeBSD.org)
-+ */
-+#ifndef NI_WITHSCOPEID
-+#define NI_WITHSCOPEID 0
-+#endif
-+ if (getnameinfo(to, sizeof(struct sockaddr_in6), tmp, sizeof(tmp),
-+ NULL, 0, NI_NUMERICHOST | NI_WITHSCOPEID)) {
-+ return strdup("UDP/IPv6: unknown");
-+ }
-+ return strdup(tmp);
- }
- }
-
diff --git a/net-mgmt/net-snmp53/files/patch-snmpUCDIPv6Domain.c b/net-mgmt/net-snmp53/files/patch-snmpUCDIPv6Domain.c
deleted file mode 100644
index 6f1f6c4caeed..000000000000
--- a/net-mgmt/net-snmp53/files/patch-snmpUCDIPv6Domain.c
+++ /dev/null
@@ -1,30 +0,0 @@
---- snmplib/snmpUDPIPv6Domain.c.orig Fri Aug 9 22:57:43 2002
-+++ snmplib/snmpUDPIPv6Domain.c Sun Oct 6 18:03:18 2002
-@@ -62,13 +62,21 @@
- if (to == NULL) {
- return strdup("UDP/IPv6: unknown");
- } else {
-- char addr[INET6_ADDRSTRLEN];
-- char tmp[INET6_ADDRSTRLEN + 8];
-+ char tmp[NI_MAXHOST];
-
-- sprintf(tmp, "[%s]:%hd",
-- inet_ntop(AF_INET6, (void *) &(to->sin6_addr), addr,
-- INET6_ADDRSTRLEN), ntohs(to->sin6_port));
-- return strdup(tmp);
-+/*
-+ * NI_WITHSCOPEID will be obsoleted. But some implementations require
-+ * this flag to retrieve scoped name.
-+ * (2002-07-25: kuriyama@FreeBSD.org)
-+ */
-+#ifndef NI_WITHSCOPEID
-+#define NI_WITHSCOPEID 0
-+#endif
-+ if (getnameinfo(to, sizeof(struct sockaddr_in6), tmp, sizeof(tmp),
-+ NULL, 0, NI_NUMERICHOST | NI_WITHSCOPEID)) {
-+ return strdup("UDP/IPv6: unknown");
-+ }
-+ return strdup(tmp);
- }
- }
-
diff --git a/net-mgmt/net-snmp53/files/patch-snmpd.8.def b/net-mgmt/net-snmp53/files/patch-snmpd.8.def
deleted file mode 100644
index ac853823ca25..000000000000
--- a/net-mgmt/net-snmp53/files/patch-snmpd.8.def
+++ /dev/null
@@ -1,13 +0,0 @@
---- man/snmpd.8.def.orig Wed Feb 26 04:11:19 2003
-+++ man/snmpd.8.def Sat Mar 29 22:05:07 2003
-@@ -211,6 +211,10 @@
- the error "Error opening specified endpoint". Likewise, since AAL5
- PVC support is only currently available on Linux, it will fail with
- the same error on other platforms.
-+.PP
-+.B snmpd
-+uses libwrap's access control if configured by --with-libwrap.
-+Access control patterns may only reference IP addresses.
-
- .RE
- .SH CONFIGURATION FILES
diff --git a/net-mgmt/net-snmp53/files/patch-tcpTable.c b/net-mgmt/net-snmp53/files/patch-tcpTable.c
deleted file mode 100644
index 20f29239b95d..000000000000
--- a/net-mgmt/net-snmp53/files/patch-tcpTable.c
+++ /dev/null
@@ -1,26 +0,0 @@
---- agent/mibgroup/mibII/tcpTable.c.orig Fri Nov 14 14:49:21 2003
-+++ agent/mibgroup/mibII/tcpTable.c Fri Nov 14 15:14:16 2003
-@@ -84,6 +84,8 @@
- #define TCPTABLE_REMOTEADDRESS pcb.inp_faddr.s_addr
- #define TCPTABLE_REMOTEPORT pcb.inp_fport
- #define TCPTABLE_IS_LINKED_LIST
-+#undef INP_NEXT_SYMBOL
-+#define INP_NEXT_SYMBOL inp_next
-
- #endif /* linux */
- #endif /* WIN32 */
-@@ -695,11 +697,13 @@
- nnew = SNMP_MALLOC_TYPEDEF(netsnmp_inpcb);
- if (!nnew)
- break;
-+#if 0
- nnew->state = StateMap[((struct xinpcb *) xig)->xt_tp.t_state];
- if (nnew->state == 5 /* established */ ||
- nnew->state == 8 /* closeWait */ )
- tcp_estab++;
-- memcpy(&(nnew->pcb), &(((struct xinpcb *) xig)->xt_inp),
-+#endif
-+ memcpy(&(nnew->pcb), &(((struct xinpcb *) xig)->xi_inp),
- sizeof(struct inpcb));
-
- nnew->inp_next = tcp_head;
diff --git a/net-mgmt/net-snmp53/files/patch-udpTable.c b/net-mgmt/net-snmp53/files/patch-udpTable.c
deleted file mode 100644
index 83364a9a338d..000000000000
--- a/net-mgmt/net-snmp53/files/patch-udpTable.c
+++ /dev/null
@@ -1,25 +0,0 @@
---- agent/mibgroup/mibII/udpTable.c.orig Fri Nov 14 15:14:52 2003
-+++ agent/mibgroup/mibII/udpTable.c Fri Nov 14 15:18:08 2003
-@@ -577,6 +577,7 @@
- * Unpick this into the constituent 'xinpgen' structures, and extract
- * the 'inpcb' elements into a linked list (built in reverse)
- */
-+#if 0
- xig = (struct xinpgen *) udpcb_buf;
- xig = (struct xinpgen *) ((char *) xig + xig->xig_len);
-
-@@ -584,12 +585,13 @@
- nnew = SNMP_MALLOC_TYPEDEF(struct inpcb);
- if (!nnew)
- break;
-- memcpy(nnew, ((struct xinpcb *) xig)->xi_inp, sizeof(struct inpcb));
-+ memcpy(nnew, &((struct xinpcb *) xig)->xi_inp, sizeof(struct inpcb));
-
- nnew->next = udp_head; /* XXX - ?? Check 'next' pointer */
- udp_head = nnew;
- xig = (struct xinpgen *) ((char *) xig + xig->xig_len);
- }
-+#endif
-
- free(udpcb_buf);
- if (udp_head) {
diff --git a/net-mgmt/net-snmp53/files/patch-vmstat_freebsd2.c b/net-mgmt/net-snmp53/files/patch-vmstat_freebsd2.c
deleted file mode 100644
index 7e64f3979bcf..000000000000
--- a/net-mgmt/net-snmp53/files/patch-vmstat_freebsd2.c
+++ /dev/null
@@ -1,14 +0,0 @@
---- agent/mibgroup/ucd-snmp/vmstat_freebsd2.c.orig Thu May 23 17:39:41 2002
-+++ agent/mibgroup/ucd-snmp/vmstat_freebsd2.c Thu Feb 20 08:08:20 2003
-@@ -10,7 +10,11 @@
- #include <sys/param.h>
- #include <sys/time.h>
- #include <sys/proc.h>
-+#if defined(freebsd5) && __FreeBSD_version >= 500101
-+#include <sys/resource.h>
-+#else
- #include <sys/dkstat.h>
-+#endif
- #ifdef freebsd5
- #include <sys/bio.h>
- #endif
diff --git a/net-mgmt/net-snmp53/files/snmpd.sh.sample b/net-mgmt/net-snmp53/files/snmpd.sh.sample
deleted file mode 100644
index f56301232645..000000000000
--- a/net-mgmt/net-snmp53/files/snmpd.sh.sample
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# PROVIDE: snmpd
-# REQUIRE: DAEMON
-# KEYWORD: FreeBSD
-#
-# Add the following line to /etc/rc.conf to enable snmpd:
-#
-# snmpd_enable="YES"
-#
-
-snmpd_enable="NO"
-snmpd_flags="-p /var/run/snmpd.pid"
-
-. %%RC_SUBR%%
-
-load_rc_config net_snmpd
-
-if [ ! -z "$net_snmpd_enable" ]; then
- echo "Warning: \$net_snmpd_enable is obsoleted."
- echo " Use \$snmpd_enable instead."
- snmpd_enable="$net_snmpd_enable"
- [ ! -z "$net_snmpd_flags" ] && snmpd_flags="$net_snmpd_flags"
-fi
-
-name=snmpd
-rcvar=`set_rcvar`
-
-command=%%PREFIX%%/sbin/snmpd
-pidfile='/var/run/snmpd.pid'
-
-load_rc_config $name
-run_rc_command "$1"
diff --git a/net-mgmt/net-snmp53/pkg-descr b/net-mgmt/net-snmp53/pkg-descr
deleted file mode 100644
index d7c5d86a1b58..000000000000
--- a/net-mgmt/net-snmp53/pkg-descr
+++ /dev/null
@@ -1,12 +0,0 @@
-This is UCD SNMP, a derivative of CMU's SNMP package.
-
-Various tools relating to the Simple Network Management Protocol including:
-
- An extensible agent
- An SNMP library
- tools to request or set information from SNMP agents
- tools to generate and handle SNMP traps
- a version of the unix 'netstat' command using SNMP
- a Tk/perl mib browser
-
-WWW: http://net-snmp.sourceforge.net/
diff --git a/net-mgmt/net-snmp53/pkg-message b/net-mgmt/net-snmp53/pkg-message
deleted file mode 100644
index 492dcecabfe0..000000000000
--- a/net-mgmt/net-snmp53/pkg-message
+++ /dev/null
@@ -1,23 +0,0 @@
-**** This port installs snmp daemon, include files and libraries but not
- invoking snmpd by default.
- If you want to invoke snmpd from startup, put these lines into
- /etc/rc.conf.
-
- snmpd_enable="YES"
- snmpd_flags=""
-
-**** You can specify make variables as:
-
- NET_SNMP_SYS_CONTACT="kuriyama@FreeBSD.org"
- NET_SNMP_SYS_LOCATION="Tokyo, Japan"
- DEFAULT_SNMP_VERSION=3
- NET_SNMP_LOGFILE=/var/log/snmpd.log
- NET_SNMP_PERSISTENTDIR=/var/net-snmp
-
- to define default values (or overwriting defaults). At least
- setting first two variables, you will not be prompted during
- configuration process. Or you can set
-
- BATCH="yes"
-
- to make to avoid interactive configuration.
diff --git a/net-mgmt/net-snmp53/pkg-plist b/net-mgmt/net-snmp53/pkg-plist
deleted file mode 100644
index fcd5789e783f..000000000000
--- a/net-mgmt/net-snmp53/pkg-plist
+++ /dev/null
@@ -1,301 +0,0 @@
-bin/encode_keychange
-bin/fixproc
-bin/ipf-mod.pl
-bin/mib2c
-bin/net-snmp-config
-bin/snmpbulkget
-bin/snmpbulkwalk
-bin/snmpcheck
-bin/snmpconf
-bin/snmpdelta
-bin/snmpdf
-bin/snmpget
-bin/snmpgetnext
-bin/snmpinform
-bin/snmpnetstat
-bin/snmpset
-bin/snmpstatus
-bin/snmptable
-bin/snmptest
-bin/snmptranslate
-bin/snmptrap
-bin/snmpusm
-bin/snmpvacm
-bin/snmpwalk
-bin/traptoemail
-etc/rc.d/snmpd.sh
-include/net-snmp/agent/agent_callbacks.h
-include/net-snmp/agent/agent_handler.h
-include/net-snmp/agent/agent_index.h
-include/net-snmp/agent/agent_read_config.h
-include/net-snmp/agent/agent_registry.h
-include/net-snmp/agent/agent_trap.h
-include/net-snmp/agent/all_helpers.h
-include/net-snmp/agent/auto_nlist.h
-include/net-snmp/agent/baby_steps.h
-include/net-snmp/agent/bulk_to_next.h
-include/net-snmp/agent/cache_handler.h
-include/net-snmp/agent/debug_handler.h
-include/net-snmp/agent/ds_agent.h
-include/net-snmp/agent/instance.h
-include/net-snmp/agent/mib_module_config.h
-include/net-snmp/agent/mib_module_includes.h
-include/net-snmp/agent/mode_end_call.h
-include/net-snmp/agent/multiplexer.h
-include/net-snmp/agent/net-snmp-agent-includes.h
-include/net-snmp/agent/null.h
-include/net-snmp/agent/old_api.h
-include/net-snmp/agent/read_only.h
-include/net-snmp/agent/row_merge.h
-include/net-snmp/agent/scalar.h
-include/net-snmp/agent/scalar_group.h
-include/net-snmp/agent/serialize.h
-include/net-snmp/agent/set_helper.h
-include/net-snmp/agent/snmp_agent.h
-include/net-snmp/agent/snmp_vars.h
-include/net-snmp/agent/table.h
-include/net-snmp/agent/table_array.h
-include/net-snmp/agent/table_data.h
-include/net-snmp/agent/table_dataset.h
-include/net-snmp/agent/table_iterator.h
-include/net-snmp/agent/table_mfd.h
-include/net-snmp/agent/var_struct.h
-include/net-snmp/agent/watcher.h
-include/net-snmp/config_api.h
-include/net-snmp/definitions.h
-include/net-snmp/library/README
-include/net-snmp/library/asn1.h
-include/net-snmp/library/callback.h
-include/net-snmp/library/check_varbind.h
-include/net-snmp/library/cmu_compat.h
-include/net-snmp/library/container.h
-include/net-snmp/library/container_binary_array.h
-include/net-snmp/library/container_iterator.h
-include/net-snmp/library/container_list_ssll.h
-include/net-snmp/library/container_null.h
-include/net-snmp/library/data_list.h
-include/net-snmp/library/default_store.h
-include/net-snmp/library/factory.h
-include/net-snmp/library/getopt.h
-include/net-snmp/library/int64.h
-include/net-snmp/library/keytools.h
-include/net-snmp/library/lcd_time.h
-include/net-snmp/library/md5.h
-include/net-snmp/library/mib.h
-include/net-snmp/library/mt_support.h
-include/net-snmp/library/oid_stash.h
-include/net-snmp/library/parse.h
-include/net-snmp/library/read_config.h
-include/net-snmp/library/scapi.h
-include/net-snmp/library/snmp-tc.h
-include/net-snmp/library/snmp.h
-include/net-snmp/library/snmpCallbackDomain.h
-include/net-snmp/library/snmpTCPDomain.h
-include/net-snmp/library/snmpTCPIPv6Domain.h
-include/net-snmp/library/snmpUDPDomain.h
-include/net-snmp/library/snmpUDPIPv6Domain.h
-include/net-snmp/library/snmpUnixDomain.h
-include/net-snmp/library/snmp_alarm.h
-include/net-snmp/library/snmp_api.h
-include/net-snmp/library/snmp_assert.h
-include/net-snmp/library/snmp_client.h
-include/net-snmp/library/snmp_debug.h
-include/net-snmp/library/snmp_enum.h
-include/net-snmp/library/snmp_impl.h
-include/net-snmp/library/snmp_locking.h
-include/net-snmp/library/snmp_logging.h
-include/net-snmp/library/snmp_parse_args.h
-include/net-snmp/library/snmp_secmod.h
-include/net-snmp/library/snmp_transport.h
-include/net-snmp/library/snmpusm.h
-include/net-snmp/library/snmpv3-security-includes.h
-include/net-snmp/library/snmpv3.h
-include/net-snmp/library/system.h
-include/net-snmp/library/tools.h
-include/net-snmp/library/transform_oids.h
-include/net-snmp/library/ucd_compat.h
-include/net-snmp/library/vacm.h
-include/net-snmp/library/winservice.h
-include/net-snmp/machine/generic.h
-include/net-snmp/mib_api.h
-include/net-snmp/net-snmp-config.h
-include/net-snmp/net-snmp-includes.h
-include/net-snmp/output_api.h
-include/net-snmp/pdu_api.h
-include/net-snmp/session_api.h
-include/net-snmp/snmpv3_api.h
-include/net-snmp/system/aix.h
-include/net-snmp/system/bsd.h
-include/net-snmp/system/bsdi.h
-include/net-snmp/system/bsdi3.h
-include/net-snmp/system/bsdi4.h
-include/net-snmp/system/cygwin.h
-include/net-snmp/system/darwin.h
-include/net-snmp/system/dynix.h
-include/net-snmp/system/freebsd.h
-include/net-snmp/system/freebsd2.h
-include/net-snmp/system/freebsd3.h
-include/net-snmp/system/freebsd4.h
-include/net-snmp/system/freebsd5.h
-include/net-snmp/system/generic.h
-include/net-snmp/system/hpux.h
-include/net-snmp/system/irix.h
-include/net-snmp/system/linux.h
-include/net-snmp/system/mips.h
-include/net-snmp/system/netbsd.h
-include/net-snmp/system/openbsd.h
-include/net-snmp/system/osf5.h
-include/net-snmp/system/solaris.h
-include/net-snmp/system/solaris2.6.h
-include/net-snmp/system/solaris2.7.h
-include/net-snmp/system/solaris2.8.h
-include/net-snmp/system/solaris2.9.h
-include/net-snmp/system/sunos.h
-include/net-snmp/system/svr5.h
-include/net-snmp/system/sysv.h
-include/net-snmp/system/ultrix4.h
-include/net-snmp/types.h
-include/net-snmp/utilities.h
-include/net-snmp/varbind_api.h
-include/net-snmp/version.h
-@dirrm include/net-snmp/agent
-@dirrm include/net-snmp/library
-@dirrm include/net-snmp/machine
-@dirrm include/net-snmp/system
-@dirrm include/net-snmp
-lib/libnetsnmp.a
-lib/libnetsnmp.so
-lib/libnetsnmp.so.%%shlib%%
-lib/libnetsnmpagent.a
-lib/libnetsnmpagent.so
-lib/libnetsnmpagent.so.%%shlib%%
-lib/libnetsnmphelpers.a
-lib/libnetsnmphelpers.so
-lib/libnetsnmphelpers.so.%%shlib%%
-lib/libnetsnmpmibs.a
-lib/libnetsnmpmibs.so
-lib/libnetsnmpmibs.so.%%shlib%%
-sbin/snmpd
-sbin/snmptrapd
-share/snmp/mib2c.array-user.conf
-share/snmp/mib2c.column_defines.conf
-share/snmp/mib2c.column_enums.conf
-share/snmp/mib2c.conf
-share/snmp/mib2c.create-dataset.conf
-share/snmp/mib2c.int_watch.conf
-share/snmp/mib2c.iterate.conf
-share/snmp/mib2c.old-api.conf
-share/snmp/mib2c.scalar.conf
-share/snmp/mibs/AGENTX-MIB.txt
-share/snmp/mibs/DISMAN-SCHEDULE-MIB.txt
-share/snmp/mibs/DISMAN-SCRIPT-MIB.txt
-share/snmp/mibs/EtherLike-MIB.txt
-share/snmp/mibs/HCNUM-TC.txt
-share/snmp/mibs/HOST-RESOURCES-MIB.txt
-share/snmp/mibs/HOST-RESOURCES-TYPES.txt
-share/snmp/mibs/IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
-share/snmp/mibs/IANA-LANGUAGE-MIB.txt
-share/snmp/mibs/IANAifType-MIB.txt
-share/snmp/mibs/IF-INVERTED-STACK-MIB.txt
-share/snmp/mibs/IF-MIB.txt
-share/snmp/mibs/INET-ADDRESS-MIB.txt
-share/snmp/mibs/IP-FORWARD-MIB.txt
-share/snmp/mibs/IP-MIB.txt
-share/snmp/mibs/IPV6-ICMP-MIB.txt
-share/snmp/mibs/IPV6-MIB.txt
-share/snmp/mibs/IPV6-TC.txt
-share/snmp/mibs/IPV6-TCP-MIB.txt
-share/snmp/mibs/IPV6-UDP-MIB.txt
-share/snmp/mibs/NET-SNMP-AGENT-MIB.txt
-share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt
-share/snmp/mibs/NET-SNMP-MIB.txt
-share/snmp/mibs/NET-SNMP-TC.txt
-share/snmp/mibs/NOTIFICATION-LOG-MIB.txt
-share/snmp/mibs/RFC-1215.txt
-share/snmp/mibs/RFC1155-SMI.txt
-share/snmp/mibs/RFC1213-MIB.txt
-share/snmp/mibs/RMON-MIB.txt
-share/snmp/mibs/SMUX-MIB.txt
-share/snmp/mibs/SNMP-COMMUNITY-MIB.txt
-share/snmp/mibs/SNMP-FRAMEWORK-MIB.txt
-share/snmp/mibs/SNMP-MPD-MIB.txt
-share/snmp/mibs/SNMP-NOTIFICATION-MIB.txt
-share/snmp/mibs/SNMP-PROXY-MIB.txt
-share/snmp/mibs/SNMP-TARGET-MIB.txt
-share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt
-share/snmp/mibs/SNMP-VIEW-BASED-ACM-MIB.txt
-share/snmp/mibs/SNMPv2-CONF.txt
-share/snmp/mibs/SNMPv2-MIB.txt
-share/snmp/mibs/SNMPv2-SMI.txt
-share/snmp/mibs/SNMPv2-TC.txt
-share/snmp/mibs/SNMPv2-TM.txt
-share/snmp/mibs/TCP-MIB.txt
-share/snmp/mibs/UCD-DEMO-MIB.txt
-share/snmp/mibs/UCD-DISKIO-MIB.txt
-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
-share/snmp/snmpconf-data/snmp-data/output
-share/snmp/snmpconf-data/snmp-data/snmpconf-config
-share/snmp/snmpconf-data/snmpd-data/acl
-share/snmp/snmpconf-data/snmpd-data/basic_setup
-share/snmp/snmpconf-data/snmpd-data/extending
-share/snmp/snmpconf-data/snmpd-data/monitor
-share/snmp/snmpconf-data/snmpd-data/operation
-share/snmp/snmpconf-data/snmpd-data/snmpconf-config
-share/snmp/snmpconf-data/snmpd-data/system
-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
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/default_store/default_store.so
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/default_store/default_store.bs
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/default_store/autosplit.ix
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/ASN/ASN.so
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/ASN/ASN.bs
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/ASN/autosplit.ix
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/OID/OID.so
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/OID/OID.bs
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/OID/autosplit.ix
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/agent.so
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/agent.bs
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/default_store/default_store.so
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/default_store/default_store.bs
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/default_store/autosplit.ix
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/autosplit.ix
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/SNMP/SNMP.so
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/SNMP/SNMP.bs
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/SNMP/autosplit.ix
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/Bundle/NetSNMP/.packlist
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/Bundle/Makefile.subs.pl
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/default_store.pm
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/ASN.pm
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/OID.pm
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/agent/netsnmp_request_infoPtr.pm
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/agent/default_store.pm
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/agent.pm
-%%WITHPERL%%%%SITE_PERL%%/%%PERL_ARCH%%/SNMP.pm
-@dirrm share/snmp/snmpconf-data/snmp-data
-@dirrm share/snmp/snmpconf-data/snmpd-data
-@dirrm share/snmp/snmpconf-data/snmptrapd-data
-@dirrm share/snmp/snmpconf-data
-@dirrm share/snmp/mibs
-@unexec rmdir %D/share/snmp 2>/dev/null || true
-%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/default_store
-%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/ASN
-%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/OID
-%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent/default_store
-%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP/agent
-%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/NetSNMP
-%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/SNMP
-%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Bundle/NetSNMP
-%%WITHPERL%%@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Bundle 2>/dev/null || true
-%%WITHPERL%%@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto 2>/dev/null || true
-%%WITHPERL%%@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Bundle 2>/dev/null || true
-%%WITHPERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP/agent
-%%WITHPERL%%@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/NetSNMP 2>/dev/null || true