Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/ipset/files/, net-firewall/ipset/
Date: Thu, 30 Nov 2017 20:38:23
Message-Id: 1512074285.40960cbcbab5397a82b1c0eb0cb89af0dee10f6e.robbat2@gentoo
1 commit: 40960cbcbab5397a82b1c0eb0cb89af0dee10f6e
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 30 20:38:05 2017 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 30 20:38:05 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40960cbc
7
8 net-firewall/ipset: cleanup
9
10 Package-Manager: Portage-2.3.16, Repoman-2.3.6
11
12 net-firewall/ipset/Manifest | 8 ---
13 net-firewall/ipset/files/ipset.initd-r2 | 59 -----------------
14 net-firewall/ipset/files/ipset.initd-r3 | 95 ---------------------------
15 net-firewall/ipset/ipset-6.15.ebuild | 111 -------------------------------
16 net-firewall/ipset/ipset-6.16.1.ebuild | 110 -------------------------------
17 net-firewall/ipset/ipset-6.16.ebuild | 110 -------------------------------
18 net-firewall/ipset/ipset-6.17.ebuild | 110 -------------------------------
19 net-firewall/ipset/ipset-6.19.ebuild | 110 -------------------------------
20 net-firewall/ipset/ipset-6.20.1.ebuild | 113 --------------------------------
21 net-firewall/ipset/ipset-6.21.1.ebuild | 113 --------------------------------
22 net-firewall/ipset/ipset-6.24.ebuild | 98 ---------------------------
23 11 files changed, 1037 deletions(-)
24
25 diff --git a/net-firewall/ipset/Manifest b/net-firewall/ipset/Manifest
26 index 90a13b0ac8c..f909863eb09 100644
27 --- a/net-firewall/ipset/Manifest
28 +++ b/net-firewall/ipset/Manifest
29 @@ -1,11 +1,3 @@
30 -DIST ipset-6.15.tar.bz2 432771 SHA256 6f60a472bc2ef7b1c864be6472de65365c90e264dfadf28da48c2361393d8fd1 SHA512 f72329bb8610717ccdddbfaf7b7774e717a34d71fdb7f9c7eac97e3d1b314915500c88137b6e229411df99c86d2228bef447f26c116bc2cf992cfb60ab1422d3 WHIRLPOOL 868ee3cd722c2d86c273aca8f3ca7695e8ef5d00d30111ef0f2bf972a119211008d8cadec1760b43b4f0efb24690f20a2cf5f0fdbbb0700cf66e5660d363ab2a
31 -DIST ipset-6.16.1.tar.bz2 433347 BLAKE2B 6998df5f7e02906fd7ac5e40091599e8d734c139ce1d68316ef0d97b3715619d2f5fe238f9a83471882d3d48b479ab105eebd7d13f8200be38ca015815eaa5c7 SHA512 e54d32932875a9d06acba598280de9e83529f36326cbaaeb05d38b985bc40d276dc46e37eae3d1d4c1afcdd69b3074678512349ebd964b6189ca1c6871efe304
32 -DIST ipset-6.16.tar.bz2 433118 BLAKE2B 20d3080b88126d19c930b2351212acc01cb8e295a4746fc86c67b0c0bfa91c248927516a19f5935dc344b1780bc3b191514bea6574b4d78d66381dc7d0c0fd41 SHA512 34ef44af76f3609035ae1bdacb7586f2288ee66701ed8a1a5a0632fb23b5f651fe02b070e0f0f1b0ebae6cab02b3f827cc7e67f740cf77f51ba494c25dcc47dd
33 -DIST ipset-6.17.tar.bz2 448076 BLAKE2B b1ff8d51cc4c9fc0c2053f8dea4f00c05f7d9dacb39fc5550e73b01ffe15c8e37507affc790cdffeb3ec26630a00332a529a3a1bb8b9824b3201609027657877 SHA512 668f173b7ddd8a18af2730205e2e2c38610aa9fd191af52f91080e903bcd8e1f38e8e3a7fd57077decb00fd0556df89c3315c91eaffaa6977f2caf2a3300b175
34 -DIST ipset-6.19.tar.bz2 465927 BLAKE2B 5df57e88384447e272e8d6a8e2b2a81f910efb703a6f54743c7eb1949fbddcd95922b0dc8659be92e890b8269d61f022161a3e87f7f3050d7ffeffdd4163d0bf SHA512 9e9fdccd8ae34ad56c5fc6da03060b39b3acc9a53154acf7e82df3f2c1545b2bdcc7b5b9b4f6ddd6ee3e8582e81b1fa51fae37cb4f46948c053d5153bdca6f39
35 -DIST ipset-6.20.1.tar.bz2 500898 BLAKE2B bde1cbce6d5cd0862bfa33752375643d7d5c47ce5c8e7435768d41be09763690ec18892fc88275e45c46dbe1510b4fcacb9ec7b79255883d549cdb110e941fe0 SHA512 3fda3a71c18c8d5f9567038fc72f95abec81b4c789fbca7f7b9c032b15000cfbd2829f11a07f2f9ad2afcff54d6851923caff0917b2ead73756673a6b3667565
36 -DIST ipset-6.21.1.tar.bz2 510013 BLAKE2B 38d3f6841f6c3ffc95d786aeee3e97a68bf0828a7f8651ec10afcfcf3cf3b460cd977b0380c35ab11117d73813301f7ab93391c64d521dc5f3ab203b5d0300b7 SHA512 c2ffb2eafc780e15370fd48841f4323c39e8fef1893216c8bc0b8aa8d143f9daf078c6e261e4558243004fe9612ce1d5ca4cca16f8b3f324f4194700c1b0accb
37 -DIST ipset-6.24.tar.bz2 518811 BLAKE2B 19c7ccd8890386dcb342eefc88559edab2f8d0235b8f76c1a916298d32d4b0ac2f4232755cc1c362823a1397dc29054bf0dcf6375804392b541bee2ba6c2b849 SHA512 107bf492030dc4e8e4c2a939e46a715f58458126bfb636dae993e5bf31151d33c2a41b89eb5cca85b71d95b3e36debf97cdfc72c568f351091df17159003d6c6
38 DIST ipset-6.29.tar.bz2 542735 BLAKE2B 2229eb802597b38287f49cc2936a8be1afde2f638bd7212f86a52bc07d4121b7ff6b334ced2e1354bfdb652bcac81957b5204ac545a081dddfce07958c858fe4 SHA512 ce62c72c4cea1b52f069602a90fbffe9bcb12bf70f5b42d93cacb48e4b5d1192a13b18be45391c66a65421f41968e73416e16af25ae6ef19ba92bdbb2cd45ff3
39 DIST ipset-6.30.tar.bz2 544054 BLAKE2B eb9a6368436f0c4a813a6733b2122be975c752aee4d8ac9a2e7a02ebd2da372351c318cf1b0c06c1b389c523cd9572dfe1bff813e23a4e924391f9c7a946b75b SHA512 6299a6905fbbcc2dd7c2f07862af184fd3b63b586f7bf3af2de5a0cc692f4ec6ef57db64c3435c1acedd6c293570602dca8cfedcb197a00ec18517ced92dc903
40 DIST ipset-6.32.tar.bz2 544635 BLAKE2B 684354b0b24b15a657b21d44fa58b2cf7823f78d78ccd2b3f1c2d50b9e1396db6ed1414edb69102e3f82810d844ccd5eb738d1a968921b76b20e5d15c6ae5fb1 SHA512 7b0f5e7ef1a777ab70872aa52f658ff9516cb5de4c67c56d7f596eb88db03467d39b10ffc098441b4bfa4bb21a15f3c5f7f7f825300ce8efbacd767369ad43c7
41
42 diff --git a/net-firewall/ipset/files/ipset.initd-r2 b/net-firewall/ipset/files/ipset.initd-r2
43 deleted file mode 100644
44 index 86c580cfe08..00000000000
45 --- a/net-firewall/ipset/files/ipset.initd-r2
46 +++ /dev/null
47 @@ -1,59 +0,0 @@
48 -#!/sbin/openrc-run
49 -# Copyright 1999-2013 Gentoo Foundation
50 -# Distributed under the terms of the GNU General Public License v2
51 -
52 -extra_commands="save"
53 -
54 -IPSET_SAVE=${IPSET_SAVE:-/var/lib/ipset/rules-save}
55 -
56 -depend() {
57 - before iptables ip6tables
58 -}
59 -
60 -checkconfig() {
61 - if [ ! -f "${IPSET_SAVE}" ] ; then
62 - eerror "Not starting ${SVCNAME}. First create some rules then run:"
63 - eerror "/etc/init.d/${SVCNAME} save"
64 - return 1
65 - fi
66 - return 0
67 -}
68 -
69 -start() {
70 - checkconfig || return 1
71 - ebegin "Loading ipset session"
72 - ipset restore < "${IPSET_SAVE}"
73 - eend $?
74 -}
75 -
76 -stop() {
77 - # check if there are any references to current sets
78 -
79 - if ! ipset list | gawk '
80 - ($1 == "References:") { refcnt += $2 }
81 - ($1 == "Type:" && $2 == "list:set") { set = 1 }
82 - (scan) { if ($0 != "") setcnt++; else { scan = 0; set = 0 } }
83 - (set && $1 == "Members:") {scan = 1}
84 - END { if ((refcnt - setcnt) > 0) exit 1 }
85 - '; then
86 - eerror "ipset is in use, can't stop"
87 - return 1
88 - fi
89 -
90 - if [ "${SAVE_ON_STOP}" = "yes" ] ; then
91 - save || return 1
92 - fi
93 -
94 - ebegin "Removing kernel IP sets"
95 - ipset flush
96 - ipset destroy
97 - eend $?
98 -}
99 -
100 -save() {
101 - ebegin "Saving ipset session"
102 - touch "${IPSET_SAVE}"
103 - chmod 0600 "${IPSET_SAVE}"
104 - ipset save > "${IPSET_SAVE}"
105 - eend $?
106 -}
107
108 diff --git a/net-firewall/ipset/files/ipset.initd-r3 b/net-firewall/ipset/files/ipset.initd-r3
109 deleted file mode 100644
110 index 85556edd1c3..00000000000
111 --- a/net-firewall/ipset/files/ipset.initd-r3
112 +++ /dev/null
113 @@ -1,95 +0,0 @@
114 -#!/sbin/openrc-run
115 -# Copyright 1999-2013 Gentoo Foundation
116 -# Distributed under the terms of the GNU General Public License v2
117 -
118 -extra_commands="save"
119 -extra_started_commands="reload"
120 -
121 -IPSET_SAVE=${IPSET_SAVE:-/var/lib/ipset/rules-save}
122 -
123 -depend() {
124 - before iptables ip6tables
125 -}
126 -
127 -checkconfig() {
128 - if [ ! -f "${IPSET_SAVE}" ] ; then
129 - eerror "Not starting ${SVCNAME}. First create some rules then run:"
130 - eerror "/etc/init.d/${SVCNAME} save"
131 - return 1
132 - fi
133 - return 0
134 -}
135 -
136 -start() {
137 - checkconfig || return 1
138 - ebegin "Loading ipset session"
139 - ipset restore < "${IPSET_SAVE}"
140 - eend $?
141 -}
142 -
143 -stop() {
144 - # check if there are any references to current sets
145 -
146 - if ! ipset list | gawk '
147 - ($1 == "References:") { refcnt += $2 }
148 - ($1 == "Type:" && $2 == "list:set") { set = 1 }
149 - (scan) { if ($0 != "") setcnt++; else { scan = 0; set = 0 } }
150 - (set && $1 == "Members:") {scan = 1}
151 - END { if ((refcnt - setcnt) > 0) exit 1 }
152 - '; then
153 - eerror "ipset is in use, can't stop"
154 - return 1
155 - fi
156 -
157 - if [ "${SAVE_ON_STOP}" = "yes" ] ; then
158 - save || return 1
159 - fi
160 -
161 - ebegin "Removing kernel IP sets"
162 - ipset flush
163 - ipset destroy
164 - eend $?
165 -}
166 -
167 -reload() {
168 - ebegin "Reloading ipsets"
169 -
170 - # Loading sets from a save file is only additive (there is no
171 - # automatic flushing or replacing). And, we can not remove sets
172 - # that are currently used in existing iptables rules.
173 - #
174 - # Instead, we create new temp sets for any set that is already
175 - # in use, and then atomically swap them into place.
176 - #
177 - # XXX: This does not clean out previously used ipsets that are
178 - # not in the new saved policy--it can't, because they may still
179 - # be referenced in the current iptables rules.
180 -
181 - # Build a list of all currently used sets (if any).
182 - running_ipset_list=$(ipset save | gawk '/^create/{printf "%s ",$2}')
183 - running_ipset_list="${running_ipset_list% }"
184 - # Build a regular expression that matches those set names.
185 - running_ipset_list_regex="${running_ipset_list// /|}"
186 -
187 - # Load up sets from the save file, but rename any set that already
188 - # exists to a temporary name that we will swap later.
189 - if ! cat ${IPSET_SAVE} | sed -r "s/^(create|add) (${running_ipset_list_regex}) /\1 \2_atomic_temp /" | ipset restore ; then
190 - eend $? "Failed to load new ipsets"
191 - fi
192 -
193 - # Now for every set name that currently exists, atomically swap it
194 - # with the temporary new one we created, and then destroy the old set.
195 - for ipset_name in ${running_ipset_list} ; do
196 - ipset swap ${ipset_name} ${ipset_name}_atomic_temp || eend $? "Failed to swap in new ipset $ipset_name"
197 - ipset destroy ${ipset_name}_atomic_temp || eend $? "Failed to delete obsolete ipset ${ipset_name}_atomic_temp"
198 - done
199 - eend 0
200 -}
201 -
202 -save() {
203 - ebegin "Saving ipset session"
204 - touch "${IPSET_SAVE}"
205 - chmod 0600 "${IPSET_SAVE}"
206 - ipset save > "${IPSET_SAVE}"
207 - eend $?
208 -}
209
210 diff --git a/net-firewall/ipset/ipset-6.15.ebuild b/net-firewall/ipset/ipset-6.15.ebuild
211 deleted file mode 100644
212 index fda7f2ff30d..00000000000
213 --- a/net-firewall/ipset/ipset-6.15.ebuild
214 +++ /dev/null
215 @@ -1,111 +0,0 @@
216 -# Copyright 1999-2017 Gentoo Foundation
217 -# Distributed under the terms of the GNU General Public License v2
218 -
219 -EAPI="4"
220 -inherit autotools linux-info linux-mod
221 -
222 -DESCRIPTION="IPset tool for iptables, successor to ippool"
223 -HOMEPAGE="http://ipset.netfilter.org/"
224 -SRC_URI="http://ipset.netfilter.org/${P}.tar.bz2"
225 -
226 -LICENSE="GPL-2"
227 -SLOT="0"
228 -KEYWORDS="amd64 ~ppc x86"
229 -IUSE="modules"
230 -
231 -RDEPEND=">=net-firewall/iptables-1.4.7
232 - net-libs/libmnl"
233 -DEPEND="${RDEPEND}"
234 -
235 -DOCS=( ChangeLog INSTALL README UPGRADE )
236 -
237 -# configurable from outside, e.g. /etc/portage/make.conf
238 -IP_NF_SET_MAX=${IP_NF_SET_MAX:-256}
239 -
240 -BUILD_TARGETS="modules"
241 -MODULE_NAMES_ARG="kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/ipset"
242 -MODULE_NAMES="xt_set(kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/)"
243 -for i in ip_set{,_bitmap_{ip{,mac},port},_hash_{ip{,port{,ip,net}},net,net{port,iface}},_list_set}; do
244 - MODULE_NAMES+=" ${i}(${MODULE_NAMES_ARG})"
245 -done
246 -
247 -check_header_patch() {
248 - if ! $(grep -q NFNL_SUBSYS_IPSET "${KV_DIR}/include/linux/netfilter/nfnetlink.h"); then
249 - eerror "Sorry, but you have to patch kernel sources with the following patch:"
250 - eerror " # cd ${KV_DIR}"
251 - eerror " # patch -i ${S}/netlink.patch -p1"
252 - eerror "You should recompile and run new kernel to avoid runtime errors."
253 - die "Unpatched kernel"
254 - fi
255 -}
256 -
257 -pkg_setup() {
258 - get_version
259 - CONFIG_CHECK="NETFILTER"
260 - ERROR_NETFILTER="ipset requires NETFILTER support in your kernel."
261 -
262 - build_modules=0
263 - if use modules; then
264 - kernel_is -lt 2 6 35 && die "${PN} requires kernel greater then 2.6.35."
265 - if linux_config_src_exists && linux_chkconfig_builtin "MODULES" ; then
266 - if linux_chkconfig_present "IP_NF_SET" || \
267 - linux_chkconfig_present "IP_SET"; then #274577
268 - eerror "There is IP{,_NF}_SET or NETFILTER_XT_SET support in your kernel."
269 - eerror "Please either build ipset with modules USE flag disabled"
270 - eerror "or rebuild kernel without IP_SET support and make sure"
271 - eerror "there is NO kernel ip_set* modules in /lib/modules/<your_kernel>/... ."
272 - die "USE=modules and in-kernel ipset support detected."
273 - else
274 - einfo "Modular kernel detected. Gonna build kernel modules..."
275 - build_modules=1
276 - fi
277 - else
278 - eerror "Nonmodular kernel detected, but USE=modules. Either build"
279 - eerror "modular kernel (without IP_SET) or disable USE=modules"
280 - die "Nonmodular kernel detected, will not build kernel modules"
281 - fi
282 - fi
283 - [[ ${build_modules} -eq 1 ]] && linux-mod_pkg_setup
284 -}
285 -
286 -src_prepare() {
287 - [[ ${build_modules} -eq 1 ]] && check_header_patch
288 - eautoreconf
289 -}
290 -
291 -src_configure() {
292 - econf \
293 - $(use_with modules kmod) \
294 - --disable-static \
295 - --with-maxsets=${IP_NF_SET_MAX} \
296 - --libdir="${EPREFIX}/$(get_libdir)" \
297 - --with-ksource="${KV_DIR}" \
298 - --with-kbuild="${KV_OUT_DIR}" \
299 - --disable-silent-rules
300 -}
301 -
302 -src_compile() {
303 - einfo "Building userspace"
304 - emake
305 -
306 - if [[ ${build_modules} -eq 1 ]]; then
307 - einfo "Building kernel modules"
308 - set_arch_to_kernel
309 - emake modules
310 - fi
311 -}
312 -
313 -src_install() {
314 - einfo "Installing userspace"
315 - default
316 - prune_libtool_files
317 -
318 - newinitd "${FILESDIR}"/ipset.initd-r2 ${PN}
319 - newconfd "${FILESDIR}"/ipset.confd ${PN}
320 - keepdir /var/lib/ipset
321 -
322 - if [[ ${build_modules} -eq 1 ]]; then
323 - einfo "Installing kernel modules"
324 - linux-mod_src_install
325 - fi
326 -}
327
328 diff --git a/net-firewall/ipset/ipset-6.16.1.ebuild b/net-firewall/ipset/ipset-6.16.1.ebuild
329 deleted file mode 100644
330 index 735cbce7981..00000000000
331 --- a/net-firewall/ipset/ipset-6.16.1.ebuild
332 +++ /dev/null
333 @@ -1,110 +0,0 @@
334 -# Copyright 1999-2017 Gentoo Foundation
335 -# Distributed under the terms of the GNU General Public License v2
336 -
337 -EAPI="5"
338 -inherit autotools linux-info linux-mod
339 -
340 -DESCRIPTION="IPset tool for iptables, successor to ippool"
341 -HOMEPAGE="http://ipset.netfilter.org/"
342 -SRC_URI="http://ipset.netfilter.org/${P}.tar.bz2"
343 -
344 -LICENSE="GPL-2"
345 -SLOT="0"
346 -KEYWORDS="~amd64 ~ppc ~x86"
347 -IUSE="modules"
348 -
349 -RDEPEND=">=net-firewall/iptables-1.4.7
350 - net-libs/libmnl"
351 -DEPEND="${RDEPEND}"
352 -
353 -DOCS=( ChangeLog INSTALL README UPGRADE )
354 -
355 -# configurable from outside, e.g. /etc/portage/make.conf
356 -IP_NF_SET_MAX=${IP_NF_SET_MAX:-256}
357 -
358 -BUILD_TARGETS="modules"
359 -MODULE_NAMES_ARG="kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/ipset"
360 -MODULE_NAMES="xt_set(kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/)"
361 -for i in ip_set{,_bitmap_{ip{,mac},port},_hash_{ip{,port{,ip,net}},net,net{port,iface}},_list_set}; do
362 - MODULE_NAMES+=" ${i}(${MODULE_NAMES_ARG})"
363 -done
364 -
365 -check_header_patch() {
366 - if ! $(grep -q NFNL_SUBSYS_IPSET "${KV_DIR}/include/linux/netfilter/nfnetlink.h"); then
367 - eerror "Sorry, but you have to patch kernel sources with the following patch:"
368 - eerror " # cd ${KV_DIR}"
369 - eerror " # patch -i ${S}/netlink.patch -p1"
370 - eerror "You should recompile and run new kernel to avoid runtime errors."
371 - die "Unpatched kernel"
372 - fi
373 -}
374 -
375 -pkg_setup() {
376 - get_version
377 - CONFIG_CHECK="NETFILTER"
378 - ERROR_NETFILTER="ipset requires NETFILTER support in your kernel."
379 -
380 - build_modules=0
381 - if use modules; then
382 - kernel_is -lt 2 6 35 && die "${PN} requires kernel greater then 2.6.35."
383 - if linux_config_src_exists && linux_chkconfig_builtin "MODULES" ; then
384 - if linux_chkconfig_present "IP_NF_SET" || \
385 - linux_chkconfig_present "IP_SET"; then #274577
386 - eerror "There is IP{,_NF}_SET or NETFILTER_XT_SET support in your kernel."
387 - eerror "Please either build ipset with modules USE flag disabled"
388 - eerror "or rebuild kernel without IP_SET support and make sure"
389 - eerror "there is NO kernel ip_set* modules in /lib/modules/<your_kernel>/... ."
390 - die "USE=modules and in-kernel ipset support detected."
391 - else
392 - einfo "Modular kernel detected. Gonna build kernel modules..."
393 - build_modules=1
394 - fi
395 - else
396 - eerror "Nonmodular kernel detected, but USE=modules. Either build"
397 - eerror "modular kernel (without IP_SET) or disable USE=modules"
398 - die "Nonmodular kernel detected, will not build kernel modules"
399 - fi
400 - fi
401 - [[ ${build_modules} -eq 1 ]] && linux-mod_pkg_setup
402 -}
403 -
404 -src_prepare() {
405 - [[ ${build_modules} -eq 1 ]] && check_header_patch
406 - eautoreconf
407 -}
408 -
409 -src_configure() {
410 - econf \
411 - $(use_with modules kmod) \
412 - --disable-static \
413 - --with-maxsets=${IP_NF_SET_MAX} \
414 - --libdir="${EPREFIX}/$(get_libdir)" \
415 - --with-ksource="${KV_DIR}" \
416 - --with-kbuild="${KV_OUT_DIR}"
417 -}
418 -
419 -src_compile() {
420 - einfo "Building userspace"
421 - emake
422 -
423 - if [[ ${build_modules} -eq 1 ]]; then
424 - einfo "Building kernel modules"
425 - set_arch_to_kernel
426 - emake modules
427 - fi
428 -}
429 -
430 -src_install() {
431 - einfo "Installing userspace"
432 - default
433 - prune_libtool_files
434 -
435 - newinitd "${FILESDIR}"/ipset.initd-r2 ${PN}
436 - newconfd "${FILESDIR}"/ipset.confd ${PN}
437 - keepdir /var/lib/ipset
438 -
439 - if [[ ${build_modules} -eq 1 ]]; then
440 - einfo "Installing kernel modules"
441 - linux-mod_src_install
442 - fi
443 -}
444
445 diff --git a/net-firewall/ipset/ipset-6.16.ebuild b/net-firewall/ipset/ipset-6.16.ebuild
446 deleted file mode 100644
447 index 735cbce7981..00000000000
448 --- a/net-firewall/ipset/ipset-6.16.ebuild
449 +++ /dev/null
450 @@ -1,110 +0,0 @@
451 -# Copyright 1999-2017 Gentoo Foundation
452 -# Distributed under the terms of the GNU General Public License v2
453 -
454 -EAPI="5"
455 -inherit autotools linux-info linux-mod
456 -
457 -DESCRIPTION="IPset tool for iptables, successor to ippool"
458 -HOMEPAGE="http://ipset.netfilter.org/"
459 -SRC_URI="http://ipset.netfilter.org/${P}.tar.bz2"
460 -
461 -LICENSE="GPL-2"
462 -SLOT="0"
463 -KEYWORDS="~amd64 ~ppc ~x86"
464 -IUSE="modules"
465 -
466 -RDEPEND=">=net-firewall/iptables-1.4.7
467 - net-libs/libmnl"
468 -DEPEND="${RDEPEND}"
469 -
470 -DOCS=( ChangeLog INSTALL README UPGRADE )
471 -
472 -# configurable from outside, e.g. /etc/portage/make.conf
473 -IP_NF_SET_MAX=${IP_NF_SET_MAX:-256}
474 -
475 -BUILD_TARGETS="modules"
476 -MODULE_NAMES_ARG="kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/ipset"
477 -MODULE_NAMES="xt_set(kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/)"
478 -for i in ip_set{,_bitmap_{ip{,mac},port},_hash_{ip{,port{,ip,net}},net,net{port,iface}},_list_set}; do
479 - MODULE_NAMES+=" ${i}(${MODULE_NAMES_ARG})"
480 -done
481 -
482 -check_header_patch() {
483 - if ! $(grep -q NFNL_SUBSYS_IPSET "${KV_DIR}/include/linux/netfilter/nfnetlink.h"); then
484 - eerror "Sorry, but you have to patch kernel sources with the following patch:"
485 - eerror " # cd ${KV_DIR}"
486 - eerror " # patch -i ${S}/netlink.patch -p1"
487 - eerror "You should recompile and run new kernel to avoid runtime errors."
488 - die "Unpatched kernel"
489 - fi
490 -}
491 -
492 -pkg_setup() {
493 - get_version
494 - CONFIG_CHECK="NETFILTER"
495 - ERROR_NETFILTER="ipset requires NETFILTER support in your kernel."
496 -
497 - build_modules=0
498 - if use modules; then
499 - kernel_is -lt 2 6 35 && die "${PN} requires kernel greater then 2.6.35."
500 - if linux_config_src_exists && linux_chkconfig_builtin "MODULES" ; then
501 - if linux_chkconfig_present "IP_NF_SET" || \
502 - linux_chkconfig_present "IP_SET"; then #274577
503 - eerror "There is IP{,_NF}_SET or NETFILTER_XT_SET support in your kernel."
504 - eerror "Please either build ipset with modules USE flag disabled"
505 - eerror "or rebuild kernel without IP_SET support and make sure"
506 - eerror "there is NO kernel ip_set* modules in /lib/modules/<your_kernel>/... ."
507 - die "USE=modules and in-kernel ipset support detected."
508 - else
509 - einfo "Modular kernel detected. Gonna build kernel modules..."
510 - build_modules=1
511 - fi
512 - else
513 - eerror "Nonmodular kernel detected, but USE=modules. Either build"
514 - eerror "modular kernel (without IP_SET) or disable USE=modules"
515 - die "Nonmodular kernel detected, will not build kernel modules"
516 - fi
517 - fi
518 - [[ ${build_modules} -eq 1 ]] && linux-mod_pkg_setup
519 -}
520 -
521 -src_prepare() {
522 - [[ ${build_modules} -eq 1 ]] && check_header_patch
523 - eautoreconf
524 -}
525 -
526 -src_configure() {
527 - econf \
528 - $(use_with modules kmod) \
529 - --disable-static \
530 - --with-maxsets=${IP_NF_SET_MAX} \
531 - --libdir="${EPREFIX}/$(get_libdir)" \
532 - --with-ksource="${KV_DIR}" \
533 - --with-kbuild="${KV_OUT_DIR}"
534 -}
535 -
536 -src_compile() {
537 - einfo "Building userspace"
538 - emake
539 -
540 - if [[ ${build_modules} -eq 1 ]]; then
541 - einfo "Building kernel modules"
542 - set_arch_to_kernel
543 - emake modules
544 - fi
545 -}
546 -
547 -src_install() {
548 - einfo "Installing userspace"
549 - default
550 - prune_libtool_files
551 -
552 - newinitd "${FILESDIR}"/ipset.initd-r2 ${PN}
553 - newconfd "${FILESDIR}"/ipset.confd ${PN}
554 - keepdir /var/lib/ipset
555 -
556 - if [[ ${build_modules} -eq 1 ]]; then
557 - einfo "Installing kernel modules"
558 - linux-mod_src_install
559 - fi
560 -}
561
562 diff --git a/net-firewall/ipset/ipset-6.17.ebuild b/net-firewall/ipset/ipset-6.17.ebuild
563 deleted file mode 100644
564 index e841595369f..00000000000
565 --- a/net-firewall/ipset/ipset-6.17.ebuild
566 +++ /dev/null
567 @@ -1,110 +0,0 @@
568 -# Copyright 1999-2017 Gentoo Foundation
569 -# Distributed under the terms of the GNU General Public License v2
570 -
571 -EAPI="5"
572 -inherit autotools linux-info linux-mod
573 -
574 -DESCRIPTION="IPset tool for iptables, successor to ippool"
575 -HOMEPAGE="http://ipset.netfilter.org/"
576 -SRC_URI="http://ipset.netfilter.org/${P}.tar.bz2"
577 -
578 -LICENSE="GPL-2"
579 -SLOT="0"
580 -KEYWORDS="amd64 ~ppc x86"
581 -IUSE="modules"
582 -
583 -RDEPEND=">=net-firewall/iptables-1.4.7
584 - net-libs/libmnl"
585 -DEPEND="${RDEPEND}"
586 -
587 -DOCS=( ChangeLog INSTALL README UPGRADE )
588 -
589 -# configurable from outside, e.g. /etc/portage/make.conf
590 -IP_NF_SET_MAX=${IP_NF_SET_MAX:-256}
591 -
592 -BUILD_TARGETS="modules"
593 -MODULE_NAMES_ARG="kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/ipset"
594 -MODULE_NAMES="xt_set(kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/)"
595 -for i in ip_set{,_bitmap_{ip{,mac},port},_hash_{ip{,port{,ip,net}},net,net{port,iface}},_list_set}; do
596 - MODULE_NAMES+=" ${i}(${MODULE_NAMES_ARG})"
597 -done
598 -
599 -check_header_patch() {
600 - if ! $(grep -q NFNL_SUBSYS_IPSET "${KV_DIR}/include/linux/netfilter/nfnetlink.h"); then
601 - eerror "Sorry, but you have to patch kernel sources with the following patch:"
602 - eerror " # cd ${KV_DIR}"
603 - eerror " # patch -i ${S}/netlink.patch -p1"
604 - eerror "You should recompile and run new kernel to avoid runtime errors."
605 - die "Unpatched kernel"
606 - fi
607 -}
608 -
609 -pkg_setup() {
610 - get_version
611 - CONFIG_CHECK="NETFILTER"
612 - ERROR_NETFILTER="ipset requires NETFILTER support in your kernel."
613 -
614 - build_modules=0
615 - if use modules; then
616 - kernel_is -lt 2 6 35 && die "${PN} requires kernel greater then 2.6.35."
617 - if linux_config_src_exists && linux_chkconfig_builtin "MODULES" ; then
618 - if linux_chkconfig_present "IP_NF_SET" || \
619 - linux_chkconfig_present "IP_SET"; then #274577
620 - eerror "There is IP{,_NF}_SET or NETFILTER_XT_SET support in your kernel."
621 - eerror "Please either build ipset with modules USE flag disabled"
622 - eerror "or rebuild kernel without IP_SET support and make sure"
623 - eerror "there is NO kernel ip_set* modules in /lib/modules/<your_kernel>/... ."
624 - die "USE=modules and in-kernel ipset support detected."
625 - else
626 - einfo "Modular kernel detected. Gonna build kernel modules..."
627 - build_modules=1
628 - fi
629 - else
630 - eerror "Nonmodular kernel detected, but USE=modules. Either build"
631 - eerror "modular kernel (without IP_SET) or disable USE=modules"
632 - die "Nonmodular kernel detected, will not build kernel modules"
633 - fi
634 - fi
635 - [[ ${build_modules} -eq 1 ]] && linux-mod_pkg_setup
636 -}
637 -
638 -src_prepare() {
639 - [[ ${build_modules} -eq 1 ]] && check_header_patch
640 - eautoreconf
641 -}
642 -
643 -src_configure() {
644 - econf \
645 - $(use_with modules kmod) \
646 - --disable-static \
647 - --with-maxsets=${IP_NF_SET_MAX} \
648 - --libdir="${EPREFIX}/$(get_libdir)" \
649 - --with-ksource="${KV_DIR}" \
650 - --with-kbuild="${KV_OUT_DIR}"
651 -}
652 -
653 -src_compile() {
654 - einfo "Building userspace"
655 - emake
656 -
657 - if [[ ${build_modules} -eq 1 ]]; then
658 - einfo "Building kernel modules"
659 - set_arch_to_kernel
660 - emake modules
661 - fi
662 -}
663 -
664 -src_install() {
665 - einfo "Installing userspace"
666 - default
667 - prune_libtool_files
668 -
669 - newinitd "${FILESDIR}"/ipset.initd-r2 ${PN}
670 - newconfd "${FILESDIR}"/ipset.confd ${PN}
671 - keepdir /var/lib/ipset
672 -
673 - if [[ ${build_modules} -eq 1 ]]; then
674 - einfo "Installing kernel modules"
675 - linux-mod_src_install
676 - fi
677 -}
678
679 diff --git a/net-firewall/ipset/ipset-6.19.ebuild b/net-firewall/ipset/ipset-6.19.ebuild
680 deleted file mode 100644
681 index 735cbce7981..00000000000
682 --- a/net-firewall/ipset/ipset-6.19.ebuild
683 +++ /dev/null
684 @@ -1,110 +0,0 @@
685 -# Copyright 1999-2017 Gentoo Foundation
686 -# Distributed under the terms of the GNU General Public License v2
687 -
688 -EAPI="5"
689 -inherit autotools linux-info linux-mod
690 -
691 -DESCRIPTION="IPset tool for iptables, successor to ippool"
692 -HOMEPAGE="http://ipset.netfilter.org/"
693 -SRC_URI="http://ipset.netfilter.org/${P}.tar.bz2"
694 -
695 -LICENSE="GPL-2"
696 -SLOT="0"
697 -KEYWORDS="~amd64 ~ppc ~x86"
698 -IUSE="modules"
699 -
700 -RDEPEND=">=net-firewall/iptables-1.4.7
701 - net-libs/libmnl"
702 -DEPEND="${RDEPEND}"
703 -
704 -DOCS=( ChangeLog INSTALL README UPGRADE )
705 -
706 -# configurable from outside, e.g. /etc/portage/make.conf
707 -IP_NF_SET_MAX=${IP_NF_SET_MAX:-256}
708 -
709 -BUILD_TARGETS="modules"
710 -MODULE_NAMES_ARG="kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/ipset"
711 -MODULE_NAMES="xt_set(kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/)"
712 -for i in ip_set{,_bitmap_{ip{,mac},port},_hash_{ip{,port{,ip,net}},net,net{port,iface}},_list_set}; do
713 - MODULE_NAMES+=" ${i}(${MODULE_NAMES_ARG})"
714 -done
715 -
716 -check_header_patch() {
717 - if ! $(grep -q NFNL_SUBSYS_IPSET "${KV_DIR}/include/linux/netfilter/nfnetlink.h"); then
718 - eerror "Sorry, but you have to patch kernel sources with the following patch:"
719 - eerror " # cd ${KV_DIR}"
720 - eerror " # patch -i ${S}/netlink.patch -p1"
721 - eerror "You should recompile and run new kernel to avoid runtime errors."
722 - die "Unpatched kernel"
723 - fi
724 -}
725 -
726 -pkg_setup() {
727 - get_version
728 - CONFIG_CHECK="NETFILTER"
729 - ERROR_NETFILTER="ipset requires NETFILTER support in your kernel."
730 -
731 - build_modules=0
732 - if use modules; then
733 - kernel_is -lt 2 6 35 && die "${PN} requires kernel greater then 2.6.35."
734 - if linux_config_src_exists && linux_chkconfig_builtin "MODULES" ; then
735 - if linux_chkconfig_present "IP_NF_SET" || \
736 - linux_chkconfig_present "IP_SET"; then #274577
737 - eerror "There is IP{,_NF}_SET or NETFILTER_XT_SET support in your kernel."
738 - eerror "Please either build ipset with modules USE flag disabled"
739 - eerror "or rebuild kernel without IP_SET support and make sure"
740 - eerror "there is NO kernel ip_set* modules in /lib/modules/<your_kernel>/... ."
741 - die "USE=modules and in-kernel ipset support detected."
742 - else
743 - einfo "Modular kernel detected. Gonna build kernel modules..."
744 - build_modules=1
745 - fi
746 - else
747 - eerror "Nonmodular kernel detected, but USE=modules. Either build"
748 - eerror "modular kernel (without IP_SET) or disable USE=modules"
749 - die "Nonmodular kernel detected, will not build kernel modules"
750 - fi
751 - fi
752 - [[ ${build_modules} -eq 1 ]] && linux-mod_pkg_setup
753 -}
754 -
755 -src_prepare() {
756 - [[ ${build_modules} -eq 1 ]] && check_header_patch
757 - eautoreconf
758 -}
759 -
760 -src_configure() {
761 - econf \
762 - $(use_with modules kmod) \
763 - --disable-static \
764 - --with-maxsets=${IP_NF_SET_MAX} \
765 - --libdir="${EPREFIX}/$(get_libdir)" \
766 - --with-ksource="${KV_DIR}" \
767 - --with-kbuild="${KV_OUT_DIR}"
768 -}
769 -
770 -src_compile() {
771 - einfo "Building userspace"
772 - emake
773 -
774 - if [[ ${build_modules} -eq 1 ]]; then
775 - einfo "Building kernel modules"
776 - set_arch_to_kernel
777 - emake modules
778 - fi
779 -}
780 -
781 -src_install() {
782 - einfo "Installing userspace"
783 - default
784 - prune_libtool_files
785 -
786 - newinitd "${FILESDIR}"/ipset.initd-r2 ${PN}
787 - newconfd "${FILESDIR}"/ipset.confd ${PN}
788 - keepdir /var/lib/ipset
789 -
790 - if [[ ${build_modules} -eq 1 ]]; then
791 - einfo "Installing kernel modules"
792 - linux-mod_src_install
793 - fi
794 -}
795
796 diff --git a/net-firewall/ipset/ipset-6.20.1.ebuild b/net-firewall/ipset/ipset-6.20.1.ebuild
797 deleted file mode 100644
798 index 6bd830949e0..00000000000
799 --- a/net-firewall/ipset/ipset-6.20.1.ebuild
800 +++ /dev/null
801 @@ -1,113 +0,0 @@
802 -# Copyright 1999-2017 Gentoo Foundation
803 -# Distributed under the terms of the GNU General Public License v2
804 -
805 -EAPI="5"
806 -MODULES_OPTIONAL_USE=modules
807 -inherit autotools linux-info linux-mod
808 -
809 -DESCRIPTION="IPset tool for iptables, successor to ippool"
810 -HOMEPAGE="http://ipset.netfilter.org/"
811 -SRC_URI="http://ipset.netfilter.org/${P}.tar.bz2"
812 -
813 -LICENSE="GPL-2"
814 -SLOT="0"
815 -KEYWORDS="amd64 ~ppc ~x86"
816 -
817 -RDEPEND=">=net-firewall/iptables-1.4.7
818 - net-libs/libmnl"
819 -DEPEND="${RDEPEND}"
820 -
821 -DOCS=( ChangeLog INSTALL README UPGRADE )
822 -
823 -# configurable from outside, e.g. /etc/portage/make.conf
824 -IP_NF_SET_MAX=${IP_NF_SET_MAX:-256}
825 -
826 -BUILD_TARGETS="modules"
827 -MODULE_NAMES_ARG="kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/ipset"
828 -MODULE_NAMES="xt_set(kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/)"
829 -for i in ip_set{,_bitmap_{ip{,mac},port},_hash_{ip{,port{,ip,net}},net{,port{,net},iface,net}},_list_set}; do
830 - MODULE_NAMES+=" ${i}(${MODULE_NAMES_ARG})"
831 -done
832 -
833 -check_header_patch() {
834 - if ! $(grep -q NFNL_SUBSYS_IPSET "${KV_DIR}/include/linux/netfilter/nfnetlink.h"); then
835 - eerror "Sorry, but you have to patch kernel sources with the following patch:"
836 - eerror " # cd ${KV_DIR}"
837 - eerror " # patch -i ${S}/netlink.patch -p1"
838 - eerror "You should recompile and run new kernel to avoid runtime errors."
839 - die "Unpatched kernel"
840 - fi
841 -}
842 -
843 -pkg_setup() {
844 - get_version
845 - CONFIG_CHECK="NETFILTER"
846 - ERROR_NETFILTER="ipset requires NETFILTER support in your kernel."
847 - # It does still build without NET_NS, but it may be needed in future.
848 - #CONFIG_CHECK="${CONFIG_CHECK} NET_NS"
849 - #ERROR_NET_NS="ipset requires NET_NS (network namespace) support in your kernel."
850 -
851 - build_modules=0
852 - if use modules; then
853 - kernel_is -lt 2 6 35 && die "${PN} requires kernel greater then 2.6.35."
854 - if linux_config_src_exists && linux_chkconfig_builtin "MODULES" ; then
855 - if linux_chkconfig_present "IP_NF_SET" || \
856 - linux_chkconfig_present "IP_SET"; then #274577
857 - eerror "There is IP{,_NF}_SET or NETFILTER_XT_SET support in your kernel."
858 - eerror "Please either build ipset with modules USE flag disabled"
859 - eerror "or rebuild kernel without IP_SET support and make sure"
860 - eerror "there is NO kernel ip_set* modules in /lib/modules/<your_kernel>/... ."
861 - die "USE=modules and in-kernel ipset support detected."
862 - else
863 - einfo "Modular kernel detected. Gonna build kernel modules..."
864 - build_modules=1
865 - fi
866 - else
867 - eerror "Nonmodular kernel detected, but USE=modules. Either build"
868 - eerror "modular kernel (without IP_SET) or disable USE=modules"
869 - die "Nonmodular kernel detected, will not build kernel modules"
870 - fi
871 - fi
872 - [[ ${build_modules} -eq 1 ]] && linux-mod_pkg_setup
873 -}
874 -
875 -src_prepare() {
876 - [[ ${build_modules} -eq 1 ]] && check_header_patch
877 - eautoreconf
878 -}
879 -
880 -src_configure() {
881 - econf \
882 - $(use_with modules kmod) \
883 - --disable-static \
884 - --with-maxsets=${IP_NF_SET_MAX} \
885 - --libdir="${EPREFIX}/$(get_libdir)" \
886 - --with-ksource="${KV_DIR}" \
887 - --with-kbuild="${KV_OUT_DIR}"
888 -}
889 -
890 -src_compile() {
891 - einfo "Building userspace"
892 - emake
893 -
894 - if [[ ${build_modules} -eq 1 ]]; then
895 - einfo "Building kernel modules"
896 - set_arch_to_kernel
897 - emake modules
898 - fi
899 -}
900 -
901 -src_install() {
902 - einfo "Installing userspace"
903 - default
904 - prune_libtool_files
905 -
906 - newinitd "${FILESDIR}"/ipset.initd-r3 ${PN}
907 - newconfd "${FILESDIR}"/ipset.confd ${PN}
908 - keepdir /var/lib/ipset
909 -
910 - if [[ ${build_modules} -eq 1 ]]; then
911 - einfo "Installing kernel modules"
912 - linux-mod_src_install
913 - fi
914 -}
915
916 diff --git a/net-firewall/ipset/ipset-6.21.1.ebuild b/net-firewall/ipset/ipset-6.21.1.ebuild
917 deleted file mode 100644
918 index 70888cbc868..00000000000
919 --- a/net-firewall/ipset/ipset-6.21.1.ebuild
920 +++ /dev/null
921 @@ -1,113 +0,0 @@
922 -# Copyright 1999-2017 Gentoo Foundation
923 -# Distributed under the terms of the GNU General Public License v2
924 -
925 -EAPI="5"
926 -MODULES_OPTIONAL_USE=modules
927 -inherit autotools linux-info linux-mod
928 -
929 -DESCRIPTION="IPset tool for iptables, successor to ippool"
930 -HOMEPAGE="http://ipset.netfilter.org/"
931 -SRC_URI="http://ipset.netfilter.org/${P}.tar.bz2"
932 -
933 -LICENSE="GPL-2"
934 -SLOT="0"
935 -KEYWORDS="~amd64 ~ppc ~x86"
936 -
937 -RDEPEND=">=net-firewall/iptables-1.4.7
938 - net-libs/libmnl"
939 -DEPEND="${RDEPEND}"
940 -
941 -DOCS=( ChangeLog INSTALL README UPGRADE )
942 -
943 -# configurable from outside, e.g. /etc/portage/make.conf
944 -IP_NF_SET_MAX=${IP_NF_SET_MAX:-256}
945 -
946 -BUILD_TARGETS="modules"
947 -MODULE_NAMES_ARG="kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/ipset"
948 -MODULE_NAMES="xt_set(kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/)"
949 -for i in ip_set{,_bitmap_{ip{,mac},port},_hash_{ip{,port{,ip,net}},net{,port{,net},iface,net}},_list_set}; do
950 - MODULE_NAMES+=" ${i}(${MODULE_NAMES_ARG})"
951 -done
952 -
953 -check_header_patch() {
954 - if ! $(grep -q NFNL_SUBSYS_IPSET "${KV_DIR}/include/linux/netfilter/nfnetlink.h"); then
955 - eerror "Sorry, but you have to patch kernel sources with the following patch:"
956 - eerror " # cd ${KV_DIR}"
957 - eerror " # patch -i ${S}/netlink.patch -p1"
958 - eerror "You should recompile and run new kernel to avoid runtime errors."
959 - die "Unpatched kernel"
960 - fi
961 -}
962 -
963 -pkg_setup() {
964 - get_version
965 - CONFIG_CHECK="NETFILTER"
966 - ERROR_NETFILTER="ipset requires NETFILTER support in your kernel."
967 - # It does still build without NET_NS, but it may be needed in future.
968 - #CONFIG_CHECK="${CONFIG_CHECK} NET_NS"
969 - #ERROR_NET_NS="ipset requires NET_NS (network namespace) support in your kernel."
970 -
971 - build_modules=0
972 - if use modules; then
973 - kernel_is -lt 2 6 35 && die "${PN} requires kernel greater then 2.6.35."
974 - if linux_config_src_exists && linux_chkconfig_builtin "MODULES" ; then
975 - if linux_chkconfig_present "IP_NF_SET" || \
976 - linux_chkconfig_present "IP_SET"; then #274577
977 - eerror "There is IP{,_NF}_SET or NETFILTER_XT_SET support in your kernel."
978 - eerror "Please either build ipset with modules USE flag disabled"
979 - eerror "or rebuild kernel without IP_SET support and make sure"
980 - eerror "there is NO kernel ip_set* modules in /lib/modules/<your_kernel>/... ."
981 - die "USE=modules and in-kernel ipset support detected."
982 - else
983 - einfo "Modular kernel detected. Gonna build kernel modules..."
984 - build_modules=1
985 - fi
986 - else
987 - eerror "Nonmodular kernel detected, but USE=modules. Either build"
988 - eerror "modular kernel (without IP_SET) or disable USE=modules"
989 - die "Nonmodular kernel detected, will not build kernel modules"
990 - fi
991 - fi
992 - [[ ${build_modules} -eq 1 ]] && linux-mod_pkg_setup
993 -}
994 -
995 -src_prepare() {
996 - [[ ${build_modules} -eq 1 ]] && check_header_patch
997 - eautoreconf
998 -}
999 -
1000 -src_configure() {
1001 - econf \
1002 - $(use_with modules kmod) \
1003 - --disable-static \
1004 - --with-maxsets=${IP_NF_SET_MAX} \
1005 - --libdir="${EPREFIX}/$(get_libdir)" \
1006 - --with-ksource="${KV_DIR}" \
1007 - --with-kbuild="${KV_OUT_DIR}"
1008 -}
1009 -
1010 -src_compile() {
1011 - einfo "Building userspace"
1012 - emake
1013 -
1014 - if [[ ${build_modules} -eq 1 ]]; then
1015 - einfo "Building kernel modules"
1016 - set_arch_to_kernel
1017 - emake modules
1018 - fi
1019 -}
1020 -
1021 -src_install() {
1022 - einfo "Installing userspace"
1023 - default
1024 - prune_libtool_files
1025 -
1026 - newinitd "${FILESDIR}"/ipset.initd-r3 ${PN}
1027 - newconfd "${FILESDIR}"/ipset.confd ${PN}
1028 - keepdir /var/lib/ipset
1029 -
1030 - if [[ ${build_modules} -eq 1 ]]; then
1031 - einfo "Installing kernel modules"
1032 - linux-mod_src_install
1033 - fi
1034 -}
1035
1036 diff --git a/net-firewall/ipset/ipset-6.24.ebuild b/net-firewall/ipset/ipset-6.24.ebuild
1037 deleted file mode 100644
1038 index 0795c0f13b4..00000000000
1039 --- a/net-firewall/ipset/ipset-6.24.ebuild
1040 +++ /dev/null
1041 @@ -1,98 +0,0 @@
1042 -# Copyright 1999-2017 Gentoo Foundation
1043 -# Distributed under the terms of the GNU General Public License v2
1044 -
1045 -EAPI="5"
1046 -MODULES_OPTIONAL_USE=modules
1047 -inherit linux-info linux-mod
1048 -
1049 -DESCRIPTION="IPset tool for iptables, successor to ippool"
1050 -HOMEPAGE="http://ipset.netfilter.org/"
1051 -SRC_URI="http://ipset.netfilter.org/${P}.tar.bz2"
1052 -
1053 -LICENSE="GPL-2"
1054 -SLOT="0"
1055 -KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
1056 -
1057 -RDEPEND=">=net-firewall/iptables-1.4.7
1058 - net-libs/libmnl"
1059 -DEPEND="${RDEPEND}"
1060 -
1061 -DOCS=( ChangeLog INSTALL README UPGRADE )
1062 -
1063 -# configurable from outside, e.g. /etc/portage/make.conf
1064 -IP_NF_SET_MAX=${IP_NF_SET_MAX:-256}
1065 -
1066 -BUILD_TARGETS="modules"
1067 -MODULE_NAMES_ARG="kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/ipset"
1068 -MODULE_NAMES="xt_set(kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/)"
1069 -for i in ip_set{,_bitmap_{ip{,mac},port},_hash_{ip{,port{,ip,net}},net{,port{,net},iface,net}},_list_set}; do
1070 - MODULE_NAMES+=" ${i}(${MODULE_NAMES_ARG})"
1071 -done
1072 -
1073 -pkg_setup() {
1074 - get_version
1075 - CONFIG_CHECK="NETFILTER"
1076 - ERROR_NETFILTER="ipset requires NETFILTER support in your kernel."
1077 - # It does still build without NET_NS, but it may be needed in future.
1078 - #CONFIG_CHECK="${CONFIG_CHECK} NET_NS"
1079 - #ERROR_NET_NS="ipset requires NET_NS (network namespace) support in your kernel."
1080 -
1081 - build_modules=0
1082 - if use modules; then
1083 - kernel_is -lt 2 6 35 && die "${PN} requires kernel greater then 2.6.35."
1084 - if linux_config_src_exists && linux_chkconfig_builtin "MODULES" ; then
1085 - if linux_chkconfig_present "IP_NF_SET" || \
1086 - linux_chkconfig_present "IP_SET"; then #274577
1087 - eerror "There is IP{,_NF}_SET or NETFILTER_XT_SET support in your kernel."
1088 - eerror "Please either build ipset with modules USE flag disabled"
1089 - eerror "or rebuild kernel without IP_SET support and make sure"
1090 - eerror "there is NO kernel ip_set* modules in /lib/modules/<your_kernel>/... ."
1091 - die "USE=modules and in-kernel ipset support detected."
1092 - else
1093 - einfo "Modular kernel detected. Gonna build kernel modules..."
1094 - build_modules=1
1095 - fi
1096 - else
1097 - eerror "Nonmodular kernel detected, but USE=modules. Either build"
1098 - eerror "modular kernel (without IP_SET) or disable USE=modules"
1099 - die "Nonmodular kernel detected, will not build kernel modules"
1100 - fi
1101 - fi
1102 - [[ ${build_modules} -eq 1 ]] && linux-mod_pkg_setup
1103 -}
1104 -
1105 -src_configure() {
1106 - econf \
1107 - $(use_with modules kmod) \
1108 - --disable-static \
1109 - --with-maxsets=${IP_NF_SET_MAX} \
1110 - --libdir="${EPREFIX}/$(get_libdir)" \
1111 - --with-ksource="${KV_DIR}" \
1112 - --with-kbuild="${KV_OUT_DIR}"
1113 -}
1114 -
1115 -src_compile() {
1116 - einfo "Building userspace"
1117 - emake
1118 -
1119 - if [[ ${build_modules} -eq 1 ]]; then
1120 - einfo "Building kernel modules"
1121 - set_arch_to_kernel
1122 - emake modules
1123 - fi
1124 -}
1125 -
1126 -src_install() {
1127 - einfo "Installing userspace"
1128 - default
1129 - prune_libtool_files
1130 -
1131 - newinitd "${FILESDIR}"/ipset.initd-r3 ${PN}
1132 - newconfd "${FILESDIR}"/ipset.confd ${PN}
1133 - keepdir /var/lib/ipset
1134 -
1135 - if [[ ${build_modules} -eq 1 ]]; then
1136 - einfo "Installing kernel modules"
1137 - linux-mod_src_install
1138 - fi
1139 -}