Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/net-snmp/
Date: Mon, 05 Jun 2017 19:58:24
Message-Id: 1496692687.8091da18a12f6f7b1f7a9920232ff75bb6b8639e.dilfridge@gentoo
1 commit: 8091da18a12f6f7b1f7a9920232ff75bb6b8639e
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 5 19:58:07 2017 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 5 19:58:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8091da18
7
8 net-analyzer/net-snmp: Old (and broken with Perl 5.24)
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 net-analyzer/net-snmp/net-snmp-5.7.3-r3.ebuild | 185 -------------------------
13 1 file changed, 185 deletions(-)
14
15 diff --git a/net-analyzer/net-snmp/net-snmp-5.7.3-r3.ebuild b/net-analyzer/net-snmp/net-snmp-5.7.3-r3.ebuild
16 deleted file mode 100644
17 index 360dc9661d7..00000000000
18 --- a/net-analyzer/net-snmp/net-snmp-5.7.3-r3.ebuild
19 +++ /dev/null
20 @@ -1,185 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=5
25 -PYTHON_COMPAT=( python2_7 )
26 -DISTUTILS_SINGLE_IMPL=yesplz
27 -DISTUTILS_OPTIONAL=yesplz
28 -WANT_AUTOMAKE=none
29 -PATCHSET=2
30 -GENTOO_DEPEND_ON_PERL=no
31 -
32 -inherit autotools distutils-r1 eutils perl-module systemd
33 -
34 -DESCRIPTION="Software for generating and retrieving SNMP data"
35 -HOMEPAGE="http://net-snmp.sourceforge.net/"
36 -SRC_URI="
37 - mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz
38 - https://dev.gentoo.org/~jer/${PN}-5.7.3-patches-${PATCHSET}.tar.xz
39 -"
40 -
41 -S=${WORKDIR}/${P/_/.}
42 -
43 -# GPL-2 for the init scripts
44 -LICENSE="HPND BSD GPL-2"
45 -SLOT="0"
46 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86"
47 -IUSE="bzip2 doc elf ipv6 libressl mfd-rewrites minimal perl python rpm selinux ssl tcpd X zlib lm_sensors ucd-compat pci netlink mysql"
48 -
49 -COMMON_DEPEND="
50 - ssl? (
51 - !libressl? ( >=dev-libs/openssl-0.9.6d:0 )
52 - libressl? ( dev-libs/libressl )
53 - )
54 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
55 - rpm? (
56 - app-arch/rpm
57 - dev-libs/popt
58 - )
59 - bzip2? ( app-arch/bzip2 )
60 - zlib? ( >=sys-libs/zlib-1.1.4 )
61 - elf? ( dev-libs/elfutils )
62 - python? (
63 - dev-python/setuptools[${PYTHON_USEDEP}]
64 - ${PYTHON_DEPS}
65 - )
66 - pci? ( sys-apps/pciutils )
67 - lm_sensors? ( sys-apps/lm_sensors )
68 - netlink? ( dev-libs/libnl:3 )
69 - mysql? ( virtual/mysql )
70 - perl? ( <dev-lang/perl-5.24.0:= )
71 -"
72 -DEPEND="
73 - ${COMMON_DEPEND}
74 - doc? ( app-doc/doxygen )
75 -"
76 -RDEPEND="
77 - ${COMMON_DEPEND}
78 - perl? (
79 - X? ( dev-perl/Tk )
80 - !minimal? ( dev-perl/TermReadKey )
81 - )
82 - selinux? ( sec-policy/selinux-snmp )
83 -"
84 -
85 -REQUIRED_USE="
86 - python? ( ${PYTHON_REQUIRED_USE} )
87 - rpm? ( bzip2 zlib )
88 -"
89 -
90 -RESTRICT=test
91 -
92 -pkg_setup() {
93 - use python && python-single-r1_pkg_setup
94 -}
95 -
96 -src_prepare() {
97 - # snmpconf generates config files with proper selinux context
98 - use selinux && epatch "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
99 -
100 - epatch "${WORKDIR}"/patches/*.patch
101 -
102 - epatch_user
103 -
104 - eautoconf
105 -}
106 -
107 -src_configure() {
108 - # keep this in the same line, configure.ac arguments are passed down to config.h
109 - local mibs="host ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/extensible mibII/mta_sendmail smux etherlike-mib/dot3StatsTable"
110 - use lm_sensors && mibs="${mibs} ucd-snmp/lmsensorsMib"
111 -
112 - # Assume /etc/mtab is not present with a recent baselayout/openrc (bug #565136)
113 - use kernel_linux && export ac_cv_ETC_MNTTAB=/etc/mtab
114 -
115 - econf \
116 - $(use_enable !ssl internal-md5) \
117 - $(use_enable ipv6) \
118 - $(use_enable mfd-rewrites) \
119 - $(use_enable perl embedded-perl) \
120 - $(use_enable ucd-compat ucd-snmp-compatibility) \
121 - $(use_with bzip2) \
122 - $(use_with elf) \
123 - $(use_with mysql) \
124 - $(use_with netlink nl) \
125 - $(use_with pci) \
126 - $(use_with perl perl-modules INSTALLDIRS=vendor) \
127 - $(use_with python python-modules) \
128 - $(use_with rpm) \
129 - $(use_with ssl openssl) \
130 - $(use_with tcpd libwrap) \
131 - $(use_with zlib) \
132 - --enable-shared --disable-static \
133 - --with-default-snmp-version="3" \
134 - --with-install-prefix="${D}" \
135 - --with-ldflags="${LDFLAGS}" \
136 - --with-logfile="/var/log/net-snmpd.log" \
137 - --with-mib-modules="${mibs}" \
138 - --with-persistent-directory="/var/lib/net-snmp" \
139 - --with-sys-contact="root@Unknown" \
140 - --with-sys-location="Unknown"
141 -}
142 -
143 -src_compile() {
144 - emake \
145 - OTHERLDFLAGS="${LDFLAGS}" \
146 - sedscript all
147 -
148 - use doc && emake docsdox
149 -}
150 -
151 -src_install () {
152 - # bug #317965
153 - emake -j1 DESTDIR="${D}" install
154 -
155 - if use perl ; then
156 - perl_delete_localpod
157 - if ! use X; then
158 - rm "${D}"/usr/bin/tkmib || die
159 - fi
160 - else
161 - rm -f \
162 - "${D}"/usr/bin/fixproc \
163 - "${D}"/usr/bin/ipf-mod.pl \
164 - "${D}"/usr/bin/mib2c \
165 - "${D}"/usr/bin/net-snmp-cert \
166 - "${D}"/usr/bin/snmp-bridge-mib \
167 - "${D}"/usr/bin/snmpcheck \
168 - "${D}"/usr/bin/snmpconf \
169 - "${D}"/usr/bin/tkmib \
170 - "${D}"/usr/bin/traptoemail \
171 - "${D}"/usr/share/snmp/mib2c.perl.conf \
172 - "${D}"/usr/share/snmp/snmp_perl_trapd.pl \
173 - || die
174 - fi
175 -
176 - dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO
177 - newdoc EXAMPLE.conf.def EXAMPLE.conf
178 -
179 - use doc && dohtml docs/html/*
180 -
181 - keepdir /var/lib/net-snmp
182 -
183 - newinitd "${FILESDIR}"/snmpd.init.2 snmpd
184 - newconfd "${FILESDIR}"/snmpd.conf snmpd
185 -
186 - newinitd "${FILESDIR}"/snmptrapd.init.2 snmptrapd
187 - newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd
188 -
189 - systemd_dounit "${FILESDIR}"/snmpd.service
190 - systemd_dounit "${FILESDIR}"/snmptrapd.service
191 -
192 - insinto /etc/snmp
193 - newins "${S}"/EXAMPLE.conf snmpd.conf.example
194 -
195 - # Remove everything not required for an agent.
196 - # Keep only the snmpd, snmptrapd, MIBs, headers and libraries.
197 - if use minimal; then
198 - rm -rf \
199 - "${D}"/**/*.pl \
200 - "${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} \
201 - "${D}"/usr/share/snmp/*.conf \
202 - "${D}"/usr/share/snmp/snmpconf-data \
203 - || die
204 - fi
205 -}