Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-firewall/ipset: ChangeLog ipset-6.4.ebuild ipset-2.4.7.ebuild
Date: Sun, 01 May 2011 12:57:39
Message-Id: 20110501125728.A7F9320054@flycatcher.gentoo.org
1 pva 11/05/01 12:57:28
2
3 Modified: ChangeLog
4 Added: ipset-6.4.ebuild
5 Removed: ipset-2.4.7.ebuild
6 Log:
7 Version bump, bug 356727, thank Andreis_Vinogradovs (slepnoga) for report.
8
9 (Portage version: 2.1.9.46/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.43 net-firewall/ipset/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ipset/ChangeLog?rev=1.43&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ipset/ChangeLog?rev=1.43&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ipset/ChangeLog?r1=1.42&r2=1.43
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v
21 retrieving revision 1.42
22 retrieving revision 1.43
23 diff -u -r1.42 -r1.43
24 --- ChangeLog 25 Mar 2011 20:19:06 -0000 1.42
25 +++ ChangeLog 1 May 2011 12:57:28 -0000 1.43
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-firewall/ipset
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v 1.42 2011/03/25 20:19:06 xarthisius Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/ipset/ChangeLog,v 1.43 2011/05/01 12:57:28 pva Exp $
31 +
32 +*ipset-6.4 (01 May 2011)
33 +
34 + 01 May 2011; Peter Volkov <pva@g.o> -ipset-2.4.7.ebuild,
35 + +ipset-6.4.ebuild:
36 + Version bump, bug 356727, thank Andreis_Vinogradovs (slepnoga) for report.
37
38 25 Mar 2011; Kacper Kowalik <xarthisius@g.o> ipset-2.4.7.ebuild,
39 ipset-4.4.ebuild, ipset-4.5.ebuild:
40
41
42
43 1.1 net-firewall/ipset/ipset-6.4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ipset/ipset-6.4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ipset/ipset-6.4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: ipset-6.4.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.4.ebuild,v 1.1 2011/05/01 12:57:28 pva Exp $
53
54 EAPI="4"
55
56 inherit autotools linux-info linux-mod
57
58 DESCRIPTION="IPset tool for iptables, successor to ippool."
59 HOMEPAGE="http://ipset.netfilter.org/"
60 SRC_URI="http://ipset.netfilter.org/${P}.tar.bz2"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="modules"
66
67 RDEPEND=">=net-firewall/iptables-1.4.4
68 net-libs/libmnl"
69 DEPEND="${RDEPEND}"
70
71 # configurable from outside, e.g. /etc/make.conf
72 IP_NF_SET_MAX=${IP_NF_SET_MAX:-256}
73
74 BUILD_TARGETS="modules"
75 MODULE_NAMES_ARG="kernel/net/netfilter/ipset/:${S}/kernel/net/netfilter/ipset"
76 MODULE_NAMES=""
77 for i in ip_set{,_bitmap_{ip{,mac},port},_hash_{ip{,port{,ip,net}},net,netport},_list_set}; do
78 MODULE_NAMES+=" ${i}(${MODULE_NAMES_ARG})"
79 done
80 CONFIG_CHECK="NETFILTER IP6_NF_IPTABLES"
81 ERROR_CFG="ipset requires netfilter support in your kernel."
82
83 check_header_patch() {
84 if ! $(grep -q NFNL_SUBSYS_IPSET "${KV_DIR}/include/linux/netfilter/nfnetlink.h"); then
85 eerror "Sorry, but you have to patch kernel sources with the following patch:"
86 eerror " # cd ${KV_DIR}"
87 eerror " # patch -i ${S}/netlink.patch -p1"
88 eerror "You do not need to recompile your kernel."
89 die "Unpatched kernel"
90 fi
91 }
92
93
94 pkg_setup() {
95 get_version
96
97 build_modules=0
98 if use modules; then
99 kernel_is -lt 2 6 34 && die "${PN} requires kernel greater then 2.6.34."
100 if linux_config_src_exists && linux_chkconfig_builtin "MODULES" ; then
101 if linux_chkconfig_builtin "IP_NF_SET"; then #274577
102 einfo "Modular kernel detected but IP_NF_SET=y, will not build kernel modules"
103 else
104 if kernel_is -gt 2 6 39; then
105 einfo "This kernel has modules inside, will not build kernel modules"
106 else
107 einfo "Modular kernel detected, will build kernel modules"
108 build_modules=1
109 fi
110 fi
111 else
112 einfo "Nonmodular kernel detected, will not build kernel modules"
113 fi
114 fi
115
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 --with-maxsets=${IP_NF_SET_MAX} \
127 --libdir=${EPREFIX}/$(get_libdir) \
128 --disable-static
129 }
130
131 src_compile() {
132 einfo "Building userspace"
133 emake
134
135 if [[ ${build_modules} -eq 1 ]]; then
136 einfo "Building kernel modules"
137 set_arch_to_kernel
138 emake modules
139 fi
140 }
141
142 src_install() {
143 einfo "Installing userspace"
144 emake DESTDIR=${D} install
145
146 if [[ ${build_modules} -eq 1 ]]; then
147 einfo "Installing kernel modules"
148 linux-mod_src_install
149 fi
150 find "${ED}" -name '*.la' -exec rm -f '{}' +
151 }