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