summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Marlowe <mattm@gentoo.org>2006-10-22 22:20:35 +0000
committerMatthew Marlowe <mattm@gentoo.org>2006-10-22 22:20:35 +0000
commit1276889aa9127feffbf0f719815c78a45aadf91c (patch)
tree178f92279b3ce0cc15e29b92206881efe8d44557 /net-analyzer
parentInitial Import of bery, help us all I'm adding something to the tree (diff)
downloadhistorical-1276889aa9127feffbf0f719815c78a45aadf91c.tar.gz
historical-1276889aa9127feffbf0f719815c78a45aadf91c.tar.bz2
historical-1276889aa9127feffbf0f719815c78a45aadf91c.zip
bumping to 5.3.1
Package-Manager: portage-2.1.1
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/net-snmp/Manifest8
-rw-r--r--net-analyzer/net-snmp/files/digest-net-snmp-5.3.13
-rw-r--r--net-analyzer/net-snmp/net-snmp-5.3.1.ebuild183
3 files changed, 194 insertions, 0 deletions
diff --git a/net-analyzer/net-snmp/Manifest b/net-analyzer/net-snmp/Manifest
index b1dfba5a6d22..1cf36a220fd4 100644
--- a/net-analyzer/net-snmp/Manifest
+++ b/net-analyzer/net-snmp/Manifest
@@ -37,6 +37,7 @@ SHA256 902d73cb44446df060bf20e0c8ef0f8815d5b846f96d93894913d3309a3841b3 files/sn
DIST net-snmp-5.2.1.2.tar.gz 3869893 RMD160 30abfbde24caa7d04990bd111822b98b012f4a0c SHA1 e93a76e081df0bfb5aa126dbad5f182176f9579e SHA256 770c56d059e52ee164cfa0d914618a982e40674a269ce28daddc580c4b67fe60
DIST net-snmp-5.2.2.tar.gz 3919826 RMD160 54c0bcc34ca6462aaab9ba69b06955dd7c11670f SHA1 2c45d24c5784b8b469e9ba3fde9eeeeabbcb7ab0 SHA256 ed5cc617e4cfe38af64a3ded8542c4e61d045dbeec00d5b93a31afc3337135fd
DIST net-snmp-5.3.0.1.tar.gz 4183370
+DIST net-snmp-5.3.1.tar.gz 4210843 RMD160 7bcdd213fb2517d0927b030deab5146522b58b3d SHA1 8ddb5122769814f04a7d3d352dcc640df7c89d41 SHA256 fb6d5113ccdd8c4661fe5d825160e45a7c5035b145e24ec18f71a509ecb0fe43
EBUILD net-snmp-5.2.1.2-r1.ebuild 5234 RMD160 5c43b15e234cd469a792ec3eeb445635931b038e SHA1 02dc4b293b9192e5a23e5c68030656d466d42a51 SHA256 1dbc840be6083391f8ba6b106ee826b5e99c4e76ed3747b21ce1a55bd41a2391
MD5 5f6da3f097d0faaad9e0e7d41c1447bd net-snmp-5.2.1.2-r1.ebuild 5234
RMD160 5c43b15e234cd469a792ec3eeb445635931b038e net-snmp-5.2.1.2-r1.ebuild 5234
@@ -49,6 +50,10 @@ EBUILD net-snmp-5.3.0.1.ebuild 5481 RMD160 3f1c5aa0fa09202752040bfc54b0b4b203888
MD5 53126ec37b65e18c5ea91cfcd8915456 net-snmp-5.3.0.1.ebuild 5481
RMD160 3f1c5aa0fa09202752040bfc54b0b4b203888462 net-snmp-5.3.0.1.ebuild 5481
SHA256 c8fb2c6180b967511d67bdf0cd9cedce61be9a207650115eb92be216c0de97ec net-snmp-5.3.0.1.ebuild 5481
+EBUILD net-snmp-5.3.1.ebuild 5479 RMD160 48669a4b26843761b48b0d7598b87b5d6e200ae1 SHA1 9807cf45e08a8c2ce2f7f95dbb659baad4364ba0 SHA256 c53816faeaf5f3ce2499e2fcfa5bb6a1de16cff45d444f94bb462a3888d1b3c3
+MD5 0a6cc3906711c8ace3d5b32dddb479bd net-snmp-5.3.1.ebuild 5479
+RMD160 48669a4b26843761b48b0d7598b87b5d6e200ae1 net-snmp-5.3.1.ebuild 5479
+SHA256 c53816faeaf5f3ce2499e2fcfa5bb6a1de16cff45d444f94bb462a3888d1b3c3 net-snmp-5.3.1.ebuild 5479
MISC ChangeLog 22441 RMD160 b332749b616ac0a900af9f1ba538af66b437df78 SHA1 aa4e8cf4c6c2014dd1b9d938e5b0ad4ead7f043e SHA256 b23392b17cb82760a5c39ca8fa49ed419ee57db8c36dc995742232fab640e9f1
MD5 3e5f531f9501bece053afc0b0c4a269e ChangeLog 22441
RMD160 b332749b616ac0a900af9f1ba538af66b437df78 ChangeLog 22441
@@ -66,3 +71,6 @@ SHA256 8082447b2cf48c79d578b97f7a2773a06fa5e0810dc6329849e5030090508647 files/di
MD5 d3cebd37f9a75b0968bd7a60fb68e7eb files/digest-net-snmp-5.3.0.1 69
RMD160 3af61ce289bac38d223f56234ebf8be9e0bceb22 files/digest-net-snmp-5.3.0.1 69
SHA256 3f8af1549b44c40f31793214b995359339a3e34263c436ccbc60aaaff3b73141 files/digest-net-snmp-5.3.0.1 69
+MD5 d8afb2f50cb9a9cfeaea5135b41541b0 files/digest-net-snmp-5.3.1 247
+RMD160 524e66315ff4fab8e6760066d1d88a4aaafe8ba5 files/digest-net-snmp-5.3.1 247
+SHA256 57af851df7613f792fa9dac8cec68746943eb997c4b19589733df8a6a8176709 files/digest-net-snmp-5.3.1 247
diff --git a/net-analyzer/net-snmp/files/digest-net-snmp-5.3.1 b/net-analyzer/net-snmp/files/digest-net-snmp-5.3.1
new file mode 100644
index 000000000000..c0eb0c226959
--- /dev/null
+++ b/net-analyzer/net-snmp/files/digest-net-snmp-5.3.1
@@ -0,0 +1,3 @@
+MD5 360a9783dbc853bab6bda90d961daee5 net-snmp-5.3.1.tar.gz 4210843
+RMD160 7bcdd213fb2517d0927b030deab5146522b58b3d net-snmp-5.3.1.tar.gz 4210843
+SHA256 fb6d5113ccdd8c4661fe5d825160e45a7c5035b145e24ec18f71a509ecb0fe43 net-snmp-5.3.1.tar.gz 4210843
diff --git a/net-analyzer/net-snmp/net-snmp-5.3.1.ebuild b/net-analyzer/net-snmp/net-snmp-5.3.1.ebuild
new file mode 100644
index 000000000000..b77bd265d46c
--- /dev/null
+++ b/net-analyzer/net-snmp/net-snmp-5.3.1.ebuild
@@ -0,0 +1,183 @@
+# Copyright 1999-2006 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.3.1.ebuild,v 1.1 2006/10/22 22:20:35 mattm Exp $
+
+inherit fixheadtails flag-o-matic perl-module
+
+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 rpm selinux smux ssl tcpd X"
+
+DEPEND=">=sys-libs/zlib-1.1.4
+ ssl? ( >=dev-libs/openssl-0.9.6d )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ rpm? ( app-arch/rpm
+ dev-libs/popt
+ app-arch/bzip2
+ )
+ elf? ( dev-libs/elfutils )
+ lm_sensors? ( sys-apps/lm_sensors )"
+
+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}"
+
+# The lm_sensors patch has a memory leak
+# If you can help, please attach a patch to bug 109785
+
+# if use lm_sensors; then
+# if use x86 || use amd64; then
+# epatch "${FILESDIR}"/${PN}-lm_sensors.patch
+# else
+# eerror "Unfortunatly you are trying to enable lm_sensors support for an unsupported arch."
+# eerror "please check the availability of sys-apps/lm_sensors - if it is available on"
+# eerror "your arch, please file a bug about this."
+# die "lm_sensors patch error: unsupported arch."
+# fi
+# fi
+
+ # bugs 68467 and 68254
+ sed -i -e \
+ 's/^NSC_AGENTLIBS="@AGENTLIBS@"/NSC_AGENTLIBS="@AGENTLIBS@ @WRAPLIBS@"/' \
+ net-snmp-config.in || die "sed net-snmp-config.in"
+ sed -i -e 's;embed_perl="yes",;embed_perl=$enableval,;' configure.in \
+ || die "sed configure.in failed"
+ # Insecure run-path - bug 103776
+ sed -i -e 's/\(@(cd perl ; $(MAKE)\)\() ; \\\)/\1 LD_RUN_PATH=\2/g' \
+ Makefile.in || die "sed Makefile.in failed"
+ # 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"
+
+ ht_fix_all
+}
+
+src_compile() {
+ local mibs
+
+ strip-flags
+
+ autoconf || die "autoconf failed"
+
+ mibs="host ucd-snmp/dlmod"
+ use smux && mibs="${mibs} smux"
+ use lm_sensors && mibs="${mibs} ucd-snmp/lmSensors"
+ use diskio && mibs="${mibs} ucd-snmp/diskio"
+
+ 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="${ROOT}/var/log/net-snmpd.log" \
+ --with-persistent-directory="${ROOT}/var/lib/net-snmp" \
+ --enable-ucd-snmp-compatibility \
+ --enable-shared \
+ --with-zlib \
+ $(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 elf) \
+ || die "econf failed"
+
+ emake -j1 || die "emake failed"
+
+ if use perl ; then
+ emake perlmodules || die "compile perl 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"
+ 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-5.1.rc6 snmpd || die
+ newconfd "${FILESDIR}"/snmpd-5.1.conf snmpd || die
+
+ # snmptrapd can use the same rc script just slightly modified
+ sed -e 's/net-snmpd/snmptrapd/g' \
+ -e 's/snmpd/snmptrapd/g' \
+ -e 's/SNMPD/SNMPTRAPD/g' \
+ "${D}"/etc/init.d/snmpd > "${D}"/etc/init.d/snmptrapd || \
+ die "failed to create snmptrapd init script"
+ chmod 0755 "${D}"/etc/init.d/snmptrapd
+
+ newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd || die
+
+ # Remove everything, keeping only the snmpd, snmptrapd, MIBs, libs, and includes.
+ if use minimal; then
+ einfo "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}}
+ 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_postinst() {
+ einfo "An example configuration file has been installed in"
+ einfo "/etc/snmp/snmpd.conf.example."
+}
+