summaryrefslogtreecommitdiff
blob: 5186bf1e361a04d5315ed05b77d3995d7b9b999b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2004 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.ebuild,v 1.10 2004/12/30 23:13:52 swegener Exp $

inherit eutils

MY_P="${PN}-v${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="x86 ~ppc ~amd64"
IUSE=""
LICENSE="GPL-2"
SLOT="0"

S="${WORKDIR}/${MY_P}"

DEPEND="virtual/libc"

src_compile() {
	# this needs to be here, otherwise einstall below will fail with
	# sandbox violation
	emake || die "emake failed"
}

src_unpack() {
	unpack ${A}
	cd ${S}

	# fix "label at end of compound statement" error that
	# prevents ebtables from being compilable with >=gcc-3.4
	epatch ${FILESDIR}/ebtables-2.0.6-gcc34.patch
}

src_install() {
	dodir /sbin/
	einstall MANDIR=${D}/usr/share/man ETHERTYPESPATH=${D}/etc/ BINPATH=${D}/sbin/ || die
}