summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2007-12-29 20:46:44 +0000
committerPeter Volkov <pva@gentoo.org>2007-12-29 20:46:44 +0000
commit3d673e2d25beba8439450208ecbd2d2c88eb5525 (patch)
tree2c8942efd657928f11365e365315321927263076 /net-analyzer/net-snmp
parentDroped patches for now. Cleaned ebuild a bit... (diff)
downloadpva-3d673e2d25beba8439450208ecbd2d2c88eb5525.tar.gz
pva-3d673e2d25beba8439450208ecbd2d2c88eb5525.tar.bz2
pva-3d673e2d25beba8439450208ecbd2d2c88eb5525.zip
Backported fixes from fedora. Should fix bug #203127.
svn path=/; revision=97
Diffstat (limited to 'net-analyzer/net-snmp')
-rw-r--r--net-analyzer/net-snmp/ChangeLog717
-rw-r--r--net-analyzer/net-snmp/Manifest68
-rw-r--r--net-analyzer/net-snmp/files/digest-net-snmp-5.4.1-r43
-rw-r--r--net-analyzer/net-snmp/files/net-snmp-5.1.2-snmpconf-selinux.patch12
-rw-r--r--net-analyzer/net-snmp/files/net-snmp-5.3.1-multilib.patch20
-rw-r--r--net-analyzer/net-snmp/files/net-snmp-5.4-exec-crash.patch14
-rw-r--r--net-analyzer/net-snmp/files/net-snmp-5.4.1-clientaddr-fix.patch95
-rw-r--r--net-analyzer/net-snmp/files/net-snmp-5.4.1-duplicated-ip.patch266
-rw-r--r--net-analyzer/net-snmp/files/net-snmp-5.4.1-suppresssuppress-annoying.patch17
-rw-r--r--net-analyzer/net-snmp/files/net-snmp-5.4.1-xen-crash.patch157
-rw-r--r--net-analyzer/net-snmp/files/snmpd-5.1.conf17
-rwxr-xr-xnet-analyzer/net-snmp/files/snmpd-5.1.rc630
-rw-r--r--net-analyzer/net-snmp/files/snmpd.conf17
-rw-r--r--net-analyzer/net-snmp/files/snmpd.rc730
-rw-r--r--net-analyzer/net-snmp/files/snmptrapd.conf16
-rw-r--r--net-analyzer/net-snmp/files/snmptrapd.rc722
-rw-r--r--net-analyzer/net-snmp/metadata.xml5
-rw-r--r--net-analyzer/net-snmp/net-snmp-5.4.1-r4.ebuild202
18 files changed, 1708 insertions, 0 deletions
diff --git a/net-analyzer/net-snmp/ChangeLog b/net-analyzer/net-snmp/ChangeLog
new file mode 100644
index 0000000..8b9705a
--- /dev/null
+++ b/net-analyzer/net-snmp/ChangeLog
@@ -0,0 +1,717 @@
+# ChangeLog for net-analyzer/net-snmp
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.164 2007/12/27 20:05:32 pva Exp $
+
+*net-snmp-5.4.1-r3 (27 Dec 2007)
+
+ 27 Dec 2007; <pva@gentoo.org>
+ -files/net-snmp-5.2.1-fix-64bit-interface-counters.diff,
+ -files/net-snmp-5.2.1-fix-insecure-fixproc.diff,
+ -net-snmp-5.2.1.2-r1.ebuild, -net-snmp-5.3.0.1.ebuild,
+ -net-snmp-5.3.1.ebuild, -net-snmp-5.4-r1.ebuild, -net-snmp-5.4.1.ebuild,
+ -net-snmp-5.4.1-r2.ebuild, +net-snmp-5.4.1-r3.ebuild:
+ Added extensible USE flag to build extensible mib module, bug 200279, thank
+ Honza <hkmaly AT bigfoot.com> for report. Remove old.
+
+*net-snmp-5.4.1-r2 (27 Dec 2007)
+
+ 27 Dec 2007; <pva@gentoo.org> files/net-snmp-5.4.1-clientaddr-fix.patch,
+ +files/net-snmp-5.4.1-suppresssuppress-annoying.patch,
+ +net-snmp-5.4.1-r2.ebuild:
+ Fixes memory leaks reported in bug #180266, thank Doug <doug.manley AT
+ gmail.com> for report and ivestigation. Added upstream patch to suppress
+ annoying "registration != duplicate" warning for root oids.
+
+ 19 Nov 2007; Joshua Kinard <kumba@gentoo.org> net-snmp-5.4.1-r1.ebuild:
+ Marked unstable on mips, per #198346.
+
+ 14 Nov 2007; Chris Gianelloni <wolf31o2@gentoo.org>
+ net-snmp-5.4.1-r1.ebuild:
+ Stable on amd64 wrt bug #198346.
+
+ 13 Nov 2007; Tobias Scherbaum <dertobi123@gentoo.org>
+ net-snmp-5.4.1-r1.ebuild:
+ ppc stable, bug #198346
+
+ 09 Nov 2007; Jeroen Roovers <jer@gentoo.org> net-snmp-5.4.1-r1.ebuild:
+ Stable for HPPA (bug #198346).
+
+ 09 Nov 2007; Raúl Porcel <armin76@gentoo.org> net-snmp-5.4.1-r1.ebuild:
+ alpha/ia64/sparc stable wrt security #198346
+
+ 09 Nov 2007; Dawid Węgliński <cla@gentoo.org> net-snmp-5.4.1-r1.ebuild:
+ Stable on x86 (bug #198346)
+
+ 08 Nov 2007; Markus Rothe <corsair@gentoo.org> net-snmp-5.4.1-r1.ebuild:
+ Stable on ppc64; bug #198346
+
+ 08 Nov 2007; Martin Jackson <mjolnir@gentoo.org>
+ +files/net-snmp-maxreps.patch, +net-snmp-5.4-r1.ebuild:
+ Add maxreps patch from upstream, to fix #198346
+
+*net-snmp-5.4-r1 (07 Nov 2007)
+
+ 07 Sep 2007; Martin Jackson <mjolnir@gentoo.org> net-snmp-5.4.1-r1.ebuild:
+ Add dep on setuptools to fix #191504
+
+*net-snmp-5.4.1-r1 (06 Sep 2007)
+
+ 06 Sep 2007; Martin Jackson <mjolnir@gentoo.org>
+ +net-snmp-5.4.1-r1.ebuild:
+ Add support for building python bindings, which ship with the 5.4 series of
+ net-snmp releases
+
+*net-snmp-5.4.1 (17 Aug 2007)
+
+ 17 Aug 2007; Robin H. Johnson <robbat2@gentoo.org>
+ +files/net-snmp-5.4.1-clientaddr-fix.patch, +net-snmp-5.4.1.ebuild:
+ Bump to new upstream release, also apply patch for fixed clientaddr usage.
+
+ 17 May 2007; Raúl Porcel <armin76@gentoo.org> net-snmp-5.4.ebuild:
+ alpha stable wrt #163094
+
+ 12 May 2007; Joshua Kinard <kumba@gentoo.org> net-snmp-5.4.ebuild:
+ Stable on mips.
+
+ 01 May 2007; Marius Mauch <genone@gentoo.org> net-snmp-5.2.1.2-r1.ebuild,
+ net-snmp-5.2.2-r3.ebuild, net-snmp-5.3.0.1.ebuild, net-snmp-5.3.1.ebuild,
+ net-snmp-5.3.1-r1.ebuild, net-snmp-5.4.ebuild:
+ Replacing einfo with elog
+
+ 27 Mar 2007; Markus Ullmann <jokey@gentoo.org> net-snmp-5.2.1.2-r1.ebuild,
+ net-snmp-5.2.2-r3.ebuild, net-snmp-5.3.0.1.ebuild, net-snmp-5.3.1.ebuild,
+ net-snmp-5.3.1-r1.ebuild, net-snmp-5.4.ebuild:
+ Fix ROOT usage
+
+ 31 Jan 2007; Tobias Scherbaum <dertobi123@gentoo.org> net-snmp-5.4.ebuild:
+ Stable on ppc wrt bug #163094.
+
+ 27 Jan 2007; Jeroen Roovers <jer@gentoo.org> net-snmp-5.4.ebuild:
+ Stable for HPPA (bug #163094).
+
+ 26 Jan 2007; <solar@gentoo.org> net-snmp-5.4.ebuild:
+ - mark 5.4 stable on amd64 per kingtaco bug #163094
+
+ 22 Jan 2007; Markus Rothe <corsair@gentoo.org> net-snmp-5.4.ebuild:
+ Stable on ppc64; bug #163094
+
+ 22 Jan 2007; Gustavo Zacarias <gustavoz@gentoo.org> net-snmp-5.4.ebuild:
+ Stable on sparc wrt #163094
+
+ 22 Jan 2007; Christian Faulhammer <opfer@gentoo.org> net-snmp-5.4.ebuild:
+ stable x86, bug #163094
+
+ 27 Nov 2006; Markus Ullmann <jokey@gentoo.org> ChangeLog:
+ Redigest
+
+*net-snmp-5.4 (26 Nov 2006)
+
+ 26 Nov 2006; Cedric Krier <cedk@gentoo.org>
+ +files/net-snmp-5.4-makefile.patch, +files/snmpd.conf, +files/snmpd.rc7,
+ +files/snmptrapd.rc7, +net-snmp-5.4.ebuild:
+ Version bump
+
+*net-snmp-5.3.1-r1 (23 Oct 2006)
+
+ 23 Oct 2006; Matthew Marlowe <mattm@gentoo.org>
+ +files/net-snmp-5.3.1-retrans-time.patch,
+ +files/net-snmp-5.3.1-tcp-udp-mib-byteorder.patch,
+ +net-snmp-5.3.1-r1.ebuild:
+ Adding several critical patches (source: redhat/fedora) for net-snmp 5.3.1 and
+ modifying the net-snmp-5.3.1-r1 ebuild to automatically apply them.
+ Hopefully, the patches will fix some amd64 and possibly sun issues.
+
+ 22 Oct 2006; Matthew Marlowe <mattm@gentoo.org> ChangeLog:
+ version bump (5.3.1), fixed bugs #120412 and #152166.
+
+ 21 Sep 2006; Markus Ullmann <jokey@gentoo.org> net-snmp-5.3.0.1.ebuild:
+ Stripping tuned CFLAGS per bug #147543 -- thanks to Jimmy Jazz
+
+ 04 Jun 2006; Diego Pettenò <flameeyes@gentoo.org>
+ files/net-snmp-5.2.2-asneeded.patch:
+ Improve the patch for --as-needed. Closes bug #132659.
+
+*net-snmp-5.2.2-r3 (11 Feb 2006)
+
+ 11 Feb 2006; Marcelo Goes <vanquirius@gentoo.org>
+ -net-snmp-5.2.2-r2.ebuild, +net-snmp-5.2.2-r3.ebuild,
+ net-snmp-5.3.0.1.ebuild:
+ Install example configuration file for bug 113788. Thanks to Allen Parker
+ <infowolfe at gmail dot com>.
+
+*net-snmp-5.2.2-r2 (05 Feb 2006)
+
+ 05 Feb 2006; Marcelo Goes <vanquirius@gentoo.org>
+ -net-snmp-5.2.2-r1.ebuild, +net-snmp-5.2.2-r2.ebuild,
+ net-snmp-5.3.0.1.ebuild:
+ Add mfd-rewrites USE flag for bug 105047. Thanks to Micheal Marineau
+ <marineam at gentoo dot org> and Michiel Muhlenbaumer <michiel dot
+ muhlenbaumer at gmail dot com>.
+
+ 04 Feb 2006; Marcelo Goes <vanquirius@gentoo.org>
+ net-snmp-5.2.1.2-r1.ebuild, net-snmp-5.2.2-r1.ebuild,
+ net-snmp-5.3.0.1.ebuild:
+ Use net-snmp's built-in lm_sensors support, thanks to Daniel Willmann
+ <willmann dot daniel at web dot de> in bug 109785. Our patch is still
+ commented out.
+
+*net-snmp-5.3.0.1 (26 Jan 2006)
+
+ 26 Jan 2006; Marcelo Goes <vanquirius@gentoo.org>
+ -net-snmp-5.3_rc2.ebuild, +net-snmp-5.3.0.1.ebuild:
+ 5.3.0.1 version bump for bug 120412. Thanks to Frederic Mangeant <frederic
+ dot mangeant at gmail dot com>.
+
+ 23 Jan 2006; Marcelo Goes <vanquirius@gentoo.org>
+ net-snmp-5.2.1.2-r1.ebuild, net-snmp-5.2.2-r1.ebuild,
+ net-snmp-5.3_rc2.ebuild:
+ Commented lm_sensors patch because it has a memory leak. Please see bug
+ 109785. If you can fix this problem, please attach a patch.
+
+*net-snmp-5.2.2-r1 (16 Jan 2006)
+
+ 16 Jan 2006; Marcelo Goes <vanquirius@gentoo.org>
+ -net-snmp-5.1.3.1.ebuild, -net-snmp-5.2.2.ebuild,
+ +net-snmp-5.2.2-r1.ebuild, net-snmp-5.3_rc2.ebuild:
+ Install net-snmp-config even with USE=minimal. Fixes bug 104193. Thanks to
+ Sven Wegener <swegener at gentoo dot org>.
+
+ 16 Jan 2006; Marcelo Goes <vanquirius@gentoo.org> net-snmp-5.1.3.1.ebuild,
+ net-snmp-5.2.1.2-r1.ebuild, net-snmp-5.2.2.ebuild,
+ net-snmp-5.3_rc2.ebuild:
+ Remove useless sys-libs/db dependency for bug 104195. Thanks to Sven Wegener
+ <swegener at gentoo dot org>.
+
+ 06 Jan 2006; Marcelo Goes <vanquirius@gentoo.org>
+ +files/net-snmp-5.2.2-asneeded.patch, net-snmp-5.2.2.ebuild:
+ Add patch from bug 118016 to allow use of --as-needed. Thanks to Diego
+ Petteno <flameeyes at gentoo dot org>.
+
+*net-snmp-5.3_rc2 (26 Dec 2005)
+*net-snmp-5.2.2 (26 Dec 2005)
+
+ 26 Dec 2005; Marcelo Goes <vanquirius@gentoo.org>
+ +files/net-snmp-5.2.2-conf-elf-rpm-bz2.patch, +net-snmp-5.2.2.ebuild,
+ -net-snmp-5.3_pre4.ebuild, +net-snmp-5.3_rc2.ebuild,
+ -net-snmp-5.3.20050624.ebuild, -net-snmp-5.3.20050624-r1.ebuild:
+ 5.2.2 and 5.3_rc2 version bumps for bug 116392. fix-insecure-fixproc was
+ fixed upstream, so this patch can be dropped. Thanks to Frederic Mangeant
+ <frederic dot mangeant at gmail dot com>.
+
+*net-snmp-5.3_pre4 (26 Nov 2005)
+
+ 26 Nov 2005; Benjamin Smee <strerror@gentoo.org>
+ +net-snmp-5.3_pre4.ebuild:
+ New version for bug #113260
+
+*net-snmp-5.3.20050624-r1 (26 Nov 2005)
+
+ 26 Nov 2005; Benjamin Smee <strerror@gentoo.org>
+ +net-snmp-5.3.20050624-r1.ebuild:
+ added diskio USE flag for bug #106053
+
+*net-snmp-5.2.1.2-r1 (04 Sep 2005)
+
+ 04 Sep 2005; Aaron Walker <ka0ttic@gentoo.org> -net-snmp-5.2.1.2.ebuild,
+ +net-snmp-5.2.1.2-r1.ebuild:
+ Revision bump for the previous change.
+
+ 02 Sep 2005; Aaron Walker <ka0ttic@gentoo.org> -net-snmp-5.1.1-r1.ebuild,
+ net-snmp-5.1.3.1.ebuild, -net-snmp-5.2.1-r1.ebuild,
+ net-snmp-5.2.1.2.ebuild, net-snmp-5.3.20050624.ebuild:
+ Add sedfu to fix insecure runpath issues, bug 103776; tidy old ebuilds.
+
+*net-snmp-5.1.3.1 (05 Aug 2005)
+
+ 05 Aug 2005; Aaron Walker <ka0ttic@gentoo.org> -net-snmp-5.1.3.ebuild,
+ +net-snmp-5.1.3.1.ebuild:
+ New 5.1.x release.
+
+ 24 Jul 2005; Hardave Riar <hardave@gentoo.org> net-snmp-5.2.1.2.ebuild:
+ Stable on mips, bug #99680.
+
+ 23 Jul 2005; Bryan Østergaard <kloeri@gentoo.org>
+ net-snmp-5.2.1.2.ebuild:
+ Stable on alpha + ia64, bug 99680.
+
+ 22 Jul 2005; Herbie Hopkins <herbs@gentoo.org> net-snmp-5.2.1.2.ebuild:
+ Stable on amd64 wrt bug #99680.
+
+ 22 Jul 2005; Joseph Jezak <josejx@gentoo.org> net-snmp-5.2.1.2.ebuild:
+ Marked ppc stable for bug #99680.
+
+ 21 Jul 2005; Markus Rothe <corsair@gentoo.org> net-snmp-5.2.1.2.ebuild:
+ Stable on ppc64 (bug #99680)
+
+ 21 Jul 2005; Rene Nussbaumer <killerfox@gentoo.org>
+ net-snmp-5.2.1.2.ebuild:
+ Stable on hppa. bug #99680
+
+ 21 Jul 2005; Aaron Walker <ka0ttic@gentoo.org> net-snmp-5.2.1.2.ebuild:
+ Stable on sparc wrt sec bug 99680.
+
+*net-snmp-5.2.1.2 (20 Jul 2005)
+
+ 20 Jul 2005; Daniel Black <dragonheart@gentoo.org>
+ +net-snmp-5.2.1.2.ebuild:
+ version bump for security bug #99680
+
+*net-snmp-5.1.3 (04 Jul 2005)
+
+ 04 Jul 2005; Aaron Walker <ka0ttic@gentoo.org> -files/net-snmp-proc.patch,
+ -files/snmpd.conf, -files/snmpd.rc6, -net-snmp-5.1.1.ebuild,
+ net-snmp-5.1.1-r1.ebuild, -net-snmp-5.1.3_pre1.ebuild,
+ +net-snmp-5.1.3.ebuild, -net-snmp-5.2.ebuild, -net-snmp-5.2-r3.ebuild,
+ -net-snmp-5.2.1.ebuild, net-snmp-5.2.1-r1.ebuild,
+ net-snmp-5.3.20050624.ebuild:
+ Version bump (5.1.3 final); tidy old ebuilds/patches/cruft. Also added BSD
+ to LICENSE.
+
+ 03 Jul 2005; Hardave Riar <hardave@gentoo.org> net-snmp-5.2.1-r1.ebuild:
+ Stable on mips bug #91792.
+
+*net-snmp-5.3.20050624 (25 Jun 2005)
+
+ 25 Jun 2005; Aaron Walker <ka0ttic@gentoo.org>
+ +net-snmp-5.3.20050624.ebuild:
+ Added 5.3 cvs snapshot for interested folks to play with. Is currently (and
+ will remain) package.mask'd.
+
+*net-snmp-5.1.3_pre1 (21 Jun 2005)
+
+ 21 Jun 2005; Aaron Walker <ka0ttic@gentoo.org>
+ +net-snmp-5.1.3_pre1.ebuild:
+ Version bump (5.1.x line) for first 5.1.3 pre-release.
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> net-snmp-5.2.ebuild:
+ dev-perl/ExtUtils-MakeMaker => perl-core/ExtUtils-MakeMaker migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org> net-snmp-5.1.1.ebuild:
+ dev-perl/ExtUtils-MakeMaker => perl-core/ExtUtils-MakeMaker migration
+
+ 25 May 2005; Michael Cummings <mcummings@gentoo.org>
+ net-snmp-5.1.1-r1.ebuild:
+ dev-perl/ExtUtils-MakeMaker => perl-core/ExtUtils-MakeMaker migration
+
+ 20 May 2005; Bryan Østergaard <kloeri@gentoo.org>
+ net-snmp-5.2.1-r1.ebuild:
+ Stable on alpha + ia64, bug 91792.
+
+ 18 May 2005; Jason Wever <weeve@gentoo.org> net-snmp-5.2.1-r1.ebuild:
+ Stable on SPARC wrt security bug #91792.
+
+ 18 May 2005; Rene Nussbaumer <killerfox@gentoo.org>
+ net-snmp-5.2.1-r1.ebuild:
+ Stable on hppa; bug #91792
+
+ 18 May 2005; Jan Brinkmann <luckyduck@gentoo.org>
+ net-snmp-5.2.1-r1.ebuild:
+ stable on amd64 wrt #91792
+
+ 18 May 2005; Michael Hanselmann <hansmi@gentoo.org>
+ net-snmp-5.2.1-r1.ebuild:
+ Stable on ppc.
+
+ 18 May 2005; Markus Rothe <corsair@gentoo.org> net-snmp-5.2.1-r1.ebuild:
+ Stable on ppc64; bug #91792
+
+*net-snmp-5.2.1-r1 (18 May 2005)
+
+ 18 May 2005; Aaron Walker <ka0ttic@gentoo.org>
+ +files/net-snmp-5.2.1-fix-insecure-fixproc.diff,
+ +net-snmp-5.2.1-r1.ebuild:
+ Revision bump; added patch to fix fixproc insecure tmpfile handling, sec bug
+ 91792.
+
+ 17 May 2005; Aaron Walker <ka0ttic@gentoo.org> metadata.xml,
+ net-snmp-5.2.1.ebuild:
+ Add missing lm_sensors conditional for mibs, bug 92513.
+
+ 28 Apr 2005; Aaron Walker <ka0ttic@gentoo.org> net-snmp-5.2.1.ebuild:
+ Only dep on TermReadKey if perl and !minimal. Thanks to solar for pointing
+ this out.
+
+ 24 Apr 2005; Aaron Walker <ka0ttic@gentoo.org> net-snmp-5.2.1.ebuild:
+ Removed || die after make test as there are legitimate reasons it might fail
+ (user doesnt already have a working config or an improperly configured/down
+ ethernet interface). Instead, display a message to the user explaining why 1
+ or 2 failed tests is ok.
+
+ 20 Apr 2005; Simon Stelling <blubb@gentoo.org> net-snmp-5.2.1.ebuild:
+ stable on amd64
+
+ 20 Apr 2005; Gustavo Zacarias <gustavoz@gentoo.org> net-snmp-5.2.1.ebuild:
+ Stable on sparc
+
+ 19 Apr 2005; Aaron Walker <ka0ttic@gentoo.org> net-snmp-5.2.1.ebuild:
+ Marked stable on x86.
+
+ 09 Apr 2005; Markus Rothe <corsair@gentoo.org> net-snmp-5.2.1.ebuild:
+ Stable on ppc64
+
+ 08 Apr 2005; Michael Hanselmann <hansmi@gentoo.org> net-snmp-5.2.ebuild:
+ Stable on ppc.
+
+ 07 Apr 2005; Simon Stelling <blubb@gentoo.org> net-snmp-5.2.ebuild:
+ stable on amd64
+
+ 22 Mar 2005; Aaron Walker <ka0ttic@gentoo.org> net-snmp-5.2.1.ebuild:
+ Fix src_test access violation for bug 82342. Many thanks to soulse for
+ tracking this down.
+
+ 15 Mar 2005; Aaron Walker <ka0ttic@gentoo.org> net-snmp-5.2-r3.ebuild,
+ net-snmp-5.2.1.ebuild:
+ Updated to use new fixlocalpod function from perl-module.eclass instead of
+ the nasty perl-module_src_install hack - see bug 83622.
+
+ 27 Feb 2005; Henrik Brix Andersen <brix@gentoo.org>
+ net-snmp-5.1.1-r1.ebuild, net-snmp-5.2-r3.ebuild, net-snmp-5.2.ebuild:
+ Dependency update: sys-apps/lm-sensors -> sys-apps/lm_sensors.
+
+ 27 Feb 2005; Henrik Brix Andersen <brix@gentoo.org> net-snmp-5.2.1.ebuild:
+ Dependency update: sys-apps/lm-sensors -> sys-apps/lm_sensors.
+
+ 21 Feb 2005; Daniel Black <dragonheart@gentoo.org> net-snmp-5.1.1-r1.ebuild,
+ net-snmp-5.1.1.ebuild, net-snmp-5.2-r3.ebuild, net-snmp-5.2.1.ebuild,
+ net-snmp-5.2.ebuild:
+ removed PROVIDE virtual/snmp
+
+ 20 Feb 2005; Hardave Riar <hardave@gentoo.org> net-snmp-5.2.ebuild:
+ Stable on mips
+
+ 18 Feb 2005; Daniel Black <dragonheart@gentoo.org> net-snmp-5.2.1.ebuild:
+ Giving full USE flag options to ppc64 as per bug #82341.
+
+ 17 Feb 2005; Daniel Black <dragonheart@gentoo.org>
+ +files/net-snmp-5.2.1-conf-elf-rpm-bz2.patch, net-snmp-5.2.1.ebuild:
+ Dependancy fixed as per bug #69775. Thanks Carsten Lohrke <carlo@gentoo.org>
+
+ 12 Feb 2005; Jason Wever <weeve@gentoo.org> net-snmp-5.2.ebuild:
+ Stable on sparc.
+
+*net-snmp-5.2.1 (09 Feb 2005)
+
+ 09 Feb 2005; Aaron Walker <ka0ttic@gentoo.org> +net-snmp-5.2.1.ebuild:
+ New upstream bugfix release.
+
+ 02 Feb 2005; Aaron Walker <ka0ttic@gentoo.org> net-snmp-5.1.1-r1.ebuild,
+ net-snmp-5.1.1.ebuild, net-snmp-5.2-r3.ebuild, net-snmp-5.2.ebuild:
+ Added dev-perl/TermReadKey as a dep for bug 78023.
+
+ 02 Feb 2005; Aaron Walker <ka0ttic@gentoo.org> net-snmp-5.2-r3.ebuild:
+ Use perl-module.eclass and let it handle perllocal.pod to prevent a file
+ collision - bug 80041.
+
+*net-snmp-5.2-r3 (30 Jan 2005)
+
+ 30 Jan 2005; Aaron Walker <ka0ttic@gentoo.org> -net-snmp-5.2-r2.ebuild,
+ +net-snmp-5.2-r3.ebuild:
+ Yet another revision bump; install html docs if USE=doc for bug 79934.
+
+ 28 Jan 2005; Aaron Walker <ka0ttic@gentoo.org> net-snmp-5.2-r2.ebuild:
+ Fixed perms on snmptrapd init script. Thanks to Weeve for letting me know.
+
+*net-snmp-5.2-r2 (28 Jan 2005)
+
+ 28 Jan 2005; Aaron Walker <ka0ttic@gentoo.org> +files/snmptrapd.conf,
+ net-snmp-5.1.1-r1.ebuild, net-snmp-5.1.1.ebuild, -net-snmp-5.1.2.ebuild,
+ -net-snmp-5.2-r1.ebuild, +net-snmp-5.2-r2.ebuild, net-snmp-5.2.ebuild:
+ Revision bump; added conf script (w/ a few sed's we can reuse snmpd's init)
+ for snmptrapd (bug 61705). Also added selinux support (via
+ sec-policy/selinux-snmpd) for bug 79749. Marked 5.2 stable on x86 and tidy'd
+ old ebuilds.
+
+*net-snmp-5.2-r1 (26 Jan 2005)
+
+ 26 Jan 2005; Aaron Walker <ka0ttic@gentoo.org> +net-snmp-5.2-r1.ebuild:
+ Revision bump; added local USE flag smux for bug 77871. Also, use ht_fix_all
+ from fixheadtails.eclass rather than the nasty sed ... * call.
+
+ 08 Jan 2005; Daniel Black <dragonheart@gentoo.org> net-snmp-5.2.ebuild:
+ tail -1 problem fixed from bug #69775
+
+ 29 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> :
+ Change encoding to UTF-8 for GLEP 31 compliance
+
+ 19 Dec 2004; Bryan Østergaard <kloeri@gentoo.org>
+ net-snmp-5.1.1-r1.ebuild:
+ Stable on alpha.
+
+ 17 Dec 2004; Eldad Zack <eldad@gentoo.org> net-snmp-5.2.ebuild:
+ autoconf re-fix (perl), changed sedding to be line-number independant for
+ future releases. Closes #59605.
+
+ 16 Dec 2004; Dylan Carlson <absinthe@gentoo.org> net-snmp-5.1.1-r1.ebuild:
+ Stable on amd64.
+
+*net-snmp-5.2 (27 Nov 2004)
+
+ 27 Nov 2004; Martin Holzer <mholzer@gentoo.org> +net-snmp-5.2.ebuild:
+ VErsion bumped.
+
+ 23 Nov 2004; Gustavo Zacarias <gustavoz@gentoo.org>
+ net-snmp-5.1.1-r1.ebuild:
+ Stable on sparc
+
+ 22 Nov 2004; Eldad Zack <eldad@gentoo.org> -net-snmp-5.0.9-r1.ebuild,
+ -net-snmp-5.0.9-r3.ebuild, net-snmp-5.1.1-r1.ebuild, -net-snmp-5.1.ebuild:
+ 5.1.1-r1 x86 stable. pruned 5.0.9 and 5.1.
+
+*net-snmp-5.1.2 (16 Nov 2004)
+
+ 16 Nov 2004; Martin Holzer <mholzer@gentoo.org> +net-snmp-5.1.2.ebuild:
+ Version bumped. Closes 68467
+
+ 03 Nov 2004; Bret Curtis <psi29a@gentoo.org> net-snmp-5.1.1-r1.ebuild:
+ marked ~mips for testing
+
+ 01 Nov 2004; Lars Weiler <pylon@gentoo.org> net-snmp-5.1.1-r1.ebuild:
+ Stable on ppc for PHP5, Bug #60442.
+
+ 27 Oct 2004; Eldad Zack <eldad@gentoo.org> net-snmp-5.1.1-r1.ebuild:
+ Fixed sed typo. Closes #69069.
+
+ 26 Oct 2004; Eldad Zack <eldad@gentoo.org> files/net-snmp-lm_sensors.patch:
+ Fixed lm_sensors patch to dlopen libsensors.so instead of libsensors.so.2.
+ Thanks to Chris Boot <bootc@bootc.net>. Closes #68856
+
+ 25 Oct 2004; Eldad Zack <eldad@gentoo.org> net-snmp-5.1.1-r1.ebuild,
+ net-snmp-5.1.1.ebuild:
+ Fixed net-snmp-config to include tcp-wrappers libs (if used), wrt Bug #68254.
+
+ 16 Oct 2004; <solar@gentoo.org> net-snmp-5.1.1-r1.ebuild:
+ removed erroneous RDEPEND on sed4
+
+ 26 Aug 2004; <solar@gentoo.org> net-snmp-5.1.1-r1.ebuild:
+ minimal USE flag added to net-snmp to yield a smaller net-snmp package. bug
+ #61401
+
+ 14 Aug 2004; Sven Wegener <swegener@gentoo.org> files/snmpd.conf:
+ Trimmed trailing whitespace.
+
+ 10 Aug 2004; Eldad Zack <eldad@gentoo.org> net-snmp-5.1.1-r1.ebuild,
+ net-snmp-5.1.1.ebuild:
+ autoconf fix: configure didn't respect --disable-embedded-perl. Closes #59605.
+
+ 08 Aug 2004; Guy Martin <gmsoft@gentoo.org> net-snmp-5.1.1-r1.ebuild:
+ Stable on hppa.
+
+ 08 Aug 2004; Bryan Østergaard <kloeri@gentoo.org> net-snmp-5.1.1.ebuild:
+ Stable on alpha.
+
+ 26 Jul 2004; Tom Gall <tgall@gentoo.org> net-snmp-5.1.1.ebuild:
+ stable on ppc64
+
+*net-snmp-5.1.1-r1 (21 Jul 2004)
+
+ 21 Jul 2004; Eldad Zack <eldad@gentoo.org> +files/net-snmp-lm_sensors.patch,
+ +net-snmp-5.1.1-r1.ebuild:
+ Added lm_sensor support (only for amd64 and x86). Thanks to Joshua Gerrish
+ <jgerrish@itsdarkhere.com> for the patch. Closes #57450.
+
+ 21 Jul 2004; Travis Tilley <lv@gentoo.org> net-snmp-5.1.1.ebuild:
+ stable on amd64
+
+ 15 Jul 2004; Tom Gall <tgall@gentoo.org> net-snmp-5.1.1.ebuild:
+ added ~ppc64, bug #55548
+
+ 12 Jul 2004; Eldad Zack <eldad@gentoo.org> net-snmp-5.0.9-r1.ebuild,
+ net-snmp-5.0.9-r3.ebuild, net-snmp-5.1.1.ebuild, net-snmp-5.1.ebuild:
+ Fixed 'use_enable -ssl' to be 'use_enable !ssl'
+
+ 09 Jul 2004; Lars Weiler <pylon@gentoo.org> net-snmp-5.1.1.ebuild:
+ Stable on ppc.
+
+ 08 Jul 2004; Jason Wever <weeve@gentoo.org> net-snmp-5.1.1.ebuild:
+ Stable on sparc.
+
+ 04 Jul 2004; Robin H. Johnson <robbat2@gentoo.org> net-snmp-5.1.1.ebuild:
+ mark stable for x86, as requested by solar.
+
+ 01 Jul 2004; Jon Hood <squinky86@gentoo.org> net-snmp-5.0.9-r1.ebuild,
+ net-snmp-5.0.9-r3.ebuild, net-snmp-5.1.1.ebuild, net-snmp-5.1.ebuild:
+ change virtual/glibc to virtual/libc
+
+ 09 Jun 2004; Aron Griffis <agriffis@gentoo.org> net-snmp-5.0.9-r1.ebuild,
+ net-snmp-5.0.9-r3.ebuild, net-snmp-5.1.1.ebuild, net-snmp-5.1.ebuild:
+ Fix use invocation
+
+ 11 May 2004; Michael McCabe <randy@gentoo.org> net-snmp-5.1.1.ebuild:
+ Added s390 keywords
+
+ 26 Apr 2004; Aron Griffis <agriffis@gentoo.org> net-snmp-5.0.9-r1.ebuild,
+ net-snmp-5.0.9-r3.ebuild, net-snmp-5.1.1.ebuild, net-snmp-5.1.ebuild:
+ Add die following econf for bug 48950
+
+*net-snmp-5.1.1 (10 Apr 2004)
+
+ 10 Apr 2004; Martin Holzer <mholzer@gentoo.org> metadata.xml,
+ net-snmp-5.1.1.ebuild, files/snmpd-5.1.conf, files/snmpd-5.1.rc6,
+ files/snmpd.conf, files/snmpd.rc6:
+ Version bumped.
+
+ 20 Jan 2004; Max Kalika <max@gentoo.org> net-snmp-5.1.ebuild,
+ files/snmpd-5.1.conf:
+ Fix logging command-line parameters for version 5.1.
+
+ 16 Jan 2004; Max Kalika <max@gentoo.org> net-snmp-5.0.9-r3.ebuild,
+ net-snmp-5.1.ebuild, files/snmpd-5.1.rc6, files/snmpdnew.rc6:
+ Fix head/tail syntax. Submitted by Tony Vroon on bug #33851. Rename new rc6
+ file for future flexibility.
+
+ 10 Jan 2004; <agriffis@gentoo.org> net-snmp-5.1.ebuild:
+ stable on alpha and ia64
+
+*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:
+ adding RESTRICT="nomirror"
+
+ 20 Nov 2003; Tavis Ormandy <taviso@gentoo.org> net-snmp-5.0.9-r1.ebuild:
+ stable on alpha
+
+*net-snmp-5.0.9-r3 (12 Nov 2003)
+
+ 12 Nov 2003; <max@gentoo.org> net-snmp-5.0.9-r3.ebuild,
+ files/net-snmp-proc.patch:
+ Add /proc patch from net-snmp CVS. Bump to version 5.0.9-r3. Fixes bug 33249.
+
+ 30 Oct 2003; Max Kalika <max@gentoo.org> files/snmpd.conf, files/snmpd.rc6:
+ Add connection logging example and do away with config file settings -- snmpd
+ already looks in /etc/snmp/snmpd.conf by itself.
+
+ 30 Oct 2003; Max Kalika <max@gentoo.org> files/snmpd.rc6:
+ Use pidfile.
+
+ 20 Oct 2003; Max Kalika <max@gentoo.org> net-snmp-5.0.9-r2.ebuild:
+ Add DEPEND on ExtUtils-MakeMaker-6.11-r1 to fix sandbox problems.
+
+ 20 Oct 2003; Max Kalika <max@gentoo.org> net-snmp-5.0.9-r2.ebuild:
+ Make the perl-tk stuff depend on the X USE flag as well. Remove some things
+ that don't work anyway when USE=-perl.
+
+ 20 Oct 2003; Max Kalika <max@gentoo.org> net-snmp-5.0.9-r2.ebuild:
+ Add perl? ( dev-perl/perl-tk ) to RDEPEND.
+
+*net-snmp-5.0.9-r2 (19 Oct 2003)
+
+ 19 Oct 2003; Max Kalika <max@gentoo.org> net-snmp-5.0.9-r2.ebuild:
+ Add experimental perl support. Fixes bugs 29603 and 30439.
+
+ 19 Oct 2003; Max Kalika <max@gentoo.org> net-snmp-5.0.9-r1.ebuild:
+ Add ucd-snmp/dlmod MIB support. Fixes bug 31217.
+
+ 01 Oct 2003; Max Kalika <max@gentoo.org> files/snmpd.rc6:
+ Remove -C from startup script.
+
+ 23 Sep 2003; Max Kalika <max@gentoo.org> net-snmp-5.0.1.ebuild,
+ net-snmp-5.0.2a-r1.ebuild, net-snmp-5.0.2a.ebuild, net-snmp-5.0.6-r1.ebuild,
+ net-snmp-5.0.6.ebuild, net-snmp-5.0.8.ebuild, net-snmp-5.0.9-r1.ebuild,
+ net-snmp-5.0.9.ebuild, files/net-snmp-5.0.6-gentoo.diff,
+ files/net-snmpd.rc6, files/snmpd.conf, files/snmpd.rc6:
+ Purge all the no-longer download-able versions and tweak some minor tidbits.
+
+*net-snmp-5.0.9-r1 (19 Sep 2003)
+
+ 01 Nov 2003; Guy Martin <gmsoft@gentoo.org> net-snmp-5.0.9-r1.ebuild:
+ Marked stable on hppa.
+
+ 19 Sep 2003; Max Kalika <max@gentoo.org> net-snmp-5.0.9-r1.ebuild,
+ files/snmpd.conf, files/snmpd.rc6:
+ Major cleanup/rewrite: quote variables where possible; whitespace consistancy;
+ use more ebuild semantics (use_with, use_enable); put config in /etc/snmp
+ instead of /usr/share; add smux support; and new rc6 and corresponding conf
+ file for extra flexibility. Drop unneccessary die() calls. Start with an empty
+ set of SNMPD_FLAGS in snmpd.conf. Add "use logger" to depend() of snmpd.rc6.
+ Drop unneeded --with-cflags, --host, and --enable-shared parameters to econf.
+ Clean up ssl flags. Enable ucd-snmp compatibility and block virtual/snmp.
+ Fixes bugs 5882, 15536, 27177, 27308, and probably 14288.
+
+*net-snmp-5.0.9 (19 Sep 2003)
+
+ 19 Sep 2003; Max Kalika <max@gentoo.org> metadata.xml,
+ net-snmp-5.0.9.ebuild:
+ Bump to version 5.0.9.
+
+ 31 Jul 2003; Aron Griffis <agriffis@gentoo.org> net-snmp-5.0.6-r1.ebuild,
+ net-snmp-5.0.8.ebuild:
+ Mark 5.0.6-r1 stable on alpha, and 5.0.8 testing on ~alpha
+
+ 01 Jul 2003; Martin Holzer <mholzer@gentoo.org> net-snmp-5.0.6-r1.ebuild,
+ net-snmp-5.0.8.ebuild:
+ Fixing typo. Closes #23811
+
+ 07 Jun 2003; <rac@gentoo.org> net-snmp-5.0.6-r1.ebuild,
+ net-snmp-5.0.6.ebuild, net-snmp-5.0.8.ebuild:
+ Add sed-4 dependency for ebuilds that use sed -i
+
+ 05 Jun 2003; <rac@gentoo.org> net-snmp-5.0.6-r1.ebuild,
+ net-snmp-5.0.8.ebuild:
+ Disable the 5.0.6 patch in 5.0.8, as it doesn't exist, and builds without it.
+ Change ${PF} to ${P} so that 5.0.6-r1 finds the patch.
+
+*net-snmp-5.0.8 (26 May 2003)
+
+ 26 May 2003; Daniel Ahlberg <aliz@gentoo.org> net-snmp-5.0.8.ebuild :
+ Version bump.
+
+*net-snmp-5.0.6-r1 (26 May 2003)
+
+ 14 Jun 2003; Guy Martin <gmsoft@gentoo.org> net-snmp-5.0.6-r1.ebuild :
+ Added hppa to KEYWORDS.
+
+ 26 May 2003; Daniel Ahlberg <aliz@gentoo.org> net-snmp-5.0.6-r1.ebuild :
+ Added virtual/snmp.
+
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+
+*net-snmp-5.0.6 (14 Oct 2002)
+
+ 29 Mar 2003; Aron Griffis <agriffis@gentoo.org> net-snmp-5.0.6.ebuild:
+ Add ~alpha to KEYWORDS
+
+ 07 May 2003; Kyle Manna <nitro@gentoo.org> net-snmp-5.0.6.ebuild:
+ Commented out kerberos support, generates compile errors.
+
+ 02 May 2003; Kyle Manna <nitro@gentoo.org> net-snmp-5.0.6.ebuild:
+ Removed double quotes. Closes #5882. Now using sed for kerberos.
+
+ 21 Apr 2003; Martin Holzer <mholzer@gentoo.org> Manifest,
+ net-snmp-5.0.6.ebuild, files/net-snmpd.rc6:
+ Fixing type in doc info. Closes #15535.
+
+ 06 Apr 2003; Zach Welch <zwelch@gentoo.org> net-snmp-5.0.6.ebuild:
+ add arm keyword
+
+ 14 Oct 2002; Daniel Ahlberg <aliz@gentoo.org> :
+ Security update. Added patch to fix compilation with libwrap.
+
+*net-snmp-5.0.2a-r1 (4 Aug 2002)
+
+ 28 Sep 2002; Owen Stampflee <owen@gentoo.org> :
+ Added PPC to KEYWORDS.
+
+ 4 Aug 2002; Kyle Manna <nitro@gentoo.org> net-snmp-5.0.2a-r1.ebuild:
+
+ Closed bug #5882, manually recreate the symlink.
+
+*net-snmp-5.0.2a (23 Jul 2002)
+
+ 23 Jul 2002; Kyle Manna <nitro@gentoo.org> net-snmp-5.0.2a.ebuild:
+ Version bump, dropped emake in favor of make, add the host MIB module, and
+ commented out ipv6 transports.
+
+*net-snmp-5.0.1 (29 Jun 2002)
+
+ 29 Jun 2002; Bruce A. Locke <blocke@shivan.org> net-snmp-5.0.1.ebuild:
+ ucd-snmp has been renamed to net-snmp and this release appears to be
+ source incompatible with ucd-snmp
+
+ Known Issue: The new optional perl module support is disabled (due to
+ configure/make issues) until someone who is familiar with the functionality
+ can contribute a patch.
diff --git a/net-analyzer/net-snmp/Manifest b/net-analyzer/net-snmp/Manifest
new file mode 100644
index 0000000..61f50d2
--- /dev/null
+++ b/net-analyzer/net-snmp/Manifest
@@ -0,0 +1,68 @@
+AUX net-snmp-5.1.2-snmpconf-selinux.patch 286 RMD160 c78fd9d2a563ebafd21aa85a582b989a805eb645 SHA1 159990e855cfeb50ac3657d1b97eda181d4ffb9e SHA256 70b4bdaa243efd5ae5703b3272063314fc56b6e2333f7c650b635ddab141f874
+MD5 66538f49679e0c825631d4e4896a3b5e files/net-snmp-5.1.2-snmpconf-selinux.patch 286
+RMD160 c78fd9d2a563ebafd21aa85a582b989a805eb645 files/net-snmp-5.1.2-snmpconf-selinux.patch 286
+SHA256 70b4bdaa243efd5ae5703b3272063314fc56b6e2333f7c650b635ddab141f874 files/net-snmp-5.1.2-snmpconf-selinux.patch 286
+AUX net-snmp-5.3.1-multilib.patch 869 RMD160 5352696f4d033f05a509910081d7edcea3e71c7e SHA1 90c627e8f04f925034e1d54c97fdffcd9fbc08ff SHA256 51e435ae277d4aac753c1874427b1dc9346931c6a2f9a17ac067813694a086e1
+MD5 72cddc9d27388ed6768a4c4ca5a363dd files/net-snmp-5.3.1-multilib.patch 869
+RMD160 5352696f4d033f05a509910081d7edcea3e71c7e files/net-snmp-5.3.1-multilib.patch 869
+SHA256 51e435ae277d4aac753c1874427b1dc9346931c6a2f9a17ac067813694a086e1 files/net-snmp-5.3.1-multilib.patch 869
+AUX net-snmp-5.4-exec-crash.patch 567 RMD160 fe110ace0ae451a8cf25d18d4133fb0d85dcaf5c SHA1 4a4538958e4c805981e1f0da4d6f1980a03aeab6 SHA256 2c4d3d281380d394d0d349c37839bb89f3d82d3e1c43513e042d24126441741c
+MD5 8ecda6f59276d86b4d533a77c6b47c68 files/net-snmp-5.4-exec-crash.patch 567
+RMD160 fe110ace0ae451a8cf25d18d4133fb0d85dcaf5c files/net-snmp-5.4-exec-crash.patch 567
+SHA256 2c4d3d281380d394d0d349c37839bb89f3d82d3e1c43513e042d24126441741c files/net-snmp-5.4-exec-crash.patch 567
+AUX net-snmp-5.4.1-clientaddr-fix.patch 4013 RMD160 52c45d7dd34b5aadcfd7ef48c445d47b5491936d SHA1 714fc3fccc65516ae2a6d836ce181edfd4dc83c3 SHA256 15a8f05e47eb337d8963ed2b1fd81ecb00fe9b631d3281507bdc1b17c5d542cb
+MD5 a2d2ee125af2704131671fa9bae4202f files/net-snmp-5.4.1-clientaddr-fix.patch 4013
+RMD160 52c45d7dd34b5aadcfd7ef48c445d47b5491936d files/net-snmp-5.4.1-clientaddr-fix.patch 4013
+SHA256 15a8f05e47eb337d8963ed2b1fd81ecb00fe9b631d3281507bdc1b17c5d542cb files/net-snmp-5.4.1-clientaddr-fix.patch 4013
+AUX net-snmp-5.4.1-duplicated-ip.patch 11138 RMD160 e6cf994bb4f417b08d9e636d48f004193c5f1d81 SHA1 4b3624e1cb0dd2ab3808d2f71a3aa9ffd9a1490e SHA256 360be7372d30b18ee54cb074cc1cd6769fed0530f8c92c140f14c08a670191ed
+MD5 229a05e2a4d2e4b970cf45cb3d8fa9a1 files/net-snmp-5.4.1-duplicated-ip.patch 11138
+RMD160 e6cf994bb4f417b08d9e636d48f004193c5f1d81 files/net-snmp-5.4.1-duplicated-ip.patch 11138
+SHA256 360be7372d30b18ee54cb074cc1cd6769fed0530f8c92c140f14c08a670191ed files/net-snmp-5.4.1-duplicated-ip.patch 11138
+AUX net-snmp-5.4.1-suppresssuppress-annoying.patch 800 RMD160 aa23a30241ae64aeed6a08a630326fd7c2e0f9fe SHA1 2b99c56d1f659f324c5676d48ab257ea3b55467f SHA256 f5249b782079be96256ab6e7a0d398c04dfbcabffa7f4c716fe1abd39897aabe
+MD5 c7a81ab1db56208f1741b55a603cd9a0 files/net-snmp-5.4.1-suppresssuppress-annoying.patch 800
+RMD160 aa23a30241ae64aeed6a08a630326fd7c2e0f9fe files/net-snmp-5.4.1-suppresssuppress-annoying.patch 800
+SHA256 f5249b782079be96256ab6e7a0d398c04dfbcabffa7f4c716fe1abd39897aabe files/net-snmp-5.4.1-suppresssuppress-annoying.patch 800
+AUX net-snmp-5.4.1-xen-crash.patch 7277 RMD160 f66dec52cd300ed4f82725459dd9e17d6e8cc3de SHA1 2f19c0dbba0f23e84e9aa900c92f17f034ed138b SHA256 20e24b518c1d7ff9dda8d2ef2dee1cc1f24226e3790b102c3cda21f022456b74
+MD5 7666c380ac85c82021bf9946a67aa670 files/net-snmp-5.4.1-xen-crash.patch 7277
+RMD160 f66dec52cd300ed4f82725459dd9e17d6e8cc3de files/net-snmp-5.4.1-xen-crash.patch 7277
+SHA256 20e24b518c1d7ff9dda8d2ef2dee1cc1f24226e3790b102c3cda21f022456b74 files/net-snmp-5.4.1-xen-crash.patch 7277
+AUX snmpd-5.1.conf 606 RMD160 a243da5c9dfde4a5cfb16bd7d4491cedb7879620 SHA1 5c7c45a434cb566cfec678050384f9ab6af912a9 SHA256 f569766eb6ca203a0c9549b2592d6f36ae4999cfaabc423cad5a864201a86ac9
+MD5 ed2e953a9a923caec45eeca95bec2efc files/snmpd-5.1.conf 606
+RMD160 a243da5c9dfde4a5cfb16bd7d4491cedb7879620 files/snmpd-5.1.conf 606
+SHA256 f569766eb6ca203a0c9549b2592d6f36ae4999cfaabc423cad5a864201a86ac9 files/snmpd-5.1.conf 606
+AUX snmpd-5.1.rc6 714 RMD160 1f7cef43888500044be0b0d4938574922b48bcfd SHA1 7468069b6e12b527f5a6a8026b67125f3545d243 SHA256 8f02a26a794a5c37e4cb4092ab61f82a6d7ec5876146738d4630ed147cc9ccf6
+MD5 0dbde7b1bdd9c9dc988039e676800337 files/snmpd-5.1.rc6 714
+RMD160 1f7cef43888500044be0b0d4938574922b48bcfd files/snmpd-5.1.rc6 714
+SHA256 8f02a26a794a5c37e4cb4092ab61f82a6d7ec5876146738d4630ed147cc9ccf6 files/snmpd-5.1.rc6 714
+AUX snmpd.conf 598 RMD160 c72a20fe6d4682ceea533587762782d62906b630 SHA1 51ebdca93c68ca04b7f402fad4f504422ec2c6cf SHA256 1f4f07b831c3227588fd546423137ed5c60a602fbee13b0d66edd801e4e7d598
+MD5 cc6b95963357eab99f7f2d55398d5acb files/snmpd.conf 598
+RMD160 c72a20fe6d4682ceea533587762782d62906b630 files/snmpd.conf 598
+SHA256 1f4f07b831c3227588fd546423137ed5c60a602fbee13b0d66edd801e4e7d598 files/snmpd.conf 598
+AUX snmpd.rc7 706 RMD160 137d85e5f2b7cae62e214141aabcec495777007e SHA1 8d94d3bb2d3b43e20604030dc585c735685cf99b SHA256 93337ebeac92ec0073c896db0a4384beebf84ee17365bdc2594285fd33ac7dfe
+MD5 7f66808dbbe407d788d9bd9676f5d07a files/snmpd.rc7 706
+RMD160 137d85e5f2b7cae62e214141aabcec495777007e files/snmpd.rc7 706
+SHA256 93337ebeac92ec0073c896db0a4384beebf84ee17365bdc2594285fd33ac7dfe files/snmpd.rc7 706
+AUX snmptrapd.conf 635 RMD160 aba7b7196835bd359174156a527e13188f76e248 SHA1 0d296caa01c789455c3cd4c67cd81aca5547681d SHA256 902d73cb44446df060bf20e0c8ef0f8815d5b846f96d93894913d3309a3841b3
+MD5 791cd8d81154f2c1d01e3f87b86faa44 files/snmptrapd.conf 635
+RMD160 aba7b7196835bd359174156a527e13188f76e248 files/snmptrapd.conf 635
+SHA256 902d73cb44446df060bf20e0c8ef0f8815d5b846f96d93894913d3309a3841b3 files/snmptrapd.conf 635
+AUX snmptrapd.rc7 557 RMD160 e67117fbcb0a6f8668cb1abbc8fcfcb548ebfdb5 SHA1 dcaac6c0f9e086e49f653f100e0c3f9a7f65db1d SHA256 3594345cdf3c9a5a04073ec11a54e4a19881b27288cdbf22874cca5d0a0f624c
+MD5 f12dedff94a6a3359f76a012fad7ec79 files/snmptrapd.rc7 557
+RMD160 e67117fbcb0a6f8668cb1abbc8fcfcb548ebfdb5 files/snmptrapd.rc7 557
+SHA256 3594345cdf3c9a5a04073ec11a54e4a19881b27288cdbf22874cca5d0a0f624c files/snmptrapd.rc7 557
+DIST net-snmp-5.4.1.tar.gz 5122455 RMD160 3723488dab8d164702a7d55c9c72eeaec07dd50c SHA1 ac5ba033c10d53d3057415121f8c4936c643c208 SHA256 0ea976722c993c87dede8eb6348e6feb059e3851bbef2de824bf18ac97cdb565
+EBUILD net-snmp-5.4.1-r4.ebuild 6118 RMD160 98d27c5c2661fa71787fcc30fe27c6b1850cacd9 SHA1 8c55556f1caa5d3ae589ddb9a45cd2f9da8a7d23 SHA256 6faff7c2b23dc86fc582f9498d65cdbf4cf42867db8fb51a11a1a078b18616f5
+MD5 400526b02cd857c614796301f0a3ef27 net-snmp-5.4.1-r4.ebuild 6118
+RMD160 98d27c5c2661fa71787fcc30fe27c6b1850cacd9 net-snmp-5.4.1-r4.ebuild 6118
+SHA256 6faff7c2b23dc86fc582f9498d65cdbf4cf42867db8fb51a11a1a078b18616f5 net-snmp-5.4.1-r4.ebuild 6118
+MISC ChangeLog 26990 RMD160 36a9207ad2fc23c486f8c23d194725e82f9bfa1b SHA1 447bf46646f5aab4902d3536c21c122bd6106088 SHA256 935f365c4eea8f36b4339043136bb9d376f23dff0ed1bc8fcfa15e80cbd39982
+MD5 ba8ee0af7d52a2a7e99743d7b51621e4 ChangeLog 26990
+RMD160 36a9207ad2fc23c486f8c23d194725e82f9bfa1b ChangeLog 26990
+SHA256 935f365c4eea8f36b4339043136bb9d376f23dff0ed1bc8fcfa15e80cbd39982 ChangeLog 26990
+MISC metadata.xml 160 RMD160 2738573ec519cbef4b293bc132f7dd9d02291137 SHA1 29b8b234e0f3a475b50bd4df1ef8b4e5749823ce SHA256 39e232fc7ec88ca0b077cb3950cb39d15cd990842b88d5bfe14f02f34d72f37b
+MD5 637389da071d8ee0c0292695525bc29f metadata.xml 160
+RMD160 2738573ec519cbef4b293bc132f7dd9d02291137 metadata.xml 160
+SHA256 39e232fc7ec88ca0b077cb3950cb39d15cd990842b88d5bfe14f02f34d72f37b metadata.xml 160
+MD5 2e34b0d7a577176cbcf6ef8d902718fb files/digest-net-snmp-5.4.1-r4 247
+RMD160 eea7a4c51416de3c43bcf3c2404be5affd3f6118 files/digest-net-snmp-5.4.1-r4 247
+SHA256 2f2084a65a62043ef1cb434c7ed0717ed22310fa0bd3225946c19b7fb6864ecb files/digest-net-snmp-5.4.1-r4 247
diff --git a/net-analyzer/net-snmp/files/digest-net-snmp-5.4.1-r4 b/net-analyzer/net-snmp/files/digest-net-snmp-5.4.1-r4
new file mode 100644
index 0000000..34865f9
--- /dev/null
+++ b/net-analyzer/net-snmp/files/digest-net-snmp-5.4.1-r4
@@ -0,0 +1,3 @@
+MD5 6c974df7a5a5b1579f72115e6b045bda net-snmp-5.4.1.tar.gz 5122455
+RMD160 3723488dab8d164702a7d55c9c72eeaec07dd50c net-snmp-5.4.1.tar.gz 5122455
+SHA256 0ea976722c993c87dede8eb6348e6feb059e3851bbef2de824bf18ac97cdb565 net-snmp-5.4.1.tar.gz 5122455
diff --git a/net-analyzer/net-snmp/files/net-snmp-5.1.2-snmpconf-selinux.patch b/net-analyzer/net-snmp/files/net-snmp-5.1.2-snmpconf-selinux.patch
new file mode 100644
index 0000000..9171b69
--- /dev/null
+++ b/net-analyzer/net-snmp/files/net-snmp-5.1.2-snmpconf-selinux.patch
@@ -0,0 +1,12 @@
+https://bugzilla.redhat.com/show_bug.cgi?id=248329
+
+--- net-snmp-5.1.2/local/snmpconf.orig 2004-04-20 16:20:51.000000000 +0200
++++ net-snmp-5.1.2/local/snmpconf 2007-07-09 15:34:48.000000000 +0200
+@@ -585,6 +585,7 @@
+ }
+ }
+ close(O);
++ system("restorecon $outputf");
+ }
+ }
+
diff --git a/net-analyzer/net-snmp/files/net-snmp-5.3.1-multilib.patch b/net-analyzer/net-snmp/files/net-snmp-5.3.1-multilib.patch
new file mode 100644
index 0000000..33927d3
--- /dev/null
+++ b/net-analyzer/net-snmp/files/net-snmp-5.3.1-multilib.patch
@@ -0,0 +1,20 @@
+--- net-snmp-5.3.1.pre2/man/read_config.3.def.old 2003-04-25 16:02:55.000000000 +0200
++++ net-snmp-5.3.1.pre2/man/read_config.3.def 2006-05-23 09:41:35.000000000 +0200
+@@ -257,7 +257,7 @@
+ .I SNMPCONFPATH
+ environment variable (or its default value, which will be
+ SYSCONFDIR/snmp, followed by
+-DATADIR/snmp, followed by LIBDIR/snmp, followed by $HOME/.snmp) and
++DATADIR/snmp, followed by /usr/lib/snmp (or /usr/lib64/snmp), followed by $HOME/.snmp) and
+ reading in the files found that match both the prefix registered and
+ the two suffixes
+ .I .conf
+@@ -285,7 +285,7 @@
+ SNMPCONFPATH
+ A colon separated list of directories to search for configuration
+ files in.
+-Default: SYSCONFDIR/snmp:DATADIR/snmp:LIBDIR/snmp:$HOME/.snmp
++Default: SYSCONFDIR/snmp:DATADIR/snmp:/usr/lib(64)/snmp:$HOME/.snmp
+ .SH "SEE ALSO"
+ .BR mib_api "(3), " snmp_api (3)
+ .\" Local Variables:
diff --git a/net-analyzer/net-snmp/files/net-snmp-5.4-exec-crash.patch b/net-analyzer/net-snmp/files/net-snmp-5.4-exec-crash.patch
new file mode 100644
index 0000000..6dae95a
--- /dev/null
+++ b/net-analyzer/net-snmp/files/net-snmp-5.4-exec-crash.patch
@@ -0,0 +1,14 @@
+https://bugzilla.redhat.com/show_bug.cgi?id=243536
+
+--- net-snmp-5.4/agent/mibgroup/agent/extend.c.orig 2006-10-18 21:07:35.000000000 +0200
++++ net-snmp-5.4/agent/mibgroup/agent/extend.c 2007-06-27 14:30:08.000000000 +0200
+@@ -448,6 +448,9 @@
+ extension->command = strdup( exec_command );
+ if (cptr)
+ extension->args = strdup( cptr );
++ } else {
++ snmp_log(LOG_ERR, "Duplicate MIBOID '%s' detected in exec statement, only the first one will be used.\n", exec_name);
++ return;
+ }
+
+ #ifndef USING_UCD_SNMP_EXTENSIBLE_MODULE
diff --git a/net-analyzer/net-snmp/files/net-snmp-5.4.1-clientaddr-fix.patch b/net-analyzer/net-snmp/files/net-snmp-5.4.1-clientaddr-fix.patch
new file mode 100644
index 0000000..e809221
--- /dev/null
+++ b/net-analyzer/net-snmp/files/net-snmp-5.4.1-clientaddr-fix.patch
@@ -0,0 +1,95 @@
+Fix clientaddr functionality. Includes further memory leak and newline fixes.
+
+Previously, the clientaddr option in snmp.conf was parsed, but the actual
+clientaddr was used to bind(), yet sendmsg() was still called with 0.0.0.0.
+
+This patch alters:
+- netsnmp_udp_fmtaddr: include both sides of addr_pair for debugging.
+- netsnmp_udp_transport: Set addr_pair->local_addr in the remote && client_socket path.
+- netsnmp_udp_transport: Print a debugging error on failure to bind()
+- netsnmp_udp_transport: Print out the full client open addr_pair data.
+
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+Status: Merged in upstream r16654
+Tracking-URL: https://sourceforge.net/tracker/?func=detail&atid=312694&aid=1775124&group_id=12694
+
+Further fixes:
+Revision 16681
+ add missing newline in debug msg
+Revision 16704
+ CHANGES: snmplib: BUG: Coverity #183: fix memory leak if IP_PKTINFO fails
+Revision 16716
+ CHANGES: snmplib: Do not leak memory whenever an udp address is formatted.
+
+Fixes bug: bugs.gentoo.org/180266
+
+diff -Naur net-snmp-5.4.1.orig/snmplib/snmpUDPDomain.c net-snmp-5.4.1/snmplib/snmpUDPDomain.c
+--- net-snmp-5.4.1.orig/snmplib/snmpUDPDomain.c 2007-06-11 02:15:24.000000000 +0400
++++ net-snmp-5.4.1/snmplib/snmpUDPDomain.c 2007-12-27 18:15:56.000000000 +0300
+@@ -104,11 +104,13 @@
+ char tmp[64];
+ to = (struct sockaddr_in *) &(addr_pair->remote_addr);
+ if (to == NULL) {
+- return strdup("UDP: unknown");
++ sprintf(tmp, "UDP: [%s]->unknown",
++ inet_ntoa(addr_pair->local_addr));
++ } else {
++ sprintf(tmp, "UDP: [%s]->", inet_ntoa(addr_pair->local_addr));
++ sprintf(tmp + strlen(tmp), "[%s]:%hd",
++ inet_ntoa(to->sin_addr), ntohs(to->sin_port));
+ }
+-
+- sprintf(tmp, "UDP: [%s]:%hu",
+- inet_ntoa(to->sin_addr), ntohs(to->sin_port));
+ return strdup(tmp);
+ }
+ }
+@@ -642,6 +644,7 @@
+ if (setsockopt(t->sock, SOL_IP, IP_PKTINFO, &sockopt, sizeof sockopt) == -1) {
+ DEBUGMSGTL(("netsnmp_udp", "couldn't set IP_PKTINFO: %s\n",
+ strerror(errno)));
++ netsnmp_transport_free(t);
+ return NULL;
+ }
+ DEBUGMSGTL(("netsnmp_udp", "set IP_PKTINFO\n"));
+@@ -667,10 +670,24 @@
+ if (client_socket) {
+ struct sockaddr_in client_addr;
+ netsnmp_sockaddr_in2(&client_addr, client_socket, NULL);
++ addr_pair.local_addr = client_addr.sin_addr;
+ client_addr.sin_port = 0;
+- bind(t->sock, (struct sockaddr *)&client_addr,
++ rc = bind(t->sock, (struct sockaddr *)&client_addr,
+ sizeof(struct sockaddr));
++ if ( rc != 0 ) {
++ DEBUGMSGTL(("netsnmp_udp", "failed to bind for clientaddr: %d %s\n",
++ errno, strerror(errno)));
++ netsnmp_udp_close(t);
++ netsnmp_transport_free(t);
++ return NULL;
++ }
+ }
++
++ str = netsnmp_udp_fmtaddr(NULL, (void *)&addr_pair,
++ sizeof(netsnmp_udp_addr_pair));
++ DEBUGMSGTL(("netsnmp_udp", "client open %s\n", str));
++ free(str);
++
+ /*
+ * Save the (remote) address in the
+ * transport-specific data pointer for later use by netsnmp_udp_send.
+@@ -839,12 +856,12 @@
+ if (host == NULL) {
+ DEBUGMSGTL(("netsnmp_sockaddr_in",
+ "servname not numeric, "
+- "check if it really is a destination)"));
++ "check if it really is a destination)\n"));
+ host = port;
+ port = NULL;
+ } else {
+ DEBUGMSGTL(("netsnmp_sockaddr_in",
+- "servname not numeric"));
++ "servname not numeric\n"));
+ free(peername);
+ return 0;
+ }
diff --git a/net-analyzer/net-snmp/files/net-snmp-5.4.1-duplicated-ip.patch b/net-analyzer/net-snmp/files/net-snmp-5.4.1-duplicated-ip.patch
new file mode 100644
index 0000000..93357dd
--- /dev/null
+++ b/net-analyzer/net-snmp/files/net-snmp-5.4.1-duplicated-ip.patch
@@ -0,0 +1,266 @@
+http://bugs.gentoo.org/show_bug.cgi?id=203127
+http://sourceforge.net/tracker/index.php?func=detail&aid=1712645&group_id=12694&atid=312694
+http://sourceforge.net/mailarchive/message.php?msg_id=c64ae3380711050655n47f5e3daxdd0f22513499e8db%40mail.gmail.com
+
+diff -Naur net-snmp-5.4.1.orig/agent/mibgroup/ip-mib/data_access/ipaddress_common.c net-snmp-5.4.1/agent/mibgroup/ip-mib/data_access/ipaddress_common.c
+--- net-snmp-5.4.1.orig/agent/mibgroup/ip-mib/data_access/ipaddress_common.c 2007-07-17 03:59:44.000000000 +0400
++++ net-snmp-5.4.1/agent/mibgroup/ip-mib/data_access/ipaddress_common.c 2007-12-29 22:45:33.000000000 +0300
+@@ -54,6 +54,7 @@
+ netsnmp_access_ipaddress_container_init(u_int flags)
+ {
+ netsnmp_container *container1;
++ int rc;
+
+ DEBUGMSGTL(("access:ipaddress:container", "init\n"));
+
+@@ -67,6 +68,12 @@
+ return NULL;
+ }
+ container1->container_name = strdup("ia_index");
++ CONTAINER_SET_OPTIONS(container1, CONTAINER_SILENT, rc);
++ if (rc < 0) {
++ snmp_log(LOG_ERR, "ipaddress container: cannot set CONTAINER_SILENT flag\n");
++ CONTAINER_FREE(container1);
++ return NULL;
++ }
+
+ if (flags & NETSNMP_ACCESS_IPADDRESS_INIT_ADDL_IDX_BY_ADDR) {
+ netsnmp_container *container2 =
+@@ -79,6 +86,14 @@
+
+ container2->compare = _access_ipaddress_entry_compare_addr;
+ container2->container_name = strdup("ia_addr");
++
++ CONTAINER_SET_OPTIONS(container2, CONTAINER_SILENT, rc);
++ if (rc < 0) {
++ snmp_log(LOG_ERR, "ipaddress secondary container: cannot set CONTAINER_SILENT flag\n");
++ CONTAINER_FREE(container1);
++ CONTAINER_FREE(container2);
++ return NULL;
++ }
+
+ netsnmp_container_add_index(container1, container2);
+ }
+diff -Naur net-snmp-5.4.1.orig/agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c net-snmp-5.4.1/agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c
+--- net-snmp-5.4.1.orig/agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c 2007-05-18 01:53:28.000000000 +0400
++++ net-snmp-5.4.1/agent/mibgroup/ip-mib/data_access/ipaddress_ioctl.c 2007-12-29 22:46:50.000000000 +0300
+@@ -272,11 +272,14 @@
+ /*
+ * add entry to container
+ */
+- if (CONTAINER_INSERT(container, entry) < 0)
+- {
+- DEBUGMSGTL(("access:ipaddress:container","error with ipaddress_entry: insert into container failed.\n"));
+- netsnmp_access_ipaddress_entry_free(entry);
+- continue;
++ rc = CONTAINER_INSERT(container, entry);
++ if (rc < 0) {
++ static int logged = 0;
++ if (!logged) {
++ snmp_log(LOG_NOTICE, "Duplicate IPv4 address detected, some interfaces may not be visible in IP-MIB\n");
++ logged = 1;
++ }
++ rc = 0;
+ }
+ }
+
+diff -Naur net-snmp-5.4.1.orig/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c net-snmp-5.4.1/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c
+--- net-snmp-5.4.1.orig/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c 2006-09-15 04:48:50.000000000 +0400
++++ net-snmp-5.4.1/agent/mibgroup/ip-mib/data_access/ipaddress_linux.c 2007-12-29 22:45:33.000000000 +0300
+@@ -324,7 +324,17 @@
+ /*
+ * add entry to container
+ */
+- CONTAINER_INSERT(container, entry);
++ rc = CONTAINER_INSERT(container, entry);
++ if (rc < 0) {
++ static int logged = 0;
++ if (!logged) {
++ snmp_log(LOG_NOTICE, "Duplicate IPv6 address detected, some interfaces may not be visible in IP-MIB\n");
++ logged = 1;
++ }
++ rc = 0;
++ netsnmp_access_ipaddress_entry_free(entry);
++ }
++
+ }
+
+ fclose(in);
+diff -Naur net-snmp-5.4.1.orig/include/net-snmp/library/container.h net-snmp-5.4.1/include/net-snmp/library/container.h
+--- net-snmp-5.4.1.orig/include/net-snmp/library/container.h 2005-12-04 21:43:04.000000000 +0300
++++ net-snmp-5.4.1/include/net-snmp/library/container.h 2007-12-29 22:45:33.000000000 +0300
+@@ -284,6 +284,8 @@
+ */
+ #define CONTAINER_KEY_ALLOW_DUPLICATES 0x00000001
+ #define CONTAINER_KEY_UNSORTED 0x00000002
++/* do not print anything to log on CONTAINER_INSERT error */
++#define CONTAINER_SILENT 0x00000004
+
+ #define CONTAINER_SET_OPTIONS(x,o,rc) do { \
+ if (NULL==(x)->options) \
+@@ -354,23 +356,69 @@
+ int CONTAINER_INSERT(netsnmp_container *x, const void *k)
+ {
+ int rc2, rc = 0;
++ netsnmp_container *start;
++ int silent = 0;
++ void *found;
+
+ /** start at first container */
+ while(x->prev)
+ x = x->prev;
++ start = x;
++
++ if (start->next != NULL) {
++ /* Check if the key would create duplicity in any index.
++ * This is not needed if there is only one index - x->insert
++ * will check it instead. */
++ for(; x; x = x->next) {
++ int key_allow_duplicates = 0;
++ CONTAINER_CHECK_OPTION(x, CONTAINER_KEY_ALLOW_DUPLICATES, key_allow_duplicates);
++ if (key_allow_duplicates < 0)
++ key_allow_duplicates = 0; /* cannot read the flag -> use default value */
++
++ if (key_allow_duplicates)
++ continue; /* no need to check this index - duplicates are allowed */
++
++ if ((NULL != x->insert_filter) &&
++ (x->insert_filter(x,k) == 1))
++ continue; /* no need to check this index - index is filtered out */
++
++ found = x->find(x,k);
++ if (found) {
++ /* key is already in the index -> forbid the insert */
++ CONTAINER_CHECK_OPTION(start, CONTAINER_SILENT, silent);
++ if (silent < 0)
++ silent = 0; /* cannot read the flag -> use default value */
++
++ if (!silent) {
++ snmp_log(LOG_ERR,"error on subcontainer '%s' insert would create duplicity\n",
++ x->container_name ? x->container_name : "");
++ }
++ return -1;
++ }
++ }
++ }
++
++ x = start;
+ for(; x; x = x->next) {
+ if ((NULL != x->insert_filter) &&
+ (x->insert_filter(x,k) == 1))
+ continue;
+ rc2 = x->insert(x,k);
+ if (rc2) {
+- snmp_log(LOG_ERR,"error on subcontainer '%s' insert (%d)\n",
+- x->container_name ? x->container_name : "", rc2);
++ /* insert failed */
++ CONTAINER_CHECK_OPTION(start, CONTAINER_SILENT, silent);
++ if (silent < 0)
++ silent = 0; /* cannot read the flag -> use default value */
++
++ if (!silent) {
++ snmp_log(LOG_ERR,"error on subcontainer '%s' insert (%d)\n",
++ x->container_name ? x->container_name : "", rc2);
++ }
+ rc = rc2;
+ }
+ }
+ return rc;
+- }
++ }
+
+ /*------------------------------------------------------------------
+ * These functions should EXACTLY match the function version in
+diff -Naur net-snmp-5.4.1.orig/snmplib/container_binary_array.c net-snmp-5.4.1/snmplib/container_binary_array.c
+--- net-snmp-5.4.1.orig/snmplib/container_binary_array.c 2006-08-23 19:53:22.000000000 +0400
++++ net-snmp-5.4.1/snmplib/container_binary_array.c 2007-12-29 22:45:33.000000000 +0300
+@@ -579,6 +579,11 @@
+ return va;
+ }
+
++static int _ba_options(netsnmp_container *c, int set, u_int flags)
++{
++ return netsnmp_binary_array_options_set(c, set, flags);
++}
++
+ netsnmp_container *
+ netsnmp_container_get_binary_array(void)
+ {
+@@ -604,6 +609,7 @@
+ c->get_iterator = _ba_iterator_get;
+ c->for_each = _ba_for_each;
+ c->clear = _ba_clear;
++ c->options = _ba_options;
+
+ return c;
+ }
+diff -Naur net-snmp-5.4.1.orig/snmplib/container.c net-snmp-5.4.1/snmplib/container.c
+--- net-snmp-5.4.1.orig/snmplib/container.c 2006-08-25 13:41:06.000000000 +0400
++++ net-snmp-5.4.1/snmplib/container.c 2007-12-29 22:45:33.000000000 +0300
+@@ -268,18 +268,64 @@
+ int CONTAINER_INSERT(netsnmp_container *x, const void *k)
+ {
+ int rc2, rc = 0;
++ netsnmp_container *start;
++ int silent = 0;
++ void *found;
+
+ /** start at first container */
+ while(x->prev)
+ x = x->prev;
++ start = x;
++
++ if (start->next != NULL) {
++ /* Check if the key would create duplicity in any index.
++ * This is not needed if there is only one index - x->insert
++ * will check it instead. */
++ for(; x; x = x->next) {
++ int key_allow_duplicates = 0;
++ CONTAINER_CHECK_OPTION(x, CONTAINER_KEY_ALLOW_DUPLICATES, key_allow_duplicates);
++ if (key_allow_duplicates < 0)
++ key_allow_duplicates = 0; /* cannot read the flag -> use default value */
++
++ if (key_allow_duplicates)
++ continue; /* no need to check this index - duplicates are allowed */
++
++ if ((NULL != x->insert_filter) &&
++ (x->insert_filter(x,k) == 1))
++ continue; /* no need to check this index - index is filtered out */
++
++ found = x->find(x,k);
++ if (found) {
++ /* key is already in the index -> forbid the insert */
++ CONTAINER_CHECK_OPTION(start, CONTAINER_SILENT, silent);
++ if (silent < 0)
++ silent = 0; /* cannot read the flag -> use default value */
++
++ if (!silent) {
++ snmp_log(LOG_ERR,"error on subcontainer '%s' insert would create duplicity\n",
++ x->container_name ? x->container_name : "");
++ }
++ return -1;
++ }
++ }
++ }
++
++ x = start;
+ for(; x; x = x->next) {
+ if ((NULL != x->insert_filter) &&
+ (x->insert_filter(x,k) == 1))
+ continue;
+ rc2 = x->insert(x,k);
+ if (rc2) {
+- snmp_log(LOG_ERR,"error on subcontainer '%s' insert (%d)\n",
+- x->container_name ? x->container_name : "", rc2);
++ /* insert failed */
++ CONTAINER_CHECK_OPTION(start, CONTAINER_SILENT, silent);
++ if (silent < 0)
++ silent = 0; /* cannot read the flag -> use default value */
++
++ if (!silent) {
++ snmp_log(LOG_ERR,"error on subcontainer '%s' insert (%d)\n",
++ x->container_name ? x->container_name : "", rc2);
++ }
+ rc = rc2;
+ }
+ }
diff --git a/net-analyzer/net-snmp/files/net-snmp-5.4.1-suppresssuppress-annoying.patch b/net-analyzer/net-snmp/files/net-snmp-5.4.1-suppresssuppress-annoying.patch
new file mode 100644
index 0000000..f08d8f7
--- /dev/null
+++ b/net-analyzer/net-snmp/files/net-snmp-5.4.1-suppresssuppress-annoying.patch
@@ -0,0 +1,17 @@
+NEWS: agent: suppress annoying "registration != duplicate" warning for root oids
+(otherwise, you'll get this message on almost every startup)
+
+http://net-snmp.svn.sourceforge.net/viewvc/net-snmp?view=rev&revision=16669
+
+--- branches/V5-4-patches/net-snmp/agent/agent_registry.c 2007/08/20 08:06:42 16668
++++ branches/V5-4-patches/net-snmp/agent/agent_registry.c 2007/08/22 21:56:23 16669
+@@ -532,7 +532,8 @@
+
+ if (next && (next->namelen == new_sub->namelen) &&
+ (next->priority == new_sub->priority)) {
+- netsnmp_assert(!"registration != duplicate"); /* always false */
++ if (new_sub->namelen != 1) /* ignore root OID dups */
++ netsnmp_assert(!"registration != duplicate"); /* always false */
+ return MIB_DUPLICATE_REGISTRATION;
+ }
+
diff --git a/net-analyzer/net-snmp/files/net-snmp-5.4.1-xen-crash.patch b/net-analyzer/net-snmp/files/net-snmp-5.4.1-xen-crash.patch
new file mode 100644
index 0000000..707b8fe
--- /dev/null
+++ b/net-analyzer/net-snmp/files/net-snmp-5.4.1-xen-crash.patch
@@ -0,0 +1,157 @@
+386611: snmpd segfaults on xen network interfaces
+Source: http://sourceforge.net/tracker/index.php?func=detail&aid=1794532&group_id=12694&atid=112694
+Reviewed-By: Jan Safranek <jsafrane@redhat.com>
+
+Index: agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_data_access.c
+===================================================================
+--- agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_data_access.c (revision 16711)
++++ agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_data_access.c (working copy)
+@@ -258,9 +258,10 @@
+ if ((NULL != rowreq_ctx) &&
+ (MFD_SUCCESS ==
+ ipAddressTable_indexes_set(rowreq_ctx,
++ ipaddress_entry->ia_address_len + 1,
++ ipaddress_entry->ia_address,
+ ipaddress_entry->ia_address_len,
+- ipaddress_entry->ia_address,
+- ipaddress_entry->ia_address_len))) {
++ ipaddress_entry->if_index))) {
+ if (CONTAINER_INSERT(container, rowreq_ctx) < 0) {
+ DEBUGMSGTL (("ipAddressTable:access","container insert failed for new entry\n"));
+ ipAddressTable_release_rowreq_ctx(rowreq_ctx);
+Index: agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable.c
+===================================================================
+--- agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable.c (revision 16711)
++++ agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable.c (working copy)
+@@ -348,10 +348,18 @@
+ *mib_ipAddressAddrType_val_ptr = INETADDRESSTYPE_IPV4;
+ break;
+
++ case INTERNAL_IPADDRESSTABLE_IPADDRESSADDRTYPE_IPV4Z:
++ *mib_ipAddressAddrType_val_ptr = INETADDRESSTYPE_IPV4Z;
++ break;
++
+ case INTERNAL_IPADDRESSTABLE_IPADDRESSADDRTYPE_IPV6:
+ *mib_ipAddressAddrType_val_ptr = INETADDRESSTYPE_IPV6;
+ break;
+
++ case INTERNAL_IPADDRESSTABLE_IPADDRESSADDRTYPE_IPV6Z:
++ *mib_ipAddressAddrType_val_ptr = INETADDRESSTYPE_IPV6Z;
++ break;
++
+ default:
+ snmp_log(LOG_ERR, "couldn't map value %ld for ipAddressAddrType\n",
+ raw_ipAddressAddrType_val);
+@@ -382,8 +390,11 @@
+ ipAddressTable_indexes_set_tbl_idx(ipAddressTable_mib_index * tbl_idx,
+ u_long ipAddressAddrType_val,
+ char *ipAddressAddr_val_ptr,
+- size_t ipAddressAddr_val_ptr_len)
++ size_t ipAddressAddr_val_ptr_len,
++ u_long ipAddressAddr_ifIndex)
+ {
++ uint32_t zone = htonl(ipAddressAddr_ifIndex);
++
+ DEBUGMSGTL(("verbose:ipAddressTable:ipAddressTable_indexes_set_tbl_idx", "called\n"));
+
+ /*
+@@ -409,6 +420,11 @@
+ memcpy(tbl_idx->ipAddressAddr, ipAddressAddr_val_ptr,
+ ipAddressAddr_val_ptr_len * sizeof(ipAddressAddr_val_ptr[0]));
+
++ /** zone */
++ tbl_idx->ipAddressAddr_len += sizeof(zone);
++ memcpy(&tbl_idx->ipAddressAddr[ipAddressAddr_val_ptr_len *
++ sizeof(ipAddressAddr_val_ptr[0])],
++ &zone, sizeof(zone));
+
+ return MFD_SUCCESS;
+ } /* ipAddressTable_indexes_set_tbl_idx */
+@@ -430,7 +446,8 @@
+ ipAddressTable_indexes_set(ipAddressTable_rowreq_ctx * rowreq_ctx,
+ u_long ipAddressAddrType_val,
+ char *ipAddressAddr_val_ptr,
+- size_t ipAddressAddr_val_ptr_len)
++ size_t ipAddressAddr_val_ptr_len,
++ u_long ipAddressAddr_ifIndex)
+ {
+ DEBUGMSGTL(("verbose:ipAddressTable:ipAddressTable_indexes_set",
+ "called\n"));
+@@ -439,7 +456,8 @@
+ ipAddressTable_indexes_set_tbl_idx(&rowreq_ctx->tbl_idx,
+ ipAddressAddrType_val,
+ ipAddressAddr_val_ptr,
+- ipAddressAddr_val_ptr_len))
++ ipAddressAddr_val_ptr_len,
++ ipAddressAddr_ifIndex))
+ return MFD_ERROR;
+
+ /*
+Index: agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_constants.h
+===================================================================
+--- agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_constants.h (revision 16711)
++++ agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable_constants.h (working copy)
+@@ -106,7 +106,9 @@
+ * simplistic map of address length to type
+ */
+ #define INTERNAL_IPADDRESSTABLE_IPADDRESSADDRTYPE_IPV4 4
++#define INTERNAL_IPADDRESSTABLE_IPADDRESSADDRTYPE_IPV4Z 5
+ #define INTERNAL_IPADDRESSTABLE_IPADDRESSADDRTYPE_IPV6 16
++#define INTERNAL_IPADDRESSTABLE_IPADDRESSADDRTYPE_IPV6Z 17
+
+
+ /*************************************************************
+Index: agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable.h
+===================================================================
+--- agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable.h (revision 16711)
++++ agent/mibgroup/ip-mib/ipAddressTable/ipAddressTable.h (working copy)
+@@ -273,14 +273,16 @@
+ u_long ipAddressAddrType_val,
+ char *ipAddressAddr_val_ptr,
+ size_t
+- ipAddressAddr_val_ptr_len);
++ ipAddressAddr_val_ptr_len,
++ u_long ipAddressAddr_ifIndex);
+ int ipAddressTable_indexes_set(ipAddressTable_rowreq_ctx *
+ rowreq_ctx,
+ u_long
+ ipAddressAddrType_val,
+ char *ipAddressAddr_val_ptr,
+ size_t
+- ipAddressAddr_val_ptr_len);
++ ipAddressAddr_val_ptr_len,
++ u_long ipAddressAddr_ifIndex);
+
+
+
+Index: agent/mibgroup/ip-mib/data_access/ipaddress_common.c
+===================================================================
+--- agent/mibgroup/ip-mib/data_access/ipaddress_common.c (revision 16711)
++++ agent/mibgroup/ip-mib/data_access/ipaddress_common.c (working copy)
+@@ -411,6 +415,7 @@
+ {
+ const netsnmp_ipaddress_entry *lh = (const netsnmp_ipaddress_entry *)lhs;
+ const netsnmp_ipaddress_entry *rh = (const netsnmp_ipaddress_entry *)rhs;
++ int rc;
+
+ netsnmp_assert(NULL != lhs);
+ netsnmp_assert(NULL != rhs);
+@@ -426,5 +431,17 @@
+ /*
+ * length equal, compare address
+ */
+- return memcmp(lh->ia_address, rh->ia_address, lh->ia_address_len);
++ rc = memcmp(lh->ia_address, rh->ia_address, lh->ia_address_len);
++ if (rc)
++ return rc;
++
++ /*
++ * address same, compare ifIndex
++ */
++ if (lh->if_index < rh->if_index)
++ return -1;
++ else if (lh->if_index > rh->if_index)
++ return 1;
++
++ return 0;
+ }
diff --git a/net-analyzer/net-snmp/files/snmpd-5.1.conf b/net-analyzer/net-snmp/files/snmpd-5.1.conf
new file mode 100644
index 0000000..60e8a77
--- /dev/null
+++ b/net-analyzer/net-snmp/files/snmpd-5.1.conf
@@ -0,0 +1,17 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/files/snmpd-5.1.conf,v 1.3 2004/07/14 23:06:06 agriffis Exp $
+
+# Initial (empty) options.
+SNMPD_FLAGS=""
+
+# Enable connection logging.
+#SNMPD_FLAGS="${SNMPD_FLAGS} -a"
+
+# Enable syslog and disable file log.
+#SNMPD_FLAGS="${SNMPD_FLAGS} -Lsd -Lf /dev/null"
+
+# Enable agentx socket as /var/agentx/master
+# *NOTE* Before uncommenting this, make sure
+# the /var/agentx directory exists.
+#SNMPD_FLAGS="${SNMPD_FLAGS} -x /var/agentx/master"
diff --git a/net-analyzer/net-snmp/files/snmpd-5.1.rc6 b/net-analyzer/net-snmp/files/snmpd-5.1.rc6
new file mode 100755
index 0000000..d4cd230
--- /dev/null
+++ b/net-analyzer/net-snmp/files/snmpd-5.1.rc6
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/files/snmpd-5.1.rc6,v 1.3 2004/07/14 23:06:06 agriffis Exp $
+
+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/files/snmpd.conf b/net-analyzer/net-snmp/files/snmpd.conf
new file mode 100644
index 0000000..97a1d70
--- /dev/null
+++ b/net-analyzer/net-snmp/files/snmpd.conf
@@ -0,0 +1,17 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/files/snmpd.conf,v 1.8 2006/11/26 21:37:22 cedk Exp $
+
+# Initial (empty) options.
+SNMPD_FLAGS=""
+
+# Enable connection logging.
+#SNMPD_FLAGS="${SNMPD_FLAGS} -a"
+
+# Enable syslog and disable file log.
+#SNMPD_FLAGS="${SNMPD_FLAGS} -Lsd -Lf /dev/null"
+
+# Enable agentx socket as /var/agentx/master
+# *NOTE* Before uncommenting this, make sure
+# the /var/agentx directory exists.
+#SNMPD_FLAGS="${SNMPD_FLAGS} -x /var/agentx/master"
diff --git a/net-analyzer/net-snmp/files/snmpd.rc7 b/net-analyzer/net-snmp/files/snmpd.rc7
new file mode 100644
index 0000000..11329bd
--- /dev/null
+++ b/net-analyzer/net-snmp/files/snmpd.rc7
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/files/snmpd.rc7,v 1.1 2006/11/26 21:37:22 cedk Exp $
+
+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/files/snmptrapd.conf b/net-analyzer/net-snmp/files/snmptrapd.conf
new file mode 100644
index 0000000..b6259fc
--- /dev/null
+++ b/net-analyzer/net-snmp/files/snmptrapd.conf
@@ -0,0 +1,16 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/files/snmptrapd.conf,v 1.1 2005/01/28 11:19:25 ka0ttic Exp $
+
+# extra flags to pass to snmptrapd
+SNMPTRAPD_FLAGS=""
+
+# ignore authentication failure traps
+#SNMPTRAPD_FLAGS="${SNMPTRAPD_FLAGS} -a"
+
+# log messages to specified file
+#SNMPTRAPD_FLAGS="${SNMPTRAPD_FLAGS} -Lf /var/log/snmptrapd.log"
+
+# log messages to syslog with the specified facility
+# where facility is: 'd' = LOG_DAEMON, 'u' = LOG_USER, [0-7] = LOG_LOCAL[0-7]
+#SNMPTRAPD_FLAGS="${SNMPTRAPD_FLAGS} -Ls d"
diff --git a/net-analyzer/net-snmp/files/snmptrapd.rc7 b/net-analyzer/net-snmp/files/snmptrapd.rc7
new file mode 100644
index 0000000..585675b
--- /dev/null
+++ b/net-analyzer/net-snmp/files/snmptrapd.rc7
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/files/snmptrapd.rc7,v 1.1 2006/11/26 21:37:22 cedk Exp $
+
+depend() {
+ use logger
+ need net
+}
+
+start() {
+ ebegin "Starting snmptrapd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/snmptrapd \
+ -- -p /var/run/snmptrapd.pid ${SNMPTRAPD_FLAGS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping snmptrapd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/snmptrapd.pid
+ eend $?
+}
diff --git a/net-analyzer/net-snmp/metadata.xml b/net-analyzer/net-snmp/metadata.xml
new file mode 100644
index 0000000..7869263
--- /dev/null
+++ b/net-analyzer/net-snmp/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>netmon</herd>
+</pkgmetadata>
diff --git a/net-analyzer/net-snmp/net-snmp-5.4.1-r4.ebuild b/net-analyzer/net-snmp/net-snmp-5.4.1-r4.ebuild
new file mode 100644
index 0000000..52cb6a3
--- /dev/null
+++ b/net-analyzer/net-snmp/net-snmp-5.4.1-r4.ebuild
@@ -0,0 +1,202 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/net-snmp-5.4.1-r3.ebuild,v 1.1 2007/12/27 20:05:32 pva Exp $
+
+inherit fixheadtails flag-o-matic perl-module python
+
+DESCRIPTION="Software for generating and retrieving SNMP data"
+HOMEPAGE="http://net-snmp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="as-is BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="diskio doc elf ipv6 lm_sensors mfd-rewrites minimal perl python rpm selinux smux ssl tcpd X sendmail extensible"
+
+DEPEND="ssl? ( >=dev-libs/openssl-0.9.6d )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ rpm? (
+ app-arch/rpm
+ dev-libs/popt
+ app-arch/bzip2
+ >=sys-libs/zlib-1.1.4
+ )
+ elf? ( dev-libs/elfutils )
+ lm_sensors? ( sys-apps/lm_sensors )
+ python? ( dev-python/setuptools )"
+
+RDEPEND="${DEPEND}
+ perl? (
+ X? ( dev-perl/perl-tk )
+ !minimal? ( dev-perl/TermReadKey )
+ )
+ selinux? ( sec-policy/selinux-snmpd )"
+
+DEPEND="${DEPEND}
+ >=sys-apps/sed-4
+ doc? ( app-doc/doxygen )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # fix access violation in make check
+ sed -i -e 's/\(snmpd.*\)-Lf/\1-l/' testing/eval_tools.sh || \
+ die "sed eval_tools.sh failed"
+ # fix path in fixproc
+ sed -i -e 's|\(database_file =.*\)/local\(.*\)$|\1\2|' local/fixproc || \
+ die "sed fixproc failed"
+
+ if use python ; then
+ python_version
+ PYTHON_MODNAME="netsnmp"
+ PYTHON_DIR=/usr/$(get_libdir)/python${PYVER}/site-packages
+ sed -i -e "s:\(install --basedir=\$\$dir\):\1 --root='${D}':" Makefile.in || die "sed python failed"
+ fi
+
+ # On system with /usr/lib64 use net-snmp-config64 and net-snmp-config64.h
+ epatch "${FILESDIR}"/${PN}-5.3.1-multilib.patch
+ # snmpd crashes when snmpd.conf contains more than one "exec shelltest" line
+ # https://bugzilla.redhat.com/show_bug.cgi?id=85071
+ epatch "${FILESDIR}"/${PN}-5.4-exec-crash.patch
+ # agent: suppress annoying "registration != duplicate" warning for root oids
+ epatch "${FILESDIR}"/${P}-suppresssuppress-annoying.patch
+ # bug 180266
+ epatch "${FILESDIR}"/${P}-clientaddr-fix.patch
+ # snmpd segfaults on xen network interfaces
+ # http://sourceforge.net/tracker/index.php?func=detail&aid=1794532&group_id=12694&atid=112694
+ epatch "${FILESDIR}"/${P}-xen-crash.patch
+ # Crash when more then one interface have the same IP, bug 203127
+ epatch "${FILESDIR}"/${P}-duplicated-ip.patch
+ # snmpconf generates config files with proper selinux context
+ # https://bugzilla.redhat.com/show_bug.cgi?id=247462
+ use selinux && epatch "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
+
+ ht_fix_all
+}
+
+src_compile() {
+ local mibs
+
+ strip-flags
+
+ # filter for bug #145960
+ # as it seems that the option is not enough
+ filter-ldflags -Wl,--as-needed
+
+ mibs="host ucd-snmp/dlmod"
+ use smux && mibs="${mibs} smux"
+ use sendmail && mibs="${mibs} mibII/mta_sendmail"
+ use lm_sensors && mibs="${mibs} ucd-snmp/lmSensors"
+ use diskio && mibs="${mibs} ucd-snmp/diskio"
+ use extensible && mibs="${mibs} ucd-snmp/extensible"
+
+ econf \
+ --with-install-prefix="${D}" \
+ --with-sys-location="Unknown" \
+ --with-sys-contact="root@Unknown" \
+ --with-default-snmp-version="3" \
+ --with-mib-modules="${mibs}" \
+ --with-logfile="/var/log/net-snmpd.log" \
+ --with-persistent-directory="/var/lib/net-snmp" \
+ --enable-ucd-snmp-compatibility \
+ --enable-shared \
+ --enable-as-needed \
+ $(use_enable mfd-rewrites) \
+ $(use_enable perl embedded-perl) \
+ $(use_enable ipv6) \
+ $(use_enable !ssl internal-md5) \
+ $(use_with ssl openssl) \
+ $(use_with tcpd libwrap) \
+ $(use_with rpm) \
+ $(use_with rpm bzip2) \
+ $(use_with rpm zlib) \
+ $(use_with elf) \
+ $(use_with python python-modules) \
+ || die "econf failed"
+
+ emake -j1 || die "emake failed"
+
+ if use perl ; then
+ emake perlmodules || die "compile perl modules problem"
+ fi
+
+ if use python ; then
+ emake pythonmodules || die "compile python modules problem"
+ fi
+
+ if use doc ; then
+ einfo "Building HTML Documentation"
+ make docsdox || die "failed to build docs"
+ fi
+}
+
+src_test() {
+ cd testing
+ if ! make test ; then
+ echo
+ einfo "Don't be alarmed if a few tests FAIL."
+ einfo "This could happen for several reasons:"
+ einfo " - You don't already have a working configuration."
+ einfo " - Your ethernet interface isn't properly configured."
+ echo
+ fi
+}
+
+src_install () {
+
+ make DESTDIR="${D}" install || die "make install failed"
+
+ if use perl ; then
+ make DESTDIR="${D}" perlinstall || die "make perlinstall failed"
+ fixlocalpod
+
+ use X || rm -f "${D}/usr/bin/tkmib"
+ else
+ rm -f "${D}/usr/bin/mib2c" "${D}/usr/bin/tkmib" "${D}/usr/bin/snmpcheck"
+ fi
+
+ if use python ; then
+ mkdir -p "${D}/${PYTHON_DIR}" || die "Couldn't make $PYTHON_DIR"
+ make pythoninstall || die "make pythoninstall failed"
+ fi
+
+ dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO
+ newdoc EXAMPLE.conf.def EXAMPLE.conf
+
+ use doc && dohtml docs/html/*
+
+ keepdir /etc/snmp /var/lib/net-snmp
+
+ newinitd "${FILESDIR}"/snmpd.rc7 snmpd
+ newconfd "${FILESDIR}"/snmpd.conf snmpd
+
+ newinitd "${FILESDIR}"/snmptrapd.rc7 snmptrapd
+ newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd
+
+ # Remove everything, keeping only the snmpd, snmptrapd, MIBs, libs, and includes.
+ if use minimal; then
+ elog "USE=minimal is set. Cleaning up excess cruft for a embedded/minimal/server only install."
+ rm -rf
+ "${D}"/usr/bin/{encode_keychange,snmp{get,getnext,set,usm,walk,bulkwalk,table,trap,bulkget,translate,status,delta,test,df,vacm,netstat,inform,snmpcheck}}
+ rm -rf "${D}"/usr/share/snmp/snmpconf-data "${D}"/usr/share/snmp/*.conf
+ rm -rf "${D}"/usr/bin/{fixproc,traptoemail} "${D}"/usr/bin/snmpc{heck,onf}
+ find "${D}" -name '*.pl' -exec rm -f '{}' \;
+ use ipv6 || rm -rf "${D}"/usr/share/snmp/mibs/IPV6*
+ fi
+
+ # bug 113788, install example config
+ insinto /etc/snmp
+ newins "${S}"/EXAMPLE.conf snmpd.conf.example
+}
+
+pkg_postrm() {
+ if use python ; then
+ python_mod_cleanup
+ fi
+}
+
+pkg_postinst() {
+ elog "An example configuration file has been installed in"
+ elog "/etc/snmp/snmpd.conf.example."
+}