Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/net-snmp/, net-analyzer/net-snmp/files/
Date: Mon, 19 Aug 2019 20:38:46
Message-Id: 1566247117.8683418171b89fb2982bd0c0a3354c0c97b9a8bc.jer@gentoo
1 commit: 8683418171b89fb2982bd0c0a3354c0c97b9a8bc
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 19 20:38:22 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 19 20:38:37 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86834181
7
8 net-analyzer/net-snmp: Old
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-analyzer/net-snmp/Manifest | 4 -
14 .../files/net-snmp-5.7.3-mariadb-10.2.patch | 56 ------
15 .../net-snmp/files/net-snmp-5.7.3-perl524-2.patch | 70 --------
16 net-analyzer/net-snmp/net-snmp-5.7.3-r5.ebuild | 192 --------------------
17 net-analyzer/net-snmp/net-snmp-5.7.3-r6.ebuild | 194 --------------------
18 net-analyzer/net-snmp/net-snmp-5.7.3_p3-r1.ebuild | 198 ---------------------
19 6 files changed, 714 deletions(-)
20
21 diff --git a/net-analyzer/net-snmp/Manifest b/net-analyzer/net-snmp/Manifest
22 index c95764cf911..bf783d7727a 100644
23 --- a/net-analyzer/net-snmp/Manifest
24 +++ b/net-analyzer/net-snmp/Manifest
25 @@ -1,6 +1,2 @@
26 -DIST net-snmp-5.7.3-patches-2.tar.xz 3312 BLAKE2B 9cf2b3b5ec2f65dc8c017565666c148acb42354f8a03274f67c856fea530df27877026aa2c0477d90cd2f035503e15cd48c33b449a9522c34c9dca370f7ed7a6 SHA512 22ca6cc4dd1fd58a8cff53881d248155dbfdab765e9a3664320c8c4a5cfa35e741adfb0304bb38be7719ba1c7418f9b0f9178719951b82d70257c3c944c450ad
27 DIST net-snmp-5.7.3-patches-3.tar.xz 3176 BLAKE2B 1a71d6743afb841f664c6058e32c7c411af62b0f36acd3bb9251804893ed12f462a0c5bab828e309eeec7824def2dca8fa866350b90a62ec4f0df1141b51ecae SHA512 d8a91b9668320a1e19d062eb86dd4d16beb7c2d15ac7ebbb9d2a4bd298af39bbb0a2613504dbb0057cccdec731f08f2308c5a15395e1fbc29bb0611ed8aca636
28 -DIST net-snmp-5.7.3-perl524-2.patch.gz 523 BLAKE2B 6762795cd6bcdccd5b49899cf572d5a498f3ab7fd20af69fad5f3fe45880e40f2aecfb0e9443a2a10773e25323ed5d0f271446d8fc03102e70fa8efd79e0d118 SHA512 bede47234b809d67f33c46654f3d09d0b255d835fb97eea23bfa888922dfb80ad287c305596a6b041ed03ec91dc7c647ecd54c3c79e0b4ce08978332de3cc007
29 -DIST net-snmp-5.7.3-perl524.patch.gz 9072 BLAKE2B d870e195bccb8178827791c9bd495d5c13a8848d176ae72b1c6b54b38eabc3b5aa4842d1841f422e3a71d9e9129b2acf303e8961ce98f82f5d9310c3a65e671d SHA512 2d3184ac7c96f75af5bf8c8d23f33d5636c701e052a638e5403a8d5aa34985abc38f6a366ba09a1d8499a05fd71d939a7ed4d530661e56a726386603b6f6e6a4
30 -DIST net-snmp-5.7.3.tar.gz 6382428 BLAKE2B df036da09658fdb4c52a99696fb6374cd582bc8da765e212285478ffb16c8725ddecd37842aba7835bc90ea74437ce00491dff569b1ce2c7499acf46968b3935 SHA512 0758bba5844cfd6c80959ac16b83906a2f830ba49fd0ab1bf9e191dc6a79d312a2e4760bd53b3e1a1c82759481f0064d088d5a3cf475d84b25679a6bd0f049bb
31 DIST net-snmp-5.8.tar.gz 6591680 BLAKE2B ac1bff4152310da57818a00d752a08a7fc61d697b02479d9952ca12d024d3d68dc8bfa674571e93d6f3597605b2fe91513fb6839057a80f2c3dd8d0cce0077f2 SHA512 27895a583b23f3e14c48562bc32f3ba83513d81aa848e878be9a3650f0458d45950635c937ef627135f80b757b663e71fab9a3bde4fd91889153998ae3468fe7
32
33 diff --git a/net-analyzer/net-snmp/files/net-snmp-5.7.3-mariadb-10.2.patch b/net-analyzer/net-snmp/files/net-snmp-5.7.3-mariadb-10.2.patch
34 deleted file mode 100644
35 index dea1a017853..00000000000
36 --- a/net-analyzer/net-snmp/files/net-snmp-5.7.3-mariadb-10.2.patch
37 +++ /dev/null
38 @@ -1,56 +0,0 @@
39 ---- a/apps/snmptrapd_sql.c
40 -+++ b/apps/snmptrapd_sql.c
41 -@@ -54,6 +54,7 @@
42 - #include <my_sys.h>
43 - #include <mysql.h>
44 - #include <errmsg.h>
45 -+#include <mysql_version.h>
46 -
47 - netsnmp_feature_require(container_fifo)
48 -
49 -@@ -437,6 +438,7 @@ netsnmp_mysql_init(void)
50 - return -1;
51 - }
52 -
53 -+#if MYSQL_VERSION_ID < 100000
54 - #ifdef HAVE_BROKEN_LIBMYSQLCLIENT
55 - my_init();
56 - #else
57 -@@ -445,6 +447,7 @@ netsnmp_mysql_init(void)
58 -
59 - /** load .my.cnf values */
60 - load_defaults ("my", _sql.groups, &not_argc, &not_argv);
61 -+#endif
62 - for(i=0; i < not_argc; ++i) {
63 - if (NULL == not_argv[i])
64 - continue;
65 -@@ -542,6 +545,10 @@ netsnmp_mysql_init(void)
66 - return -1;
67 - }
68 -
69 -+#if MYSQL_VERSION_ID > 100000
70 -+ mysql_options(_sql.conn, MYSQL_READ_DEFAULT_GROUP, "snmptrapd");
71 -+#endif
72 -+
73 - /** try to connect; we'll try again later if we fail */
74 - (void) netsnmp_mysql_connect();
75 -
76 ---- a/apps/snmptrapd_sql.c
77 -+++ b/apps/snmptrapd_sql.c
78 -@@ -50,11 +50,16 @@
79 - #undef PACKAGE_STRING
80 - #undef PACKAGE_TARNAME
81 - #undef PACKAGE_VERSION
82 -+#ifdef HAVE_BROKEN_LIBMYSQLCLIENT
83 -+#include <mysql.h>
84 -+#include <errmsg.h>
85 -+#else
86 - #include <my_global.h>
87 - #include <my_sys.h>
88 - #include <mysql.h>
89 - #include <errmsg.h>
90 - #include <mysql_version.h>
91 -+#endif
92 -
93 - netsnmp_feature_require(container_fifo)
94 -
95
96 diff --git a/net-analyzer/net-snmp/files/net-snmp-5.7.3-perl524-2.patch b/net-analyzer/net-snmp/files/net-snmp-5.7.3-perl524-2.patch
97 deleted file mode 100644
98 index 45855597a86..00000000000
99 --- a/net-analyzer/net-snmp/files/net-snmp-5.7.3-perl524-2.patch
100 +++ /dev/null
101 @@ -1,70 +0,0 @@
102 ---- a/perl/ASN/Makefile.PL
103 -+++ b/perl/ASN/Makefile.PL
104 -@@ -1,3 +1,4 @@
105 -+package ASN;
106 - use ExtUtils::MakeMaker;
107 - require 5;
108 - use Config;
109 ---- a/perl/AnyData_SNMP/Makefile.PL
110 -+++ b/perl/AnyData_SNMP/Makefile.PL
111 -@@ -1,3 +1,4 @@
112 -+package AnyData_SNMP;
113 - use ExtUtils::MakeMaker;
114 - # See lib/ExtUtils/MakeMaker.pm for details of how to influence
115 - # the contents of the Makefile that is written.
116 ---- a/perl/OID/Makefile.PL
117 -+++ b/perl/OID/Makefile.PL
118 -@@ -1,3 +1,4 @@
119 -+package OID;
120 - # See lib/ExtUtils/MakeMaker.pm for details of how to influence
121 - # the contents of the Makefile that is written.
122 -
123 ---- a/perl/SNMP/Makefile.PL
124 -+++ b/perl/SNMP/Makefile.PL
125 -@@ -1,3 +1,4 @@
126 -+package SNMP;
127 - use ExtUtils::MakeMaker;
128 - require 5;
129 - use Config;
130 ---- a/perl/TrapReceiver/Makefile.PL
131 -+++ b/perl/TrapReceiver/Makefile.PL
132 -@@ -1,3 +1,4 @@
133 -+package TrapReceiver;
134 - use ExtUtils::MakeMaker;
135 - require 5;
136 - use Config;
137 ---- a/perl/agent/Makefile.PL
138 -+++ b/perl/agent/Makefile.PL
139 -@@ -1,3 +1,4 @@
140 -+package agent;
141 - use ExtUtils::MakeMaker;
142 - require 5;
143 - use Config;
144 ---- a/perl/agent/Support/Makefile.PL
145 -+++ b/perl/agent/Support/Makefile.PL
146 -@@ -1,3 +1,4 @@
147 -+package agent_Support;
148 - use ExtUtils::MakeMaker;
149 - require 5;
150 - use Config;
151 ---- a/perl/agent/default_store/Makefile.PL
152 -+++ b/perl/agent/default_store/Makefile.PL
153 -@@ -1,3 +1,4 @@
154 -+package agent_default_store;
155 - use ExtUtils::MakeMaker;
156 - require 5;
157 - use Config;
158 ---- a/perl/default_store/Makefile.PL
159 -+++ b/perl/default_store/Makefile.PL
160 -@@ -1,3 +1,4 @@
161 -+package default_store;
162 - use ExtUtils::MakeMaker;
163 - require 5;
164 - use Config;
165 ---- a/perl/manager/Makefile.PL
166 -+++ b/perl/manager/Makefile.PL
167 -@@ -1,3 +1,4 @@
168 -+package manager;
169 - use ExtUtils::MakeMaker;
170 - # See lib/ExtUtils/MakeMaker.pm for details of how to influence
171 - # the contents of the Makefile that is written.
172
173 diff --git a/net-analyzer/net-snmp/net-snmp-5.7.3-r5.ebuild b/net-analyzer/net-snmp/net-snmp-5.7.3-r5.ebuild
174 deleted file mode 100644
175 index 8d923fa28d7..00000000000
176 --- a/net-analyzer/net-snmp/net-snmp-5.7.3-r5.ebuild
177 +++ /dev/null
178 @@ -1,192 +0,0 @@
179 -# Copyright 1999-2018 Gentoo Authors
180 -# Distributed under the terms of the GNU General Public License v2
181 -
182 -EAPI=5
183 -PYTHON_COMPAT=( python2_7 )
184 -DISTUTILS_SINGLE_IMPL=yesplz
185 -DISTUTILS_OPTIONAL=yesplz
186 -WANT_AUTOMAKE=none
187 -PATCHSET=2
188 -GENTOO_DEPEND_ON_PERL=no
189 -
190 -inherit autotools distutils-r1 eutils perl-module systemd
191 -
192 -DESCRIPTION="Software for generating and retrieving SNMP data"
193 -HOMEPAGE="http://net-snmp.sourceforge.net/"
194 -SRC_URI="
195 - mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz
196 - https://dev.gentoo.org/~jer/${PN}-5.7.3-patches-${PATCHSET}.tar.xz
197 - https://dev.gentoo.org/~dilfridge/distfiles/${P}-perl524.patch.gz
198 - https://dev.gentoo.org/~dilfridge/distfiles/${P}-perl524-2.patch.gz
199 -"
200 -
201 -S=${WORKDIR}/${P/_/.}
202 -
203 -# GPL-2 for the init scripts
204 -LICENSE="HPND BSD GPL-2"
205 -SLOT="0"
206 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86"
207 -IUSE="X bzip2 doc elf ipv6 libressl lm_sensors mfd-rewrites minimal mysql netlink pci perl python rpm selinux smux ssl tcpd ucd-compat zlib"
208 -
209 -COMMON_DEPEND="
210 - ssl? (
211 - !libressl? ( >=dev-libs/openssl-0.9.6d:0= )
212 - libressl? ( dev-libs/libressl:= )
213 - )
214 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
215 - rpm? (
216 - app-arch/rpm
217 - dev-libs/popt
218 - )
219 - bzip2? ( app-arch/bzip2 )
220 - zlib? ( >=sys-libs/zlib-1.1.4 )
221 - elf? ( dev-libs/elfutils )
222 - python? (
223 - dev-python/setuptools[${PYTHON_USEDEP}]
224 - ${PYTHON_DEPS}
225 - )
226 - pci? ( sys-apps/pciutils )
227 - lm_sensors? ( sys-apps/lm_sensors )
228 - netlink? ( dev-libs/libnl:3 )
229 - mysql? ( virtual/mysql )
230 - perl? ( dev-lang/perl:= )
231 -"
232 -DEPEND="
233 - ${COMMON_DEPEND}
234 - doc? ( app-doc/doxygen )
235 -"
236 -RDEPEND="
237 - ${COMMON_DEPEND}
238 - perl? (
239 - X? ( dev-perl/Tk )
240 - !minimal? ( dev-perl/TermReadKey )
241 - )
242 - selinux? ( sec-policy/selinux-snmp )
243 -"
244 -
245 -REQUIRED_USE="
246 - python? ( ${PYTHON_REQUIRED_USE} )
247 - rpm? ( bzip2 zlib )
248 -"
249 -
250 -RESTRICT=test
251 -
252 -pkg_setup() {
253 - use python && python-single-r1_pkg_setup
254 -}
255 -
256 -src_prepare() {
257 - # snmpconf generates config files with proper selinux context
258 - use selinux && epatch "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
259 -
260 - epatch "${WORKDIR}"/${P}-perl524.patch
261 - epatch "${WORKDIR}"/${P}-perl524-2.patch
262 - epatch "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
263 -
264 - epatch "${WORKDIR}"/patches/*.patch
265 -
266 - epatch_user
267 -
268 - eautoconf
269 -}
270 -
271 -src_configure() {
272 - # keep this in the same line, configure.ac arguments are passed down to config.h
273 - local mibs="host ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/extensible mibII/mta_sendmail etherlike-mib/dot3StatsTable"
274 - use lm_sensors && mibs="${mibs} ucd-snmp/lmsensorsMib"
275 - use smux && mibs="${mibs} smux"
276 -
277 - # Assume /etc/mtab is not present with a recent baselayout/openrc (bug #565136)
278 - use kernel_linux && export ac_cv_ETC_MNTTAB=/etc/mtab
279 -
280 - econf \
281 - $(use_enable !ssl internal-md5) \
282 - $(use_enable ipv6) \
283 - $(use_enable mfd-rewrites) \
284 - $(use_enable perl embedded-perl) \
285 - $(use_enable ucd-compat ucd-snmp-compatibility) \
286 - $(use_with bzip2) \
287 - $(use_with elf) \
288 - $(use_with mysql) \
289 - $(use_with netlink nl) \
290 - $(use_with pci) \
291 - $(use_with perl perl-modules INSTALLDIRS=vendor) \
292 - $(use_with python python-modules) \
293 - $(use_with rpm) \
294 - $(use_with ssl openssl) \
295 - $(use_with tcpd libwrap) \
296 - $(use_with zlib) \
297 - --enable-shared --disable-static \
298 - --with-default-snmp-version="3" \
299 - --with-install-prefix="${D}" \
300 - --with-ldflags="${LDFLAGS}" \
301 - --with-logfile="/var/log/net-snmpd.log" \
302 - --with-mib-modules="${mibs}" \
303 - --with-persistent-directory="/var/lib/net-snmp" \
304 - --with-sys-contact="root@Unknown" \
305 - --with-sys-location="Unknown"
306 -}
307 -
308 -src_compile() {
309 - for target in snmplib agent sedscript all; do
310 - emake OTHERLDFLAGS="${LDFLAGS}" ${target}
311 - done
312 -
313 - use doc && emake docsdox
314 -}
315 -
316 -src_install () {
317 - # bug #317965
318 - emake -j1 DESTDIR="${D}" install
319 -
320 - if use perl ; then
321 - perl_delete_localpod
322 - if ! use X; then
323 - rm "${D}"/usr/bin/tkmib || die
324 - fi
325 - else
326 - rm -f \
327 - "${D}"/usr/bin/fixproc \
328 - "${D}"/usr/bin/ipf-mod.pl \
329 - "${D}"/usr/bin/mib2c \
330 - "${D}"/usr/bin/net-snmp-cert \
331 - "${D}"/usr/bin/snmp-bridge-mib \
332 - "${D}"/usr/bin/snmpcheck \
333 - "${D}"/usr/bin/snmpconf \
334 - "${D}"/usr/bin/tkmib \
335 - "${D}"/usr/bin/traptoemail \
336 - "${D}"/usr/share/snmp/mib2c.perl.conf \
337 - "${D}"/usr/share/snmp/snmp_perl_trapd.pl \
338 - || die
339 - fi
340 -
341 - dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO
342 - newdoc EXAMPLE.conf.def EXAMPLE.conf
343 -
344 - use doc && dohtml docs/html/*
345 -
346 - keepdir /var/lib/net-snmp
347 -
348 - newinitd "${FILESDIR}"/snmpd.init.2 snmpd
349 - newconfd "${FILESDIR}"/snmpd.conf snmpd
350 -
351 - newinitd "${FILESDIR}"/snmptrapd.init.2 snmptrapd
352 - newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd
353 -
354 - systemd_dounit "${FILESDIR}"/snmpd.service
355 - systemd_dounit "${FILESDIR}"/snmptrapd.service
356 -
357 - insinto /etc/snmp
358 - newins "${S}"/EXAMPLE.conf snmpd.conf.example
359 -
360 - # Remove everything not required for an agent.
361 - # Keep only the snmpd, snmptrapd, MIBs, headers and libraries.
362 - if use minimal; then
363 - rm -rf \
364 - "${D}"/**/*.pl \
365 - "${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} \
366 - "${D}"/usr/share/snmp/*.conf \
367 - "${D}"/usr/share/snmp/snmpconf-data \
368 - || die
369 - fi
370 -}
371
372 diff --git a/net-analyzer/net-snmp/net-snmp-5.7.3-r6.ebuild b/net-analyzer/net-snmp/net-snmp-5.7.3-r6.ebuild
373 deleted file mode 100644
374 index 06047991539..00000000000
375 --- a/net-analyzer/net-snmp/net-snmp-5.7.3-r6.ebuild
376 +++ /dev/null
377 @@ -1,194 +0,0 @@
378 -# Copyright 1999-2018 Gentoo Authors
379 -# Distributed under the terms of the GNU General Public License v2
380 -
381 -EAPI=5
382 -PYTHON_COMPAT=( python2_7 )
383 -DISTUTILS_SINGLE_IMPL=yesplz
384 -DISTUTILS_OPTIONAL=yesplz
385 -WANT_AUTOMAKE=none
386 -PATCHSET=2
387 -GENTOO_DEPEND_ON_PERL=no
388 -
389 -inherit autotools distutils-r1 eutils perl-module systemd
390 -
391 -DESCRIPTION="Software for generating and retrieving SNMP data"
392 -HOMEPAGE="http://net-snmp.sourceforge.net/"
393 -SRC_URI="
394 - mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.gz
395 - https://dev.gentoo.org/~jer/${PN}-5.7.3-patches-${PATCHSET}.tar.xz
396 - https://dev.gentoo.org/~dilfridge/distfiles/${P}-perl524.patch.gz
397 - https://dev.gentoo.org/~dilfridge/distfiles/${P}-perl524-2.patch.gz
398 -"
399 -
400 -S=${WORKDIR}/${P/_/.}
401 -
402 -# GPL-2 for the init scripts
403 -LICENSE="HPND BSD GPL-2"
404 -SLOT="0"
405 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
406 -IUSE="X bzip2 doc elf ipv6 libressl lm_sensors mfd-rewrites minimal mysql netlink pci perl python rpm selinux smux ssl tcpd ucd-compat zlib"
407 -
408 -COMMON_DEPEND="
409 - ssl? (
410 - !libressl? ( >=dev-libs/openssl-0.9.6d:0= )
411 - libressl? ( dev-libs/libressl:= )
412 - )
413 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
414 - rpm? (
415 - app-arch/rpm
416 - dev-libs/popt
417 - )
418 - bzip2? ( app-arch/bzip2 )
419 - zlib? ( >=sys-libs/zlib-1.1.4 )
420 - elf? ( dev-libs/elfutils )
421 - python? (
422 - dev-python/setuptools[${PYTHON_USEDEP}]
423 - ${PYTHON_DEPS}
424 - )
425 - pci? ( sys-apps/pciutils )
426 - lm_sensors? ( sys-apps/lm_sensors )
427 - netlink? ( dev-libs/libnl:3 )
428 - mysql? ( virtual/mysql )
429 - perl? ( dev-lang/perl:= )
430 -"
431 -DEPEND="
432 - ${COMMON_DEPEND}
433 - doc? ( app-doc/doxygen )
434 -"
435 -RDEPEND="
436 - ${COMMON_DEPEND}
437 - perl? (
438 - X? ( dev-perl/Tk )
439 - !minimal? ( dev-perl/TermReadKey )
440 - )
441 - selinux? ( sec-policy/selinux-snmp )
442 -"
443 -
444 -REQUIRED_USE="
445 - python? ( ${PYTHON_REQUIRED_USE} )
446 - rpm? ( bzip2 zlib )
447 -"
448 -
449 -RESTRICT=test
450 -
451 -pkg_setup() {
452 - use python && python-single-r1_pkg_setup
453 -}
454 -
455 -src_prepare() {
456 - # snmpconf generates config files with proper selinux context
457 - use selinux && epatch "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
458 -
459 - epatch "${WORKDIR}"/${P}-perl524.patch
460 - epatch "${WORKDIR}"/${P}-perl524-2.patch
461 - epatch "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
462 -
463 - epatch "${WORKDIR}"/patches/*.patch
464 -
465 - epatch_user
466 -
467 - eautoconf
468 -}
469 -
470 -src_configure() {
471 - # keep this in the same line, configure.ac arguments are passed down to config.h
472 - local mibs="host ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/extensible mibII/mta_sendmail etherlike-mib/dot3StatsTable"
473 - use lm_sensors && mibs="${mibs} ucd-snmp/lmsensorsMib"
474 - use smux && mibs="${mibs} smux"
475 -
476 - # Assume /etc/mtab is not present with a recent baselayout/openrc (bug #565136)
477 - use kernel_linux && export ac_cv_ETC_MNTTAB=/etc/mtab
478 -
479 - econf \
480 - $(use_enable !ssl internal-md5) \
481 - $(use_enable ipv6) \
482 - $(use_enable mfd-rewrites) \
483 - $(use_enable perl embedded-perl) \
484 - $(use_enable ucd-compat ucd-snmp-compatibility) \
485 - $(use_with bzip2) \
486 - $(use_with elf) \
487 - $(use_with mysql) \
488 - $(use_with netlink nl) \
489 - $(use_with pci) \
490 - $(use_with perl perl-modules INSTALLDIRS=vendor) \
491 - $(use_with python python-modules) \
492 - $(use_with rpm) \
493 - $(use_with ssl openssl) \
494 - $(use_with tcpd libwrap) \
495 - $(use_with zlib) \
496 - --enable-shared --disable-static \
497 - --with-default-snmp-version="3" \
498 - --with-install-prefix="${D}" \
499 - --with-ldflags="${LDFLAGS}" \
500 - --with-logfile="/var/log/net-snmpd.log" \
501 - --with-mib-modules="${mibs}" \
502 - --with-persistent-directory="/var/lib/net-snmp" \
503 - --with-sys-contact="root@Unknown" \
504 - --with-sys-location="Unknown"
505 -}
506 -
507 -src_compile() {
508 - for target in snmplib agent sedscript all; do
509 - emake OTHERLDFLAGS="${LDFLAGS}" ${target}
510 - done
511 -
512 - use doc && emake docsdox
513 -}
514 -
515 -src_install () {
516 - # bug #317965
517 - emake -j1 DESTDIR="${D}" install
518 -
519 - if use perl ; then
520 - perl_delete_localpod
521 - if ! use X; then
522 - rm "${D}"/usr/bin/tkmib || die
523 - fi
524 - else
525 - rm -f \
526 - "${D}"/usr/bin/fixproc \
527 - "${D}"/usr/bin/ipf-mod.pl \
528 - "${D}"/usr/bin/mib2c \
529 - "${D}"/usr/bin/net-snmp-cert \
530 - "${D}"/usr/bin/snmp-bridge-mib \
531 - "${D}"/usr/bin/snmpcheck \
532 - "${D}"/usr/bin/snmpconf \
533 - "${D}"/usr/bin/tkmib \
534 - "${D}"/usr/bin/traptoemail \
535 - "${D}"/usr/share/snmp/mib2c.perl.conf \
536 - "${D}"/usr/share/snmp/snmp_perl_trapd.pl \
537 - || die
538 - fi
539 -
540 - dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO
541 - newdoc EXAMPLE.conf.def EXAMPLE.conf
542 -
543 - use doc && dohtml docs/html/*
544 -
545 - keepdir /var/lib/net-snmp
546 -
547 - newinitd "${FILESDIR}"/snmpd.init.2 snmpd
548 - newconfd "${FILESDIR}"/snmpd.conf snmpd
549 -
550 - newinitd "${FILESDIR}"/snmptrapd.init.2 snmptrapd
551 - newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd
552 -
553 - systemd_dounit "${FILESDIR}"/snmpd.service
554 - systemd_dounit "${FILESDIR}"/snmptrapd.service
555 -
556 - insinto /etc/snmp
557 - newins "${S}"/EXAMPLE.conf snmpd.conf.example
558 -
559 - # Remove everything not required for an agent.
560 - # Keep only the snmpd, snmptrapd, MIBs, headers and libraries.
561 - if use minimal; then
562 - rm -rf \
563 - "${D}"/**/*.pl \
564 - "${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} \
565 - "${D}"/usr/share/snmp/*.conf \
566 - "${D}"/usr/share/snmp/snmpconf-data \
567 - || die
568 - fi
569 -
570 - prune_libtool_files
571 -}
572
573 diff --git a/net-analyzer/net-snmp/net-snmp-5.7.3_p3-r1.ebuild b/net-analyzer/net-snmp/net-snmp-5.7.3_p3-r1.ebuild
574 deleted file mode 100644
575 index 4add1e5486b..00000000000
576 --- a/net-analyzer/net-snmp/net-snmp-5.7.3_p3-r1.ebuild
577 +++ /dev/null
578 @@ -1,198 +0,0 @@
579 -# Copyright 1999-2019 Gentoo Authors
580 -# Distributed under the terms of the GNU General Public License v2
581 -
582 -EAPI=6
583 -PYTHON_COMPAT=( python2_7 )
584 -DISTUTILS_SINGLE_IMPL=yesplz
585 -DISTUTILS_OPTIONAL=yesplz
586 -WANT_AUTOMAKE=none
587 -PATCHSET=3
588 -GENTOO_DEPEND_ON_PERL=no
589 -
590 -inherit autotools distutils-r1 eutils perl-module systemd
591 -
592 -DESCRIPTION="Software for generating and retrieving SNMP data"
593 -HOMEPAGE="http://net-snmp.sourceforge.net/"
594 -SRC_URI="
595 - mirror://sourceforge/project/${PN}/${PN}/${PV/_p*/}/${P/_p*/}.tar.gz
596 - https://dev.gentoo.org/~jer/${PN}-5.7.3-patches-${PV/*_p/}.tar.xz
597 - https://dev.gentoo.org/~dilfridge/distfiles/${P/_p*/}-perl524.patch.gz
598 -"
599 -
600 -S=${WORKDIR}/${P/_/.}
601 -
602 -# GPL-2 for the init scripts
603 -LICENSE="HPND BSD GPL-2"
604 -SLOT="0"
605 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
606 -IUSE="X bzip2 doc elf ipv6 libressl lm_sensors mfd-rewrites minimal mysql netlink pci perl python rpm selinux smux ssl tcpd ucd-compat zlib"
607 -
608 -COMMON_DEPEND="
609 - ssl? (
610 - !libressl? ( >=dev-libs/openssl-0.9.6d:0= )
611 - libressl? ( dev-libs/libressl:= )
612 - )
613 - tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
614 - rpm? (
615 - app-arch/rpm
616 - dev-libs/popt
617 - )
618 - bzip2? ( app-arch/bzip2 )
619 - zlib? ( >=sys-libs/zlib-1.1.4 )
620 - elf? ( dev-libs/elfutils )
621 - python? (
622 - dev-python/setuptools[${PYTHON_USEDEP}]
623 - ${PYTHON_DEPS}
624 - )
625 - pci? ( sys-apps/pciutils )
626 - lm_sensors? ( sys-apps/lm_sensors )
627 - netlink? ( dev-libs/libnl:3 )
628 - mysql? ( dev-db/mysql-connector-c:0= )
629 - perl? ( dev-lang/perl:= )
630 -"
631 -DEPEND="
632 - ${COMMON_DEPEND}
633 - doc? ( app-doc/doxygen )
634 -"
635 -RDEPEND="
636 - ${COMMON_DEPEND}
637 - perl? (
638 - X? ( dev-perl/Tk )
639 - !minimal? ( dev-perl/TermReadKey )
640 - )
641 - selinux? ( sec-policy/selinux-snmp )
642 -"
643 -
644 -REQUIRED_USE="
645 - python? ( ${PYTHON_REQUIRED_USE} )
646 - rpm? ( bzip2 zlib )
647 -"
648 -S=${WORKDIR}/${P/_p*/}
649 -
650 -RESTRICT=test
651 -
652 -pkg_setup() {
653 - use python && python-single-r1_pkg_setup
654 -}
655 -
656 -src_prepare() {
657 - # snmpconf generates config files with proper selinux context
658 - use selinux && eapply "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
659 -
660 - eapply "${WORKDIR}"/${PN}-5.7.3-perl524.patch
661 - eapply "${FILESDIR}"/${PN}-5.7.3-perl524-2.patch
662 - eapply "${FILESDIR}"/${PN}-5.7.3-mariadb-10.2.patch
663 - eapply "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
664 -
665 - eapply "${WORKDIR}"/patches/*.patch
666 -
667 - eapply_user
668 -
669 - eautoconf
670 -}
671 -
672 -src_configure() {
673 - # keep this in the same line, configure.ac arguments are passed down to config.h
674 - local mibs="host ucd-snmp/dlmod ucd-snmp/diskio ucd-snmp/extensible mibII/mta_sendmail etherlike-mib/dot3StatsTable"
675 - use lm_sensors && mibs="${mibs} ucd-snmp/lmsensorsMib"
676 - use smux && mibs="${mibs} smux"
677 -
678 - # Assume /etc/mtab is not present with a recent baselayout/openrc (bug #565136)
679 - use kernel_linux && export ac_cv_ETC_MNTTAB=/etc/mtab
680 -
681 - econf \
682 - $(use_enable !ssl internal-md5) \
683 - $(use_enable ipv6) \
684 - $(use_enable mfd-rewrites) \
685 - $(use_enable perl embedded-perl) \
686 - $(use_enable ucd-compat ucd-snmp-compatibility) \
687 - $(use_with bzip2) \
688 - $(use_with elf) \
689 - $(use_with mysql) \
690 - $(use_with netlink nl) \
691 - $(use_with pci) \
692 - $(use_with perl perl-modules INSTALLDIRS=vendor) \
693 - $(use_with python python-modules) \
694 - $(use_with rpm) \
695 - $(use_with ssl openssl) \
696 - $(use_with tcpd libwrap) \
697 - $(use_with zlib) \
698 - --enable-shared --disable-static \
699 - --with-default-snmp-version="3" \
700 - --with-install-prefix="${D}" \
701 - --with-ldflags="${LDFLAGS}" \
702 - --with-logfile="/var/log/net-snmpd.log" \
703 - --with-mib-modules="${mibs}" \
704 - --with-persistent-directory="/var/lib/net-snmp" \
705 - --with-sys-contact="root@Unknown" \
706 - --with-sys-location="Unknown"
707 -}
708 -
709 -src_compile() {
710 - for target in snmplib agent sedscript all; do
711 - emake OTHERLDFLAGS="${LDFLAGS}" ${target}
712 - done
713 -
714 - use doc && emake docsdox
715 -}
716 -
717 -src_install () {
718 - # bug #317965
719 - emake -j1 DESTDIR="${D}" install
720 -
721 - if use perl ; then
722 - perl_delete_localpod
723 - if ! use X; then
724 - rm "${D}"/usr/bin/tkmib || die
725 - fi
726 - else
727 - rm -f \
728 - "${D}"/usr/bin/fixproc \
729 - "${D}"/usr/bin/ipf-mod.pl \
730 - "${D}"/usr/bin/mib2c \
731 - "${D}"/usr/bin/net-snmp-cert \
732 - "${D}"/usr/bin/snmp-bridge-mib \
733 - "${D}"/usr/bin/snmpcheck \
734 - "${D}"/usr/bin/snmpconf \
735 - "${D}"/usr/bin/tkmib \
736 - "${D}"/usr/bin/traptoemail \
737 - "${D}"/usr/share/snmp/mib2c.perl.conf \
738 - "${D}"/usr/share/snmp/snmp_perl_trapd.pl \
739 - || die
740 - fi
741 -
742 - dodoc AGENT.txt ChangeLog FAQ INSTALL NEWS PORTING README* TODO
743 - newdoc EXAMPLE.conf.def EXAMPLE.conf
744 -
745 - if use doc; then
746 - docinto html
747 - dodoc -r docs/html/*
748 - fi
749 -
750 - keepdir /var/lib/net-snmp
751 -
752 - newinitd "${FILESDIR}"/snmpd.init.2 snmpd
753 - newconfd "${FILESDIR}"/snmpd.conf snmpd
754 -
755 - newinitd "${FILESDIR}"/snmptrapd.init.2 snmptrapd
756 - newconfd "${FILESDIR}"/snmptrapd.conf snmptrapd
757 -
758 - systemd_dounit "${FILESDIR}"/snmpd.service
759 - systemd_dounit "${FILESDIR}"/snmptrapd.service
760 -
761 - insinto /etc/snmp
762 - newins "${S}"/EXAMPLE.conf snmpd.conf.example
763 -
764 - # Remove everything not required for an agent.
765 - # Keep only the snmpd, snmptrapd, MIBs, headers and libraries.
766 - if use minimal; then
767 - rm -rf \
768 - "${D}"/**/*.pl \
769 - "${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} \
770 - "${D}"/usr/share/snmp/*.conf \
771 - "${D}"/usr/share/snmp/snmpconf-data \
772 - || die
773 - fi
774 -
775 - prune_libtool_files
776 -}