diff options
author | hubertf <hubertf> | 1998-05-24 12:31:11 +0000 |
---|---|---|
committer | hubertf <hubertf> | 1998-05-24 12:31:11 +0000 |
commit | e7694a1a8c0758621ca53b80600957a9811ca8e7 (patch) | |
tree | 8b37041af1e3edf4d5e0e92eb78ce2a07d72e040 /net | |
parent | 3afe4100ced9b0291068d750e0b9075669c7b624 (diff) | |
download | pkgsrc-e7694a1a8c0758621ca53b80600957a9811ca8e7.tar.gz |
Add pkg for UCD SNMP implementation, based on FreeBSD port.
Diffstat (limited to 'net')
-rw-r--r-- | net/ucd-snmp/Makefile | 41 | ||||
-rw-r--r-- | net/ucd-snmp/files/md5 | 1 | ||||
-rw-r--r-- | net/ucd-snmp/patches/patch-aa | 25 | ||||
-rw-r--r-- | net/ucd-snmp/pkg/COMMENT | 1 | ||||
-rw-r--r-- | net/ucd-snmp/pkg/DESCR | 14 | ||||
-rw-r--r-- | net/ucd-snmp/pkg/MESSAGE | 4 | ||||
-rw-r--r-- | net/ucd-snmp/pkg/PLIST | 80 |
7 files changed, 166 insertions, 0 deletions
diff --git a/net/ucd-snmp/Makefile b/net/ucd-snmp/Makefile new file mode 100644 index 00000000000..389f11b6225 --- /dev/null +++ b/net/ucd-snmp/Makefile @@ -0,0 +1,41 @@ +# $NetBSD: Makefile,v 1.1 1998/05/24 12:31:11 hubertf Exp $ +# FreeBSD Id: Makefile,v 1.18 1998/04/06 20:50:31 andreas Exp +# + +DISTNAME= ucd-snmp +PKGNAME= ucd-snmp-3.4 +CATEGORIES= net +MASTER_SITES= ftp://ftp.ece.ucdavis.edu/pub/snmp/ \ + ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \ + ftp://ftp.win.or.jp/pub/network/snmp/ucd-snmp/ +WRKSRC= ${WRKDIR}/ucd-snmp-3.4 + +MAINTAINER= packages@netbsd.org + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-defaults + +MAN1= snmpbulkwalk.1 snmpd.1 snmpdelta.1 snmpget.1 snmpgetnext.1 \ + snmpnetstat.1 snmpset.1 snmpstatus.1 snmptable.1 snmptest.1 \ + snmptranslate.1 snmptrap.1 snmpwalk.1 +MAN3= mib_api.3 snmp_api.3 +MAN5= snmpd.conf.5 variables.5 +MAN8= snmptrapd.8 +BIN= snmpbulkwalk snmpget snmpgetnext snmpnetstat snmpset \ + snmpstatus snmptest snmptranslate snmptrap snmpwalk +SBIN= snmpd snmptrapd + +post-install: + ( cd ${PREFIX}/bin; strip ${BIN} ) + ( cd ${PREFIX}/sbin; strip ${SBIN} ) + @${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" diff --git a/net/ucd-snmp/files/md5 b/net/ucd-snmp/files/md5 new file mode 100644 index 00000000000..264bbe59f4c --- /dev/null +++ b/net/ucd-snmp/files/md5 @@ -0,0 +1 @@ +MD5 (ucd-snmp.tar.gz) = 0f8f683f15452dacd6e23711865f9884 diff --git a/net/ucd-snmp/patches/patch-aa b/net/ucd-snmp/patches/patch-aa new file mode 100644 index 00000000000..a8438e39122 --- /dev/null +++ b/net/ucd-snmp/patches/patch-aa @@ -0,0 +1,25 @@ +--- agent/mibgroup/ip.c.orig Sat May 23 18:46:55 1998 ++++ agent/mibgroup/ip.c Sat May 23 18:52:17 1998 +@@ -6,6 +6,12 @@ + #include "mib_module_config.h" + + #include <config.h> ++ ++#if HAVE_SYS_SYSCTL_H ++#include <sys/param.h> ++#include <sys/sysctl.h> ++#endif ++ + #if defined(IFNET_NEEDS_KERNEL) && !defined(_KERNEL) + #define _KERNEL 1 + #define _I_DEFINED_KERNEL +@@ -24,9 +30,6 @@ + #endif + #if HAVE_NETINET_IN_H + #include <netinet/in.h> +-#endif +-#if HAVE_SYS_SYSCTL_H +-#include <sys/sysctl.h> + #endif + #if HAVE_SYS_SYSMP_H + #include <sys/sysmp.h> diff --git a/net/ucd-snmp/pkg/COMMENT b/net/ucd-snmp/pkg/COMMENT new file mode 100644 index 00000000000..28d01a00c0d --- /dev/null +++ b/net/ucd-snmp/pkg/COMMENT @@ -0,0 +1 @@ +An extendable SNMP implimentation diff --git a/net/ucd-snmp/pkg/DESCR b/net/ucd-snmp/pkg/DESCR new file mode 100644 index 00000000000..341ba043ea6 --- /dev/null +++ b/net/ucd-snmp/pkg/DESCR @@ -0,0 +1,14 @@ +This is UCD SNMP, a derivative of CMU's SNMP package. + +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. diff --git a/net/ucd-snmp/pkg/MESSAGE b/net/ucd-snmp/pkg/MESSAGE new file mode 100644 index 00000000000..3ae12237f8c --- /dev/null +++ b/net/ucd-snmp/pkg/MESSAGE @@ -0,0 +1,4 @@ +# +# You may want to install the x11/p5-Tk and net/p5-SNMP packages to +# use the tkmib application! +# diff --git a/net/ucd-snmp/pkg/PLIST b/net/ucd-snmp/pkg/PLIST new file mode 100644 index 00000000000..fe1d20805ac --- /dev/null +++ b/net/ucd-snmp/pkg/PLIST @@ -0,0 +1,80 @@ +@comment $NetBSD: PLIST,v 1.1 1998/05/24 12:31:13 hubertf Exp $ +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/snmpwalk +bin/tkmib +etc/rc.d/snmpd.sh +include/ucd-snmp/asn1.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_impl.h +lib/libsnmp.a +man/man1/snmpbulkwalk.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/snmpwalk.1.gz +man/man3/mib_api.3.gz +man/man3/snmp_api.3.gz +man/man5/snmpd.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 +share/snmp/mibs/EtherLike-MIB.txt +share/snmp/mibs/HOST-RESOURCES-MIB.txt +share/snmp/mibs/IANAifType-MIB.txt +share/snmp/mibs/IF-MIB.txt +share/snmp/mibs/IP-MIB.txt +share/snmp/mibs/RFC1155-SMI.txt +share/snmp/mibs/RFC1213-MIB.txt +share/snmp/mibs/RFC1271-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-SNMP-MIB.txt +share/snmp/mibs/UDP-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 +@unexec /bin/rm -f %D/share/snmp/mibs/.index +@comment @dirrm share/snmp/mibs/ucd-snmp +@dirrm share/snmp/mibs +@dirrm share/snmp +@dirrm share/examples/ucd-snmp +@dirrm include/ucd-snmp |