summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2014-09-04 20:00:32 +0000
committerJeroen Roovers <jer@gentoo.org>2014-09-04 20:00:32 +0000
commitd342ed02e03d262464eaed92a124650f4d990cb8 (patch)
tree069bb65daf990d6034ea45f3a27aa81e160e1939 /net-analyzer/net-snmp
parentVersion bump. (diff)
downloadhistorical-d342ed02e03d262464eaed92a124650f4d990cb8.tar.gz
historical-d342ed02e03d262464eaed92a124650f4d990cb8.tar.bz2
historical-d342ed02e03d262464eaed92a124650f4d990cb8.zip
Version bump.
Package-Manager: portage-2.2.12/cvs/Linux x86_64 Manifest-Sign-Key: 0xA792A613
Diffstat (limited to 'net-analyzer/net-snmp')
-rw-r--r--net-analyzer/net-snmp/ChangeLog7
-rw-r--r--net-analyzer/net-snmp/Manifest23
-rw-r--r--net-analyzer/net-snmp/net-snmp-5.7.3_pre5.ebuild162
3 files changed, 176 insertions, 16 deletions
diff --git a/net-analyzer/net-snmp/ChangeLog b/net-analyzer/net-snmp/ChangeLog
index a9d9a888f805..dfe38d48e56d 100644
--- a/net-analyzer/net-snmp/ChangeLog
+++ b/net-analyzer/net-snmp/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-analyzer/net-snmp
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.290 2014/05/22 19:11:53 prometheanfire Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.291 2014/09/04 20:00:31 jer Exp $
+
+*net-snmp-5.7.3_pre5 (04 Sep 2014)
+
+ 04 Sep 2014; Jeroen Roovers <jer@gentoo.org> +net-snmp-5.7.3_pre5.ebuild:
+ Version bump.
22 May 2014; Matthew Thode <prometheanfire@gentoo.org>
files/net-snmp-5.1.2-snmpconf-selinux.patch:
diff --git a/net-analyzer/net-snmp/Manifest b/net-analyzer/net-snmp/Manifest
index 0811ff9eb20c..858578df81a8 100644
--- a/net-analyzer/net-snmp/Manifest
+++ b/net-analyzer/net-snmp/Manifest
@@ -10,24 +10,17 @@ AUX snmptrapd.conf 635 SHA256 902d73cb44446df060bf20e0c8ef0f8815d5b846f96d938949
AUX snmptrapd.init.2 459 SHA256 b4dfa7b9084df5772a60ead0af97c653a4ff75dcf5bc2e661173b342e73a81fa SHA512 36374cc3b6971286c0df13861f34ff07c87e9c2347e47e40115fc97b6a15db60cc776cb57edca05275dc004fd8ca61cbf52db4ffa6750827a9d32d3b44c8c137 WHIRLPOOL b699d4483f9c46c22bfda16132955a483b1fe330b666293a16bfe6de174bec68fa71d7c4f0d276a8829aea56ed1396c2b8a1470b5dbf24c2e6f1bca31ab0f0df
AUX snmptrapd.service 190 SHA256 e091dab52eab606a4ae1de408b4633ac1e60a79d786f90a5365916ebe92ba520 SHA512 763682e3926fd1e7f28a013be2ad56cc53eed26a0415770906968e07a183128c9d5fb70d76513244ba0cc95fc2526b68c32207b5fda83b8f53c256549cfa1b1d WHIRLPOOL 175efbeb3ca00d33f76ca9ff8923187fb807c8be0a16b87bf9e5e4be96d5ca9cfd2c186c0f549bcc6cd53e7ab2caadac692331e5fac88550a1df9ee2e7b35ce3
DIST net-snmp-5.7.2-patches-1.tar.xz 3332 SHA256 de70836fd5baff4c9223f3861eee9e625eea32859b72d7245ba6f2c35c8d7b7e SHA512 f2dfde64c81832619ca851de803a852cf4bc66b8503258bce14cacbc24083be70d100685a3cba4da0b17459bb12eb32cd38242eaafd5e320731b6ac7ee927d6c WHIRLPOOL 9978fce81414a739e65a7d66564fe13ae82059b81ce14f2f212626ee9b06ba842cea770e6918f2a71a5befb82a1d96d6e9c0e57279dcda20abd61305093f457b
+DIST net-snmp-5.7.3-patches-0.tar.xz 3304 SHA256 b4fe5e1d436fbc97eadf5d26252ce9f12da7fea2c6d29392747230e0171edb82 SHA512 1b2e73b75a0ab500a14499a0c6051177c7ca33f95ecdb748e59509353edaa22b17f0420d8520fad02943825f7db5cf7e353a5547395354b97d448c7eef8f8f06 WHIRLPOOL bc1ad7095e31e1cf00e029174f9300e4f75b8e98472f82c365836e19695cc338f727ff4755bf1defcba812c2d13c029c394433ad15b7ebe7ba28db14d1bd9ad3
DIST net-snmp-5.7.3.pre3.tar.gz 6348969 SHA256 6acc303c90274b4758c4dbc91f823f2cd624278da3e72c1306114fbd84670d51 SHA512 21b9db60943788c3ae3613b2e38888eb9168cbeab9d7c4d6b626a10c6447de20b3d02507288b39877ee6fcc907a5c23335ab6f47c4f9e076661e62678569e56b WHIRLPOOL 7787aac2f73049fb6eaba19c3b724ddb059adc381d06ee879865769cdef44aa78784b18df4e9d41a356a456399e4658f217d108ca6877cfa51e599008e93f217
+DIST net-snmp-5.7.3.pre5.tar.gz 6375630 SHA256 bcc6ab55f90e963b51bb34941c846979ecf62a5b385835d090ecdca5efad32e0 SHA512 5e59ece818fe2937d8ac9a9765361fe4db84d4b6eb5f5f96789d9bfc181d0e4b7a77a6a387f441f98f19afbfb645aebeb2443b7aee63c5d594d45a31df09a31c WHIRLPOOL 28e4e587639a024ae30253705a19b4b6a40cb4cf83405dc5dde081be55263538f3c6edac02e086ef63008729e5eb1d30764424eacc3d91c0b0499510f929e120
EBUILD net-snmp-5.7.3_pre3.ebuild 4402 SHA256 87b79b86049978c7c14459bbece92998a9d413cc65ad19eee1c3a868697fbde1 SHA512 100e1a772c90b93630a4dbc139f2d1178ed9f9d2c2cb8d18e616b91c7908d277a17a313cdb968f746c5540cc2c773246ca6f5390002e1580c29cd3da9333d7cd WHIRLPOOL eae082398bce11e2d41b133c91f2eae66b95035f5895ffaa747692bad56c4a446dbb8477bc4a4a96612f3083fc2fb6e7eb3f610ef30e15fce76390598b2ba1b4
-MISC ChangeLog 46848 SHA256 3f2f070e8755cbf1ba8be4e10de6b8e0e621e5afe8923b586bce9b62c2b59637 SHA512 87e727598edbde208a54f852073b40719fdc975347b23e0c56ee24f881fbaca129838df922beeb83d4ff01f531194d51cca681b48412db3c30437778c4f4e2eb WHIRLPOOL 9315fd47179e4b0794958959562ab7af6993930149f33585ce72eb92749628b6fdff20a11e4cd861cd5412f448338aad3844007635b8e49f2db812f771f1c687
+EBUILD net-snmp-5.7.3_pre5.ebuild 4350 SHA256 7a87eac799fb1b25c2bf4af604fe90dacda162e756e07a58e0a773b024b8a60b SHA512 20e4418606e1ca4343f581cd7ca5510f28ec7fe7e9d6a6b71a4250a62423267d1d61a0e9d81cd652542f84a3f33f1bece537b64fe1a96f0cca13f116f83bac56 WHIRLPOOL 3aec7f1af68b090c2242fcc3191556acd83468971405612d217d6cc3106264dae3d37cd7ece0d356621e935dc1f6c69a240cd64ce755d742471ff930402a24cd
+MISC ChangeLog 46966 SHA256 7991b3666dafc1d19b0cfdbda1d3fcfd11c5302fc5bf22a2f523068c8e72384e SHA512 ddd976c9f2ca93fca928e13f7688ba49c5c570b07e2de6e5ee2cc990d2dcfbc348848ef20d07177afad22d79d003f85b9f106431c0f6bae32bf61f206bae269e WHIRLPOOL 9dc7ee0b9ca9b631e72766ed84def139a423622b3c839f0eab9195d4e04588294da9575ae78de58a504b24c4c9a3ffeb80a807680fa2de2305e76e030b4f91e9
MISC metadata.xml 969 SHA256 1f03f76f0787332dfd77b0631ba1f7a933b1d2facf0ffa5a0d8a258d591971d0 SHA512 d2200fd7ec47d88827b25b7b5ba4d357523b4bc2064671e98e59577a24b707adc64687a96e3fb9e75a2b792d717eb5279063996e64129bc0c9708ae5855951ae WHIRLPOOL 997bbdd7e56790fb82128c87efd7bc638c78cc2d472120410052ed309b9817d88e6ce6a5a7e285d91c60aa96254714b0bc4e6735b803cd69a037e02b223a74b8
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.22 (GNU/Linux)
+Version: GnuPG v2
-iQIcBAEBCAAGBQJTfkwHAAoJECRx6z5ArFrDYtkP/3KxQ0k3WujkFWE0151IF1Yr
-UQtwMy/2ffYYCYdvErhKmdLAxz7Hdb2z8Y3ND+GA2enKb0rF+cbi898JiNHWYI6q
-SAlDBzNTep0dcGya0Iexia90D9QbZIJXT810/qPh4VzKjV5nwI+/U6ghrMaavXQn
-knan+te09M1TCJHJw+5kfq4VIaNrmRCgpo7Ou7b//p3fpKaUnlB5RtBPZa5x9f38
-hko6VZTrxJGSjpiVPBznypB6FmttsXVHpxGvYWfWqVjUwbYtSCejdCFZGMXlYgOt
-t5RkQtmpBFpWG7IlcCIMgezNk6cjNm08w9Cnht4/q6JcSu3FUMOA/kuILE/7dcRs
-tO0fb3xFpypgelr1H84MM2P7SslfSwXObfJutAV3ZNq3ha3sZxxkIrhHJsus9pMg
-kEvkpc6dmONF0md1eZRDNBbxu2tTN2Jk1GDCpYWEXwAakuCKsnbeAU3BjHmL7RzB
-nuKyij/3vI9fc8mZctDBxZZAmKu0jly0AN4B5a7hBP3PPEXxocC2g6rDISuXTafw
-8ETiFu+egMbYysaDZLfksODSu4yo4vUD7g+Q0AGsZMrtu9rz3rEd4+JUwMQP+bj1
-VjWhWS8hRJIHtBNbqAEC/iSL1A9UIc1r0oSXIaT8u422X7vITFOPL8uPIJAVtdWY
-ygKUZCbcbpeYOWgeDvkK
-=gidm
+iEYEAREIAAYFAlQIxOAACgkQVWmRsqeSphOxjgCfekve3PjeDdWCQ82GeDLjumZ0
+pooAnRWUads8a1lVXnCRezjoMrzVLl0y
+=FG7i
-----END PGP SIGNATURE-----
diff --git a/net-analyzer/net-snmp/net-snmp-5.7.3_pre5.ebuild b/net-analyzer/net-snmp/net-snmp-5.7.3_pre5.ebuild
new file mode 100644
index 000000000000..07ab208582d0
--- /dev/null
+++ b/net-analyzer/net-snmp/net-snmp-5.7.3_pre5.ebuild
@@ -0,0 +1,162 @@
+# Copyright 1999-2014 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.7.3_pre5.ebuild,v 1.1 2014/09/04 20:00:31 jer Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python2_{6,7} )
+DISTUTILS_SINGLE_IMPL=yesplz
+DISTUTILS_OPTIONAL=yesplz
+WANT_AUTOMAKE=none
+PATCHSET=0
+
+inherit autotools distutils-r1 eutils perl-module systemd
+
+DESCRIPTION="Software for generating and retrieving SNMP data"
+HOMEPAGE="http://net-snmp.sourceforge.net/"
+SRC_URI="
+ mirror://sourceforge/${PN}/${PN}/${PV/_pre*/}-pre-releases/${P/_pre*/}.${PV/*_}.tar.gz
+ http://dev.gentoo.org/~jer/${PN}-5.7.3-patches-${PATCHSET}.tar.xz
+"
+
+S=${WORKDIR}/${P/_/.}
+
+# GPL-2 for the init scripts
+LICENSE="HPND BSD GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="bzip2 doc elf ipv6 mfd-rewrites minimal perl python rpm selinux ssl tcpd X zlib lm_sensors ucd-compat pci netlink mysql"
+
+COMMON="ssl? ( >=dev-libs/openssl-0.9.6d )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ rpm? (
+ app-arch/rpm
+ dev-libs/popt
+ )
+ bzip2? ( app-arch/bzip2 )
+ zlib? ( >=sys-libs/zlib-1.1.4 )
+ elf? ( dev-libs/elfutils )
+ python? (
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+ )
+ pci? ( sys-apps/pciutils )
+ lm_sensors? ( sys-apps/lm_sensors )
+ netlink? ( dev-libs/libnl:1.1 )
+ mysql? ( virtual/mysql )"
+
+RDEPEND="${COMMON}
+ perl? (
+ X? ( dev-perl/perl-tk )
+ !minimal? ( dev-perl/TermReadKey )
+ )
+ selinux? ( sec-policy/selinux-snmp )
+"
+
+# Dependency on autoconf due to bug #225893
+DEPEND="${COMMON}
+ >=sys-apps/sed-4
+ doc? ( app-doc/doxygen )"
+
+REQUIRED_USE="
+ python? ( ${PYTHON_REQUIRED_USE} )
+ rpm? ( bzip2 zlib )
+"
+
+RESTRICT=test
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # snmpconf generates config files with proper selinux context
+ use selinux && epatch "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
+
+ epatch "${WORKDIR}"/patches/*.patch
+
+ epatch_user
+
+ eautoconf
+}
+
+src_configure() {
+ # keep this in the same line, configure.ac arguments are passed down to config.h
+ local mibs="host ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/extensible mibII/mta_sendmail smux"
+ use lm_sensors && mibs="${mibs} ucd-snmp/lmsensorsMib"
+
+ econf \
+ $(use_enable !ssl internal-md5) \
+ $(use_enable ipv6) \
+ $(use_enable mfd-rewrites) \
+ $(use_enable perl embedded-perl) \
+ $(use_enable ucd-compat ucd-snmp-compatibility) \
+ $(use_with bzip2) \
+ $(use_with elf) \
+ $(use_with mysql) \
+ $(use_with netlink nl) \
+ $(use_with pci) \
+ $(use_with perl perl-modules INSTALLDIRS=vendor) \
+ $(use_with python python-modules) \
+ $(use_with rpm) \
+ $(use_with ssl openssl) \
+ $(use_with tcpd libwrap) \
+ $(use_with zlib) \
+ --enable-shared --disable-static \
+ --with-default-snmp-version="3" \
+ --with-install-prefix="${D}" \
+ --with-ldflags="${LDFLAGS}" \
+ --with-logfile="/var/log/net-snmpd.log" \
+ --with-mib-modules="${mibs}" \
+ --with-persistent-directory="/var/lib/net-snmp" \
+ --with-sys-contact="root@Unknown" \
+ --with-sys-location="Unknown"
+}
+
+src_compile() {
+ emake \
+ OTHERLDFLAGS="${LDFLAGS}" \
+ sedscript all
+
+ use doc && emake docsdox
+}
+
+src_install () {
+ # bug #317965
+ emake -j1 DESTDIR="${D}" install
+
+ if use perl ; then
+ fixlocalpod
+ use X || rm -f "${D}"/usr/bin/tkmib
+ else
+ rm -f "${D}"/usr/bin/mib2c "${D}"/usr/bin/snmpcheck "${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 /var/lib/net-snmp
+
+ newinitd "${FILESDIR}"/snmpd.init.2 snmpd
+ newconfd "${FILESDIR}"/snmpd.conf snmpd
+
+ newinitd "${FILESDIR}"/snmptrapd.init.2 snmptrapd
+ newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd
+
+ systemd_dounit "${FILESDIR}"/snmpd.service
+ systemd_dounit "${FILESDIR}"/snmptrapd.service
+
+ insinto /etc/snmp
+ newins "${S}"/EXAMPLE.conf snmpd.conf.example
+
+ # Remove everything not required for an agent.
+ # Keep only the snmpd, snmptrapd, MIBs, headers and libraries.
+ if use minimal; then
+ 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,check,conf},fixproc,traptoemail} \
+ "${D}"/usr/share/snmp/snmpconf-data \
+ "${D}"/usr/share/snmp/*.conf \
+ "${D}"/**/*.pl
+ fi
+}