diff options
author | Peter Volkov <pva@gentoo.org> | 2008-08-13 04:36:23 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2008-08-13 04:36:23 +0000 |
commit | e2068dc1889005eb7e2bcb87d92a1f07a411c047 (patch) | |
tree | 9dd59a1d616379c13b709cb3b6cbbe93cddd08dd /net-firewall/ebtables | |
parent | Verbump (diff) | |
download | historical-e2068dc1889005eb7e2bcb87d92a1f07a411c047.tar.gz historical-e2068dc1889005eb7e2bcb87d92a1f07a411c047.tar.bz2 historical-e2068dc1889005eb7e2bcb87d92a1f07a411c047.zip |
Fixed bug #233190, thank Suertreus for report. Also make ebtables respect LDFLAGS.
Package-Manager: portage-2.2_rc7/cvs/Linux 2.6.22-ovz005 i686
Diffstat (limited to 'net-firewall/ebtables')
-rw-r--r-- | net-firewall/ebtables/ChangeLog | 11 | ||||
-rw-r--r-- | net-firewall/ebtables/Manifest | 5 | ||||
-rw-r--r-- | net-firewall/ebtables/ebtables-2.0.8.2-r1.ebuild | 50 | ||||
-rw-r--r-- | net-firewall/ebtables/files/ebtables-v2.0.8-2-LDFLAGS.diff | 54 | ||||
-rw-r--r-- | net-firewall/ebtables/files/ebtables-v2.0.8-2-ethertype-DESTDIR-mkdir.patch | 40 |
5 files changed, 158 insertions, 2 deletions
diff --git a/net-firewall/ebtables/ChangeLog b/net-firewall/ebtables/ChangeLog index b30db41fdf52..7eb8032ef437 100644 --- a/net-firewall/ebtables/ChangeLog +++ b/net-firewall/ebtables/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for net-firewall/ebtables # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/ebtables/ChangeLog,v 1.23 2008/05/11 11:04:49 pva Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/ebtables/ChangeLog,v 1.24 2008/08/13 04:36:22 pva Exp $ + +*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, diff --git a/net-firewall/ebtables/Manifest b/net-firewall/ebtables/Manifest index 4a55d1fb36ef..5a8c6b103b79 100644 --- a/net-firewall/ebtables/Manifest +++ b/net-firewall/ebtables/Manifest @@ -1,7 +1,10 @@ AUX ebtables-2.0.8.1-ebt-save.diff 1089 RMD160 d36bd4ee1f9c5640d960e0b537829faade9251c4 SHA1 efad4c40e92b42d59e044c78945aed00ef756ed8 SHA256 b4d7022a616152ca439d2b09f14fda8a3ef479b823c2da44eb0e9e22b256be90 +AUX ebtables-v2.0.8-2-LDFLAGS.diff 1874 RMD160 9cb9c0b96a14a4cfc441dc4d02d1b169448ec1c2 SHA1 c0a955c56d553b45c024178ccd227666389800b7 SHA256 8279df45acdd0c089aa47295e6718ac9208298f269c0f066421f9d2be8c4b937 +AUX ebtables-v2.0.8-2-ethertype-DESTDIR-mkdir.patch 1619 RMD160 62f324507577cdcb9390b42fc87dd7f8017bf4e7 SHA1 7a68888f6ac2d2ee55105a957bcdec263992e266 SHA256 56905064c63c582240da2bc21d03ba66fc28716089ba743396fa67e9ea78b7ca AUX ebtables.confd 466 RMD160 84f7bea9b78ae9fab08cc446c1cd64e74fe4e4f9 SHA1 2bf5e4db2fde07a9791c43cb27575aefe30cc895 SHA256 fa8dedd95f1a6834022e409754e1e41219a7671a1bbb99b2094356239135730d AUX ebtables.initd 2078 RMD160 da8ca12a06bf4134436b8c858b022935b95f7ab4 SHA1 d8d3628cbdc251d22558fc5761be95d012586f7f SHA256 14d443045dc1f9a3da84a4dc07040ac8a6d6042a2d87305b9eeca8495703cb53 DIST ebtables-v2.0.8-2.tar.gz 97065 RMD160 b53fca7e2f34dd23ecb11af3804fa10c1702e815 SHA1 3e9331a55e02f0930047b7198501f380ebf6c2d9 SHA256 dd78c0dfa0dbeb128952dec9e916be948bf561dcb8ba3149ea7ce0166a2caf9b +EBUILD ebtables-2.0.8.2-r1.ebuild 1645 RMD160 35874ce7c5e92e51889f49341f059526803a4f65 SHA1 020f6940b9a0f052fcfb7321ec7e78586bbb4714 SHA256 ef8541764271f12f2cb5ab86c208c48288de99fafa732840ef5d38b956356659 EBUILD ebtables-2.0.8.2.ebuild 1340 RMD160 7c32a3d06192af8134f7833de8163ac917dfd414 SHA1 ba925b114ce41b26321b9a1b7a0853c786ceb8ab SHA256 54dbad60050fefc9e1c3a22aebdc4bbd52d3cb079dd8986381b534d6984790d9 -MISC ChangeLog 3896 RMD160 38dc93023130f59e13ffe445a5da051d1e61bfcf SHA1 a9a8bba41af8e9f378069f56659b2c49b6fc7807 SHA256 55dcdab6011aaa17517b557b08dd1d5eaa120881d5ed4ae9743f93937ae19dc0 +MISC ChangeLog 4195 RMD160 700cb6fca98c91815360d5a30e15642967635afa SHA1 8136dc0e0f77a3e628947e91ce7b4c19403b02ba SHA256 39a7e815ab36c6505038094e8449f09935ce72337dae2b3841718a3c617aa129 MISC metadata.xml 251 RMD160 2acabb95dba06572ab5dfd2a6d7bca5ab53d7a64 SHA1 6bf96c40f48fb4f92026dd80b7b3e1ce7ebdc9d1 SHA256 8d646b2f01acd31f9bc065850081adfa7f1dfabd8e305e05331fc6d21cbbd504 diff --git a/net-firewall/ebtables/ebtables-2.0.8.2-r1.ebuild b/net-firewall/ebtables/ebtables-2.0.8.2-r1.ebuild new file mode 100644 index 000000000000..95801e10f808 --- /dev/null +++ b/net-firewall/ebtables/ebtables-2.0.8.2-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/ebtables/ebtables-2.0.8.2-r1.ebuild,v 1.1 2008/08/13 04:36:22 pva Exp $ + +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." +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" +HOMEPAGE="http://ebtables.sourceforge.net/" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +LICENSE="GPL-2" +SLOT="0" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + cd "${S}" + + # Enchance ebtables-save to take table names as parameters bug #189315 + epatch "${FILESDIR}"/${PN}-2.0.8.1-ebt-save.diff + epatch "${FILESDIR}"/${PN}-v2.0.8-2-LDFLAGS.diff + epatch "${FILESDIR}"/${PN}-v2.0.8-2-ethertype-DESTDIR-mkdir.patch + + 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 + sed -i -e "s,^CC:=.*,CC:=$(tc-getCC)," Makefile +} + +src_compile() { + # This package uses _init functions to initialise extensions. With + # --as-needed this will not work. + append-ldflags -Wl,--no-as-needed + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die + dodoc ChangeLog THANKS + keepdir /var/lib/ebtables/ + newinitd "${FILESDIR}"/ebtables.initd ebtables + newconfd "${FILESDIR}"/ebtables.confd ebtables +} diff --git a/net-firewall/ebtables/files/ebtables-v2.0.8-2-LDFLAGS.diff b/net-firewall/ebtables/files/ebtables-v2.0.8-2-LDFLAGS.diff new file mode 100644 index 000000000000..f5ccb9375dbe --- /dev/null +++ b/net-firewall/ebtables/files/ebtables-v2.0.8-2-LDFLAGS.diff @@ -0,0 +1,54 @@ +=== modified file 'Makefile' +--- Makefile 2008-08-12 12:30:44 +0000 ++++ Makefile 2008-08-12 12:30:56 +0000 +@@ -18,7 +18,6 @@ + CFLAGS:=-Wall -Wunused + CFLAGS_SH_LIB:=-fPIC + CC:=gcc +-LD:=ld + + ifeq ($(shell uname -m),sparc64) + CFLAGS+=-DEBT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32 +@@ -85,10 +84,10 @@ + + .PHONY: libebtc + libebtc: $(OBJECTS2) +- $(LD) -shared -soname libebtc.so -o libebtc.so -lc $(OBJECTS2) ++ $(CC) -shared $(LDFLAGS) -Wl,-soname=libebtc.so -o libebtc.so -lc $(OBJECTS2) + + ebtables: $(OBJECTS) ebtables-standalone.o libebtc +- $(CC) $(CFLAGS) $(CFLAGS_SH_LIB) -o $@ ebtables-standalone.o -I$(KERNEL_INCLUDES) -L. -Lextensions -lebtc $(EXT_LIBSI) \ ++ $(CC) $(CFLAGS) $(CFLAGS_SH_LIB) $(LDFLAGS) -o $@ ebtables-standalone.o -I$(KERNEL_INCLUDES) -L. -Lextensions -lebtc $(EXT_LIBSI) \ + -Wl,-rpath,$(LIBDIR) + + ebtablesu: ebtablesu.c +@@ -105,7 +104,7 @@ + $(CC) $(CFLAGS) $(PROGSPECS) -c $< -o $@ -I$(KERNEL_INCLUDES) + + ebtables-restore: $(OBJECTS) ebtables-restore.o libebtc +- $(CC) $(CFLAGS) -o $@ ebtables-restore.o -I$(KERNEL_INCLUDES) -L. -Lextensions -lebtc $(EXT_LIBSI) \ ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ ebtables-restore.o -I$(KERNEL_INCLUDES) -L. -Lextensions -lebtc $(EXT_LIBSI) \ + -Wl,-rpath,$(LIBDIR) + + .PHONY: daemon + +=== modified file 'extensions/Makefile' +--- extensions/Makefile 2008-08-12 12:30:44 +0000 ++++ extensions/Makefile 2008-08-12 12:30:45 +0000 +@@ -11,13 +11,13 @@ + EXT_LIBSI+=$(foreach T,$(EXT_TABLES), -lebtable_$(T)) + + extensions/ebt_%.so: extensions/ebt_%.o +- $(CC) -shared -o $@ -lc $< -nostartfiles ++ $(CC) $(LDFLAGS) -shared -o $@ -lc $< -nostartfiles + + extensions/libebt_%.so: extensions/ebt_%.so + mv $< $@ + + extensions/ebtable_%.so: extensions/ebtable_%.o +- $(CC) -shared -o $@ -lc $< -nostartfiles ++ $(CC) $(LDFLAGS) -shared -o $@ -lc $< -nostartfiles + + extensions/libebtable_%.so: extensions/ebtable_%.so + mv $< $@ + diff --git a/net-firewall/ebtables/files/ebtables-v2.0.8-2-ethertype-DESTDIR-mkdir.patch b/net-firewall/ebtables/files/ebtables-v2.0.8-2-ethertype-DESTDIR-mkdir.patch new file mode 100644 index 000000000000..310454087ee1 --- /dev/null +++ b/net-firewall/ebtables/files/ebtables-v2.0.8-2-ethertype-DESTDIR-mkdir.patch @@ -0,0 +1,40 @@ +=== modified file 'Makefile' +--- Makefile 2008-08-13 04:20:07 +0000 ++++ Makefile 2008-08-13 04:28:51 +0000 +@@ -153,10 +153,13 @@ + .PHONY: scripts + scripts: ebtables-save ebtables.sysv ebtables-config + cat ebtables-save | sed 's/__EXEC_PATH__/$(tmp1)/g' > ebtables-save_ ++ mkdir -p $(DESTDIR)$(BINDIR) + install -m 0755 -o root -g root ebtables-save_ $(DESTDIR)$(BINDIR)/ebtables-save + cat ebtables.sysv | sed 's/__EXEC_PATH__/$(tmp1)/g' | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables.sysv_ ++ mkdir -p $(DESTDIR)$(INITDIR) + install -m 0755 -o root -g root ebtables.sysv_ $(DESTDIR)$(INITDIR)/ebtables + cat ebtables-config | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables-config_ ++ mkdir -p $(DESTDIR)$(SYSCONFIGDIR) + install -m 0600 -o root -g root ebtables-config_ $(DESTDIR)$(SYSCONFIGDIR)/ebtables-config + rm -f ebtables-save_ ebtables.sysv_ ebtables-config_ + +@@ -166,9 +169,9 @@ + install -m 0644 -o root -g root ebtables.8_ $(DESTDIR)$@ + rm -f ebtables.8_ + +-$(ETHERTYPESFILE): ethertypes +- mkdir -p $(DESTDIR)$(@D) +- install -m 0644 -o root -g root $< $(DESTDIR)$@ ++$(DESTDIR)$(ETHERTYPESFILE): ethertypes ++ mkdir -p $(@D) ++ install -m 0644 -o root -g root $< $@ + + .PHONY: exec + exec: ebtables ebtables-restore +@@ -177,7 +180,7 @@ + install -m 0755 -o root -g root ebtables-restore $(DESTDIR)$(BINDIR)/ebtables-restore + + .PHONY: install +-install: $(MANDIR)/man8/ebtables.8 $(ETHERTYPESFILE) exec scripts ++install: $(MANDIR)/man8/ebtables.8 $(DESTDIR)$(ETHERTYPESFILE) exec scripts + mkdir -p $(DESTDIR)$(LIBDIR) + install -m 0755 extensions/*.so $(DESTDIR)$(LIBDIR) + install -m 0755 *.so $(DESTDIR)$(LIBDIR) + |