diff options
author | Martin Holzer <mholzer@gentoo.org> | 2004-11-27 11:13:12 +0000 |
---|---|---|
committer | Martin Holzer <mholzer@gentoo.org> | 2004-11-27 11:13:12 +0000 |
commit | 0ead7542b674ad21b2ec5db51c35d8573b0c6afc (patch) | |
tree | ee94dd0836dcb00227c172b74ba9ff45cef5abbf /net-analyzer/net-snmp | |
parent | #63024 (Manifest recommit) (diff) | |
download | gentoo-2-0ead7542b674ad21b2ec5db51c35d8573b0c6afc.tar.gz gentoo-2-0ead7542b674ad21b2ec5db51c35d8573b0c6afc.tar.bz2 gentoo-2-0ead7542b674ad21b2ec5db51c35d8573b0c6afc.zip |
VErsion bumped.
Diffstat (limited to 'net-analyzer/net-snmp')
-rw-r--r-- | net-analyzer/net-snmp/ChangeLog | 7 | ||||
-rw-r--r-- | net-analyzer/net-snmp/Manifest | 16 | ||||
-rw-r--r-- | net-analyzer/net-snmp/files/digest-net-snmp-5.2 | 1 | ||||
-rw-r--r-- | net-analyzer/net-snmp/net-snmp-5.2.ebuild | 116 |
4 files changed, 132 insertions, 8 deletions
diff --git a/net-analyzer/net-snmp/ChangeLog b/net-analyzer/net-snmp/ChangeLog index 48dd06a22d0d..0d6ae95e38c8 100644 --- a/net-analyzer/net-snmp/ChangeLog +++ b/net-analyzer/net-snmp/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/net-snmp # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.68 2004/11/23 19:40:18 gustavoz Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.69 2004/11/27 11:13:12 mholzer Exp $ + +*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: diff --git a/net-analyzer/net-snmp/Manifest b/net-analyzer/net-snmp/Manifest index 5dd8b1b8d52a..68abf069b4d6 100644 --- a/net-analyzer/net-snmp/Manifest +++ b/net-analyzer/net-snmp/Manifest @@ -1,14 +1,16 @@ -MD5 8aee5c3b25ae3983e8e55bc2ee9f91b9 ChangeLog 10213 +MD5 88dc599fed8727b20c54ee57befd8211 net-snmp-5.2.ebuild 3620 MD5 feec9ceb3ba9f6a8b860a4a130998500 metadata.xml 214 -MD5 5d2e3b01adc5fd9b0932f5e995bfc612 net-snmp-5.1.1-r1.ebuild 3589 +MD5 8aee5c3b25ae3983e8e55bc2ee9f91b9 ChangeLog 10213 MD5 277963b5cf3dd0a4fca2658df153e9f7 net-snmp-5.1.1.ebuild 2413 +MD5 5d2e3b01adc5fd9b0932f5e995bfc612 net-snmp-5.1.1-r1.ebuild 3589 MD5 88dc599fed8727b20c54ee57befd8211 net-snmp-5.1.2.ebuild 3620 -MD5 b492aa2a6ad459eb41a26932d4c0740b files/digest-net-snmp-5.1.1 67 -MD5 b492aa2a6ad459eb41a26932d4c0740b files/digest-net-snmp-5.1.1-r1 67 -MD5 4b5b02692d3398dcdb69a3188136dc25 files/digest-net-snmp-5.1.2 67 -MD5 25d92c9a7adcbb80240a914a8f6bbfe5 files/net-snmp-lm_sensors.patch 13686 +MD5 0dbde7b1bdd9c9dc988039e676800337 files/snmpd-5.1.rc6 714 MD5 1cc5b20de8fc9e7c807195c320ab2f4b files/net-snmp-proc.patch 2448 MD5 ed2e953a9a923caec45eeca95bec2efc files/snmpd-5.1.conf 606 -MD5 0dbde7b1bdd9c9dc988039e676800337 files/snmpd-5.1.rc6 714 +MD5 93ce82e69e9c66badd05144fd498530c files/digest-net-snmp-5.2 65 MD5 00ce9b4fa6d597e08af7ce82d3a5c246 files/snmpd.conf 599 MD5 662833e61042a47d4bd8aaae404f4245 files/snmpd.rc6 710 +MD5 b492aa2a6ad459eb41a26932d4c0740b files/digest-net-snmp-5.1.1 67 +MD5 b492aa2a6ad459eb41a26932d4c0740b files/digest-net-snmp-5.1.1-r1 67 +MD5 25d92c9a7adcbb80240a914a8f6bbfe5 files/net-snmp-lm_sensors.patch 13686 +MD5 4b5b02692d3398dcdb69a3188136dc25 files/digest-net-snmp-5.1.2 67 diff --git a/net-analyzer/net-snmp/files/digest-net-snmp-5.2 b/net-analyzer/net-snmp/files/digest-net-snmp-5.2 new file mode 100644 index 000000000000..947c6aadbcc3 --- /dev/null +++ b/net-analyzer/net-snmp/files/digest-net-snmp-5.2 @@ -0,0 +1 @@ +MD5 af1c18209474ec4851b06504aae2a7c1 net-snmp-5.2.tar.gz 3853153 diff --git a/net-analyzer/net-snmp/net-snmp-5.2.ebuild b/net-analyzer/net-snmp/net-snmp-5.2.ebuild new file mode 100644 index 000000000000..ea34a9d7d59c --- /dev/null +++ b/net-analyzer/net-snmp/net-snmp-5.2.ebuild @@ -0,0 +1,116 @@ +# 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/net-snmp-5.2.ebuild,v 1.1 2004/11/27 11:13:12 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" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~arm ~hppa ~amd64 ~ia64 ~s390 ~ppc64 ~mips" +IUSE="perl ipv6 ssl tcpd X lm_sensors minimal" + +PROVIDE="virtual/snmp" +DEPEND="virtual/libc + !minimal? ( <sys-libs/db-2 ) + >=sys-libs/zlib-1.1.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 + ) + lm_sensors? ( + x86? ( sys-apps/lm-sensors ) + amd64? ( sys-apps/lm-sensors ) + )" +RDEPEND="${DEPEND} + perl? ( X? ( dev-perl/perl-tk ) ) + !virtual/snmp" + +DEPEND="${DEPEND} >=sys-apps/sed-4" + +src_unpack() { + unpack ${A} + cd ${S} + + 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 + + #wrt to bugs 68467, 68254 + sed -i -e 's/^NSC_AGENTLIBS="@AGENTLIBS@"/NSC_AGENTLIBS="@AGENTLIBS@ @WRAPLIBS@"/' net-snmp-config.in + + sed -i -e '551s;embed_perl="yes",;embed_perl=$enableval,;' configure.in + autoconf || die "autoconf failed" +} + +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=${ROOT}/var/log/net-snmpd.log \ + --with-persistent-directory=${ROOT}/var/lib/net-snmp \ + --enable-ucd-snmp-compatibility \ + --enable-shared \ + --with-zlib \ + --with-install-prefix=${D} \ + ${myconf} || die "econf failed" + + emake -j1 || die "compile problem" + + if use perl ; then + emake perlmodules || die "compile perl modules problem" + fi +} + +src_install () { + make DESTDIR="${D}" install || die "make install failed" + + 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}/snmpd-5.1.rc6" snmpd + insinto /etc/conf.d + newins "${FILESDIR}/snmpd-5.1.conf" snmpd + + keepdir /etc/snmp /var/lib/net-snmp + + # 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/{net-snmp-config,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 +} |