1 |
pva 10/06/01 09:01:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xtables-addons-1.27.ebuild |
5 |
Removed: xtables-addons-1.25.ebuild |
6 |
Log: |
7 |
Version bump, drop old. |
8 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.3 net-firewall/xtables-addons/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/xtables-addons/ChangeLog?rev=1.3&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/xtables-addons/ChangeLog?rev=1.3&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/xtables-addons/ChangeLog?r1=1.2&r2=1.3 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-firewall/xtables-addons/ChangeLog,v |
20 |
retrieving revision 1.2 |
21 |
retrieving revision 1.3 |
22 |
diff -u -r1.2 -r1.3 |
23 |
--- ChangeLog 8 May 2010 06:52:48 -0000 1.2 |
24 |
+++ ChangeLog 1 Jun 2010 09:01:35 -0000 1.3 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for net-firewall/xtables-addons |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/xtables-addons/ChangeLog,v 1.2 2010/05/08 06:52:48 pva Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/xtables-addons/ChangeLog,v 1.3 2010/06/01 09:01:35 pva Exp $ |
30 |
+ |
31 |
+*xtables-addons-1.27 (01 Jun 2010) |
32 |
+ |
33 |
+ 01 Jun 2010; Peter Volkov <pva@g.o> -xtables-addons-1.25.ebuild, |
34 |
+ +xtables-addons-1.27.ebuild: |
35 |
+ Version bump, drop old. |
36 |
|
37 |
*xtables-addons-1.26 (08 May 2010) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 net-firewall/xtables-addons/xtables-addons-1.27.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/xtables-addons/xtables-addons-1.27.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/xtables-addons/xtables-addons-1.27.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: xtables-addons-1.27.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-firewall/xtables-addons/xtables-addons-1.27.ebuild,v 1.1 2010/06/01 09:01:35 pva Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
|
55 |
inherit eutils linux-mod multilib |
56 |
|
57 |
DESCRIPTION="extensions not yet accepted in the main kernel/iptables (patch-o-matic(-ng) successor)" |
58 |
HOMEPAGE="http://xtables-addons.sourceforge.net/" |
59 |
SRC_URI="mirror://sourceforge/xtables-addons/${P}.tar.xz" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~x86" |
64 |
IUSE="modules" |
65 |
|
66 |
MODULES="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark echo dhcpmac delude chaos account" |
67 |
|
68 |
for mod in ${MODULES}; do |
69 |
IUSE="${IUSE} xtables_addons_${mod}" |
70 |
done |
71 |
|
72 |
RDEPEND="virtual/modutils |
73 |
>=net-firewall/iptables-1.4.3 |
74 |
>virtual/linux-sources-2.6.22 |
75 |
xtables_addons_ipset? ( !net-firewall/ipset )" |
76 |
|
77 |
DEPEND="${RDEPEND}" |
78 |
|
79 |
pkg_setup() { |
80 |
if use modules; then |
81 |
get_version |
82 |
check_modules_supported |
83 |
# CONFIG_IP_NF_CONNTRACK{,_MARK} doesn't exist in >virtual/linux-sources-2.6.22 |
84 |
CONFIG_CHECK="NF_CONNTRACK NF_CONNTRACK_MARK" |
85 |
linux-mod_pkg_setup |
86 |
|
87 |
if ! linux_chkconfig_present IPV6; then |
88 |
SKIP_IPV6_MODULES="ip6table_rawpost" |
89 |
fi |
90 |
fi |
91 |
} |
92 |
|
93 |
# Helper for maintainer: cheks if all possible MODULES are listed. |
94 |
XA_qa_check() { |
95 |
local all_modules |
96 |
all_modules=$(sed -n '/^build_/{s/build_\(.*\)=.*/\L\1/;G;s/\n/ /;s/ $//;h}; ${x;p}' "${S}/mconfig") |
97 |
if [[ ${all_modules} != ${MODULES} ]]; then |
98 |
ewarn "QA: Modules in mconfig differ from \$MODULES in ebuild." |
99 |
ewarn "Please, update MODULES in ebuild." |
100 |
ewarn "'${all_modules}'" |
101 |
fi |
102 |
} |
103 |
|
104 |
# Is there any use flag set? |
105 |
XA_has_something_to_build() { |
106 |
local mod |
107 |
for mod in ${MODULES}; do |
108 |
use xtables_addons_${mod} && return |
109 |
done |
110 |
|
111 |
eerror "All modules are disabled. What do you want me to build?" |
112 |
eerror "Please, set XTABLES_ADDONS to any combination of" |
113 |
eerror "${MODULES}" |
114 |
die "All modules are disabled." |
115 |
} |
116 |
|
117 |
# Parse Kbuid files and generates list of sources |
118 |
XA_get_module_name() { |
119 |
[[ $# != 1 ]] && die "XA_get_sources_for_mod: needs exactly one argument." |
120 |
local mod objdir build_mod sources_list |
121 |
mod=${1} |
122 |
objdir=${S}/extensions |
123 |
build_mod=$(sed -n "s/\(build_${mod}\)=.*/\1/Ip" "${S}/mconfig") |
124 |
sources_list=$(sed -n "/^obj-[$][{]${build_mod}[}]/\ |
125 |
{s:obj-[^+]\+ [+]=[[:space:]]*::;s:[.]o::g;p}" \ |
126 |
"${objdir}/Kbuild") |
127 |
|
128 |
if [[ -d ${S}/extensions/${sources_list} ]]; then |
129 |
objdir=${S}/extensions/${sources_list} |
130 |
sources_list=$(sed -n "/^obj-m/\ |
131 |
{s:obj-[^+]\+ [+]=[[:space:]]*::;s:[.]o::g;p}" \ |
132 |
"${objdir}/Kbuild") |
133 |
fi |
134 |
for mod_src in ${sources_list}; do |
135 |
has ${mod_src} ${SKIP_IPV6_MODULES} || \ |
136 |
echo " ${mod_src}(xtables_addons:${S}/extensions:${objdir})" |
137 |
done |
138 |
} |
139 |
|
140 |
src_prepare() { |
141 |
XA_qa_check |
142 |
XA_has_something_to_build |
143 |
|
144 |
local mod module_name |
145 |
if use modules; then |
146 |
MODULE_NAMES="compat_xtables(xtables_addons:${S}/extensions:)" |
147 |
fi |
148 |
for mod in ${MODULES}; do |
149 |
if use xtables_addons_${mod}; then |
150 |
sed "s/\(build_${mod}=\).*/\1m/I" -i mconfig || die |
151 |
if use modules; then |
152 |
for module_name in $(XA_get_module_name ${mod}); do |
153 |
MODULE_NAMES+=" ${module_name}" |
154 |
done |
155 |
fi |
156 |
else |
157 |
sed "s/\(build_${mod}=\).*/\1n/I" -i mconfig || die |
158 |
fi |
159 |
done |
160 |
|
161 |
sed -e 's/depmod -a/true/' -i Makefile.{in,am} || die |
162 |
sed -e '/^all-local:/{s: modules::}' \ |
163 |
-e '/^install-exec-local:/{s: modules_install::}' \ |
164 |
-i extensions/Makefile.{in,am} || die |
165 |
} |
166 |
|
167 |
src_configure() { |
168 |
unset ARCH # .. or it'll look for /arch/amd64/Makefile in linux sources |
169 |
export KBUILD_EXTMOD=${S} # Avoid build in /usr/src/linux #250407 |
170 |
econf --prefix="${EPREFIX}/" \ |
171 |
--libexecdir="${EPREFIX}/$(get_libdir)/" \ |
172 |
--with-kbuild="${KV_DIR}" |
173 |
} |
174 |
|
175 |
src_compile() { |
176 |
emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die |
177 |
use modules && BUILD_TARGETS="modules" linux-mod_src_compile |
178 |
} |
179 |
|
180 |
src_install() { |
181 |
emake DESTDIR="${ED}" install || die |
182 |
use modules && linux-mod_src_install |
183 |
dodoc README doc/* || die |
184 |
find "${ED}" -type f -name '*.la' -exec rm -rf '{}' '+' |
185 |
} |