net-firwall/etables: Sync with Gentoo upstream; updates to 2.0.11-r3

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
This commit is contained in:
Sayan Chowdhury 2021-08-06 13:46:29 +05:30 committed by Sayan Chowdhury
parent 01ee61ce39
commit 2313792e17
12 changed files with 173 additions and 517 deletions

View File

@ -1,110 +0,0 @@
# ChangeLog for net-firewall/ebtables
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# (auto-generated from git log)
*ebtables-2.0.10.4-r1 (09 Aug 2015)
*ebtables-2.0.10.4 (09 Aug 2015)
09 Aug 2015; Robin H. Johnson <robbat2@gentoo.org>
+ebtables-2.0.10.4.ebuild, +ebtables-2.0.10.4-r1.ebuild,
+files/ebtables-2.0.8.1-ebt-save.diff, +files/ebtables.confd-r1,
+files/ebtables.initd-r1, +metadata.xml:
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration
tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this
project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo
developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve
cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014
work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on
the bikeshed
24 Aug 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
Use https by default
Convert all URLs for sites supporting encrypted connections from http to
https
Signed-off-by: Justin Lecher <jlec@gentoo.org>
24 Aug 2015; Mike Gilbert <floppym@gentoo.org> metadata.xml:
Revert DOCTYPE SYSTEM https changes in metadata.xml
repoman does not yet accept the https version.
This partially reverts eaaface92ee81f30a6ac66fe7acbcc42c00dc450.
Bug: https://bugs.gentoo.org/552720
22 Sep 2015; Mike Frysinger <vapier@gentoo.org> ebtables-2.0.10.4-r1.ebuild:
add arm/arm64 love to 2.0.10.4-r1
23 Sep 2015; Mike Frysinger <vapier@gentoo.org> ebtables-2.0.10.4.ebuild,
ebtables-2.0.10.4-r1.ebuild:
delete incorrect/misleading comment
The quoted code is not safe at all, so delete the incorrect comment in
the hopes no one notices it and (incorrectly) copies it into a different
ebuild.
23 Sep 2015; Mike Frysinger <vapier@gentoo.org> ebtables-2.0.10.4.ebuild,
ebtables-2.0.10.4-r1.ebuild:
delete redundant `|| die`
Since `dodoc` automatically calls `die` w/EAPI=4, drop it from the ebuild.
23 Sep 2015; Mike Frysinger <vapier@gentoo.org> ebtables-2.0.10.4-r1.ebuild:
use emake in install
23 Sep 2015; Mike Frysinger <vapier@gentoo.org> ebtables-2.0.10.4-r1.ebuild:
fix sorting of LICENSE/SLOT/KEYWORDS/IUSE
29 Sep 2015; Mike Frysinger <vapier@gentoo.org> ebtables-2.0.10.4-r1.ebuild,
metadata.xml:
add USE=perl to control perl dep
The ebtables-save script is written in perl, so make sure we RDEPEND
on it. Since that's a big dep for little gain, make it optional.
Some systems (like Chromium OS) have no use for it.
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Unify quoting in metadata.xml files for machine processing
Force unified quoting in all metadata.xml files since lxml does not
preserve original use of single and double quotes. Ensuring unified
quoting before the process allows distinguishing the GLEP 67-related
metadata.xml changes from unrelated quoting changes.
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Replace all herds with appropriate projects (GLEP 67)
Replace all uses of herd with appropriate project maintainers, or no
maintainers in case of herds requested to be disbanded.
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Set appropriate maintainer types in metadata.xml (GLEP 67)
18 May 2016; Austin English <wizardedit@gentoo.org> files/ebtables.initd-r1:
use #!/sbin/openrc-run instead of #!/sbin/runscript

View File

@ -1,246 +0,0 @@
# ChangeLog for net-firewall/ebtables
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-firewall/ebtables/ChangeLog,v 1.53 2015/05/30 23:57:12 mrueg Exp $
30 May 2015; Manuel Rüger <mrueg@gentoo.org> -ebtables-2.0.10.2.ebuild,
-ebtables-2.0.9.2-r1.ebuild, -ebtables-2.0.9.2-r2.ebuild,
-files/ebtables-v2.0.8-2-ethertype-DESTDIR-mkdir.patch,
-files/ebtables-v2.0.9-2-LDFLAGS.diff,
-files/ebtables-v2.0.9-2-compilation.patch:
Remove old.
10 Aug 2014; Sergei Trofimovich <slyfox@gentoo.org> ebtables-2.0.10.2.ebuild,
ebtables-2.0.10.4-r1.ebuild, ebtables-2.0.10.4.ebuild,
ebtables-2.0.9.2-r1.ebuild, ebtables-2.0.9.2-r2.ebuild:
QA: drop trailing '.' from DESCRIPTION
16 Feb 2013; Pacho Ramos <pacho@gentoo.org> metadata.xml:
Cleanup due bug #96436
*ebtables-2.0.10.4-r1 (19 Dec 2012)
19 Dec 2012; <qnikst@gentoo.org> +ebtables-2.0.10.4-r1.ebuild,
files/ebtables.initd-r1:
non-maint: fix deprecated options in initscript thanks to Vincent Brillault
<gentoo@lerya.net>
14 Jun 2012; Michael Weber <xmw@gentoo.org> ebtables-2.0.10.4.ebuild:
ppc stable (bug 404265)
13 Jun 2012; Jeff Horelick <jdhore@gentoo.org> ebtables-2.0.10.4.ebuild:
marked x86 per bug 404265
11 Jun 2012; Agostino Sarubbo <ago@gentoo.org> ebtables-2.0.10.4.ebuild:
Stable for amd64, wrt bug #404265
*ebtables-2.0.10.4 (17 Dec 2011)
17 Dec 2011; Peter Volkov <pva@gentoo.org> +ebtables-2.0.10.4.ebuild:
Version bump.
20 Oct 2011; Brent Baude <ranger@gentoo.org> ebtables-2.0.9.2-r2.ebuild:
Marking ebtables-2.0.9.2-r2 ppc for bug 373291
*ebtables-2.0.10.2 (13 Aug 2011)
13 Aug 2011; Peter Volkov <pva@gentoo.org> +ebtables-2.0.10.2.ebuild:
Version bump.
15 Jul 2011; Markus Meier <maekke@gentoo.org> ebtables-2.0.9.2-r2.ebuild:
x86 stable, bug #373291
30 Jun 2011; Markos Chandras <hwoarang@gentoo.org>
ebtables-2.0.9.2-r2.ebuild:
Stable on amd64 wrt bug #373291
22 Jun 2011; Peter Volkov <pva@gentoo.org> ebtables-2.0.9.2-r2.ebuild,
+files/ebtables-v2.0.9-2-compilation.patch:
Fix build issue reported in bug #370953 by Bertrand Jacquin. Added
-Wno-strict-aliasing to avoid QA warnings (code is Ok).
*ebtables-2.0.9.2-r2 (19 May 2011)
19 May 2011; Peter Volkov <pva@gentoo.org>
-files/ebtables-v2.0.9-1-LDFLAGS.diff, -ebtables-2.0.9.1.ebuild,
-ebtables-2.0.9.1-r1.ebuild, -ebtables-2.0.9.2.ebuild,
+ebtables-2.0.9.2-r2.ebuild, -files/ebtables-v2.0.8-2-LDFLAGS.diff,
files/ebtables-v2.0.9-2-LDFLAGS.diff, -files/ebtables.confd,
-files/ebtables.initd:
Install /etc/ethertypes even with USE=static, bug #367379 thank Dirk-Lüder
Kreie for report. Respect LDFLAGS when USE=static. Drop old.
11 Jul 2010; Markus Meier <maekke@gentoo.org> ebtables-2.0.9.2-r1.ebuild:
x86 stable, bug #323571
26 Jun 2010; <nixnut@gentoo.org> ebtables-2.0.9.2-r1.ebuild:
ppc stable #323571
24 Jun 2010; Pacho Ramos <pacho@gentoo.org> ebtables-2.0.9.2-r1.ebuild:
stable amd64, bug 323571
*ebtables-2.0.9.2-r1 (09 May 2010)
09 May 2010; Peter Volkov <pva@gentoo.org> +ebtables-2.0.9.2-r1.ebuild,
+files/ebtables.confd-r1, +files/ebtables.initd-r1:
Fix ebtables tables detection, bug #314529, thank Veovis for report and
suggested fix.
*ebtables-2.0.9.2 (16 Mar 2010)
16 Mar 2010; Peter Volkov <pva@gentoo.org> +ebtables-2.0.9.2.ebuild,
+files/ebtables-v2.0.9-2-LDFLAGS.diff:
Version bump, #309479 thank hitachi for report.
06 Dec 2009; Diego E. Pettenò <flameeyes@gentoo.org>
ebtables-2.0.9.1-r1.ebuild:
Further fix typo, this tiem it applies fine.
05 Dec 2009; Diego E. Pettenò <flameeyes@gentoo.org>
ebtables-2.0.9.1-r1.ebuild:
Fix typo.
*ebtables-2.0.9.1-r1 (05 Dec 2009)
05 Dec 2009; Peter Volkov <pva@gentoo.org> -ebtables-2.0.8.2-r2.ebuild,
+ebtables-2.0.9.1-r1.ebuild:
Added static USE flag, bug #275460, thank Joakim Tjernlund for report.
Drop old.
08 Nov 2009; nixnut <nixnut@gentoo.org> ebtables-2.0.9.1.ebuild:
ppc stable #288289
25 Oct 2009; Markus Meier <maekke@gentoo.org> ebtables-2.0.9.1.ebuild:
amd64/x86 stable, bug #288289
04 Oct 2009; Samuli Suominen <ssuominen@gentoo.org>
ebtables-2.0.8.2-r2.ebuild, ebtables-2.0.9.1.ebuild:
Replace -Wl,--no-as-needed with function from flag-o-matic eclass.
*ebtables-2.0.9.1 (22 Jun 2009)
22 Jun 2009; Peter Volkov <pva@gentoo.org>
+files/ebtables-v2.0.9-1-LDFLAGS.diff, +ebtables-2.0.9.1.ebuild:
Version bump, fixes 'invalid size 8 != 4', bug #273693 reported by Joakim
Tjernlund.
04 Jan 2009; Markus Meier <maekke@gentoo.org> ebtables-2.0.8.2-r2.ebuild:
amd64/x86 stable, bug #252658
02 Jan 2009; Tobias Scherbaum <dertobi123@gentoo.org>
ebtables-2.0.8.2-r2.ebuild:
ppc stable, bug #252658
*ebtables-2.0.8.2-r2 (13 Oct 2008)
13 Oct 2008; Peter Volkov <pva@gentoo.org> -ebtables-2.0.8.2-r1.ebuild,
+ebtables-2.0.8.2-r2.ebuild:
Respect CFLAGS, bug #240890, thank Diego Pettenò for report.
*ebtables-2.0.8.2-r1 (13 Aug 2008)
13 Aug 2008; Peter Volkov <pva@gentoo.org>
+files/ebtables-v2.0.8-2-LDFLAGS.diff,
+files/ebtables-v2.0.8-2-ethertype-DESTDIR-mkdir.patch,
+ebtables-2.0.8.2-r1.ebuild:
Fixed bug #233190, thank Suertreus for report. Also make ebtables respect
LDFLAGS.
11 May 2008; Peter Volkov <pva@gentoo.org>
-files/ebtables-2.0.8.1-fix-textrel.patch,
-files/ebtables-2.0.8.1-scripts-build.patch, -ebtables-2.0.8.1.ebuild,
ebtables-2.0.8.2.ebuild:
Removed useless postinst message, bug #221031 reported by Denilson.
Removed old ebuild.
02 Nov 2007; Lars Weiler <pylon@gentoo.org> ebtables-2.0.8.2.ebuild:
stable ppc, bug #197750
02 Nov 2007; Steve Dibb <beandog@gentoo.org> ebtables-2.0.8.2.ebuild:
amd64 stable
01 Nov 2007; Dawid Węgliński <cla@gentoo.org> ebtables-2.0.8.2.ebuild:
Stable on x86 (bug #197750)
*ebtables-2.0.8.2 (28 Sep 2007)
28 Sep 2007; <pva@gentoo.org> -files/ebtables-2.0.6-gcc34.patch,
-files/ebtables-2.0.6-gcc4.patch, +files/ebtables-2.0.8.1-ebt-save.diff,
-files/README.gentoo.init, files/ebtables.confd, files/ebtables.initd,
-ebtables-2.0.6-r1.ebuild, -ebtables-2.0.8.1-r1.ebuild,
+ebtables-2.0.8.2.ebuild:
Version bump. Finally init script works, thank Lech Perczak <lech.perczak AT
multivision.pl>, bug #189315. Remove old.
10 Sep 2007; Markus Meier <maekke@gentoo.org> ebtables-2.0.8.1.ebuild:
stable on x86, wrt bug #191127
05 Sep 2007; Christoph Mende <angelos@gentoo.org> ebtables-2.0.8.1.ebuild:
Stable on amd64
03 Sep 2007; Tobias Scherbaum <dertobi123@gentoo.org>
ebtables-2.0.8.1.ebuild:
ppc stable, bug #191127
*ebtables-2.0.8.1-r1 (02 Sep 2007)
02 Sep 2007; <pva@gentoo.org> +files/README.gentoo.init,
+files/ebtables.confd, +files/ebtables.initd, -ebtables-2.0.6.ebuild,
+ebtables-2.0.8.1-r1.ebuild:
Added init scripts into /usr/share/doc. See README.gentoo.init and bug
#189315 for details. Thank Lech Perczak <lech.perczak AT multivision.pl> for
report.
*ebtables-2.0.8.1 (12 Aug 2007)
12 Aug 2007; <pva@gentoo.org> +files/ebtables-2.0.8.1-fix-textrel.patch,
+files/ebtables-2.0.8.1-scripts-build.patch, metadata.xml,
+ebtables-2.0.8.1.ebuild:
Version bump. Fixed bug #159371 and bug #167769. Thank Jochen Schlick,
Olivier Huber, Richard Benjamin Voigt and others mentioned in that bugs.
16 Jul 2007; <pva@gentoo.org> metadata.xml:
Grabed from solar.
25 Aug 2006; Chris Gianelloni <wolf31o2@gentoo.org>
ebtables-2.0.6-r1.ebuild:
Stable on amd64 and x86 wrt bug #142194.
31 Jul 2006; Tobias Scherbaum <dertobi123@gentoo.org>
ebtables-2.0.6-r1.ebuild:
ppc stable, bug #142194
*ebtables-2.0.6-r1 (19 Jan 2006)
19 Jan 2006; <solar@gentoo.org> +files/ebtables-2.0.6-gcc4.patch,
+ebtables-2.0.6-r1.ebuild:
- ebtables-2.0.6 does not build with gcc-4.x; Bug #119489
07 Jun 2005; <solar@gentoo.org> ebtables-2.0.6.ebuild:
- ebtables used the host compiler vs the cross compiler while merging. We use
toolchain-funcs now
31 Dec 2004; Sven Wegener <swegener@gentoo.org> ebtables-2.0.6.ebuild:
Moved inherit to the top. Don't use variables in HOMEPAGE. Use MY_P.
11 Dec 2004; <solar@gentoo.org> ebtables-2.0.6.ebuild:
stable on x86
24 Jul 2004; <solar@gentoo.org> ebtables-2.0.6.ebuild:
update for ebtables -p support. bug 58116. Reported by Andrej Kacian
19 Jul 2004; Travis Tilley <lv@gentoo.org>
+files/ebtables-2.0.6-gcc34.patch, ebtables-2.0.6.ebuild:
added 'inherit eutils', fixed compiling with gcc 3.4, and added ~amd64 keyword
01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
ebtables-2.0.6.ebuild:
virtual/glibc -> virtual/libc
19 Jun 2004; David Holm <dholm@gentoo.org> ebtables-2.0.6.ebuild:
Added to ~ppc.
*ebtables-2.0.6 (28 Feb 2004)
28 Feb 2004; <solar@gentoo.org> ebtables-2.0.6.ebuild, metadata.xml:
initial import into portage of the ebtable utility that enables basic ethernet
frame filtering on a bridge, MAC NAT and brouting.

View File

@ -1,9 +1 @@
AUX ebtables-2.0.8.1-ebt-save.diff 1089 SHA256 b4d7022a616152ca439d2b09f14fda8a3ef479b823c2da44eb0e9e22b256be90 SHA512 904cb936ca6fc39dc4fa6e287ef70df9e1dacbd9dc464f839f25213f5525d4020f819dd893b784c5f611f1185c05ffbaa49423afcd6db2ef328950408a07e6a7 WHIRLPOOL df0664bc20dcd36bf640c8c88dea1e7d17b55c686403bceb77f5416b95ce0e2fc3292755e5986822b794628fc31aff25f7dab4d70d742fc93e78bac9fcdea4b2
AUX ebtables.confd-r1 288 SHA256 c05a6c1ba6add3881068584074681b04bfb2ad43284d7bdd67f47f3da842de58 SHA512 088308eba077fcec35299c8aaad0492024173504a361c2ba7e29dce106888a78c72818a791f3d3655aed3f6df26a3319c42e2b2c54760cdbad036d46b89b97f3 WHIRLPOOL f6353fcc69beff674227544b36c3e2289f094758b02087d57b44fd0a73d7aa47500592404125bd2570ac2fa0da74aa18138e80c292ff5b21ee1ede13fa1125c4
AUX ebtables.initd-r1 1997 SHA256 88eddb1de7b3c93dbcd4a74dfbe75f254deb5260dacf922f7face292d9debef6 SHA512 ee4b694386f3a75fbbeff1a2796a1c611d7c4a4dfd708d1b24ee803ea266dcda912189ae73304d40ad41874be904ef2a366279f477e7004042c339d4c8422452 WHIRLPOOL c7b4794ffbfd22954eefeed81053f184d4b9df6d972f12c64ad3f92be5b015828fd7ce8dbafd07d4f60ba52c5ba8c8345ab560944eb49aa04dc6767df1934139
DIST ebtables-v2.0.10-4.tar.gz 103764 SHA256 dc6f7b484f207dc712bfca81645f45120cb6aee3380e77a1771e9c34a9a4455d SHA512 a6832453812eaede3fcbb5b4cab5902ea1ea752a80a259eed276a01b61e2afaa6cf07d3d023d86a883f9a02505aecc44a1c6e0d27b3a61f341002e4c051cd60a WHIRLPOOL 5a1e0703e3fd5c79e149824e789646d042660081fb8a9f301fa4cc2716e84fbf842216d5b6b4c8c33de3b6949bfbfcaa2eb7293fe7afa71a2305de8f70abd57d
EBUILD ebtables-2.0.10.4-r1.ebuild 1869 SHA256 b5a60998a5d880033d800577450689e16b12f3dbcc90bef0b11f60477383aa36 SHA512 aa963e57e17df8b0a83ba3413c04a9f2918fb71c9119e4cbf2fee1d4ec3c34e2b538bd63c7521d9804d90daa6a36c28f92f716a2d16875c19da7ef2f27f33057 WHIRLPOOL c0226602b2a1268fefa08b9bc92920dbeab3ba312b3715bfffaec99a09caf4cffbf29c7cd82f57bc914a13dc03a4b74c10abc6a7fa6a885ccaa9d8b15d1b8726
EBUILD ebtables-2.0.10.4.ebuild 1698 SHA256 3eaca25de1390a7c9efe89b94be91075dc81dd9ea447a8158497023aa378c39f SHA512 ce44a208ebf8f794385537e0441b2934f20539f912a8c544ce7b5218d8a7b5cfb16f3c4e56f71cbca9edadc503e7cacacd9ab64f84581a532456ebb346bb4276 WHIRLPOOL 1d4068846049dc32d5495eba0f2b7cc0316ea2e7e22401998658793b351abc765d083a297345ccbf79436c4692930b5d8baf9f21e985798587d363833822a2ae
MISC ChangeLog 4315 SHA256 9d6fd31bd683f09db2e2b238239b51abbbb72e111380cdffa62b4a1c3eadf365 SHA512 95f6c29a2fd0728228951fe1c9daded4ac680effdf34217ddeec67b74d30f44294efde6e432a5632b2f47edc6358a17f9e64340daf8b68728a128423a7f859f4 WHIRLPOOL c5c860903822372ebe9496b69d12f1fa4f401a312ba3b1607d88c1e20ece947baae43695a304f3c35a48ec448a767e7db7446526c9d9cc18127238a5dcc64df9
MISC ChangeLog-2015 8943 SHA256 d7edb6a0880d5fcdadd33a672f24af11c9cef96b755cbe3dfaca66da2783ad74 SHA512 53e6543413542132e962f63594585e4f727bca471ba43c4a54ca093e196adf3e47ce9e6a6ad6c70df1348e2f3c5bf636c6826a87a6f23e76771a9e225cccce91 WHIRLPOOL 17140ef1391513e37b4c1e30ec665fd30d7d9a3e564d20ece083960bf7941b6f6ced424287788e1aff1a148914a0c390714630b21b9b49c551df2435a60c615e
MISC metadata.xml 426 SHA256 4af9dfd3040d9bb4be1b873b11cfadd0cda1a68f6b6a9e6acefe9d4dbd84c60c SHA512 77ff48216c32448cf2e2aa580f0b3afd6de7aa9bda2c2379c89f77282c417d385bb8c3d3218cf6d30021e472163bc8f2b450f0e43d944adb336f49fb695ba231 WHIRLPOOL 702803e5ff88215990751ebd4afa5d4b230e723ac50b8b0fea751f9b5cf8f612cfa76fe84c1650009b738de480154b1b1196d8cdfabe58325a9e65e4d338f3c5
DIST ebtables-2.0.11.tar.gz 428411 BLAKE2B 62af4c38ad21498e43f41ef96c8abb5704e8d8a48f1327c587b664f36fdfa9849a9a37e59958db56d38019465d8bf1775914f7387fde99a441615913702cf504 SHA512 43a04c6174c8028c501591ef260526297e0f018016f226e2a3bcf80766fddf53d4605c347554d6da7c4ab5e2131584a18da20916ffddcbf2d26ac93b00c5777f

View File

@ -1,70 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="4"
inherit versionator eutils toolchain-funcs multilib flag-o-matic
MY_PV=$(replace_version_separator 3 '-' )
MY_P=${PN}-v${MY_PV}
DESCRIPTION="Utility that enables basic Ethernet frame filtering on a Linux bridge, MAC NAT and brouting"
HOMEPAGE="http://ebtables.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
IUSE="+perl static"
# The ebtables-save script is written in perl.
RDEPEND="perl? ( dev-lang/perl )"
S=${WORKDIR}/${MY_P}
pkg_setup() {
if use static; then
ewarn "You've chosen static build which is useful for embedded devices."
ewarn "It has no init script. Make sure that's really what you want."
fi
}
src_prepare() {
# Enhance ebtables-save to take table names as parameters bug #189315
epatch "${FILESDIR}/${PN}-2.0.8.1-ebt-save.diff"
sed -i -e "s,^MANDIR:=.*,MANDIR:=/usr/share/man," \
-e "s,^BINDIR:=.*,BINDIR:=/sbin," \
-e "s,^INITDIR:=.*,INITDIR:=/usr/share/doc/${PF}," \
-e "s,^SYSCONFIGDIR:=.*,SYSCONFIGDIR:=/usr/share/doc/${PF}," \
-e "s,^LIBDIR:=.*,LIBDIR:=/$(get_libdir)/\$(PROGNAME)," Makefile
}
src_compile() {
# This package uses _init functions to initialise extensions. With
# --as-needed this will not work.
append-ldflags $(no-as-needed)
emake \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
$(use static && echo static)
}
src_install() {
if ! use static; then
emake DESTDIR="${D}" install
keepdir /var/lib/ebtables/
newinitd "${FILESDIR}"/ebtables.initd-r1 ebtables
newconfd "${FILESDIR}"/ebtables.confd-r1 ebtables
if ! use perl; then
rm "${ED}"/sbin/ebtables-save || die
fi
else
into /
newsbin static ebtables
insinto /etc
doins ethertypes
fi
dodoc ChangeLog THANKS
}

View File

@ -1,64 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="4"
inherit versionator eutils toolchain-funcs multilib flag-o-matic
MY_PV=$(replace_version_separator 3 '-' )
MY_P=${PN}-v${MY_PV}
DESCRIPTION="Utility that enables basic Ethernet frame filtering on a Linux bridge, MAC NAT and brouting"
HOMEPAGE="http://ebtables.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
KEYWORDS="amd64 ppc x86"
IUSE="static"
LICENSE="GPL-2"
SLOT="0"
S=${WORKDIR}/${MY_P}
pkg_setup() {
if use static; then
ewarn "You've chosen static build which is useful for embedded devices."
ewarn "It has no init script. Make sure that's really what you want."
fi
}
src_prepare() {
# Enhance ebtables-save to take table names as parameters bug #189315
epatch "${FILESDIR}/${PN}-2.0.8.1-ebt-save.diff"
sed -i -e "s,^MANDIR:=.*,MANDIR:=/usr/share/man," \
-e "s,^BINDIR:=.*,BINDIR:=/sbin," \
-e "s,^INITDIR:=.*,INITDIR:=/usr/share/doc/${PF}," \
-e "s,^SYSCONFIGDIR:=.*,SYSCONFIGDIR:=/usr/share/doc/${PF}," \
-e "s,^LIBDIR:=.*,LIBDIR:=/$(get_libdir)/\$(PROGNAME)," Makefile
}
src_compile() {
# This package uses _init functions to initialise extensions. With
# --as-needed this will not work.
append-ldflags $(no-as-needed)
emake \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
$(use static && echo static)
}
src_install() {
if ! use static; then
make DESTDIR="${D}" install
keepdir /var/lib/ebtables/
newinitd "${FILESDIR}"/ebtables.initd-r1 ebtables
newconfd "${FILESDIR}"/ebtables.confd-r1 ebtables
else
into /
newsbin static ebtables
insinto /etc
doins ethertypes
fi
dodoc ChangeLog THANKS
}

View File

@ -0,0 +1,106 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit autotools
MY_PV="$(ver_rs 3 '-' )"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="Controls Ethernet frame filtering on a Linux bridge, MAC NAT and brouting"
HOMEPAGE="https://ebtables.netfilter.org/"
SRC_URI="http://ftp.netfilter.org/pub/${PN}/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ppc ~ppc64 x86"
IUSE="+perl static"
BDEPEND=">=app-eselect/eselect-iptables-20200508"
# The ebtables-save script is written in perl.
RDEPEND="${BDEPEND}
perl? ( dev-lang/perl )
net-misc/ethertypes"
PATCHES=(
"${FILESDIR}/${PN}-2.0.11-makefile.patch"
# Enhance ebtables-save to take table names as parameters bug #189315
"${FILESDIR}/${PN}-2.0.11-ebt-save.patch"
# from upstream git
"${FILESDIR}/ebtables-2.0.11-remove-stray-atsign.patch"
)
pkg_setup() {
if use static; then
ewarn "You've chosen static build which is useful for embedded devices."
ewarn "It has no init script. Make sure that's really what you want."
fi
}
src_prepare() {
default
# Don't install perl scripts if USE=perl is disabled.
if ! use perl; then
sed -i -e '/^sbin_SCRIPTS/ d' Makefile.am || die
fi
# The bundled autotools are borked, so force a rebuild.
eautoreconf
}
src_configure() {
econf \
--bindir="/bin" \
--sbindir="/sbin" \
--libdir="/$(get_libdir)/${PN}" \
$(use_enable static)
}
src_compile() {
emake $(usex static 'static ebtables-legacy.8' '')
}
src_install() {
local -a DOCS=( ChangeLog THANKS )
if ! use static; then
emake DESTDIR="${D}" install
newinitd "${FILESDIR}"/ebtables.initd-r1 ebtables
newconfd "${FILESDIR}"/ebtables.confd-r1 ebtables
find "${D}" -name '*.la' -type f -delete || die
# The ethertypes package installs this for us.
rm "${ED}"/etc/ethertypes || die
else
into /
newsbin static ebtables
fi
newman ebtables-legacy.8 ebtables.8
einstalldocs
}
pkg_postinst() {
if ! eselect ebtables show &>/dev/null; then
elog "Current ebtables implementation is unset, setting to ebtables-legacy"
eselect ebtables set ebtables-legacy
fi
eselect ebtables show
}
pkg_prerm() {
if [[ -z ${REPLACED_BY_VERSION} ]] && has_version 'net-firewall/iptables[nftables]'; then
elog "Resetting ebtables symlinks to xtables-nft-multi before removal"
eselect ebtables set xtables-nft-multi
else
elog "Unsetting ebtables symlinks before removal"
eselect ebtables unset
fi
}

View File

@ -1,6 +1,8 @@
--- ./ebtables-save.orig 2007-09-28 22:50:35.000000000 +0400
+++ ./ebtables-save 2007-09-28 22:51:22.000000000 +0400
@@ -12,6 +12,7 @@
diff --git a/ebtables-save.in b/ebtables-save.in
index 17924a2..c7a64c3 100644
--- a/ebtables-save.in
+++ b/ebtables-save.in
@@ -12,6 +12,7 @@ my $ebtables = "@sbindir@/ebtables";
my $cnt = "";
my $version = "1.0";
my $table_name;
@ -8,7 +10,7 @@
# ========================================================
# Process filter table
@@ -49,12 +50,19 @@
@@ -49,6 +50,13 @@ sub process_table {
}
# ========================================================
@ -20,12 +22,5 @@
+}
+# ========================================================
unless (-x $ebtables) { exit -1 };
print "# Generated by ebtables-save v$version on " . `date`;
print "# Generated by ebtables-save v$version (legacy) on " . `date`;
if (defined($ENV{'EBTABLES_SAVE_COUNTER'}) && $ENV{'EBTABLES_SAVE_COUNTER'} eq "yes") {
$cnt = "--Lc";
}
-foreach $table_name (split("\n", `grep -E '^ebtable_' /proc/modules | cut -f1 -d' ' | sed s/ebtable_//`)) {
+foreach $table_name (@table_names) {
$table =`$ebtables -t $table_name -L $cnt`;
unless ($? == 0) { print $table; exit -1 };
&process_table($table);

View File

@ -0,0 +1,13 @@
diff --git a/Makefile.am b/Makefile.am
index 6181003..de01139 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -50,7 +50,7 @@ ebtables_legacy_LDADD = libebtc.la
ebtablesd_LDADD = libebtc.la
ebtables_legacy_restore_SOURCES = ebtables-restore.c
ebtables_legacy_restore_LDADD = libebtc.la
-static_SOURCES = ebtables.c
+static_SOURCES = ebtables.c ebtables-standalone.c
static_LDFLAGS = -static
static_LDADD = libebtc.la
examples_ulog_test_ulog_SOURCES = examples/ulog/test_ulog.c getethertype.c

View File

@ -0,0 +1,32 @@
From 7d00e58157bc61168a057cde91a6e5b54dca573b Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Mon, 2 Dec 2019 20:52:04 +0100
Subject: build: remove stray @ sign in manpage
Because the sed command was not matching the trailing @, it
was left in the manpage, leading to
NAME
ebtables-legacy (2.0.11@) - Ethernet bridge frame table administration (legacy)
Signed-off-by: Jan Engelhardt <jengelh@inai.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index b879941..6181003 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -64,6 +64,6 @@ ebtables-legacy-save: ebtables-save.in ${top_builddir}/config.status
${AM_V_GEN}sed -e 's![@]sbindir@!${sbindir}!g' <$< >$@
ebtables-legacy.8: ebtables-legacy.8.in ${top_builddir}/config.status
- ${AM_V_GEN}sed -e 's![@]PACKAGE_VERSION!${PACKAGE_VERSION}!g' \
+ ${AM_V_GEN}sed -e 's![@]PACKAGE_VERSION@!${PACKAGE_VERSION}!g' \
-e 's![@]PACKAGE_DATE@!${PROGDATE}!g' \
-e 's![@]LOCKFILE@!${LOCKFILE}!g' <$< >$@
--
cgit v1.2.1

View File

@ -9,3 +9,11 @@ SAVE_RESTORE_OPTIONS=""
# Save state on stopping ebtables
SAVE_ON_STOP="yes"
# If you need to log iptables messages as soon as iptables starts,
# AND your logger does NOT depend on the network, then you may wish
# to uncomment the next line.
# If your logger depends on the network, and you uncomment this line
# you will create an unresolvable circular dependency during startup.
# After commenting or uncommenting this line, you must run 'rc-update -u'.
#rc_use="logger"

View File

@ -1,7 +1,6 @@
#!/sbin/openrc-run
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Id$
extra_commands="save panic"
extra_started_commands="reload"
@ -11,13 +10,13 @@ ebtables_save=${EBTABLES_SAVE}
depend() {
before net
use logger
}
ebtables_tables() {
local table
for table in filter nat broute; do
if ${ebtables_bin} -t ${table} -L > /dev/null 2>&1; then
echo -n "${table} "
printf '%s' "${table} "
fi
done
}
@ -81,8 +80,8 @@ reload() {
save() {
ebegin "Saving ebtables state"
touch "${ebtables_save}"
chmod 0600 "${ebtables_save}"
checkpath -d -m 0755 "${ebtables_save%/*}"
checkpath -f -m 0600 "${ebtables_save}"
${ebtables_bin}-save $(ebtables_tables) ${SAVE_RESTORE_OPTIONS} > "${ebtables_save}"
eend $?
}

View File

@ -10,5 +10,6 @@
</use>
<upstream>
<remote-id type="sourceforge">ebtables</remote-id>
<remote-id type="cpe">cpe:/a:netfilter:ebtables</remote-id>
</upstream>
</pkgmetadata>