1 |
pva 11/10/02 13:07:53 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ipset-6.9.1-r1.ebuild |
5 |
Log: |
6 |
Drop confusing message about netlink.patch, bug #382221 by John Brendler. Add init script by Andrew Savchenko, bug #181045 by Caleb Cushing. |
7 |
|
8 |
(Portage version: 2.1.10.20/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.54 net-firewall/ipset/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ipset/ChangeLog?rev=1.54&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ipset/ChangeLog?rev=1.54&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ipset/ChangeLog?r1=1.53&r2=1.54 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v |
20 |
retrieving revision 1.53 |
21 |
retrieving revision 1.54 |
22 |
diff -u -r1.53 -r1.54 |
23 |
--- ChangeLog 19 Sep 2011 05:49:29 -0000 1.53 |
24 |
+++ ChangeLog 2 Oct 2011 13:07:53 -0000 1.54 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-firewall/ipset |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v 1.53 2011/09/19 05:49:29 pva Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v 1.54 2011/10/02 13:07:53 pva Exp $ |
30 |
+ |
31 |
+*ipset-6.9.1-r1 (02 Oct 2011) |
32 |
+ |
33 |
+ 02 Oct 2011; Peter Volkov <pva@g.o> +ipset-6.9.1-r1.ebuild, |
34 |
+ +files/ipset.initd: |
35 |
+ Drop confusing message about netlink.patch, bug #382221 by John Brendler. Add |
36 |
+ init script by Andrew Savchenko, bug #181045 by Caleb Cushing. |
37 |
|
38 |
17 Sep 2011; Peter Volkov <pva@g.o> -files/ipset-2.4.7-LDFLAGS.patch, |
39 |
-ipset-4.4.ebuild, -ipset-6.7-r1.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-firewall/ipset/ipset-6.9.1-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ipset/ipset-6.9.1-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ipset/ipset-6.9.1-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: ipset-6.9.1-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ipset-6.9.1-r1.ebuild,v 1.1 2011/10/02 13:07:53 pva Exp $ |
53 |
|
54 |
EAPI="4" |
55 |
inherit autotools linux-info linux-mod |
56 |
|
57 |
# Maintainer: with version bump take a look on: |
58 |
# http://git.netfilter.org/cgi-bin/gitweb.cgi?p=ipset.git;a=commit;h=70fdf030545f00888bcebb5fca8243a6dccca95b |
59 |
|
60 |
DESCRIPTION="IPset tool for iptables, successor to ippool." |
61 |
HOMEPAGE="http://ipset.netfilter.org/" |
62 |
SRC_URI="http://ipset.netfilter.org/${P}.tar.bz2" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
IUSE="modules" |
68 |
|
69 |
RDEPEND=">=net-firewall/iptables-1.4.4 |
70 |
net-libs/libmnl" |
71 |
DEPEND="${RDEPEND}" |
72 |
|
73 |
# configurable from outside, e.g. /etc/make.conf |
74 |
IP_NF_SET_MAX=${IP_NF_SET_MAX:-256} |
75 |
|
76 |
BUILD_TARGETS="modules" |
77 |
MODULE_NAMES_ARG="kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/ipset" |
78 |
MODULE_NAMES="xt_set(kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/)" |
79 |
for i in ip_set{,_bitmap_{ip{,mac},port},_hash_{ip{,port{,ip,net}},net,net{port,iface}},_list_set}; do |
80 |
MODULE_NAMES+=" ${i}(${MODULE_NAMES_ARG})" |
81 |
done |
82 |
CONFIG_CHECK="NETFILTER IP6_NF_IPTABLES" |
83 |
ERROR_NETFILTER="ipset requires NETFILTER support in your kernel." |
84 |
ERROR_IP6_NF_IPTABLES="ipset requires IP6_NF_IPTABLES support in your kernel." |
85 |
|
86 |
check_header_patch() { |
87 |
if ! $(grep -q NFNL_SUBSYS_IPSET "${KV_DIR}/include/linux/netfilter/nfnetlink.h"); then |
88 |
eerror "Sorry, but you have to patch kernel sources with the following patch:" |
89 |
eerror " # cd ${KV_DIR}" |
90 |
eerror " # patch -i ${S}/netlink.patch -p1" |
91 |
eerror "You do not need to recompile your kernel." |
92 |
die "Unpatched kernel" |
93 |
fi |
94 |
} |
95 |
|
96 |
pkg_setup() { |
97 |
get_version |
98 |
|
99 |
build_modules=0 |
100 |
if use modules; then |
101 |
kernel_is -lt 2 6 35 && die "${PN} requires kernel greater then 2.6.35." |
102 |
if linux_config_src_exists && linux_chkconfig_builtin "MODULES" ; then |
103 |
if linux_chkconfig_present "IP_NF_SET" || \ |
104 |
linux_chkconfig_present "IP_SET"; then #274577 |
105 |
eerror "There is IP{,_NF}_SET or NETFILTER_XT_SET support in your kernel." |
106 |
eerror "Please either build ipset with modules USE flag disabled" |
107 |
eerror "or rebuild kernel without IP_SET support and make sure" |
108 |
eerror "there is NO kernel ip_set* modules in /lib/modules/<you_kernel>/... ." |
109 |
die "USE=modules and in-kernel ipset support detected." |
110 |
else |
111 |
einfo "Modular kernel detected. Gonna build kernel modules..." |
112 |
build_modules=1 |
113 |
fi |
114 |
else |
115 |
eerror "Nonmodular kernel detected, but USE=modules. Either build" |
116 |
eerror "modular kernel or disable USE=modules" |
117 |
die "Nonmodular kernel detected, will not build kernel modules" |
118 |
fi |
119 |
fi |
120 |
linux-mod_pkg_setup |
121 |
} |
122 |
|
123 |
src_prepare() { |
124 |
[[ ${build_modules} -eq 1 ]] && check_header_patch |
125 |
eautoreconf |
126 |
} |
127 |
|
128 |
src_configure() { |
129 |
econf \ |
130 |
--with-maxsets=${IP_NF_SET_MAX} \ |
131 |
--libdir="${EPREFIX}"/$(get_libdir) \ |
132 |
--with-ksource="${KV_DIR}" \ |
133 |
--with-kbuild="${KV_OUT_DIR}" |
134 |
} |
135 |
|
136 |
src_compile() { |
137 |
einfo "Building userspace" |
138 |
emake |
139 |
|
140 |
if [[ ${build_modules} -eq 1 ]]; then |
141 |
einfo "Building kernel modules" |
142 |
set_arch_to_kernel |
143 |
emake modules |
144 |
fi |
145 |
} |
146 |
|
147 |
src_install() { |
148 |
einfo "Installing userspace" |
149 |
emake DESTDIR="${D}" install |
150 |
|
151 |
if [[ ${build_modules} -eq 1 ]]; then |
152 |
einfo "Installing kernel modules" |
153 |
linux-mod_src_install |
154 |
fi |
155 |
|
156 |
newinitd ${FILESDIR}/ipset.initd ${PN} |
157 |
find "${ED}" \( -name '*.la' -o -name '*.a' \) -exec rm -f '{}' + |
158 |
} |