1 |
pinkbyte 12/11/27 11:30:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ipset-6.14.ebuild |
5 |
Log: |
6 |
Version bump, permission was granted by robbat2 |
7 |
|
8 |
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, unsigned Manifest commit) |
9 |
|
10 |
Revision Changes Path |
11 |
1.61 net-firewall/ipset/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ipset/ChangeLog?rev=1.61&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ipset/ChangeLog?rev=1.61&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ipset/ChangeLog?r1=1.60&r2=1.61 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v |
20 |
retrieving revision 1.60 |
21 |
retrieving revision 1.61 |
22 |
diff -u -r1.60 -r1.61 |
23 |
--- ChangeLog 20 Aug 2012 05:19:02 -0000 1.60 |
24 |
+++ ChangeLog 27 Nov 2012 11:30:02 -0000 1.61 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-firewall/ipset |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v 1.60 2012/08/20 05:19:02 robbat2 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v 1.61 2012/11/27 11:30:02 pinkbyte Exp $ |
30 |
+ |
31 |
+*ipset-6.14 (27 Nov 2012) |
32 |
+ |
33 |
+ 27 Nov 2012; Sergey Popov <pinkbyte@g.o> +ipset-6.14.ebuild: |
34 |
+ Version bump, permission was granted by robbat2 |
35 |
|
36 |
*ipset-6.13 (20 Aug 2012) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 net-firewall/ipset/ipset-6.14.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ipset/ipset-6.14.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ipset/ipset-6.14.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: ipset-6.14.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 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.14.ebuild,v 1.1 2012/11/27 11:30:02 pinkbyte 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 ~ppc ~x86" |
62 |
IUSE="modules" |
63 |
|
64 |
RDEPEND=">=net-firewall/iptables-1.4.7 |
65 |
net-libs/libmnl" |
66 |
DEPEND="${RDEPEND}" |
67 |
|
68 |
DOCS=( ChangeLog INSTALL README UPGRADE ) |
69 |
|
70 |
# configurable from outside, e.g. /etc/make.conf |
71 |
IP_NF_SET_MAX=${IP_NF_SET_MAX:-256} |
72 |
|
73 |
BUILD_TARGETS="modules" |
74 |
MODULE_NAMES_ARG="kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/ipset" |
75 |
MODULE_NAMES="xt_set(kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/)" |
76 |
for i in ip_set{,_bitmap_{ip{,mac},port},_hash_{ip{,port{,ip,net}},net,net{port,iface}},_list_set}; do |
77 |
MODULE_NAMES+=" ${i}(${MODULE_NAMES_ARG})" |
78 |
done |
79 |
|
80 |
check_header_patch() { |
81 |
if ! $(grep -q NFNL_SUBSYS_IPSET "${KV_DIR}/include/linux/netfilter/nfnetlink.h"); then |
82 |
eerror "Sorry, but you have to patch kernel sources with the following patch:" |
83 |
eerror " # cd ${KV_DIR}" |
84 |
eerror " # patch -i ${S}/netlink.patch -p1" |
85 |
eerror "You should recompile and run new kernel to avoid runtime errors." |
86 |
die "Unpatched kernel" |
87 |
fi |
88 |
} |
89 |
|
90 |
pkg_setup() { |
91 |
get_version |
92 |
CONFIG_CHECK="NETFILTER" |
93 |
ERROR_NETFILTER="ipset requires NETFILTER support in your kernel." |
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_present "IP_NF_SET" || \ |
100 |
linux_chkconfig_present "IP_SET"; then #274577 |
101 |
eerror "There is IP{,_NF}_SET or NETFILTER_XT_SET support in your kernel." |
102 |
eerror "Please either build ipset with modules USE flag disabled" |
103 |
eerror "or rebuild kernel without IP_SET support and make sure" |
104 |
eerror "there is NO kernel ip_set* modules in /lib/modules/<your_kernel>/... ." |
105 |
die "USE=modules and in-kernel ipset support detected." |
106 |
else |
107 |
einfo "Modular kernel detected. Gonna build kernel modules..." |
108 |
build_modules=1 |
109 |
fi |
110 |
else |
111 |
eerror "Nonmodular kernel detected, but USE=modules. Either build" |
112 |
eerror "modular kernel (without IP_SET) or disable USE=modules" |
113 |
die "Nonmodular kernel detected, will not build kernel modules" |
114 |
fi |
115 |
fi |
116 |
[[ ${build_modules} -eq 1 ]] && linux-mod_pkg_setup |
117 |
} |
118 |
|
119 |
src_prepare() { |
120 |
[[ ${build_modules} -eq 1 ]] && check_header_patch |
121 |
eautoreconf |
122 |
} |
123 |
|
124 |
src_configure() { |
125 |
econf \ |
126 |
$(use_with modules kmod) \ |
127 |
--disable-static \ |
128 |
--with-maxsets=${IP_NF_SET_MAX} \ |
129 |
--libdir="${EPREFIX}/$(get_libdir)" \ |
130 |
--with-ksource="${KV_DIR}" \ |
131 |
--with-kbuild="${KV_OUT_DIR}" |
132 |
} |
133 |
|
134 |
src_compile() { |
135 |
einfo "Building userspace" |
136 |
emake |
137 |
|
138 |
if [[ ${build_modules} -eq 1 ]]; then |
139 |
einfo "Building kernel modules" |
140 |
set_arch_to_kernel |
141 |
emake modules |
142 |
fi |
143 |
} |
144 |
|
145 |
src_install() { |
146 |
einfo "Installing userspace" |
147 |
default |
148 |
prune_libtool_files |
149 |
|
150 |
newinitd "${FILESDIR}"/ipset.initd-r2 ${PN} |
151 |
newconfd "${FILESDIR}"/ipset.confd ${PN} |
152 |
keepdir /var/lib/ipset |
153 |
|
154 |
if [[ ${build_modules} -eq 1 ]]; then |
155 |
einfo "Installing kernel modules" |
156 |
linux-mod_src_install |
157 |
fi |
158 |
} |