diff options
author | Jerry Alexandratos <jerry@gentoo.org> | 2000-11-07 06:41:31 +0000 |
---|---|---|
committer | Jerry Alexandratos <jerry@gentoo.org> | 2000-11-07 06:41:31 +0000 |
commit | de029e07f151fa5325d298bf9e983934405d9f9b (patch) | |
tree | b80774db81b00dbea1fc3b14f7dc04aaa3da8665 /net-analyzer/ucd-snmp | |
parent | Add entries for UCD-SNMP. (diff) | |
download | gentoo-2-de029e07f151fa5325d298bf9e983934405d9f9b.tar.gz gentoo-2-de029e07f151fa5325d298bf9e983934405d9f9b.tar.bz2 gentoo-2-de029e07f151fa5325d298bf9e983934405d9f9b.zip |
Import UCD-SNMP into portage tree.
Diffstat (limited to 'net-analyzer/ucd-snmp')
-rw-r--r-- | net-analyzer/ucd-snmp/files/digest-ucd-snmp-4.1.2 | 1 | ||||
-rwxr-xr-x | net-analyzer/ucd-snmp/files/snmpd | 31 | ||||
-rw-r--r-- | net-analyzer/ucd-snmp/ucd-snmp-4.1.2.ebuild | 36 |
3 files changed, 68 insertions, 0 deletions
diff --git a/net-analyzer/ucd-snmp/files/digest-ucd-snmp-4.1.2 b/net-analyzer/ucd-snmp/files/digest-ucd-snmp-4.1.2 new file mode 100644 index 000000000000..f05153b02aca --- /dev/null +++ b/net-analyzer/ucd-snmp/files/digest-ucd-snmp-4.1.2 @@ -0,0 +1 @@ +MD5 378c8cf99e0845da4662fb72c956d20d ucd-snmp-4.1.2.tar.gz diff --git a/net-analyzer/ucd-snmp/files/snmpd b/net-analyzer/ucd-snmp/files/snmpd new file mode 100755 index 000000000000..0fd232d39f22 --- /dev/null +++ b/net-analyzer/ucd-snmp/files/snmpd @@ -0,0 +1,31 @@ +#!/bin/sh +#RCUPDATE:2 3 4:80:This line is required for script management + +. /etc/rc.d/config/functions + +SERVICE=snmpd +opts="start stop restart" + +PIDFILE=/var/run/snmpd.pid +EXE=/usr/sbin/snmpd + +start() { + ebegin "Starting $SERVICE..." + start-stop-daemon --start --quiet --exec $EXE + eend $? "Started $SERVICE." "Error Starting $SERVICE." +} + +stop() { + ebegin "Stopping $SERVICE..." + start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $EXE + eend $? "Stopped $SERVICE." "Error Stopping $SERVICE." +} + +restart() { + stop + start +} + +doservice ${@} + + diff --git a/net-analyzer/ucd-snmp/ucd-snmp-4.1.2.ebuild b/net-analyzer/ucd-snmp/ucd-snmp-4.1.2.ebuild new file mode 100644 index 000000000000..4f994d409139 --- /dev/null +++ b/net-analyzer/ucd-snmp/ucd-snmp-4.1.2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Jerry Alexandratos <jerry@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ucd-snmp/ucd-snmp-4.1.2.ebuild,v 1.1 2000/11/07 06:41:31 jerry Exp $ + +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Software for generating and retrieving SNMP data" +SRC_URI="http://download.sourceforge.net/net-snmp/${A}" +HOMEPAGE="http://net-snmp.sourceforge.net/" + +DEPEND=">=sys-libs/glibc-2.1.3 + >=sys-libs/zlib-1.1.3 + >=dev-libs/openssl-0.9.6 + >=sys-apps/tcp-wrappers-7.6 + >=sys-devel/perl-5.6.0" + +src_compile() { + cd ${S} + try ./configure --prefix=/usr --host=${CHOST} \ + --with-openssl --with-libwrap --with-zlib + try make +} + +src_install () { + cd ${S} + try make prefix=${D}/usr exec_prefix=${D}/usr \ + persistentdir=${D}/var/ucd-snmp install + + dodir /etc/rc.d/init.d/ + cp ${O}/files/snmpd ${D}/etc/rc.d/init.d/snmpd +} + +pkg_config() { + ${ROOT}/usr/sbin/rc-update add snmpd +} |