blob: 6d004f56b27b5eaa71fbf6180e1c4fc5b1a3e873 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils toolchain-funcs
DESCRIPTION="tool for checking router configuration"
HOMEPAGE="http://packetfactory.openwall.net/projects/egressor/"
SRC_URI="http://packetfactory.openwall.net/projects/egressor/${PN}_release${PV}.tar.gz"
LICENSE="egressor"
SLOT="0"
KEYWORDS="amd64 ppc x86"
DEPEND="<net-libs/libnet-1.1
>=net-libs/libnet-1.0.2a-r3"
RDEPEND="net-libs/libpcap
dev-perl/Net-RawIP
dev-lang/perl"
S=${WORKDIR}
src_prepare() {
epatch \
"${FILESDIR}"/${PV}-libnet-1.0.patch \
"${FILESDIR}"/${PV}-flags.patch
}
src_compile() {
tc-export CC
emake -C client
}
src_install() {
dobin client/egressor server/egressor_server.pl
dodoc README client/README-CLIENT server/README-SERVER
}
|