Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 May 2000 17:43:32 +0100 (BST)
From:      sa264@cam.ac.uk
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/18548: net/ucd-snmp fix & update
Message-ID:  <200005141643.RAA01989@sa264.wolfson.cam.ac.uk>

next in thread | raw e-mail | index | archive | help

>Number:         18548
>Category:       ports
>Synopsis:       net/ucd-snmp fix & update
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 14 09:50:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Amakawa Shuhei
>Release:        FreeBSD 4.0-RELEASE i386
>Organization:
Univ. of Cambridge
>Environment:

	FreeBSD 4.0-RELEASE i386, latest ports

>Description:

	net/ucd-snmp is broken and not up to date as was claimed.

>How-To-Repeat:

	make install

>Fix:

Shared library is disabled in the fix enclosed below.
Fine to enable it if you wish, but please make it a working port!

Removed file: patches/patch-aa

diff -uNr /usr/ports/net/ucd-snmp/Makefile ucd-snmp/Makefile
--- /usr/ports/net/ucd-snmp/Makefile	Sun May 14 09:22:35 2000
+++ ucd-snmp/Makefile	Sun May 14 14:11:41 2000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	ucd-snmp
-PORTVERSION=	4.1.1
+PORTVERSION=	4.1.2
 CATEGORIES=	net
 MASTER_SITES= 	ftp://ucd-snmp.ucdavis.edu/ \
 		ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \
@@ -14,7 +14,6 @@
 
 MAINTAINER=	billf@FreeBSD.org
 
-CONFIGURE_ARGS=	--enable-shared
 GNU_CONFIGURE=	YES
 .if defined(BATCH)
 CONFIGURE_ARGS+= --with-defaults --with-sys-contact=nobody@no.where
@@ -24,10 +23,18 @@
 USE_GMAKE=	YES
 #CFLAGS=		-g
 
-MAN1=		snmpbulkwalk.1 snmpd.1 snmpdelta.1 snmpget.1 snmpgetnext.1 \
-		snmpnetstat.1 snmpset.1 snmpstatus.1 snmptable.1 snmptest.1 \
+MAN1=		snmpbulkget.1 snmpbulkwalk.1 snmpd.1 snmpdelta.1 snmpget.1 \
+		snmpgetnext.1 snmpinform.1 snmpnetstat.1 snmpset.1 \
+		snmpstatus.1 snmptable.1 snmptest.1 \
 		snmptranslate.1 snmptrap.1 snmpwalk.1 snmpcmd.1 snmpusm.1
-MAN3=		read_config.3 mib_api.3 snmp_api.3 snmp_sess_api.3
+MAN3=		default_store.3 read_config.3 mib_api.3 snmp_agent_api.3 \
+		snmp_alarm.3 snmp_api.3 snmp_close.3 snmp_free_pdu.3 \
+		snmp_open.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_read.3 snmp_sess_select_info.3 snmp_sess_send.3 \
+		snmp_sess_session.3 snmp_sess_timeout.3 snmp_timeout.3 \
+		snmp_trap_api.3
 MAN5=		snmp.conf.5 snmp_config.5 snmpd.conf.5 \
 		snmptrapd.conf.5 variables.5
 MAN8=		snmptrapd.8
@@ -39,13 +46,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} >= 400000
-CONFIGURE_ARGS+=	--with-out-mib-modules="ucd-snmp/vmstat_freebsd2 ucd-snmp/memory_freebsd2"
-.endif
-
-SHLIB_VERSION=4
-PLIST_SUB= shlib=${SHLIB_VERSION}
-
 post-patch:
 	@${CP} ${FILESDIR}/freebsd4.h ${WRKSRC}/s
 
@@ -54,7 +54,6 @@
 	@( cd ${PREFIX}/sbin && strip ${SBIN} )
 	@( cd ${PREFIX}/include/ucd-snmp && ${CHMOD} 644 * )
 	@( cd ${PREFIX}/share/snmp/mibs && ${CHMOD} 644 * )
-	@( cd ${PREFIX}/lib && ${LN} -f libsnmp.so.${SHLIB_VERSION} libsnmp.so )
 	@${MKDIR} ${PREFIX}/share/examples/ucd-snmp
 	@for F in ${WRKSRC}/EXAMPLE.conf  ${WRKSRC}/agent/mibgroup/examples/ucdDemoPublic.conf; do \
 		${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done
@@ -64,6 +63,5 @@
 		${ECHO} "[ -x ${PREFIX}/sbin/snmpd ] && ${PREFIX}/sbin/snmpd && ${ECHO} -n ' snmpd'" >> ${STARTUP_FILE}; \
 		${CHMOD} 751 ${STARTUP_FILE}; \
 	 fi
-	${SETENV} OBJFORMAT="${PORTOBJFORMAT}" ${LDCONFIG} -m ${PREFIX}/lib
 
 .include <bsd.port.post.mk>
diff -uNr /usr/ports/net/ucd-snmp/files/md5 ucd-snmp/files/md5
--- /usr/ports/net/ucd-snmp/files/md5	Sun May 14 09:22:36 2000
+++ ucd-snmp/files/md5	Sun May 14 11:18:08 2000
@@ -1 +1 @@
-MD5 (ucd-snmp-4.1.1.tar.gz) = 2f0d6130af510a8ce283dfdb557a85fa
+MD5 (ucd-snmp-4.1.2.tar.gz) = 378c8cf99e0845da4662fb72c956d20d
diff -uNr /usr/ports/net/ucd-snmp/patches/patch-aa ucd-snmp/patches/patch-aa
--- /usr/ports/net/ucd-snmp/patches/patch-aa	Wed Apr  7 17:07:40 1999
+++ ucd-snmp/patches/patch-aa	Thu Jan  1 01:00:00 1970
@@ -1,13 +0,0 @@
---- snmplib/Makefile.in~	Tue Mar 16 01:49:10 1999
-+++ snmplib/Makefile.in	Sat Apr  3 13:30:11 1999
-@@ -41,6 +41,10 @@
- 
- libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION):    ${OBJS}
- 	$(SHLIB_LD_CMD) libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION) ${OBJS}
-+	ld -Bshareable -soname libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION) \
-+		-o libsnmp.$(SHLIB_EXTENSION) ${OBJS}
-+	ln -f libsnmp.$(SHLIB_EXTENSION) \
-+		libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION)
- 	$(RANLIB) libsnmp.$(SHLIB_EXTENSION)$(SHLIB_VERSION)
- 
- installdirs:
diff -uNr /usr/ports/net/ucd-snmp/patches/patch-ai ucd-snmp/patches/patch-ai
--- /usr/ports/net/ucd-snmp/patches/patch-ai	Sun May 14 09:22:37 2000
+++ ucd-snmp/patches/patch-ai	Sun May 14 13:09:10 2000
@@ -1,11 +1,10 @@
---- agent/mibgroup/mibII/tcp.c.orig	Wed Aug 18 12:30:37 1999
-+++ agent/mibgroup/mibII/tcp.c	Tue Jan 25 14:36:56 2000
-@@ -387,6 +387,23 @@
- #ifdef hpux
-     static	counter MIB_tcpcounter[MIB_tcpMAXCTR+1];
+--- agent/mibgroup/mibII/tcp.c.orig	Mon Mar 13 21:26:40 2000
++++ agent/mibgroup/mibII/tcp.c	Sun May 14 13:08:01 2000
+@@ -426,6 +426,22 @@
+ #ifdef TCPTV_NEEDS_HZ
+     int hz = 1000;
  #endif
 +#if defined(CAN_USE_SYSCTL) && defined(freebsd4) || defined(freebsd5)
-+	int hz;
 +
 +	{
 +		int sname[] = { CTL_KERN, KERN_CLOCKRATE };
diff -uNr /usr/ports/net/ucd-snmp/pkg/PLIST ucd-snmp/pkg/PLIST
--- /usr/ports/net/ucd-snmp/pkg/PLIST	Sun May 14 09:22:38 2000
+++ ucd-snmp/pkg/PLIST	Sun May 14 13:59:28 2000
@@ -1,9 +1,11 @@
 bin/encode_keychange
+bin/snmpbulkget
 bin/snmpbulkwalk
 bin/snmpcheck
 bin/snmpdelta
 bin/snmpget
 bin/snmpgetnext
+bin/snmpinform
 bin/snmpnetstat
 bin/snmpset
 bin/snmpstatus
@@ -15,40 +17,67 @@
 bin/snmpwalk
 bin/tkmib
 etc/rc.d/snmpd.sh.sample
+include/ucd-snmp/agent_read_config.h
+include/ucd-snmp/agent_registry.h
+include/ucd-snmp/agent_trap.h
 include/ucd-snmp/asn1.h
+include/ucd-snmp/auto_nlist.h
 include/ucd-snmp/callback.h
 include/ucd-snmp/default_store.h
+include/ucd-snmp/ds_agent.h
+include/ucd-snmp/header_complex.h
 include/ucd-snmp/int64.h
+include/ucd-snmp/keytools.h
 include/ucd-snmp/mib.h
+include/ucd-snmp/mibincl.h
 include/ucd-snmp/parse.h
+include/ucd-snmp/read_config.h
+include/ucd-snmp/scapi.h
 include/ucd-snmp/snmp.h
+include/ucd-snmp/snmp_agent.h
 include/ucd-snmp/snmp_alarm.h
 include/ucd-snmp/snmp_api.h
 include/ucd-snmp/snmp_client.h
 include/ucd-snmp/snmp_debug.h
 include/ucd-snmp/snmp_impl.h
+include/ucd-snmp/snmp_logging.h
+include/ucd-snmp/snmp_vars.h
+include/ucd-snmp/snmpv3.h
+include/ucd-snmp/struct.h
 include/ucd-snmp/system.h
+include/ucd-snmp/tools.h
+include/ucd-snmp/transform_oids.h
+include/ucd-snmp/ucd-snmp-agent-includes.h
 include/ucd-snmp/ucd-snmp-config.h
 include/ucd-snmp/ucd-snmp-includes.h
+include/ucd-snmp/util_funcs.h
+include/ucd-snmp/var_struct.h
 include/ucd-snmp/version.h
 @dirrm include/ucd-snmp
-lib/libsnmp.so
-lib/libsnmp.so.%%shlib%%
+lib/libsnmp.a
+lib/libucdagent.a
+lib/libucdmibs.a
 sbin/snmpd
 sbin/snmptrapd
-share/examples/ucd-snmp/README
-share/examples/ucdDemoPublic.conf
+share/examples/ucd-snmp/EXAMPLE.conf
+share/examples/ucd-snmp/ucdDemoPublic.conf
 @dirrm share/examples/ucd-snmp
-share/snmp/mibs/DLMOD-MIB.txt
+share/snmp/mibs/DISMAN-SCRIPT-MIB.txt
 share/snmp/mibs/EtherLike-MIB.txt
 share/snmp/mibs/HOST-RESOURCES-MIB.txt
+share/snmp/mibs/HOST-RESOURCES-TYPES.txt
 share/snmp/mibs/IANAifType-MIB.txt
 share/snmp/mibs/IF-MIB.txt
 share/snmp/mibs/IP-MIB.txt
-share/snmp/mibs/IPFWACC-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/RFC1155-SMI.txt
 share/snmp/mibs/RFC1213-MIB.txt
-share/snmp/mibs/RFC1271-MIB.txt
+share/snmp/mibs/RMON-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
@@ -57,17 +86,17 @@
 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-M2M-MIB.txt
 share/snmp/mibs/SNMPv2-MIB.txt
-share/snmp/mibs/SNMPv2-PARTY-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
 @dirrm share/snmp/mibs
 @dirrm share/snmp
-@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %D/lib
-@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005141643.RAA01989>