# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-firewall/ebtables/ebtables-2.0.6-r1.ebuild,v 1.3 2006/08/25 18:52:01 wolf31o2 Exp $ inherit eutils toolchain-funcs MY_FILEVER="v2.0.8-1" DESCRIPTION="Utility that enables basic Ethernet frame filtering on a Linux bridge, MAC NAT and brouting." SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_FILEVER}.tar.gz" HOMEPAGE="http://ebtables.sourceforge.net/" KEYWORDS="~amd64 ~ppc ~x86" IUSE="" LICENSE="GPL-2" SLOT="0" S="${WORKDIR}/${PN}-${MY_FILEVER}" DEPEND="virtual/libc" src_compile() { emake CC="$(tc-getCC)" || die "emake failed" } src_unpack() { unpack ${A} cd ${S} # fix ebtables.o relocation R_X86_64_32 linker error epatch ${FILESDIR}/ebtables-v2.0.8-1-Makefile.patch } src_install() { dodir /sbin/ exeinto /sbin/ doexe ${S}/ebtables ${S}/ebtables-restore doman ${S}/*.8 dodir /etc/ mv ${S}/ethertypes ${D}/etc/ # ebtables doesn't find these libs, what's better placing the # libs directly in libdir or add an entry in /etc/ld.so.conf ?? # dodir /$(get_libdir)/${PN}/ #mv ${S}/extensions/*.so ${D}/$(get_libdir)/${PN}/ dodir /$(get_libdir) mv ${S}/extensions/*.so ${D}/$(get_libdir)/ mv ${S}/*.so ${D}/$(get_libdir)/ exeinto /sbin/ doexe ${S}/ebtables }