1 |
pva 10/05/09 17:16:15 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ebtables-2.0.9.2-r1.ebuild |
5 |
Log: |
6 |
Fix ebtables tables detection, bug #314529, thank Veovis for report and suggested fix. |
7 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.36 net-firewall/ebtables/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ebtables/ChangeLog?rev=1.36&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ebtables/ChangeLog?rev=1.36&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ebtables/ChangeLog?r1=1.35&r2=1.36 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-firewall/ebtables/ChangeLog,v |
19 |
retrieving revision 1.35 |
20 |
retrieving revision 1.36 |
21 |
diff -u -r1.35 -r1.36 |
22 |
--- ChangeLog 16 Mar 2010 07:49:08 -0000 1.35 |
23 |
+++ ChangeLog 9 May 2010 17:16:15 -0000 1.36 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for net-firewall/ebtables |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/ebtables/ChangeLog,v 1.35 2010/03/16 07:49:08 pva Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/ebtables/ChangeLog,v 1.36 2010/05/09 17:16:15 pva Exp $ |
29 |
+ |
30 |
+*ebtables-2.0.9.2-r1 (09 May 2010) |
31 |
+ |
32 |
+ 09 May 2010; Peter Volkov <pva@g.o> +ebtables-2.0.9.2-r1.ebuild, |
33 |
+ +files/ebtables.confd-r1, +files/ebtables.initd-r1: |
34 |
+ Fix ebtables tables detection, bug #314529, thank Veovis for report and |
35 |
+ suggested fix. |
36 |
|
37 |
*ebtables-2.0.9.2 (16 Mar 2010) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 net-firewall/ebtables/ebtables-2.0.9.2-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ebtables/ebtables-2.0.9.2-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ebtables/ebtables-2.0.9.2-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: ebtables-2.0.9.2-r1.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/ebtables/ebtables-2.0.9.2-r1.ebuild,v 1.1 2010/05/09 17:16:15 pva Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
|
55 |
inherit versionator eutils toolchain-funcs multilib flag-o-matic |
56 |
|
57 |
MY_PV=$(replace_version_separator 3 '-' ) |
58 |
MY_P=${PN}-v${MY_PV} |
59 |
|
60 |
DESCRIPTION="Utility that enables basic Ethernet frame filtering on a Linux bridge, MAC NAT and brouting." |
61 |
HOMEPAGE="http://ebtables.sourceforge.net/" |
62 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
63 |
|
64 |
KEYWORDS="~amd64 ~ppc ~x86" |
65 |
IUSE="static" |
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
|
69 |
S=${WORKDIR}/${MY_P} |
70 |
|
71 |
pkg_setup() { |
72 |
if use static; then |
73 |
ewarn "You've chosen static build which is useful for embedded devices." |
74 |
ewarn "It has no init script. Make sure that's really what you want." |
75 |
fi |
76 |
} |
77 |
|
78 |
src_prepare() { |
79 |
# Enhance ebtables-save to take table names as parameters bug #189315 |
80 |
epatch "${FILESDIR}/${PN}-2.0.8.1-ebt-save.diff" |
81 |
epatch "${FILESDIR}/${PN}-v2.0.9-2-LDFLAGS.diff" |
82 |
epatch "${FILESDIR}/${PN}-v2.0.8-2-ethertype-DESTDIR-mkdir.patch" |
83 |
|
84 |
sed -i -e "s,^MANDIR:=.*,MANDIR:=/usr/share/man," \ |
85 |
-e "s,^BINDIR:=.*,BINDIR:=/sbin," \ |
86 |
-e "s,^INITDIR:=.*,INITDIR:=/usr/share/doc/${PF}," \ |
87 |
-e "s,^SYSCONFIGDIR:=.*,SYSCONFIGDIR:=/usr/share/doc/${PF}," \ |
88 |
-e "s,^LIBDIR:=.*,LIBDIR:=/$(get_libdir)/\$(PROGNAME)," Makefile |
89 |
} |
90 |
|
91 |
src_compile() { |
92 |
# This package uses _init functions to initialise extensions. With |
93 |
# --as-needed this will not work. |
94 |
append-ldflags $(no-as-needed) |
95 |
emake \ |
96 |
CC="$(tc-getCC)" \ |
97 |
CFLAGS="${CFLAGS}" \ |
98 |
$(use static && echo static) \ |
99 |
|| die "emake failed" |
100 |
} |
101 |
|
102 |
src_install() { |
103 |
if ! use static; then |
104 |
make DESTDIR="${D}" install || die |
105 |
keepdir /var/lib/ebtables/ |
106 |
newinitd "${FILESDIR}"/ebtables.initd-r1 ebtables || die |
107 |
newconfd "${FILESDIR}"/ebtables.confd-r1 ebtables || die |
108 |
else |
109 |
into / |
110 |
newsbin static ebtables || die |
111 |
fi |
112 |
dodoc ChangeLog THANKS || die |
113 |
} |