Permalink
Browse files

kame/NetBSD pkgsrc 19991104

  • Loading branch information...
1 parent 951ea33 commit 40204d1addbc372cb453aae12dc84278c8a11619 itojun committed Nov 4, 1999
@@ -0,0 +1,65 @@
+# New ports collection makefile for: ucd-snmp-v6
+# Version required: 4.0.1
+# Date created: 26 June 1996
+# Whom: itojun@iijlab.net
+#
+# $Id: Makefile,v 1.1.1.1 1999/11/04 00:02:15 itojun Exp $
+#
+
+DISTNAME= ucd-snmp-4.0.1
+PKGNAME= ucd-snmp-v6-4.0.1.19991104
+CATEGORIES= net
+MASTER_SITES= ftp://ucd-snmp.ucdavis.edu/ \
+ ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \
+ ftp://ftp.win.or.jp/pub/network/snmp/ucd-snmp/
+
+PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
+PATCHFILES= ucd-snmp-4.0.1-v6-19991104.diff.gz
+PATCH_DIST_STRIP= -p1
+
+MAINTAINER= itojun@iijlab.net
+
+BUILD_DEPENDS+= autoconf:../../devel/autoconf
+
+#CONFIGURE_ARGS+= --enable-shared
+CONFIGURE_ARGS+= --enable-ipv6
+
+# Do not use GNU_CONFIGURE here. ucd-snmp will make some trouble with
+# --host=ARCH--netbsd.
+HAS_CONFIGURE= YES
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+.if defined(BATCH)
+CONFIGURE_ARGS+= --with-defaults --with-sys-contact=nobody@no.where
+.else
+IS_INTERACTIVE= yes
+.endif
+
+MAN1= snmpdelta.1 snmpcmd.1 snmpd.1 snmptable.1 snmptranslate.1 \
+ snmpbulkwalk.1 snmpwalk.1 snmpusm.1 snmptrap.1 snmpstatus.1 \
+ snmpnetstat.1 snmpget.1 snmpset.1 snmptest.1 snmpgetnext.1
+MAN3= read_config.3 mib_api.3 snmp_api.3 snmp_sess_api.3
+MAN5= snmptrapd.conf.5 snmpd.conf.5 snmp.conf.5 snmp_config.5 variables.5
+MAN8= snmptrapd.8
+BIN= encode_keychange snmptest snmpdelta snmpstatus \
+ snmptranslate snmptrap snmptable snmpbulkwalk snmpwalk snmpusm \
+ snmpset snmpgetnext snmpget snmpnetstat
+SBIN= snmpd snmptrapd
+
+post-install:
+ ( cd ${PREFIX}/bin; strip ${BIN} )
+ ( cd ${PREFIX}/sbin; strip ${SBIN} )
+# if [ -f ${PREFIX}/lib/libsnmp.so.3.5 ]; then \
+# /bin/rm ${PREFIX}/lib/libsnmp.so.3.5; \
+# fi
+# ( cd ${PREFIX}/lib && ${LN} libsnmp.so libsnmp.so.3.5 )
+ @${MKDIR} ${PREFIX}/share/examples/ucd-snmp
+ @for F in ${WRKSRC}/etc/* ; do \
+ ${INSTALL_DATA} $$F ${PREFIX}/share/examples/ucd-snmp ; done
+ @if [ ! -f ${PREFIX}/etc/rc.d/snmpd.sh ]; then \
+ echo "Creating ${PREFIX}/etc/rc.d/snmpd.sh startup file."; \
+ echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/snmpd.sh; \
+ echo "[ -x ${PREFIX}/sbin/snmpd ] && ${PREFIX}/sbin/snmpd && echo -n ' snmpd'" >> ${PREFIX}/etc/rc.d/snmpd.sh; \
+ chmod 751 ${PREFIX}/etc/rc.d/snmpd.sh; \
+ fi
+
+.include "../../mk/bsd.pkg.mk"
@@ -0,0 +1,4 @@
+$NetBSD$
+
+MD5 (ucd-snmp-4.0.1.tar.gz) = ba72a7b8c9efd226b72baf74d68d4511
+MD5 (ucd-snmp-4.0.1-v6-19991104.diff.gz) = 0b0ef15def2f0d794a695266b5a56f09
@@ -0,0 +1,15 @@
+--- agent/mibgroup/mibII/tcp.c.orig Fri Jun 26 21:12:35 1998
++++ agent/mibgroup/mibII/tcp.c Fri Jun 26 21:17:14 1998
+@@ -55,6 +55,12 @@
+ #include <netinet/ip_var.h>
+ #endif
+ #if HAVE_NETINET_IN_PCB_H
++# if defined(__FreeBSD__) && (__FreeBSD__ >= 2)
++# include <osreldate.h>
++# if __FreeBSD_version >= 300000
++# include <sys/socketvar.h>
++# endif
++# endif
+ #include <netinet/in_pcb.h>
+ #endif
+ #if HAVE_INET_MIB2_H
@@ -0,0 +1 @@
+An extendable SNMP implimentation
@@ -0,0 +1,16 @@
+This is UCD SNMP, a derivative of CMU's SNMP package.
+
+From the README:
+
+This package contains a port and modified code of the CMU 2.1.2.1
+snmp agent. It has been modified to allow extensibility quickly
+and easily. It is far from the best and most configurable systems;
+but hey: its free.
+
+We use this agent here to monitor known system problems before they
+take the machine over. The agent can be easily configured to
+monitor the number of a given process running, run external scripts
+to check and report functional status. Examples: mountd(s) under
+Ultrix 4.3 which tend to fork themselves crazy and eventually fill
+up the process table; On our hp700s, "amd" sometimes stops working,
+HP VUE hangs and fails to start X, etc.
@@ -0,0 +1,106 @@
+bin/encode_keychange
+bin/snmpbulkwalk
+bin/snmpcheck
+bin/snmpdelta
+bin/snmpget
+bin/snmpgetnext
+bin/snmpnetstat
+bin/snmpset
+bin/snmpstatus
+bin/snmptable
+bin/snmptest
+bin/snmptranslate
+bin/snmptrap
+bin/snmpusm
+bin/snmpwalk
+bin/tkmib
+etc/rc.d/snmpd.sh
+include/ucd-snmp/asn1.h
+include/ucd-snmp/int64.h
+include/ucd-snmp/mib.h
+include/ucd-snmp/parse.h
+include/ucd-snmp/snmp.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/system.h
+include/ucd-snmp/ucd-snmp-includes.h
+include/ucd-snmp/ucd-snmp-config.h
+include/ucd-snmp/version.h
+include/ucd-snmp/callback.h
+include/ucd-snmp/default_store.h
+include/ucd-snmp/snmp_alarm.h
+@dirrm include/ucd-snmp
+lib/libsnmp.a
+@comment lib/libsnmp.so.3.5
+@comment @exec ln %D/lib/libsnmp.so %D/lib/libsnmp.so.3.5
+@comment @unexec rm -f %D/lib/libsnmp.so.3.5
+man/man1/snmpbulkwalk.1.gz
+man/man1/snmpcmd.1.gz
+man/man1/snmpd.1.gz
+man/man1/snmpdelta.1.gz
+man/man1/snmpget.1.gz
+man/man1/snmpgetnext.1.gz
+man/man1/snmpnetstat.1.gz
+man/man1/snmpset.1.gz
+man/man1/snmpstatus.1.gz
+man/man1/snmptable.1.gz
+man/man1/snmptest.1.gz
+man/man1/snmptranslate.1.gz
+man/man1/snmptrap.1.gz
+man/man1/snmpusm.1.gz
+man/man1/snmpwalk.1.gz
+man/man3/mib_api.3.gz
+man/man3/read_config.3.gz
+man/man3/snmp_api.3.gz
+man/man3/snmp_sess_api.3.gz
+man/man5/snmp.conf.5.gz
+man/man5/snmp_config.5.gz
+man/man5/snmpd.conf.5.gz
+man/man5/snmptrapd.conf.5.gz
+man/man5/variables.5.gz
+man/man8/snmptrapd.8.gz
+sbin/snmpd
+sbin/snmptrapd
+share/examples/ucd-snmp/README
+share/examples/ucd-snmp/acl.conf
+share/examples/ucd-snmp/context.conf
+share/examples/ucd-snmp/party.conf
+share/examples/ucd-snmp/view.conf
+@dirrm share/examples/ucd-snmp
+share/snmp/mibs/RFC1155-SMI.txt
+share/snmp/mibs/RFC1213-MIB.txt
+share/snmp/mibs/SNMPv2-CONF.txt
+share/snmp/mibs/SNMPv2-SMI.txt
+share/snmp/mibs/SNMPv2-TC.txt
+share/snmp/mibs/SNMPv2-TM.txt
+share/snmp/mibs/SNMPv2-MIB.txt
+share/snmp/mibs/SNMPv2-M2M-MIB.txt
+share/snmp/mibs/SNMPv2-PARTY-MIB.txt
+share/snmp/mibs/SNMP-FRAMEWORK-MIB.txt
+share/snmp/mibs/SNMP-MPD-MIB.txt
+share/snmp/mibs/SNMP-TARGET-MIB.txt
+share/snmp/mibs/SNMP-NOTIFICATION-MIB.txt
+share/snmp/mibs/SNMP-PROXY-MIB.txt
+share/snmp/mibs/SNMP-USER-BASED-SM-MIB.txt
+share/snmp/mibs/SNMP-VIEW-BASED-ACM-MIB.txt
+share/snmp/mibs/IANAifType-MIB.txt
+share/snmp/mibs/IF-MIB.txt
+share/snmp/mibs/IP-MIB.txt
+share/snmp/mibs/TCP-MIB.txt
+share/snmp/mibs/UDP-MIB.txt
+share/snmp/mibs/EtherLike-MIB.txt
+share/snmp/mibs/HOST-RESOURCES-MIB.txt
+share/snmp/mibs/RFC1271-MIB.txt
+share/snmp/mibs/IPV6-TC.txt
+share/snmp/mibs/IPV6-MIB.txt
+share/snmp/mibs/IPV6-ICMP-MIB.txt
+share/snmp/mibs/IPV6-TCP-MIB.txt
+share/snmp/mibs/IPV6-UDP-MIB.txt
+share/snmp/mibs/UCD-SNMP-MIB.txt
+share/snmp/mibs/IPFWACC-MIB.txt
+share/snmp/mibs/DLMOD-MIB.txt
+@unexec rm -f %D/share/snmp/mibs/.index
+@dirrm share/snmp/mibs
+@dirrm share/snmp

0 comments on commit 40204d1

Please sign in to comment.