summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2015-01-19 14:24:47 +0000
committerJeroen Roovers <jer@gentoo.org>2015-01-19 14:24:47 +0000
commitea4d4000a110f0b62a1bf7f585a0ad0cf68f7b0f (patch)
tree9fed3fc3d038d746a4c8f46085276b7aeca98667 /net-analyzer
parentVersion bump. (diff)
downloadhistorical-ea4d4000a110f0b62a1bf7f585a0ad0cf68f7b0f.tar.gz
historical-ea4d4000a110f0b62a1bf7f585a0ad0cf68f7b0f.tar.bz2
historical-ea4d4000a110f0b62a1bf7f585a0ad0cf68f7b0f.zip
Make more perl scripts optional (bug #536212).
Package-Manager: portage-2.2.15/cvs/Linux x86_64 Manifest-Sign-Key: 0xA792A613
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/net-snmp/ChangeLog9
-rw-r--r--net-analyzer/net-snmp/Manifest23
-rw-r--r--net-analyzer/net-snmp/net-snmp-5.7.3_pre5-r3.ebuild180
3 files changed, 193 insertions, 19 deletions
diff --git a/net-analyzer/net-snmp/ChangeLog b/net-analyzer/net-snmp/ChangeLog
index 2e5fb382c622..233cea144a3f 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.305 2014/11/16 20:27:36 dilfridge Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/net-snmp/ChangeLog,v 1.306 2015/01/19 14:24:46 jer Exp $
+
+*net-snmp-5.7.3_pre5-r3 (19 Jan 2015)
+
+ 19 Jan 2015; Jeroen Roovers <jer@gentoo.org> +net-snmp-5.7.3_pre5-r3.ebuild:
+ Make more perl scripts optional (bug #536212).
16 Nov 2014; Andreas K. Huettel <dilfridge@gentoo.org>
net-snmp-5.7.3_pre5-r1.ebuild, net-snmp-5.7.3_pre5-r2.ebuild:
diff --git a/net-analyzer/net-snmp/Manifest b/net-analyzer/net-snmp/Manifest
index c8a463509ab1..121b6679621b 100644
--- a/net-analyzer/net-snmp/Manifest
+++ b/net-analyzer/net-snmp/Manifest
@@ -12,24 +12,13 @@ DIST net-snmp-5.7.3-patches-1.tar.xz 5128 SHA256 742c5382a0e96f151b335cbfedc3da7
DIST net-snmp-5.7.3.pre5.tar.gz 6375630 SHA256 bcc6ab55f90e963b51bb34941c846979ecf62a5b385835d090ecdca5efad32e0 SHA512 5e59ece818fe2937d8ac9a9765361fe4db84d4b6eb5f5f96789d9bfc181d0e4b7a77a6a387f441f98f19afbfb645aebeb2443b7aee63c5d594d45a31df09a31c WHIRLPOOL 28e4e587639a024ae30253705a19b4b6a40cb4cf83405dc5dde081be55263538f3c6edac02e086ef63008729e5eb1d30764424eacc3d91c0b0499510f929e120
EBUILD net-snmp-5.7.3_pre5-r1.ebuild 4358 SHA256 e08cb45dad9ec0f5a3409e31e7d1294966d227e30e34fd92705bddabbcc45aa9 SHA512 0c4c2feb4f4d715f624508588c8561984533ba8bfd14c096a5311f5d9b4a9dad926e2525577b159f73b12181675a1daa51112c58cf1bbd5c64ba8947749de926 WHIRLPOOL d0aec5d6565d006dff0030b9c6e7e6c73649baf7669e393d398fb1751fbb888807d6ba105624583dcee43e570b763c4a84223edd3e71dbde35eccb60693b9128
EBUILD net-snmp-5.7.3_pre5-r2.ebuild 4360 SHA256 a9270697f0b92a073ef1585e15fa10655a3eb66bef390bc5adcf9cc628714cf1 SHA512 21eda0bd719ce2c8bf774e3ab7710b633ea2a58f643a166f59d4e474eb49e5a07350dd29e5ef7de8890644da9082dd0659ee69a0cdae27da06d6149c029215c0 WHIRLPOOL be710cb037ce1a835eefa3c235be12f9bc9336fca2af6ce2623b46cc1054176ec138aa6ad182303ea6c3e0ca02872097f841319fa1ff9e6d2474e01f47363986
-MISC ChangeLog 48805 SHA256 f4424da547b75e99f35518091ef45c947e271aab0037c59dc162a51cd3c51938 SHA512 21a9365944cbef481086147ddc420f43f75dc30e0399475d168cc830d66c73f2b5f087b0036450001f8f0b3fcb316eb61c38bd8e1120037b5fad4f7c38e37603 WHIRLPOOL fad4370776a0b778d7ff9c4b43dc407bdaa6878c89bc11721f582690ff615526ba23c48c3971737f23a584fd1a2b74638a75eef4b94c9b3a1ed56c44529737ec
+EBUILD net-snmp-5.7.3_pre5-r3.ebuild 4742 SHA256 3a76f7e35355dd1ae11f06a0580e8ef122255677236922901ac7e1bb1760ffad SHA512 54410a7cbf70abcb94c66b4631315e22fc0bdea3b96aa1cd6ee59c607a6e294e8fc2aef13aa33383e121910099f8eed85e640dd621cb641e33c899ab714ca8ae WHIRLPOOL 9b9255b7f69fbd1416468a2218f7244a9e1556fadbdae462ff83054a46b305401f26a59447c8328bb51b11699c89672809dd6a49f5ff9dd0e30556b5cd4ef46c
+MISC ChangeLog 48967 SHA256 207d80ccb5d9a490702508e62f9ef2a054b9dface754220996e485ed935fb375 SHA512 dc2f9554ea1f39a497956b99726d9eadf60bb9cb747976723bc1257808f4588ba43404fc9a60157c846187295bb527aa49bbdd0b0b49d608f546b9c6caa4274a WHIRLPOOL 9aa6dc043d74508793e32612bbf6e4b2b12cf5e8702a256dc2b2ef53a500964ca1206f7f41c270ddafed0e465ace741eb5a641ffa9208c0ef753a158e97505a2
MISC metadata.xml 969 SHA256 1f03f76f0787332dfd77b0631ba1f7a933b1d2facf0ffa5a0d8a258d591971d0 SHA512 d2200fd7ec47d88827b25b7b5ba4d357523b4bc2064671e98e59577a24b707adc64687a96e3fb9e75a2b792d717eb5279063996e64129bc0c9708ae5855951ae WHIRLPOOL 997bbdd7e56790fb82128c87efd7bc638c78cc2d472120410052ed309b9817d88e6ce6a5a7e285d91c60aa96254714b0bc4e6735b803cd69a037e02b223a74b8
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0
+Version: GnuPG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-5.7.3_pre5-r3.ebuild
new file mode 100644
index 000000000000..e56a423362c0
--- /dev/null
+++ b/net-analyzer/net-snmp/net-snmp-5.7.3_pre5-r3.ebuild
@@ -0,0 +1,180 @@
+# Copyright 1999-2015 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-r3.ebuild,v 1.1 2015/01/19 14:24:46 jer Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python2_{6,7} )
+DISTUTILS_SINGLE_IMPL=yesplz
+DISTUTILS_OPTIONAL=yesplz
+WANT_AUTOMAKE=none
+PATCHSET=1
+GENTOO_DEPEND_ON_PERL=no
+
+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_DEPEND="
+ 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:3 )
+ mysql? ( virtual/mysql )
+ perl? ( dev-lang/perl )
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ doc? ( app-doc/doxygen )
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ perl? (
+ X? ( dev-perl/perl-tk )
+ !minimal? ( dev-perl/TermReadKey )
+ )
+ selinux? ( sec-policy/selinux-snmp )
+"
+
+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 etherlike-mib/dot3StatsTable"
+ 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
+ perl_delete_localpod
+ if ! use X; then
+ rm "${D}"/usr/bin/tkmib || die
+ fi
+ else
+ rm -f \
+ "${D}"/usr/bin/fixproc \
+ "${D}"/usr/bin/ipf-mod.pl \
+ "${D}"/usr/bin/mib2c \
+ "${D}"/usr/bin/net-snmp-cert \
+ "${D}"/usr/bin/snmp-bridge-mib \
+ "${D}"/usr/bin/snmpcheck \
+ "${D}"/usr/bin/snmpconf \
+ "${D}"/usr/bin/tkmib \
+ "${D}"/usr/bin/traptoemail \
+ "${D}"/usr/share/snmp/mib2c.perl.conf \
+ "${D}"/usr/share/snmp/snmp_perl_trapd.pl \
+ || die
+ 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}"/**/*.pl \
+ "${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/*.conf \
+ "${D}"/usr/share/snmp/snmpconf-data \
+ || die
+ fi
+}