diff options
author | Donny Davies <woodchip@gentoo.org> | 2002-05-04 03:16:38 +0000 |
---|---|---|
committer | Donny Davies <woodchip@gentoo.org> | 2002-05-04 03:16:38 +0000 |
commit | 9dd5128da37d1b17ce57e61f8fc28d5eaf1eed66 (patch) | |
tree | 879727039984cbd46bbf55890e45e02af96b5041 /net-analyzer/ucd-snmp | |
parent | Ebuild cleanup, dependency fix (diff) | |
download | historical-9dd5128da37d1b17ce57e61f8fc28d5eaf1eed66.tar.gz historical-9dd5128da37d1b17ce57e61f8fc28d5eaf1eed66.tar.bz2 historical-9dd5128da37d1b17ce57e61f8fc28d5eaf1eed66.zip |
Added LICENSE, SLOT.
Diffstat (limited to 'net-analyzer/ucd-snmp')
-rw-r--r-- | net-analyzer/ucd-snmp/ChangeLog | 8 | ||||
-rw-r--r-- | net-analyzer/ucd-snmp/files/digest-ucd-snmp-4.2.3-r1 (renamed from net-analyzer/ucd-snmp/files/digest-ucd-snmp-4.2.3) | 0 | ||||
-rw-r--r-- | net-analyzer/ucd-snmp/files/snmpd.rc5 | 31 | ||||
-rw-r--r-- | net-analyzer/ucd-snmp/files/snmpd.rc6 | 28 | ||||
-rw-r--r-- | net-analyzer/ucd-snmp/ucd-snmp-4.2.3-r1.ebuild | 49 | ||||
-rw-r--r-- | net-analyzer/ucd-snmp/ucd-snmp-4.2.3.ebuild | 39 |
6 files changed, 70 insertions, 85 deletions
diff --git a/net-analyzer/ucd-snmp/ChangeLog b/net-analyzer/ucd-snmp/ChangeLog index 5244e51da075..bf22cec0fd3f 100644 --- a/net-analyzer/ucd-snmp/ChangeLog +++ b/net-analyzer/ucd-snmp/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/ucd-snmp # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ucd-snmp/ChangeLog,v 1.2 2002/02/13 00:26:39 m0rpheus Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ucd-snmp/ChangeLog,v 1.3 2002/05/04 03:16:38 woodchip Exp $ + +*ucd-snmp-4.2.3-r1 (3 May 2002) + + 3 May 2002; Donny Davies <woodchip@gentoo.org> : + + Added LICENSE, SLOT. *ucd-snmp-4.2.3 (13 Feb 2002) diff --git a/net-analyzer/ucd-snmp/files/digest-ucd-snmp-4.2.3 b/net-analyzer/ucd-snmp/files/digest-ucd-snmp-4.2.3-r1 index cad194121987..cad194121987 100644 --- a/net-analyzer/ucd-snmp/files/digest-ucd-snmp-4.2.3 +++ b/net-analyzer/ucd-snmp/files/digest-ucd-snmp-4.2.3-r1 diff --git a/net-analyzer/ucd-snmp/files/snmpd.rc5 b/net-analyzer/ucd-snmp/files/snmpd.rc5 deleted file mode 100644 index 0fd232d39f22..000000000000 --- a/net-analyzer/ucd-snmp/files/snmpd.rc5 +++ /dev/null @@ -1,31 +0,0 @@ -#!/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/files/snmpd.rc6 b/net-analyzer/ucd-snmp/files/snmpd.rc6 index 184b39b77821..573c91d81701 100644 --- a/net-analyzer/ucd-snmp/files/snmpd.rc6 +++ b/net-analyzer/ucd-snmp/files/snmpd.rc6 @@ -1,29 +1,29 @@ #!/sbin/runscript # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ucd-snmp/files/snmpd.rc6,v 1.2 2001/12/06 20:17:02 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ucd-snmp/files/snmpd.rc6,v 1.3 2002/05/04 03:16:38 woodchip Exp $ depend() { - need net + need net } checkconfig() { - if [ ! -e /usr/share/snmp/snmpd.conf ] ; then - eerror "You need an /usr/share/snmp/snmpd.conf to run ucd-snmpd" - eerror "There is an example config in /usr/share/docs/ucd-snmp" - return 1 - fi + if [ ! -e /usr/share/snmp/snmpd.conf ] ; then + eerror "You need an /usr/share/snmp/snmpd.conf to run ucd-snmpd" + eerror "There is an example config in /usr/share/docs/ucd-snmp" + return 1 + fi } start() { - checkconfig || return 1 - ebegin "Starting snmpd" - start-stop-daemon --start --quiet --exec /usr/sbin/snmpd - eend $? + checkconfig || return 1 + ebegin "Starting snmpd" + start-stop-daemon --start --quiet --exec /usr/sbin/snmpd + eend $? } stop() { - ebegin "Stopping snmpd" - start-stop-daemon --stop --quiet --exec /usr/sbin/snmpd - eend $? + ebegin "Stopping snmpd" + start-stop-daemon --stop --quiet --exec /usr/sbin/snmpd + eend $? } diff --git a/net-analyzer/ucd-snmp/ucd-snmp-4.2.3-r1.ebuild b/net-analyzer/ucd-snmp/ucd-snmp-4.2.3-r1.ebuild new file mode 100644 index 000000000000..e8727d053cb4 --- /dev/null +++ b/net-analyzer/ucd-snmp/ucd-snmp-4.2.3-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ucd-snmp/ucd-snmp-4.2.3-r1.ebuild,v 1.1 2002/05/04 03:16:38 woodchip Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Software for generating and retrieving SNMP data" +SRC_URI="http://download.sourceforge.net/net-snmp/${P}.tar.gz" +HOMEPAGE="http://net-snmp.sourceforge.net/" + +DEPEND="virtual/glibc <sys-libs/db-2 + >=sys-libs/zlib-1.1.3 + ssl? ( >=dev-libs/openssl-0.9.6 ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 )" +LICENSE="as-is" +SLOT="0" + +src_compile() { + local myconf + use ssl && myconf="${myconf} --with-openssl=/usr" + use ssl || myconf="${myconf} --enable-internal-md5 --with-openssl=no" + use tcpd && myconf="${myconf} --with-libwrap" + use ipv6 && myconf="${myconf} --with-ipv6" + + ./configure \ + --with-zlib \ + --prefix=/usr \ + --enable-shared \ + --mandir=/usr/share/man \ + --with-sys-location="Unknown" \ + --with-sys-contact="root@Unknown" \ + --with-logfile=/var/log/snmpd.log \ + --with-persistent-directory=/var/lib/ucd-snmp \ + --host=${CHOST} ${myconf} || die "bad ./configure" + + emake || die "compile problem" +} + +src_install () { + make install \ + prefix=${D}/usr \ + exec_prefix=${D}/usr \ + mandir=${D}/usr/share/man \ + persistentdir=${D}/var/lib/ucd-snmp || die + + dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO EXAMPLE.conf + + exeinto /etc/init.d + newexe ${FILESDIR}/snmpd.rc6 snmpd +} diff --git a/net-analyzer/ucd-snmp/ucd-snmp-4.2.3.ebuild b/net-analyzer/ucd-snmp/ucd-snmp-4.2.3.ebuild deleted file mode 100644 index ff58a505a78a..000000000000 --- a/net-analyzer/ucd-snmp/ucd-snmp-4.2.3.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2000 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# Author Donny Davies <woodchip@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ucd-snmp/ucd-snmp-4.2.3.ebuild,v 1.1 2002/02/13 00:26:39 m0rpheus Exp $ - -S=${WORKDIR}/${P} -DESCRIPTION="Software for generating and retrieving SNMP data" -SRC_URI="http://download.sourceforge.net/net-snmp/${P}.tar.gz" -HOMEPAGE="http://net-snmp.sourceforge.net/" - -DEPEND="virtual/glibc <sys-libs/db-2 - >=sys-libs/zlib-1.1.3 - ssl? ( >=dev-libs/openssl-0.9.6 ) - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )" - -src_compile() { - local myconf - use ssl && myconf="${myconf} --with-openssl=/usr" - use ssl || myconf="${myconf} --enable-internal-md5 --with-openssl=no" - use tcpd && myconf="${myconf} --with-libwrap" - use ipv6 && myconf="${myconf} --with-ipv6" - - ./configure --prefix=/usr --mandir=/usr/share/man --host=${CHOST} \ - --with-zlib --enable-shared --with-sys-contact="root@Unknown" \ - --with-sys-location="Unknown" --with-logfile=/var/log/snmpd.log \ - --with-persistent-directory=/var/lib/ucd-snmp ${myconf} - assert - emake || die -} - -src_install () { - make prefix=${D}/usr exec_prefix=${D}/usr mandir=${D}/usr/share/man \ - persistentdir=${D}/var/lib/ucd-snmp install || die - - dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO EXAMPLE.conf - - exeinto /etc/init.d - newexe ${FILESDIR}/snmpd.rc6 snmpd -} |