Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/net-snmp/
Date: Sat, 25 Dec 2021 22:27:44
Message-Id: 1640471247.8ca31cbc7ad665aa4e0867e271fea83003032f60.sam@gentoo
1 commit: 8ca31cbc7ad665aa4e0867e271fea83003032f60
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 25 22:27:27 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 25 22:27:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ca31cbc
7
8 net-analyzer/net-snmp: drop 5.9-r4, 5.9-r5
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-analyzer/net-snmp/Manifest | 1 -
13 net-analyzer/net-snmp/net-snmp-5.9-r4.ebuild | 213 ---------------------------
14 net-analyzer/net-snmp/net-snmp-5.9-r5.ebuild | 213 ---------------------------
15 3 files changed, 427 deletions(-)
16
17 diff --git a/net-analyzer/net-snmp/Manifest b/net-analyzer/net-snmp/Manifest
18 index 3636244dbab5..b4a54d47a08d 100644
19 --- a/net-analyzer/net-snmp/Manifest
20 +++ b/net-analyzer/net-snmp/Manifest
21 @@ -1,3 +1,2 @@
22 DIST net-snmp-5.7.3-patches-3.tar.xz 3176 BLAKE2B 1a71d6743afb841f664c6058e32c7c411af62b0f36acd3bb9251804893ed12f462a0c5bab828e309eeec7824def2dca8fa866350b90a62ec4f0df1141b51ecae SHA512 d8a91b9668320a1e19d062eb86dd4d16beb7c2d15ac7ebbb9d2a4bd298af39bbb0a2613504dbb0057cccdec731f08f2308c5a15395e1fbc29bb0611ed8aca636
23 DIST net-snmp-5.9.1.tar.gz 6781346 BLAKE2B 4242ca77372005f995dfd228bec51d35b6b0f8c0ab0e44ed40cdb3cc0578b64e97444ffcb074dceca30739deadb46e68f1c75e87d3f1768d81b5e084b0fc0f5f SHA512 ae158ab41961ee2064d85187337979e6ff6ba90f3136b8a960e9ae46ee1408d9d2f0c5c4dfc3a3302e6dbb357cddf1221489435288c4f52182a03e94a9e450c3
24 -DIST net-snmp-5.9.tar.xz 4082580 BLAKE2B 9dfd5a7dfe4ca18b16c71c9f5cb70c540d16aa36a0b2dacd3ddc465934f96ac473f77490af78d202bf6dad4eddea5d75665a770df74132aafda39f5f3a87d835 SHA512 3f1e27caa8e5306d451b61b08c2daf007929a850661962fcd29b528a80332a980184303a7e87c96d8d2774181758889dc825cb08e3c3b353c5e7ca1ebcc09173
25
26 diff --git a/net-analyzer/net-snmp/net-snmp-5.9-r4.ebuild b/net-analyzer/net-snmp/net-snmp-5.9-r4.ebuild
27 deleted file mode 100644
28 index 38a18dc27b47..000000000000
29 --- a/net-analyzer/net-snmp/net-snmp-5.9-r4.ebuild
30 +++ /dev/null
31 @@ -1,213 +0,0 @@
32 -# Copyright 1999-2021 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -DISTUTILS_OPTIONAL=yesplz
38 -DISTUTILS_SINGLE_IMPL=yesplz
39 -GENTOO_DEPEND_ON_PERL=no
40 -PATCHSET=3
41 -PYTHON_COMPAT=( python3_{8..10} )
42 -WANT_AUTOMAKE=none
43 -inherit autotools distutils-r1 perl-module systemd
44 -
45 -DESCRIPTION="Software for generating and retrieving SNMP data"
46 -HOMEPAGE="http://www.net-snmp.org/"
47 -SRC_URI="
48 - https://dev.gentoo.org/~jsmolic/distfiles/${PN}-5.7.3-patches-3.tar.xz
49 - https://dev.gentoo.org/~jsmolic/distfiles/${P}.tar.xz
50 -"
51 -
52 -# GPL-2 for the init scripts
53 -LICENSE="HPND BSD GPL-2"
54 -SLOT="0/40"
55 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
56 -IUSE="
57 - X bzip2 doc elf kmem ipv6 lm-sensors mfd-rewrites minimal mysql
58 - netlink pcap pci perl python rpm selinux smux ssl tcpd ucd-compat zlib
59 -"
60 -REQUIRED_USE="
61 - python? ( ${PYTHON_REQUIRED_USE} )
62 - rpm? ( bzip2 zlib )
63 -"
64 -
65 -COMMON_DEPEND="
66 - virtual/libcrypt:=
67 - bzip2? ( app-arch/bzip2 )
68 - elf? ( dev-libs/elfutils )
69 - lm-sensors? ( sys-apps/lm-sensors )
70 - mysql? ( dev-db/mysql-connector-c:0= )
71 - netlink? ( dev-libs/libnl:3 )
72 - pcap? ( net-libs/libpcap )
73 - pci? ( sys-apps/pciutils )
74 - perl? ( dev-lang/perl:= )
75 - python? (
76 - $(python_gen_cond_dep '
77 - dev-python/setuptools[${PYTHON_USEDEP}]
78 - ')
79 - ${PYTHON_DEPS}
80 - )
81 - rpm? (
82 - app-arch/rpm
83 - dev-libs/popt
84 - )
85 - ssl? (
86 - >=dev-libs/openssl-0.9.6d:0=
87 - )
88 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
89 - zlib? ( >=sys-libs/zlib-1.1.4 )
90 -"
91 -DEPEND="
92 - ${COMMON_DEPEND}
93 - doc? ( app-doc/doxygen )
94 -"
95 -RDEPEND="
96 - ${COMMON_DEPEND}
97 - perl? (
98 - X? ( dev-perl/Tk )
99 - !minimal? ( dev-perl/TermReadKey )
100 - )
101 - selinux? ( sec-policy/selinux-snmp )
102 -"
103 -RESTRICT=test
104 -PATCHES=(
105 - "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
106 - "${FILESDIR}"/${PN}-5.8-do-not-conflate-LDFLAGS-and-LIBS.patch
107 - "${FILESDIR}"/${PN}-5.8-pcap.patch
108 - "${FILESDIR}"/${PN}-5.8.1-pkg-config.patch
109 - "${FILESDIR}"/${PN}-5.8.1-net-snmp-config-libdir.patch
110 - "${FILESDIR}"/${PN}-5.8.1-mysqlclient.patch
111 - "${FILESDIR}"/${PN}-5.9-MakeMaker.patch
112 - "${FILESDIR}"/${PN}-99999999-tinfo.patch
113 -)
114 -
115 -pkg_setup() {
116 - use python && python-single-r1_pkg_setup
117 -}
118 -
119 -src_prepare() {
120 - # snmpconf generates config files with proper selinux context
121 - use selinux && eapply "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
122 -
123 - mv "${WORKDIR}"/patches/0002-Respect-DESTDIR-for-pythoninstall.patch{,.disabled} || die
124 - mv "${WORKDIR}"/patches/0004-Don-t-report-CFLAGS-and-LDFLAGS-in-net-snmp-config.patch{,.disabled} || die
125 - eapply "${WORKDIR}"/patches/*.patch
126 -
127 - default
128 -
129 - eautoconf
130 -}
131 -
132 -src_configure() {
133 - # keep this in the same line, configure.ac arguments are passed down to config.h
134 - local mibs="host ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/extensible mibII/mta_sendmail etherlike-mib/dot3StatsTable"
135 - use lm-sensors && mibs="${mibs} ucd-snmp/lmsensorsMib"
136 - use smux && mibs="${mibs} smux"
137 -
138 - # Assume /etc/mtab is not present with a recent baselayout/openrc (bug #565136)
139 - use kernel_linux && export ac_cv_ETC_MNTTAB=/etc/mtab
140 -
141 - econf \
142 - $(use_enable !ssl internal-md5) \
143 - $(use_enable ipv6) \
144 - $(use_enable mfd-rewrites) \
145 - $(use_enable perl embedded-perl) \
146 - $(use_enable ucd-compat ucd-snmp-compatibility) \
147 - $(use_with bzip2) \
148 - $(use_with elf) \
149 - $(use_with kmem kmem-usage) \
150 - $(use_with mysql) \
151 - $(use_with netlink nl) \
152 - $(use_with pcap) \
153 - $(use_with pci) \
154 - $(use_with perl perl-modules INSTALLDIRS=vendor) \
155 - $(use_with python python-modules) \
156 - $(use_with rpm) \
157 - $(use_with ssl openssl) \
158 - $(use_with tcpd libwrap) \
159 - $(use_with zlib) \
160 - --disable-static \
161 - --enable-shared \
162 - --with-default-snmp-version="3" \
163 - --with-install-prefix="${D}" \
164 - --with-ldflags="${LDFLAGS}" \
165 - --with-logfile="/var/log/net-snmpd.log" \
166 - --with-mib-modules="${mibs}" \
167 - --with-persistent-directory="/var/lib/net-snmp" \
168 - --with-sys-contact="root@Unknown" \
169 - --with-sys-location="Unknown"
170 -}
171 -
172 -src_compile() {
173 - emake sedscript
174 -
175 - local subdir
176 - for subdir in snmplib agent/mibgroup agent apps .; do
177 - emake OTHERLDFLAGS="${LDFLAGS}" -C ${subdir} all
178 - done
179 -
180 - use doc && emake docsdox
181 -}
182 -
183 -src_install() {
184 - # bug #317965
185 - emake -j1 DESTDIR="${D}" install
186 -
187 - use python && python_optimize
188 -
189 - if use perl ; then
190 - perl_delete_localpod
191 - if ! use X; then
192 - rm "${D}"/usr/bin/tkmib || die
193 - fi
194 - else
195 - rm -f \
196 - "${D}"/usr/bin/fixproc \
197 - "${D}"/usr/bin/ipf-mod.pl \
198 - "${D}"/usr/bin/mib2c \
199 - "${D}"/usr/bin/net-snmp-cert \
200 - "${D}"/usr/bin/snmp-bridge-mib \
201 - "${D}"/usr/bin/snmpcheck \
202 - "${D}"/usr/bin/snmpconf \
203 - "${D}"/usr/bin/tkmib \
204 - "${D}"/usr/bin/traptoemail \
205 - "${D}"/usr/share/snmp/mib2c.perl.conf \
206 - "${D}"/usr/share/snmp/snmp_perl_trapd.pl \
207 - || die
208 - fi
209 -
210 - dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO
211 - newdoc EXAMPLE.conf.def EXAMPLE.conf
212 -
213 - if use doc; then
214 - docinto html
215 - dodoc -r docs/html/*
216 - fi
217 -
218 - keepdir /var/lib/net-snmp
219 -
220 - newinitd "${FILESDIR}"/snmpd.init.2 snmpd
221 - newconfd "${FILESDIR}"/snmpd.conf snmpd
222 -
223 - newinitd "${FILESDIR}"/snmptrapd.init.2 snmptrapd
224 - newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd
225 -
226 - systemd_dounit "${FILESDIR}"/snmpd.service
227 - systemd_dounit "${FILESDIR}"/snmptrapd.service
228 -
229 - insinto /etc/snmp
230 - newins "${S}"/EXAMPLE.conf snmpd.conf.example
231 -
232 - # Remove everything not required for an agent.
233 - # Keep only the snmpd, snmptrapd, MIBs, headers and libraries.
234 - if use minimal; then
235 - rm -rf \
236 - "${D}"/**/*.pl \
237 - "${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} \
238 - "${D}"/usr/share/snmp/*.conf \
239 - "${D}"/usr/share/snmp/snmpconf-data \
240 - || die
241 - fi
242 -
243 - find "${ED}" -name '*.la' -delete || die
244 -}
245
246 diff --git a/net-analyzer/net-snmp/net-snmp-5.9-r5.ebuild b/net-analyzer/net-snmp/net-snmp-5.9-r5.ebuild
247 deleted file mode 100644
248 index 5618ab3fd695..000000000000
249 --- a/net-analyzer/net-snmp/net-snmp-5.9-r5.ebuild
250 +++ /dev/null
251 @@ -1,213 +0,0 @@
252 -# Copyright 1999-2021 Gentoo Authors
253 -# Distributed under the terms of the GNU General Public License v2
254 -
255 -EAPI=7
256 -
257 -DISTUTILS_OPTIONAL=yes
258 -DISTUTILS_SINGLE_IMPL=yes
259 -GENTOO_DEPEND_ON_PERL=no
260 -PYTHON_COMPAT=( python3_{8..10} )
261 -WANT_AUTOMAKE=none
262 -
263 -inherit autotools distutils-r1 perl-module systemd
264 -
265 -DESCRIPTION="Software for generating and retrieving SNMP data"
266 -HOMEPAGE="http://www.net-snmp.org/"
267 -SRC_URI="
268 - https://dev.gentoo.org/~jsmolic/distfiles/${PN}-5.7.3-patches-3.tar.xz
269 - https://dev.gentoo.org/~jsmolic/distfiles/${P}.tar.xz
270 -"
271 -
272 -# GPL-2 for the init scripts
273 -LICENSE="HPND BSD GPL-2"
274 -SLOT="0/40"
275 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86"
276 -IUSE="
277 - X bzip2 doc elf kmem ipv6 lm-sensors mfd-rewrites minimal mysql
278 - netlink pcap pci perl python rpm selinux smux ssl tcpd ucd-compat zlib
279 -"
280 -REQUIRED_USE="
281 - python? ( ${PYTHON_REQUIRED_USE} )
282 - rpm? ( bzip2 zlib )
283 -"
284 -RESTRICT="test"
285 -
286 -COMMON_DEPEND="
287 - virtual/libcrypt:=
288 - bzip2? ( app-arch/bzip2 )
289 - elf? ( dev-libs/elfutils )
290 - lm-sensors? ( sys-apps/lm-sensors )
291 - mysql? ( dev-db/mysql-connector-c:0= )
292 - netlink? ( dev-libs/libnl:3 )
293 - pcap? ( net-libs/libpcap )
294 - pci? ( sys-apps/pciutils )
295 - perl? ( dev-lang/perl:= )
296 - python? (
297 - $(python_gen_cond_dep '
298 - dev-python/setuptools[${PYTHON_USEDEP}]
299 - ')
300 - ${PYTHON_DEPS}
301 - )
302 - rpm? (
303 - app-arch/rpm
304 - dev-libs/popt
305 - )
306 - ssl? (
307 - >=dev-libs/openssl-0.9.6d:0=
308 - )
309 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
310 - zlib? ( >=sys-libs/zlib-1.1.4 )
311 -"
312 -BDEPEND="doc? ( app-doc/doxygen )"
313 -DEPEND="${COMMON_DEPEND}"
314 -RDEPEND="
315 - ${COMMON_DEPEND}
316 - perl? (
317 - X? ( dev-perl/Tk )
318 - !minimal? ( dev-perl/TermReadKey )
319 - )
320 - selinux? ( sec-policy/selinux-snmp )
321 -"
322 -
323 -PATCHES=(
324 - "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
325 - "${FILESDIR}"/${PN}-5.8-do-not-conflate-LDFLAGS-and-LIBS.patch
326 - "${FILESDIR}"/${PN}-5.8-pcap.patch
327 - "${FILESDIR}"/${PN}-5.8.1-pkg-config.patch
328 - "${FILESDIR}"/${PN}-5.8.1-net-snmp-config-libdir.patch
329 - "${FILESDIR}"/${PN}-5.8.1-mysqlclient.patch
330 - "${FILESDIR}"/${PN}-5.9-MakeMaker.patch
331 - "${FILESDIR}"/${PN}-5.9-r3-f2fs.patch
332 - "${FILESDIR}"/${PN}-99999999-tinfo.patch
333 -)
334 -
335 -pkg_setup() {
336 - use python && python-single-r1_pkg_setup
337 -}
338 -
339 -src_prepare() {
340 - # snmpconf generates config files with proper selinux context
341 - use selinux && eapply "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
342 -
343 - mv "${WORKDIR}"/patches/0002-Respect-DESTDIR-for-pythoninstall.patch{,.disabled} || die
344 - mv "${WORKDIR}"/patches/0004-Don-t-report-CFLAGS-and-LDFLAGS-in-net-snmp-config.patch{,.disabled} || die
345 - eapply "${WORKDIR}"/patches/*.patch
346 -
347 - default
348 -
349 - eautoconf
350 -}
351 -
352 -src_configure() {
353 - # keep this in the same line, configure.ac arguments are passed down to config.h
354 - local mibs="host ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/extensible mibII/mta_sendmail etherlike-mib/dot3StatsTable"
355 - use lm-sensors && mibs="${mibs} ucd-snmp/lmsensorsMib"
356 - use smux && mibs="${mibs} smux"
357 -
358 - # Assume /etc/mtab is not present with a recent baselayout/openrc (bug #565136)
359 - use kernel_linux && export ac_cv_ETC_MNTTAB=/etc/mtab
360 -
361 - econf \
362 - $(use_enable !ssl internal-md5) \
363 - $(use_enable ipv6) \
364 - $(use_enable mfd-rewrites) \
365 - $(use_enable perl embedded-perl) \
366 - $(use_enable ucd-compat ucd-snmp-compatibility) \
367 - $(use_with bzip2) \
368 - $(use_with elf) \
369 - $(use_with kmem kmem-usage) \
370 - $(use_with mysql) \
371 - $(use_with netlink nl) \
372 - $(use_with pcap) \
373 - $(use_with pci) \
374 - $(use_with perl perl-modules INSTALLDIRS=vendor) \
375 - $(use_with python python-modules) \
376 - $(use_with rpm) \
377 - $(use_with ssl openssl) \
378 - $(use_with tcpd libwrap) \
379 - $(use_with zlib) \
380 - --disable-static \
381 - --enable-shared \
382 - --with-default-snmp-version="3" \
383 - --with-install-prefix="${D}" \
384 - --with-ldflags="${LDFLAGS}" \
385 - --with-logfile="/var/log/net-snmpd.log" \
386 - --with-mib-modules="${mibs}" \
387 - --with-persistent-directory="/var/lib/net-snmp" \
388 - --with-sys-contact="root@unknown" \
389 - --with-sys-location="Unknown"
390 -}
391 -
392 -src_compile() {
393 - emake sedscript
394 -
395 - local subdir
396 - for subdir in snmplib agent/mibgroup agent apps .; do
397 - emake OTHERLDFLAGS="${LDFLAGS}" -C ${subdir} all
398 - done
399 -
400 - use doc && emake docsdox
401 -}
402 -
403 -src_install() {
404 - # bug #317965
405 - emake -j1 DESTDIR="${D}" install
406 -
407 - use python && python_optimize
408 -
409 - if use perl ; then
410 - perl_delete_localpod
411 - if ! use X; then
412 - rm "${D}"/usr/bin/tkmib || die
413 - fi
414 - else
415 - rm -f \
416 - "${D}"/usr/bin/fixproc \
417 - "${D}"/usr/bin/ipf-mod.pl \
418 - "${D}"/usr/bin/mib2c \
419 - "${D}"/usr/bin/net-snmp-cert \
420 - "${D}"/usr/bin/snmp-bridge-mib \
421 - "${D}"/usr/bin/snmpcheck \
422 - "${D}"/usr/bin/snmpconf \
423 - "${D}"/usr/bin/tkmib \
424 - "${D}"/usr/bin/traptoemail \
425 - "${D}"/usr/share/snmp/mib2c.perl.conf \
426 - "${D}"/usr/share/snmp/snmp_perl_trapd.pl \
427 - || die
428 - fi
429 -
430 - dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO
431 - newdoc EXAMPLE.conf.def EXAMPLE.conf
432 -
433 - if use doc; then
434 - docinto html
435 - dodoc -r docs/html/*
436 - fi
437 -
438 - keepdir /var/lib/net-snmp
439 -
440 - newinitd "${FILESDIR}"/snmpd.init.2 snmpd
441 - newconfd "${FILESDIR}"/snmpd.conf snmpd
442 -
443 - newinitd "${FILESDIR}"/snmptrapd.init.2 snmptrapd
444 - newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd
445 -
446 - systemd_dounit "${FILESDIR}"/snmpd.service
447 - systemd_dounit "${FILESDIR}"/snmptrapd.service
448 -
449 - insinto /etc/snmp
450 - newins "${S}"/EXAMPLE.conf snmpd.conf.example
451 -
452 - # Remove everything not required for an agent.
453 - # Keep only the snmpd, snmptrapd, MIBs, headers and libraries.
454 - if use minimal; then
455 - rm -rf \
456 - "${D}"/**/*.pl \
457 - "${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} \
458 - "${D}"/usr/share/snmp/*.conf \
459 - "${D}"/usr/share/snmp/snmpconf-data \
460 - || die
461 - fi
462 -
463 - find "${ED}" -name '*.la' -delete || die
464 -}