diff options
author | Martin Holzer <mholzer@gentoo.org> | 2003-12-17 19:24:37 +0000 |
---|---|---|
committer | Martin Holzer <mholzer@gentoo.org> | 2003-12-17 19:24:37 +0000 |
commit | a8deae9667f7a9c8eb273ec6bc8f06bb25674259 (patch) | |
tree | 6c0a7a994e8811b6279b934d113cfa8eeae0f9b1 /net-analyzer/net-snmp | |
parent | Marked stable on hppa. (diff) | |
download | gentoo-2-a8deae9667f7a9c8eb273ec6bc8f06bb25674259.tar.gz gentoo-2-a8deae9667f7a9c8eb273ec6bc8f06bb25674259.tar.bz2 gentoo-2-a8deae9667f7a9c8eb273ec6bc8f06bb25674259.zip |
Version bumped.
Diffstat (limited to 'net-analyzer/net-snmp')
-rw-r--r-- | net-analyzer/net-snmp/ChangeLog | 8 | ||||
-rw-r--r-- | net-analyzer/net-snmp/Manifest | 11 | ||||
-rw-r--r-- | net-analyzer/net-snmp/files/digest-net-snmp-5.1 | 1 | ||||
-rw-r--r-- | net-analyzer/net-snmp/files/snmpdnew.rc6 | 27 | ||||
-rw-r--r-- | net-analyzer/net-snmp/net-snmp-5.1.ebuild | 79 |
5 files changed, 121 insertions, 5 deletions
diff --git a/net-analyzer/net-snmp/ChangeLog b/net-analyzer/net-snmp/ChangeLog index 65eba3252f18..0562858af476 100644 --- a/net-analyzer/net-snmp/ChangeLog +++ b/net-analyzer/net-snmp/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/net-snmp # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.35 2003/11/24 17:00:28 mholzer Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.36 2003/12/17 19:24:17 mholzer Exp $ + +*net-snmp-5.1 (17 Dec 2003) + + 17 Dec 2003; Martin Holzer <mholzer@gentoo.org> net-snmp-5.1.ebuild, + files/snmpdnew.rc6: + Version bumped. 24 Nov 2003; Martin Holzer <mholzer@gentoo.org> net-snmp-5.0.9-r1.ebuild, net-snmp-5.0.9-r3.ebuild: diff --git a/net-analyzer/net-snmp/Manifest b/net-analyzer/net-snmp/Manifest index ea39f9dc5bd4..d626db59bbc3 100644 --- a/net-analyzer/net-snmp/Manifest +++ b/net-analyzer/net-snmp/Manifest @@ -1,9 +1,12 @@ -MD5 ed9598b0a226a8f2744c33354e8d13a6 net-snmp-5.0.9-r1.ebuild 1652 +MD5 6b1fe37158b5c2dfcffb6bc91e588c4f ChangeLog 5970 MD5 243419ea01c61ed5d27876dc0417ee35 net-snmp-5.0.9-r3.ebuild 2236 +MD5 60278223a5463134f24a9bb0e90a905a net-snmp-5.1.ebuild 2151 MD5 9384ae7ba3e9f56b8027ea92f607042d metadata.xml 215 -MD5 86aa8711908cbb831113ed539239338f ChangeLog 5829 +MD5 ed9598b0a226a8f2744c33354e8d13a6 net-snmp-5.0.9-r1.ebuild 1652 +MD5 59db1ce04986c399a02cd0b6aab22f82 files/snmpdnew.rc6 489 +MD5 8cadda02e3a8f7279f531b660164c310 files/digest-net-snmp-5.0.9-r3 67 MD5 1cc5b20de8fc9e7c807195c320ab2f4b files/net-snmp-proc.patch 2448 +MD5 d37d58ebf8d67438ae7a607ffe281b0a files/digest-net-snmp-5.1 65 +MD5 8cadda02e3a8f7279f531b660164c310 files/digest-net-snmp-5.0.9-r1 67 MD5 c663bd6122c46cec37f5c2f881b3cdd8 files/snmpd.conf 376 MD5 73eef100c166c3b252853e49cbd2d6df files/snmpd.rc6 489 -MD5 8cadda02e3a8f7279f531b660164c310 files/digest-net-snmp-5.0.9-r3 67 -MD5 8cadda02e3a8f7279f531b660164c310 files/digest-net-snmp-5.0.9-r1 67 diff --git a/net-analyzer/net-snmp/files/digest-net-snmp-5.1 b/net-analyzer/net-snmp/files/digest-net-snmp-5.1 new file mode 100644 index 000000000000..5e683a91cf82 --- /dev/null +++ b/net-analyzer/net-snmp/files/digest-net-snmp-5.1 @@ -0,0 +1 @@ +MD5 14217471edb2b805b0e28c4c3cfd8c75 net-snmp-5.1.tar.gz 2909299 diff --git a/net-analyzer/net-snmp/files/snmpdnew.rc6 b/net-analyzer/net-snmp/files/snmpdnew.rc6 new file mode 100644 index 000000000000..ab69067b51f8 --- /dev/null +++ b/net-analyzer/net-snmp/files/snmpdnew.rc6 @@ -0,0 +1,27 @@ +#!/sbin/runscript + +depend() { + use logger + need net +} + +checkconfig() { + if [ ! -e /etc/snmp/snmpd.conf ] ; then + eerror "You need an /etc/snmp/snmpd.conf config file to run snmpd" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting net-snmpd" + start-stop-daemon --start --quiet --exec /usr/sbin/snmpd \ + -- -p /var/run/snmpd.pid ${SNMPD_FLAGS} + eend $? +} + +stop() { + ebegin "Stopping net-snmpd" + start-stop-daemon --stop --quiet --pidfile /var/run/snmpd.pid + eend $? +} diff --git a/net-analyzer/net-snmp/net-snmp-5.1.ebuild b/net-analyzer/net-snmp/net-snmp-5.1.ebuild new file mode 100644 index 000000000000..70aff464a7c9 --- /dev/null +++ b/net-analyzer/net-snmp/net-snmp-5.1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.1.ebuild,v 1.1 2003/12/17 19:24:17 mholzer Exp $ + +inherit eutils + +DESCRIPTION="Software for generating and retrieving SNMP data." +HOMEPAGE="http://net-snmp.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +RESTRICT="nomirror" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~arm ~hppa ~alpha" +IUSE="perl ipv6 ssl tcpd X" + +PROVIDE="virtual/snmp" +DEPEND="virtual/glibc + <sys-libs/db-2 + >=sys-libs/zlib-1.1.4 + >=sys-apps/sed-4 + ssl? ( >=dev-libs/openssl-0.9.6d ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) + perl? ( + >=sys-devel/libperl-5.8.0 + >=dev-perl/ExtUtils-MakeMaker-6.11-r1 + )" +RDEPEND="${DEPEND} + perl? ( X? ( dev-perl/perl-tk ) ) + !virtual/snmp" + +src_compile() { + local myconf + myconf="${myconf} `use_enable perl embedded-perl`" + myconf="${myconf} `use_with ssl openssl` `use_enable -ssl internal-md5`" + myconf="${myconf} `use_with tcpd libwrap`" + myconf="${myconf} `use_enable ipv6`" + + econf \ + --with-sys-location="Unknown" \ + --with-sys-contact="root@Unknown" \ + --with-default-snmp-version="3" \ + --with-mib-modules="host smux ucd-snmp/dlmod" \ + --with-logfile=/var/log/net-snmpd.log \ + --with-persistent-directory=/var/lib/net-snmp \ + --enable-ucd-snmp-compatibility \ + --enable-shared \ + --with-zlib \ + ${myconf} + + emake -j1 || die "compile problem" + + if [ "`use perl`" ] ; then + emake perlmodules || die "compile perl modules problem" + fi +} + +src_install () { + einstall exec_prefix="${D}/usr" persistentdir="${D}/var/lib/net-snmp" + + if [ "`use perl`" ] ; then + make DESTDIR="${D}" perlinstall || die "make perlinstall failed" + if [ ! "`use X`" ] ; then + rm -f "${D}/usr/bin/tkmib" + fi + else + rm -f "${D}/usr/bin/mib2c" "${D}/usr/bin/tkmib" + fi + + dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO + newdoc EXAMPLE.conf.def EXAMPLE.conf + + exeinto /etc/init.d + newexe "${FILESDIR}/snmpdnew.rc6" snmpd + insinto /etc/conf.d + newins "${FILESDIR}/snmpd.conf" snmpd + + keepdir /etc/snmp /var/lib/net-snmp +} |