diff options
author | Peter Volkov <pva@gentoo.org> | 2009-06-22 15:06:37 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2009-06-22 15:06:37 +0000 |
commit | b04ef16c6cb6a25375c6c89c214d5dfaffc0fd82 (patch) | |
tree | 3242ceb2c6a85ccc9a22cb262baf92dcf7294e68 /net-firewall/ebtables/ebtables-2.0.9.1.ebuild | |
parent | Stable for HPPA too. (diff) | |
download | historical-b04ef16c6cb6a25375c6c89c214d5dfaffc0fd82.tar.gz historical-b04ef16c6cb6a25375c6c89c214d5dfaffc0fd82.tar.bz2 historical-b04ef16c6cb6a25375c6c89c214d5dfaffc0fd82.zip |
Version bump, fixes 'invalid size 8 != 4', bug #273693 reported by Joakim Tjernlund.
Package-Manager: portage-2.2_rc33/cvs/Linux i686
Diffstat (limited to 'net-firewall/ebtables/ebtables-2.0.9.1.ebuild')
-rw-r--r-- | net-firewall/ebtables/ebtables-2.0.9.1.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/net-firewall/ebtables/ebtables-2.0.9.1.ebuild b/net-firewall/ebtables/ebtables-2.0.9.1.ebuild new file mode 100644 index 000000000000..2ba613ad61f5 --- /dev/null +++ b/net-firewall/ebtables/ebtables-2.0.9.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/ebtables/ebtables-2.0.9.1.ebuild,v 1.1 2009/06/22 15:06:36 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." +HOMEPAGE="http://ebtables.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +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.9-1-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/^CFLAGS:=/CFLAGS+=/" 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 || die + keepdir /var/lib/ebtables/ + newinitd "${FILESDIR}"/ebtables.initd ebtables || die + newconfd "${FILESDIR}"/ebtables.confd ebtables || die +} |