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/files/, net-analyzer/net-snmp/
Date: Sat, 15 Aug 2020 13:18:36
Message-Id: 1597497510.41ce6d213a8daee9d1d607a836bec31a4b975085.jer@gentoo
1 commit: 41ce6d213a8daee9d1d607a836bec31a4b975085
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 15 13:18:04 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 15 13:18:30 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41ce6d21
7
8 net-analyzer/net-snmp: Version 5.9
9
10 Package-Manager: Portage-3.0.2, Repoman-2.3.23
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-analyzer/net-snmp/Manifest | 1 +
14 .../net-snmp/files/net-snmp-5.9-MakeMaker.patch | 10 +++++++
15 ...et-snmp-99999999.ebuild => net-snmp-5.9.ebuild} | 31 +++++++++-------------
16 net-analyzer/net-snmp/net-snmp-99999999.ebuild | 20 +++++++-------
17 4 files changed, 34 insertions(+), 28 deletions(-)
18
19 diff --git a/net-analyzer/net-snmp/Manifest b/net-analyzer/net-snmp/Manifest
20 index 810f50fdabf..49e33a99e38 100644
21 --- a/net-analyzer/net-snmp/Manifest
22 +++ b/net-analyzer/net-snmp/Manifest
23 @@ -3,3 +3,4 @@ DIST net-snmp-5.8.1.pre1.tar.gz 6630615 BLAKE2B 32ae7177fc08a773928da7f19cd06617
24 DIST net-snmp-5.8.1.pre2.tar.gz 6642893 BLAKE2B 4b2a1e87738c3bde49354f0cca84628f2953ee14f6b08ca53cf0bc5c320052cb4fe0f6eeb46551eaf2d45ba9c17f86ce06b64c00c1629b2d17bc351c0ccb37a8 SHA512 78cd9a29cc89ff7fa170ee767db3ca2077fc1d877f207c018887c2ea0148ffaf01eb013efc21b47f14c893a6ca48b3b439210ccd27dfc77f8c8e56bf9546f23e
25 DIST net-snmp-5.8.1.rc1.tar.gz 6690067 BLAKE2B 35f9547de7b40c8a6f4a046e5cdb9b4a28650f0d87d51572659c5cbb0759503b9d328fc227fa2061f18a733ceaa8c22aa771fabe685a97fab1dc9b5ff98c2648 SHA512 294f2c5656bfc5141ef6aa5826f79b886094ea702ec20918c0ff20aa4100c8503b33a21086c6c028cff25c05504b9f8ed29533c89745586e32d63839345e2331
26 DIST net-snmp-5.8.tar.gz 6591680 BLAKE2B ac1bff4152310da57818a00d752a08a7fc61d697b02479d9952ca12d024d3d68dc8bfa674571e93d6f3597605b2fe91513fb6839057a80f2c3dd8d0cce0077f2 SHA512 27895a583b23f3e14c48562bc32f3ba83513d81aa848e878be9a3650f0458d45950635c937ef627135f80b757b663e71fab9a3bde4fd91889153998ae3468fe7
27 +DIST net-snmp-5.9.tar.gz 37424919 BLAKE2B 673c7f5e05b5562821b907e9e06e7dd80e6f3c08521cdd71321cbe9774f0f60993682670b1188b89a39ba560d10f2234ca0fb4e76e867ab26f2c82799621e8de SHA512 ddba2c2fc220ee18e3f8b6756a754e206d0d7dc9b9615c92596cd16b38557bd2c7327d7bb8164fa67d85a4c757eb4f7a7dad9584e4af13facfec6b1ccae7961b
28
29 diff --git a/net-analyzer/net-snmp/files/net-snmp-5.9-MakeMaker.patch b/net-analyzer/net-snmp/files/net-snmp-5.9-MakeMaker.patch
30 new file mode 100644
31 index 00000000000..1c6a3fd1eaf
32 --- /dev/null
33 +++ b/net-analyzer/net-snmp/files/net-snmp-5.9-MakeMaker.patch
34 @@ -0,0 +1,10 @@
35 +--- a/perl/Makefile.PL
36 ++++ b/perl/Makefile.PL
37 +@@ -3,6 +3,7 @@
38 + use ExtUtils::MakeMaker;
39 + use Config;
40 + require 5;
41 ++use lib '.';
42 + use MakefileSubs;
43 +
44 + # Prevent that MakeMaker complains about unknown parameter names.
45
46 diff --git a/net-analyzer/net-snmp/net-snmp-99999999.ebuild b/net-analyzer/net-snmp/net-snmp-5.9.ebuild
47 similarity index 92%
48 copy from net-analyzer/net-snmp/net-snmp-99999999.ebuild
49 copy to net-analyzer/net-snmp/net-snmp-5.9.ebuild
50 index d75684cc5af..5f50c7d5aff 100644
51 --- a/net-analyzer/net-snmp/net-snmp-99999999.ebuild
52 +++ b/net-analyzer/net-snmp/net-snmp-5.9.ebuild
53 @@ -2,26 +2,25 @@
54 # Distributed under the terms of the GNU General Public License v2
55
56 EAPI=7
57 -PYTHON_COMPAT=( python3_{6,7,8} )
58 -DISTUTILS_SINGLE_IMPL=yesplz
59 DISTUTILS_OPTIONAL=yesplz
60 -WANT_AUTOMAKE=none
61 -PATCHSET=3
62 +DISTUTILS_SINGLE_IMPL=yesplz
63 GENTOO_DEPEND_ON_PERL=no
64 -
65 -inherit autotools distutils-r1 git-r3 perl-module systemd
66 +PATCHSET=3
67 +PYTHON_COMPAT=( python3_{6,7,8} )
68 +WANT_AUTOMAKE=none
69 +inherit autotools distutils-r1 perl-module systemd
70
71 DESCRIPTION="Software for generating and retrieving SNMP data"
72 HOMEPAGE="http://www.net-snmp.org/"
73 -EGIT_REPO_URI="https://github.com/net-snmp/net-snmp"
74 SRC_URI="
75 + mirror://sourceforge/project/${PN}/${PN}/${PV/_rc*/}/${P/_rc/.rc}.tar.gz
76 https://dev.gentoo.org/~jer/${PN}-5.7.3-patches-3.tar.xz
77 "
78
79 # GPL-2 for the init scripts
80 LICENSE="HPND BSD GPL-2"
81 SLOT="0/40"
82 -KEYWORDS=""
83 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
84 IUSE="
85 X bzip2 doc elf kmem ipv6 libressl lm-sensors mfd-rewrites minimal mysql
86 netlink pcap pci perl python rpm selinux smux ssl tcpd ucd-compat zlib
87 @@ -69,8 +68,6 @@ RDEPEND="
88 )
89 selinux? ( sec-policy/selinux-snmp )
90 "
91 -S=${WORKDIR}/${P/_/.}
92 -S=${WORKDIR}/${P/_p*/}
93 RESTRICT=test
94 PATCHES=(
95 "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
96 @@ -79,6 +76,7 @@ PATCHES=(
97 "${FILESDIR}"/${PN}-5.8.1-pkg-config.patch
98 "${FILESDIR}"/${PN}-5.8.1-net-snmp-config-libdir.patch
99 "${FILESDIR}"/${PN}-5.8.1-mysqlclient.patch
100 + "${FILESDIR}"/${PN}-5.9-MakeMaker.patch
101 "${FILESDIR}"/${PN}-99999999-tinfo.patch
102 )
103
104 @@ -86,11 +84,6 @@ pkg_setup() {
105 use python && python-single-r1_pkg_setup
106 }
107
108 -src_unpack() {
109 - default
110 - git-r3_src_unpack
111 -}
112 -
113 src_prepare() {
114 # snmpconf generates config files with proper selinux context
115 use selinux && eapply "${FILESDIR}"/${PN}-5.1.2-snmpconf-selinux.patch
116 @@ -132,7 +125,8 @@ src_configure() {
117 $(use_with ssl openssl) \
118 $(use_with tcpd libwrap) \
119 $(use_with zlib) \
120 - --enable-shared --disable-static \
121 + --disable-static \
122 + --enable-shared \
123 --with-default-snmp-version="3" \
124 --with-install-prefix="${D}" \
125 --with-ldflags="${LDFLAGS}" \
126 @@ -144,8 +138,9 @@ src_configure() {
127 }
128
129 src_compile() {
130 - for target in snmplib agent sedscript all; do
131 - emake OTHERLDFLAGS="${LDFLAGS}" ${target}
132 + local subdir
133 + for subdir in snmplib agent/mibgroup agent apps .; do
134 + emake OTHERLDFLAGS="${LDFLAGS}" -C ${subdir} all
135 done
136
137 use doc && emake docsdox
138
139 diff --git a/net-analyzer/net-snmp/net-snmp-99999999.ebuild b/net-analyzer/net-snmp/net-snmp-99999999.ebuild
140 index d75684cc5af..b3478934c9a 100644
141 --- a/net-analyzer/net-snmp/net-snmp-99999999.ebuild
142 +++ b/net-analyzer/net-snmp/net-snmp-99999999.ebuild
143 @@ -2,13 +2,12 @@
144 # Distributed under the terms of the GNU General Public License v2
145
146 EAPI=7
147 -PYTHON_COMPAT=( python3_{6,7,8} )
148 -DISTUTILS_SINGLE_IMPL=yesplz
149 DISTUTILS_OPTIONAL=yesplz
150 -WANT_AUTOMAKE=none
151 -PATCHSET=3
152 +DISTUTILS_SINGLE_IMPL=yesplz
153 GENTOO_DEPEND_ON_PERL=no
154 -
155 +PATCHSET=3
156 +PYTHON_COMPAT=( python3_{6,7,8} )
157 +WANT_AUTOMAKE=none
158 inherit autotools distutils-r1 git-r3 perl-module systemd
159
160 DESCRIPTION="Software for generating and retrieving SNMP data"
161 @@ -69,8 +68,6 @@ RDEPEND="
162 )
163 selinux? ( sec-policy/selinux-snmp )
164 "
165 -S=${WORKDIR}/${P/_/.}
166 -S=${WORKDIR}/${P/_p*/}
167 RESTRICT=test
168 PATCHES=(
169 "${FILESDIR}"/${PN}-5.7.3-include-limits.patch
170 @@ -79,6 +76,7 @@ PATCHES=(
171 "${FILESDIR}"/${PN}-5.8.1-pkg-config.patch
172 "${FILESDIR}"/${PN}-5.8.1-net-snmp-config-libdir.patch
173 "${FILESDIR}"/${PN}-5.8.1-mysqlclient.patch
174 + "${FILESDIR}"/${PN}-5.9-MakeMaker.patch
175 "${FILESDIR}"/${PN}-99999999-tinfo.patch
176 )
177
178 @@ -132,7 +130,8 @@ src_configure() {
179 $(use_with ssl openssl) \
180 $(use_with tcpd libwrap) \
181 $(use_with zlib) \
182 - --enable-shared --disable-static \
183 + --disable-static \
184 + --enable-shared \
185 --with-default-snmp-version="3" \
186 --with-install-prefix="${D}" \
187 --with-ldflags="${LDFLAGS}" \
188 @@ -144,8 +143,9 @@ src_configure() {
189 }
190
191 src_compile() {
192 - for target in snmplib agent sedscript all; do
193 - emake OTHERLDFLAGS="${LDFLAGS}" ${target}
194 + local subdir
195 + for subdir in snmplib agent/mibgroup agent apps .; do
196 + emake OTHERLDFLAGS="${LDFLAGS}" -C ${subdir} all
197 done
198
199 use doc && emake docsdox