| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netwox/netwox-5.39.0.ebuild,v 1.2 2012/07/09 00:24:15 jer Exp $
|
| 4 |
|
| 5 |
# NOTE: netwib, netwox and netwag go together, bump all or bump none
|
| 6 |
|
| 7 |
EAPI=4
|
| 8 |
inherit toolchain-funcs multilib
|
| 9 |
|
| 10 |
DESCRIPTION="Toolbox of 217 utilities for testing Ethernet/IP networks"
|
| 11 |
HOMEPAGE="
|
| 12 |
http://ntwox.sourceforge.net/
|
| 13 |
http://www.laurentconstantin.com/en/netw/netwox/
|
| 14 |
"
|
| 15 |
SRC_URI="mirror://sourceforge/ntwox/${P}-src.tgz
|
| 16 |
doc? ( mirror://sourceforge/ntwox/${P}-doc_html.tgz )"
|
| 17 |
|
| 18 |
LICENSE="GPL-3"
|
| 19 |
SLOT="0"
|
| 20 |
KEYWORDS="~amd64 ~hppa ~ppc x86"
|
| 21 |
IUSE="doc"
|
| 22 |
|
| 23 |
RDEPEND=">=net-libs/libnet-1.1.1"
|
| 24 |
|
| 25 |
DEPEND="
|
| 26 |
${RDEPEND}
|
| 27 |
net-libs/libpcap
|
| 28 |
~net-libs/netwib-${PV}
|
| 29 |
"
|
| 30 |
|
| 31 |
S=${WORKDIR}/${P}-src/src
|
| 32 |
|
| 33 |
src_prepare() {
|
| 34 |
sed -i \
|
| 35 |
-e 's:/man$:/share/man:g' \
|
| 36 |
-e "s:/lib:/$(get_libdir):" \
|
| 37 |
-e "s:/usr/local:/usr:" \
|
| 38 |
-e "s:=ar:=$(tc-getAR):" \
|
| 39 |
-e "s:=ranlib:=$(tc-getRANLIB):" \
|
| 40 |
-e "s:=gcc:=$(tc-getCC):" \
|
| 41 |
-e "s:-O2:${CFLAGS}:" \
|
| 42 |
config.dat || die "patching config.dat failed"
|
| 43 |
sed -i \
|
| 44 |
-e "s:-o netwox:& \${LDFLAGS}:g" \
|
| 45 |
-e 's: ; make: ; \\$(MAKE):g' \
|
| 46 |
genemake || die "patching genemake failed"
|
| 47 |
}
|
| 48 |
|
| 49 |
src_configure() {
|
| 50 |
sh genemake || die "problem creating Makefile"
|
| 51 |
}
|
| 52 |
|
| 53 |
src_install() {
|
| 54 |
default
|
| 55 |
dodoc ../README.TXT
|
| 56 |
if use doc;
|
| 57 |
then
|
| 58 |
mv "${WORKDIR}"/${P}-doc_html "${D}"/usr/share/doc/${PF}/html
|
| 59 |
fi
|
| 60 |
|
| 61 |
dodoc "${S}"/../doc/{changelog.txt,credits.txt} \
|
| 62 |
"${S}"/../doc/{problemreport.txt,problemusageunix.txt,todo.txt}
|
| 63 |
}
|