head 1.9; access; symbols pkgsrc-2013Q2:1.9.0.50 pkgsrc-2013Q2-base:1.9 pkgsrc-2012Q4:1.9.0.48 pkgsrc-2012Q4-base:1.9 pkgsrc-2011Q4:1.9.0.46 pkgsrc-2011Q4-base:1.9 pkgsrc-2011Q2:1.9.0.44 pkgsrc-2011Q2-base:1.9 pkgsrc-2009Q4:1.9.0.42 pkgsrc-2009Q4-base:1.9 pkgsrc-2008Q4:1.9.0.40 pkgsrc-2008Q4-base:1.9 pkgsrc-2008Q3:1.9.0.38 pkgsrc-2008Q3-base:1.9 cube-native-xorg:1.9.0.36 cube-native-xorg-base:1.9 pkgsrc-2008Q2:1.9.0.34 pkgsrc-2008Q2-base:1.9 pkgsrc-2008Q1:1.9.0.32 pkgsrc-2008Q1-base:1.9 pkgsrc-2007Q4:1.9.0.30 pkgsrc-2007Q4-base:1.9 pkgsrc-2007Q3:1.9.0.28 pkgsrc-2007Q3-base:1.9 pkgsrc-2007Q2:1.9.0.26 pkgsrc-2007Q2-base:1.9 pkgsrc-2007Q1:1.9.0.24 pkgsrc-2007Q1-base:1.9 pkgsrc-2006Q4:1.9.0.22 pkgsrc-2006Q4-base:1.9 pkgsrc-2006Q3:1.9.0.20 pkgsrc-2006Q3-base:1.9 pkgsrc-2006Q2:1.9.0.18 pkgsrc-2006Q2-base:1.9 pkgsrc-2006Q1:1.9.0.16 pkgsrc-2006Q1-base:1.9 pkgsrc-2005Q4:1.9.0.14 pkgsrc-2005Q4-base:1.9 pkgsrc-2005Q3:1.9.0.12 pkgsrc-2005Q3-base:1.9 pkgsrc-2005Q2:1.9.0.10 pkgsrc-2005Q2-base:1.9 pkgsrc-2005Q1:1.9.0.8 pkgsrc-2005Q1-base:1.9 pkgsrc-2004Q4:1.9.0.6 pkgsrc-2004Q4-base:1.9 pkgsrc-2004Q3:1.9.0.4 pkgsrc-2004Q3-base:1.9 pkgsrc-2004Q2:1.9.0.2 pkgsrc-2004Q2-base:1.9 pkgsrc-2004Q1:1.8.0.6 pkgsrc-2004Q1-base:1.8 pkgsrc-2003Q4:1.8.0.4 pkgsrc-2003Q4-base:1.8 netbsd-1-6-1:1.8.0.2 netbsd-1-6-1-base:1.8 netbsd-1-6:1.7.0.8 netbsd-1-6-RELEASE-base:1.7 pkgviews:1.7.0.4 pkgviews-base:1.7 buildlink2-base:1.7 buildlink2:1.7.0.2 netbsd-1-5-PATCH001:1.4 netbsd-1-5-RELEASE:1.4 netbsd-1-4-PATCH003:1.4 netbsd-1-4-PATCH002:1.3 comdex-fall-1999:1.1; locks; strict; comment @# @; 1.9 date 2004.03.29.16.30.24; author cube; state dead; branches; next 1.8; 1.8 date 2002.08.25.18.39.41; author jlam; state Exp; branches; next 1.7; 1.7 date 2002.05.25.08.04.52; author tron; state Exp; branches 1.7.2.1; next 1.6; 1.6 date 2002.04.09.09.53.55; author itojun; state dead; branches; next 1.5; 1.5 date 2002.02.13.16.41.41; author tron; state Exp; branches; next 1.4; 1.4 date 2000.10.13.17.55.36; author kim; state Exp; branches; next 1.3; 1.3 date 2000.01.23.10.42.15; author itojun; state Exp; branches; next 1.2; 1.2 date 2000.01.23.10.41.10; author itojun; state Exp; branches; next 1.1; 1.1 date 99.08.15.09.44.01; author tron; state Exp; branches; next ; 1.7.2.1 date 2002.05.25.08.04.52; author jlam; state dead; branches; next 1.7.2.2; 1.7.2.2 date 2002.06.23.18.57.14; author jlam; state Exp; branches; next ; desc @@ 1.9 log @Remove ucd-snmp package, which is outdated, insecure, and now unused in pkgsrc since gkrellm1-snmp conversion to net-snmp. @ text @$NetBSD: patch-ac,v 1.8 2002/08/25 18:39:41 jlam Exp $ --- agent/mibgroup/ucd_snmp.h.orig Thu Feb 7 16:39:26 2002 +++ agent/mibgroup/ucd_snmp.h Sat May 25 08:36:34 2002 @@@@ -32,8 +32,10 @@@@ config_arch_require(freebsd4, ucd-snmp/memory_freebsd2) config_arch_require(freebsd5, ucd-snmp/vmstat_freebsd2) config_arch_require(freebsd5, ucd-snmp/memory_freebsd2) -config_arch_require(netbsd1, ucd-snmp/vmstat_netbsd1) -config_arch_require(netbsd1, ucd-snmp/memory_netbsd1) +config_arch_require(netbsd, ucd-snmp/vmstat_netbsd1) +config_arch_require(netbsd, ucd-snmp/memory_netbsd1) +config_arch_require(netbsdelf, ucd-snmp/vmstat_netbsd1) +config_arch_require(netbsdelf, ucd-snmp/memory_netbsd1) config_arch_require(openbsd2, ucd-snmp/vmstat_netbsd1) config_arch_require(openbsd2, ucd-snmp/memory_netbsd1) config_arch_require(bsdi4, ucd-snmp/vmstat_bsdi4) @ 1.8 log @Merge changes in packages from the buildlink2 branch that have buildlink2.mk files back into the main trunk. This provides sufficient buildlink2 infrastructure to start merging other packages from the buildlink2 branch that have already been converted to use the buildlink2 framework. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.7.2.1 2002/06/23 18:57:14 jlam Exp $ @ 1.7 log @Enable memory and VM statistic under NetBSD. This fixes PR pkg/14438 by Scott Presnell. @ text @d1 1 a1 1 $NetBSD$ @ 1.7.2.1 log @file patch-ac was added on branch buildlink2 on 2002-06-23 18:57:14 +0000 @ text @d1 17 @ 1.7.2.2 log @Merge from pkgsrc-current to buildlink2 branch. @ text @a0 17 $NetBSD: patch-ac,v 1.7.2.1 2002/06/23 18:57:14 jlam Exp $ --- agent/mibgroup/ucd_snmp.h.orig Thu Feb 7 16:39:26 2002 +++ agent/mibgroup/ucd_snmp.h Sat May 25 08:36:34 2002 @@@@ -32,8 +32,10 @@@@ config_arch_require(freebsd4, ucd-snmp/memory_freebsd2) config_arch_require(freebsd5, ucd-snmp/vmstat_freebsd2) config_arch_require(freebsd5, ucd-snmp/memory_freebsd2) -config_arch_require(netbsd1, ucd-snmp/vmstat_netbsd1) -config_arch_require(netbsd1, ucd-snmp/memory_netbsd1) +config_arch_require(netbsd, ucd-snmp/vmstat_netbsd1) +config_arch_require(netbsd, ucd-snmp/memory_netbsd1) +config_arch_require(netbsdelf, ucd-snmp/vmstat_netbsd1) +config_arch_require(netbsdelf, ucd-snmp/memory_netbsd1) config_arch_require(openbsd2, ucd-snmp/vmstat_netbsd1) config_arch_require(openbsd2, ucd-snmp/memory_netbsd1) config_arch_require(bsdi4, ucd-snmp/vmstat_bsdi4) @ 1.6 log @upgrade to 4.2.4. release note: http://sourceforge.net/project/shownotes.php?release_id=83551 @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.5 2002/02/13 16:41:41 tron Exp $ d3 15 a17 14 --- apps/snmpnetstat/if.c.orig Fri Nov 16 11:54:02 2001 +++ apps/snmpnetstat/if.c Wed Feb 13 17:29:05 2002 @@@@ -279,6 +279,11 @@@@ case IFINDEX: ifindex = *var->val.integer; for (cur_if = if_table; cur_if->ifindex != ifindex && cur_if->ifindex != 0; cur_if++) ; + if (cur_if >= (if_table + cfg_nnets)) + { + fprintf (stderr, "Inconsistent reponse from server. Aborting\n"); + exit (0); + } cur_if->ifindex = ifindex; break; case OUTQLEN: @ 1.5 log @Update "ucd-snmp" package to version 4.2.3nb1: - Replace with contents of "ucd-snmp-current" package to fix various security problems. - Add patch sent to "bugtraq" by Juan M. de la Torre to fix buffer overflow in "snmpnetstat" client. @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @Update to 4.1.2: *4.1.2* Fixes: - Host resources fixes for FreeBSD and NetBSD - ucd-snmp memory/vmstat fixes for FreeBSD-3 - configure --enable-ipv6 fixes - AIX fix (use knlist) - fix init_master_agent calling exit - bad free in subagent.c - dont let a agentx subagent be a smux master - ucd-snmp/loadave fix for AIX - fix doing a set on a pass variable - snmptable fixes - snmpnetstat fixes for v2c exceptions - man page fixes Features: - Some UnixWare 5 configuration support - configure --enable-mini-agent --without-openssl - snmptrapd -n - snmp_log callbacks - noTokenWarnings and noRangeCheck in snmp.conf - using a counter type in snmpset/snmptrap *4.1.1* Fixes: - Better agent handling of unauthorized requests. - Better "make test" support. - Misc bug fixes. *4.1* New: - Many new command line flags have been added for input/output flexibility. (see the snmpcmd(1) manual page on the -O flag and -I flag) - The tools support regex matching of oids on the command line. (see the snmpcmd(1) manual page on the -Ib option) - A ucd-snmp usage tutorial has been placed on the main web page. (see http://ucd-snmp.ucdavis.edu/tutorial) - snmptable is much smarter and handles sparse tables better. - tkmib supports snmpv3. - New agent libraries to embed SNMP and AgentX agents into other programs. (see the snmp_agent_api(3) manual page and the tutorial) - SNMP over TCP is supported. (-T TCP on the command lines) - OpenSSL has replaced KMT for SHA authentication and DES encryption. (Get OpenSSL from http://www.openssl.org/). - Some easier-to-use access-control snmpd.conf directives for simple setups. (see the snmpd.conf(5) manual page) - Easier setup of SNMPv3 support for the agent. (see the README.snmpv3 file). - Command line argument parsing has been reworked for getopt() use. (currently backwards compatible; see the snmpcmd(1) manual page) - Table rows with embedded strings are dealt with for both input and output. (see the snmpcmd(1) manual on the -Ob flag) - Many more snmp.conf directives supported. (see the snmp.conf(5) manual page) - Many AgentX improvements. - All of our distributed mibs have been updated to be SMIv2 compliant. - Trap support in the agent has been cleaned up and an API created. Perl: - Joe Marzot's perl module is now included with the ucd-snmp source. (this should help people trying to synchronize the two packages) Fixes: - SMUX support has been reintegrated into the agent in a better way. - Many many others. @ text @d3 14 a16 66 --- agent/Makefile.in.orig Fri Feb 4 16:15:08 2000 +++ agent/Makefile.in Fri Oct 13 12:55:01 2000 @@@@ -5,15 +5,17 @@@@ TARG = snmpd LIBTARG = libucdagent.$(SHLIB_EXTENSION)$(SHLIB_VERSION) \ libucdmibs.$(SHLIB_EXTENSION)$(SHLIB_VERSION) -USELIBS = ../snmplib/libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION) -LOCAL_LIBS = -L../snmplib -L. -LIBS = $(CC_RUNTIME_ARG) -lsnmp @@WRAPLIBS@@ @@LIBS@@ -AGENT_LIBS = $(CC_RUNTIME_ARG) -lucdagent -lucdmibs -lsnmp @@WRAPLIBS@@ @@LIBS@@ +#USELIBS = ../snmplib/libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION) +USELIBS= libucdagent.la libucdmibs.la ../snmplib/libsnmp.la +#LOCAL_LIBS = -L../snmplib -L. +#LIBS = $(CC_RUNTIME_ARG) -lsnmp @@WRAPLIBS@@ @@LIBS@@ +LIBS= ${USELIBS} @@WRAPLIBS@@ @@LIBS@@ +AGENT_LIBS = $(CC_RUNTIME_ARG) $(LIBS) CPPFLAGS = -I.. -I$(srcdir)/.. -I$(srcdir)/../snmplib \ -I$(srcdir) -I. -I$(srcdir)/mibgroup -Imibgroup @@CPPFLAGS@@ -CC = @@CC@@ $(CPPFLAGS) $(SHLIB_CFLAGS) -SPCC = @@CC@@ $(CPPFLAGS) +CC = $(LIBTOOL) @@CC@@ $(CPPFLAGS) $(SHLIB_CFLAGS) +SPCC = $(LIBTOOL) @@CC@@ $(CPPFLAGS) MIBOBJS = @@mibgroup_list_o@@ mib_modules.o @@@@ -49,13 +51,19 @@@@ ${SPCC} $(CFLAGS) -o $@@ ${AGENTOBJS} $(LOCAL_LIBS) ${LDFLAGS} ${AGENT_LIBS} -libucdagent.$(SHLIB_EXTENSION)$(SHLIB_VERSION): ${LIBAGENTOBJS} libucdmibs.$(SHLIB_EXTENSION)$(SHLIB_VERSION) - $(SHLIB_LD_CMD) libucdagent.$(SHLIB_EXTENSION)$(SHLIB_VERSION) ${LIBAGENTOBJS} $(SHLIB_LD_LIBS) - $(RANLIB) libucdagent.$(SHLIB_EXTENSION)$(SHLIB_VERSION) - -libucdmibs.$(SHLIB_EXTENSION)$(SHLIB_VERSION): ${MIBOBJS} - $(SHLIB_LD_CMD) libucdmibs.$(SHLIB_EXTENSION)$(SHLIB_VERSION) ${MIBOBJS} $(SHLIB_LD_LIBS) - $(RANLIB) libucdmibs.$(SHLIB_EXTENSION)$(SHLIB_VERSION) +libucdagent.$(SHLIB_EXTENSION)$(SHLIB_VERSION): ${LIBAGENTOBJS} + $(CC) -o $@@ $(LIBAGENTOBJS:.o=.lo) -version-info 0:0 -rpath $(PREFIX)/lib + +#libucdagent.$(SHLIB_EXTENSION)$(SHLIB_VERSION): ${LIBAGENTOBJS} libucdmibs.$(SHLIB_EXTENSION)$(SHLIB_VERSION) +# $(SHLIB_LD_CMD) libucdagent.$(SHLIB_EXTENSION)$(SHLIB_VERSION) ${LIBAGENTOBJS} $(SHLIB_LD_LIBS) +# $(RANLIB) libucdagent.$(SHLIB_EXTENSION)$(SHLIB_VERSION) + +libucdmibs.$(SHLIB_EXTENSION)$(SHLIB_VERSION): ${MIBOBJS} + $(CC) -o $@@ $(MIBOBJS:.o=.lo) -version-info 0:0 -rpath $(PREFIX)/lib + +#libucdmibs.$(SHLIB_EXTENSION)$(SHLIB_VERSION): ${MIBOBJS} +# $(SHLIB_LD_CMD) libucdmibs.$(SHLIB_EXTENSION)$(SHLIB_VERSION) ${MIBOBJS} $(SHLIB_LD_LIBS) +# $(RANLIB) libucdmibs.$(SHLIB_EXTENSION)$(SHLIB_VERSION) clean: rm -f *.o ${TARG} ${LIBTARG} @@@@ -64,9 +72,9 @@@@ install: installdirs - @@$(INSTALL) $(TARG) $(sbindir) ; echo "install: installed $(TARG) in $(sbindir) " - @@for i in $(INSTALLHEADERS) ; do $(INSTALL) $(srcdir)/$$i $(includedir) ; echo "install: installed $$i in $(includedir)" ; done - @@for i in $(LIBTARG) ; do $(INSTALL) $$i $(libdir) ; $(RANLIB) $(libdir)/$$i ; echo "install: installed $$i in $(libdir)" ; done + @@$(LIBTOOL) $(INSTALL) $(TARG) $(sbindir) ; echo "install: installed $(TARG) in $(sbindir) " + @@for i in $(INSTALLHEADERS) ; do $(LIBTOOL) $(INSTALL) $(srcdir)/$$i $(includedir) ; echo "install: installed $$i in $(includedir)" ; done + @@for i in $(LIBTARG) ; do $(LIBTOOL) $(INSTALL) $$i $(libdir) ; $(RANLIB) $(libdir)/$$i ; echo "install: installed $$i in $(libdir)" ; done $(SHLIB_LDCONFIG_CMD) # cd dlmods ; $(MAKE) install; cd .. @ 1.3 log @remove explicit PKGNAME (DISNAME == PKGNAME). include $NetBSD$ into patches. @ text @d2 4 a5 5 --- agent/Makefile.in.orig Fri Aug 13 07:16:28 1999 +++ agent/Makefile.in Fri Jan 21 08:53:53 2000 @@@@ -3,9 +3,11 @@@@ # d7 2 d10 1 a10 1 -LOCAL_LIBS = -L../snmplib d12 1 d14 2 a15 2 +USELIBS= ../snmplib/libsnmp.la +#LOCAL_LIBS = -L../snmplib d18 2 a19 2 CPPFLAGS = -I.. -I$(srcdir)/.. -I$(srcdir)/../snmplib \ a20 26 @@@@ -24,23 +26,23 @@@@ # cd dlmods; $(MAKE); cd .. getkstat: getkstat.o - $(CC) $(CFLAGS) -o $@@ $? $(LOCAL_LIBS) $(LIBS) + $(LIBTOOL) $(CC) $(CFLAGS) -o $@@ $? $(LOCAL_LIBS) $(LIBS) getkstat.o: mibgroup/kernel_sunos5.c - $(CC) $(CFLAGS) -o $@@ -D_GETKSTAT_TEST -DDODEBUG -c $? + $(LIBTOOL) $(CC) $(CFLAGS) -o $@@ -D_GETKSTAT_TEST -DDODEBUG -c $? getmibstat: getmibstat.o - $(CC) $(CFLAGS) -o $@@ $? $(LOCAL_LIBS) $(LIBS) + $(LIBTOOL) $(CC) $(CFLAGS) -o $@@ $? $(LOCAL_LIBS) $(LIBS) getmibstat.o: mibgroup/kernel_sunos5.c - $(CC) $(CFLAGS) -o $@@ -D_GETMIBSTAT_TEST -DDODEBUG -c $? + $(LIBTOOL) $(CC) $(CFLAGS) -o $@@ -D_GETMIBSTAT_TEST -DDODEBUG -c $? AGENTOBJS=snmpd.o kernel.o snmp_agent.o snmp_vars.o agent_read_config.o agent_registry.o auto_nlist.o snmpd: ${MIBOBJS} ${AGENTOBJS} $(USELIBS) - ${CC} -o $@@ ${AGENTOBJS} ${MIBOBJS} $(LOCAL_LIBS) ${LDFLAGS} ${LIBS} + $(LIBTOOL) ${CC} -o $@@ ${AGENTOBJS} ${MIBOBJS} $(LOCAL_LIBS) ${LDFLAGS} ${LIBS} d22 31 d55 2 a56 1 @@@@ -50,7 +52,7 @@@@ d61 2 d64 3 a68 1 installdirs: @ 1.2 log @upgrade ucd-snmp to 4.0.1. include IPv6 MIB support patch into compilation. @ text @d1 1 @ 1.1 log @Make this package build on ELF systems. @ text @d1 3 a3 5 $NetBSD$ --- agent/Makefile.in.orig Tue Mar 16 01:24:39 1999 +++ agent/Makefile.in Sun Aug 15 11:32:24 1999 @@@@ -3,8 +3,8 @@@@ d6 5 a10 3 TARG= snmpd -USELIBS= ../snmplib/libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION) -LIBS= -L../snmplib $(CC_RUNTIME_ARG) -lsnmp @@LIBS@@ d12 7 a18 5 +LIBS= ${USELIBS} @@LIBS@@ CPPFLAGS=@@CPPFLAGS@@ -I.. -I$(srcdir)/.. -I$(srcdir)/../snmplib \ -I$(srcdir) -I. -I$(srcdir)/mibgroup -Imibgroup @@@@ -20,21 +20,21 @@@@ d22 2 a23 2 - $(CC) $(CFLAGS) -o $@@ $? $(LIBS) + ${LIBTOOL} $(CC) $(CFLAGS) -o $@@ $? $(LIBS) d27 1 a27 1 + ${LIBTOOL} $(CC) $(CFLAGS) -o $@@ -D_GETKSTAT_TEST -DDODEBUG -c $? d30 2 a31 2 - $(CC) $(CFLAGS) -o $@@ $? $(LIBS) + ${LIBTOOL} $(CC) $(CFLAGS) -o $@@ $? $(LIBS) d35 4 a38 1 + ${LIBTOOL} $(CC) $(CFLAGS) -o $@@ -D_GETMIBSTAT_TEST -DDODEBUG -c $? a39 1 AGENTOBJS=snmpd.o snmp2p.o kernel.o snmp_agent.o snmp_vars.o view_parse.o agent_read_config.o auto_nlist.o d42 3 a44 2 - ${CC} -o $@@ ${AGENTOBJS} ${MIBOBJS} ${LDFLAGS} ${LIBS} + ${LIBTOOL} ${CC} -o $@@ ${AGENTOBJS} ${MIBOBJS} ${LDFLAGS} ${LIBS} d47 2 a48 3 rm -f *.o ${TARG} @@@@ -42,7 +42,7 @@@@ cd mibgroup; make clean d52 1 a52 1 + @@${LIBTOOL} $(INSTALL) $(TARG) $(sbindir) ; echo "install: installed $(TARG) in $(sbindir) " @