diff options
author | pav <pav@FreeBSD.org> | 2009-01-11 04:19:50 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2009-01-11 04:19:50 +0800 |
commit | 504d7a54bb2351dbb61de350ce3a2c2ef6dd5735 (patch) | |
tree | 9700678b4bc6dde7a377563f06dc4f73bdd2d0be /net-mgmt | |
parent | c4cb9446870bb2918ee1265c6445a28c82bf0f2e (diff) | |
download | freebsd-ports-graphics-504d7a54bb2351dbb61de350ce3a2c2ef6dd5735.tar.gz freebsd-ports-graphics-504d7a54bb2351dbb61de350ce3a2c2ef6dd5735.tar.zst freebsd-ports-graphics-504d7a54bb2351dbb61de350ce3a2c2ef6dd5735.zip |
- Remove net-mgmt/bsnmpd, is part of base since FreeBSD 6.0
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/bsnmpd/Makefile | 44 | ||||
-rw-r--r-- | net-mgmt/bsnmpd/distinfo | 3 | ||||
-rw-r--r-- | net-mgmt/bsnmpd/files/bsnmpd.sh.in | 20 | ||||
-rw-r--r-- | net-mgmt/bsnmpd/files/patch-config__Makefile.post | 13 | ||||
-rw-r--r-- | net-mgmt/bsnmpd/files/patch-configure.ac | 22 | ||||
-rw-r--r-- | net-mgmt/bsnmpd/files/patch-lib__support.h | 16 | ||||
-rw-r--r-- | net-mgmt/bsnmpd/files/patch-snmp_mibII__Makefile.in | 11 | ||||
-rw-r--r-- | net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII.c | 55 | ||||
-rw-r--r-- | net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII.h | 20 | ||||
-rw-r--r-- | net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII_interfaces.c | 25 | ||||
-rw-r--r-- | net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII_route.c | 16 | ||||
-rw-r--r-- | net-mgmt/bsnmpd/files/patch-snmpd.config | 14 | ||||
-rw-r--r-- | net-mgmt/bsnmpd/pkg-descr | 8 | ||||
-rw-r--r-- | net-mgmt/bsnmpd/pkg-plist | 30 |
15 files changed, 0 insertions, 298 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index df3f180725f..bb48e34acfd 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -31,7 +31,6 @@ SUBDIR += bsd-airtools SUBDIR += bsnmp-regex SUBDIR += bsnmp-ucd - SUBDIR += bsnmpd SUBDIR += bsnmptools SUBDIR += bwm-ng SUBDIR += cacti diff --git a/net-mgmt/bsnmpd/Makefile b/net-mgmt/bsnmpd/Makefile deleted file mode 100644 index 73a362ed8d6..00000000000 --- a/net-mgmt/bsnmpd/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -# New ports collection makefile for: bsnmpd -# Date created: Sep 22 2005 -# Whom: Andrey V. Elsukov <bu7cher@yandex.ru> -# -# $FreeBSD$ -# - -PORTNAME= bsnmpd -PORTVERSION= 1.12 -PORTREVISION= 1 -CATEGORIES= net-mgmt -MASTER_SITES= http://people.freebsd.org/~harti/bsnmp/ -DISTNAME= bsnmp-${PORTVERSION} - -MAINTAINER= bu7cher@yandex.ru -COMMENT= A mini-SNMP daemon - -LIB_DEPENDS= begemot.1:${PORTSDIR}/devel/libbegemot \ - smi.2:${PORTSDIR}/net-mgmt/libsmi - -USE_GMAKE= yes -GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-libbegemot=${LOCALBASE} -USE_AUTOTOOLS= autoconf:262 - -USE_LDCONFIG= yes - -USE_RC_SUBR= bsnmpd.sh - -MAN1= bsnmpd.1 gensnmptree.1 gensnmpdef.1 -MAN3= asn1.3 bsnmplib.3 bsnmpclient.3 bsnmpagent.3 snmpmod.3 \ - snmp_mibII.3 - -.include <bsd.port.pre.mk> - -.if ${OSVERSION} > 600000 -IGNORE= bsnmpd already in base system -.endif - -post-install: - @${MKDIR} ${PREFIX}/etc - @${INSTALL_DATA} ${BUILD_WRKSRC}/snmpd/snmpd.config ${PREFIX}/etc/snmpd.config.example - -.include <bsd.port.post.mk> diff --git a/net-mgmt/bsnmpd/distinfo b/net-mgmt/bsnmpd/distinfo deleted file mode 100644 index 0d96ac92ae6..00000000000 --- a/net-mgmt/bsnmpd/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (bsnmp-1.12.tar.gz) = 1700e76fb9611778fff62f75fdf2623f -SHA256 (bsnmp-1.12.tar.gz) = 986d02d71c55693ec0b90b24564cb43195ce03254e85a8cd70457b318eefbee0 -SIZE (bsnmp-1.12.tar.gz) = 418653 diff --git a/net-mgmt/bsnmpd/files/bsnmpd.sh.in b/net-mgmt/bsnmpd/files/bsnmpd.sh.in deleted file mode 100644 index 99019c59fb3..00000000000 --- a/net-mgmt/bsnmpd/files/bsnmpd.sh.in +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# $FreeBSD$ -# -# PROVIDE: bsnmpd -# REQUIRE: NETWORKING syslogd -# KEYWORD: nojail - -bsnmpd_enable="${bsnmpd_enable-NO}" - -. %%RC_SUBR%% - -name="bsnmpd" -rcvar=`set_rcvar` -required_files="%%PREFIX%%/etc/snmpd.config" -pidfile="/var/run/bsnmpd.pid" -command_args="-c ${required_files} -p ${pidfile}" -command="%%PREFIX%%/sbin/${name}" - -load_rc_config $name -run_rc_command "$1" diff --git a/net-mgmt/bsnmpd/files/patch-config__Makefile.post b/net-mgmt/bsnmpd/files/patch-config__Makefile.post deleted file mode 100644 index f3a2a011245..00000000000 --- a/net-mgmt/bsnmpd/files/patch-config__Makefile.post +++ /dev/null @@ -1,13 +0,0 @@ ---- config/Makefile.post Tue Oct 4 15:21:28 2005 -+++ config/Makefile.post Wed Oct 5 10:47:01 2005 -@@ -101,8 +101,8 @@ - build-prog: $(PROG) - - install-prog: -- @$(srcdir)/../config/mkinstalldirs $(bindir) -- $(LIBTOOL) --mode=install $(BSD_INSTALL_PROGRAM) $(builddir)/$(PROG) $(bindir)/$(PROG) -+ @$(srcdir)/../config/mkinstalldirs $(sbindir) -+ $(LIBTOOL) --mode=install $(BSD_INSTALL_PROGRAM) $(builddir)/$(PROG) $(sbindir)/$(PROG) - - else - build-prog: diff --git a/net-mgmt/bsnmpd/files/patch-configure.ac b/net-mgmt/bsnmpd/files/patch-configure.ac deleted file mode 100644 index d113f099df0..00000000000 --- a/net-mgmt/bsnmpd/files/patch-configure.ac +++ /dev/null @@ -1,22 +0,0 @@ ---- configure.ac.orig Mon Feb 27 13:03:16 2006 -+++ configure.ac Mon Apr 24 23:18:56 2006 -@@ -78,10 +78,6 @@ - # check for getaddrinfo - AC_CHECK_FUNCS(getaddrinfo) - --# check for a usable tree.h --AC_CHECK_HEADER(sys/tree.h, -- AC_DEFINE(HAVE_SYS_TREE_H)) -- - # check whether we have posix stdint.h or at least inttypes.h - AC_CHECK_HEADER(stdint.h, - AC_DEFINE(HAVE_STDINT_H)) -@@ -126,6 +122,8 @@ - AC_DEFINE_UNQUOTED(QUADXFMT, ${ac_cv_quad_fmt}"x") - fi - -+AC_EGREP_HEADER(ifi_link_state, net/if.h, -+ AC_DEFINE(HAVE_MIB_LINKSTATE)) - - AC_CONFIG_FILES([ - Makefile:config/Makefile.pre:Makefile.in diff --git a/net-mgmt/bsnmpd/files/patch-lib__support.h b/net-mgmt/bsnmpd/files/patch-lib__support.h deleted file mode 100644 index 1d9dd4c9791..00000000000 --- a/net-mgmt/bsnmpd/files/patch-lib__support.h +++ /dev/null @@ -1,16 +0,0 @@ ---- lib/support.h Mon Feb 27 13:03:16 2006 -+++ lib/support.h Fri Apr 21 22:14:27 2006 -@@ -36,6 +36,13 @@ - - #include <sys/cdefs.h> - -+#ifndef HAVE_MIB_LINKSTATE -+#include <net/if_media.h> -+#define LINK_STATE_UNKNOWN 0 -+#define LINK_STATE_DOWN 1 -+#define LINK_STATE_UP 2 -+#endif -+ - #ifndef HAVE_ERR_H - void err(int, const char *, ...) __printflike(2, 3) __dead2; - void errx(int, const char *, ...) __printflike(2, 3) __dead2; diff --git a/net-mgmt/bsnmpd/files/patch-snmp_mibII__Makefile.in b/net-mgmt/bsnmpd/files/patch-snmp_mibII__Makefile.in deleted file mode 100644 index 78fba52b232..00000000000 --- a/net-mgmt/bsnmpd/files/patch-snmp_mibII__Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- snmp_mibII/Makefile.in.orig Tue Apr 25 14:52:11 2006 -+++ snmp_mibII/Makefile.in Tue Apr 25 14:52:53 2006 -@@ -10,7 +10,7 @@ - SRCS= ${MOD}_tree.c mibII.c mibII_ifmib.c mibII_ip.c \ - mibII_interfaces.c mibII_ipaddr.c mibII_ifstack.c \ - mibII_rcvaddr.c mibII_nettomedia.c mibII_tcp.c mibII_udp.c \ -- mibII_route.c -+ mibII_route.c mibII_begemot.c - INCS= snmp_${MOD}.h - DEFS= mibII_tree.def - MAN3= snmp_mibII.3 diff --git a/net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII.c b/net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII.c deleted file mode 100644 index b8d43afc312..00000000000 --- a/net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII.c +++ /dev/null @@ -1,55 +0,0 @@ ---- snmp_mibII/mibII.c Mon Feb 27 13:03:15 2006 -+++ snmp_mibII/mibII.c Fri Apr 21 20:44:26 2006 -@@ -420,6 +420,15 @@ - size_t len; - void *newmib; - struct ifmibdata oldmib = ifp->mib; -+#ifdef HAVE_MIB_LINKSTATE -+#define MIB_LINKSTATE ifp->mib.ifmd_data.ifi_link_state -+#define OLD_LINKSTATE oldmib.ifmd_data.ifi_link_state -+#else -+#define MIB_LINKSTATE MIBIF_PRIV(ifp)->pr_link_state -+#define OLD_LINKSTATE old_link_state -+ struct ifmediareq ifmr; -+ uint8_t old_link_state = MIB_LINKSTATE; -+#endif - - if (fetch_generic_mib(ifp, &oldmib) == -1) - return (-1); -@@ -429,12 +438,18 @@ - * generated just after ifOperStatus leaves, or just before it - * enters, the down state, respectively;" - */ -- if (ifp->trap_enable && ifp->mib.ifmd_data.ifi_link_state != -- oldmib.ifmd_data.ifi_link_state && -- (ifp->mib.ifmd_data.ifi_link_state == LINK_STATE_DOWN || -- oldmib.ifmd_data.ifi_link_state == LINK_STATE_DOWN)) -- link_trap(ifp, ifp->mib.ifmd_data.ifi_link_state == -- LINK_STATE_UP ? 1 : 0); -+#ifndef HAVE_MIB_LINKSTATE -+ memset(&ifmr, 0, sizeof(ifmr)); -+ strncpy(ifmr.ifm_name, ifp->name, sizeof(ifmr.ifm_name)); -+ if (ioctl(mib_netsock, SIOCGIFMEDIA, (caddr_t)&ifmr) < 0) -+ MIB_LINKSTATE = LINK_STATE_UNKNOWN; -+ else MIB_LINKSTATE = (ifmr.ifm_status & IFM_ACTIVE) ? LINK_STATE_UP: -+ LINK_STATE_DOWN; -+#endif -+ if (ifp->trap_enable && MIB_LINKSTATE != OLD_LINKSTATE && -+ (MIB_LINKSTATE == LINK_STATE_DOWN || -+ OLD_LINKSTATE == LINK_STATE_DOWN)) -+ link_trap(ifp, MIB_LINKSTATE == LINK_STATE_UP ? 1 : 0); - - ifp->flags &= ~(MIBIF_HIGHSPEED | MIBIF_VERYHIGHSPEED); - if (ifp->mib.ifmd_data.ifi_baudrate > 20000000) { -@@ -774,7 +789,11 @@ - ifp->counter_disc = get_ticks(); - } - ifp->index = map->ifindex; -+#ifdef HAVE_MIB_LINKSTATE - ifp->mib.ifmd_data.ifi_link_state = LINK_STATE_UNKNOWN; -+#else -+ MIBIF_PRIV(ifp)->pr_link_state = LINK_STATE_UNKNOWN; -+#endif - - INSERT_OBJECT_INT(ifp, &mibif_list); - mib_if_number++; diff --git a/net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII.h b/net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII.h deleted file mode 100644 index 4d8b508ce07..00000000000 --- a/net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII.h +++ /dev/null @@ -1,20 +0,0 @@ ---- snmp_mibII/mibII.h.orig Mon Feb 27 13:03:15 2006 -+++ snmp_mibII/mibII.h Fri Apr 21 20:53:50 2006 -@@ -55,6 +55,7 @@ - #include "snmpmod.h" - #include "snmp_mibII.h" - #include "mibII_tree.h" -+#include "support.h" - - /* - * Interface list and flags. -@@ -76,6 +77,9 @@ - uint64_t hc_opackets; - uint64_t hc_imcasts; - uint64_t hc_ipackets; -+#ifndef HAVE_MIB_LINKSTATE -+ uint8_t pr_link_state; -+#endif - }; - #define MIBIF_PRIV(IFP) ((struct mibif_private *)((IFP)->private)) - diff --git a/net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII_interfaces.c b/net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII_interfaces.c deleted file mode 100644 index a1e4a138163..00000000000 --- a/net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII_interfaces.c +++ /dev/null @@ -1,25 +0,0 @@ ---- snmp_mibII/mibII_interfaces.c.orig Fri Apr 21 22:31:19 2006 -+++ snmp_mibII/mibII_interfaces.c Fri Apr 21 22:37:11 2006 -@@ -289,8 +289,20 @@ - * cable) and hence return 'dormant'. - */ - if (ifp->mib.ifmd_flags & IFF_RUNNING) { -- if (ifp->mib.ifmd_data.ifi_link_state == -- LINK_STATE_DOWN) -+#ifndef HAVE_MIB_LINKSTATE -+#define MIB_LINKSTATE MIBIF_PRIV(ifp)->pr_link_state -+ struct ifmediareq ifmr; -+ memset(&ifmr, 0, sizeof(ifmr)); -+ strncpy(ifmr.ifm_name, ifp->name, sizeof(ifmr.ifm_name)); -+ if (ioctl(mib_netsock, SIOCGIFMEDIA, (caddr_t)&ifmr) < 0) -+ MIB_LINKSTATE = LINK_STATE_UNKNOWN; -+ else -+ MIB_LINKSTATE = (ifmr.ifm_status & IFM_ACTIVE) ? -+ LINK_STATE_UP: LINK_STATE_DOWN; -+#else -+#define MIB_LINKSTATE ifp->mib.ifmd_data.ifi_link_state -+#endif -+ if (MIB_LINKSTATE == LINK_STATE_DOWN) - value->v.integer = 5; /* state dormant */ - else - value->v.integer = 1; /* state up */ diff --git a/net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII_route.c b/net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII_route.c deleted file mode 100644 index d6c2c53a360..00000000000 --- a/net-mgmt/bsnmpd/files/patch-snmp_mibII__mibII_route.c +++ /dev/null @@ -1,16 +0,0 @@ ---- snmp_mibII/mibII_route.c.orig Mon Apr 24 23:53:40 2006 -+++ snmp_mibII/mibII_route.c Mon Apr 24 23:53:51 2006 -@@ -31,13 +31,7 @@ - * Routing table - */ - #include "support.h" -- --#ifdef HAVE_SYS_TREE_H --#include <sys/tree.h> --#else - #include "tree.h" --#endif -- - #include "mibII.h" - #include "mibII_oid.h" - diff --git a/net-mgmt/bsnmpd/files/patch-snmpd.config b/net-mgmt/bsnmpd/files/patch-snmpd.config deleted file mode 100644 index 4050e480a60..00000000000 --- a/net-mgmt/bsnmpd/files/patch-snmpd.config +++ /dev/null @@ -1,14 +0,0 @@ ---- snmpd/snmpd.config Fri Feb 25 14:50:43 2005 -+++ snmpd/snmpd.config Wed Oct 5 10:57:30 2005 -@@ -83,7 +83,7 @@ - # - # Netgraph module - # --begemotSnmpdModulePath."netgraph" = "/usr/local/lib/snmp_netgraph.so" -- --%netgraph --begemotNgControlNodeName = "snmpd" -+#begemotSnmpdModulePath."netgraph" = "/usr/local/lib/snmp_netgraph.so" -+# -+#%netgraph -+#begemotNgControlNodeName = "snmpd" diff --git a/net-mgmt/bsnmpd/pkg-descr b/net-mgmt/bsnmpd/pkg-descr deleted file mode 100644 index 4c5622815b9..00000000000 --- a/net-mgmt/bsnmpd/pkg-descr +++ /dev/null @@ -1,8 +0,0 @@ -This is a mini-SNMP daemon. The basic daemon implements the system group -and a number of private extensions to manage the UDP transport mapping, -communities, trap destinations and loadable modules. In this form it can -be used to provide remote access to arbitrary data that can be described in -the form as required by the SMI. The daemon speaks both SNMPv1 and SNMPv2c. - -WWW: http://people.freebsd.org/~harti/bsnmp/ -Author: Andrey V. Elsukov <bu7cher@yandex.ru> diff --git a/net-mgmt/bsnmpd/pkg-plist b/net-mgmt/bsnmpd/pkg-plist deleted file mode 100644 index 424a5184053..00000000000 --- a/net-mgmt/bsnmpd/pkg-plist +++ /dev/null @@ -1,30 +0,0 @@ -etc/snmpd.config.example -lib/libbsnmp.a -lib/libbsnmp.so -lib/libbsnmp.so.2 -lib/snmp_mibII.so -lib/snmp_mibII.so.3 -lib/snmp_ntp.so -lib/snmp_ntp.so.3 -include/bsnmp/asn1.h -include/bsnmp/snmp.h -include/bsnmp/snmpagent.h -include/bsnmp/snmpclient.h -include/bsnmp/snmpmod.h -include/bsnmp/snmp_mibII.h -sbin/bsnmpd -sbin/gensnmpdef -sbin/gensnmptree -share/snmp/defs/mibII_tree.def -share/snmp/defs/ntp_tree.def -share/snmp/defs/tree.def -share/snmp/mibs/BEGEMOT-MIB.txt -share/snmp/mibs/BEGEMOT-NTP-MIB.txt -share/snmp/mibs/BEGEMOT-SNMPD.txt -share/snmp/mibs/FOKUS-MIB.txt -share/snmp/mibs/NTP-MIB.txt -share/snmp/mibs/NTP-PROXY-MIB.txt -@dirrm include/bsnmp -@dirrm share/snmp/defs -@dirrm share/snmp/mibs -@dirrm share/snmp |