blob: ab690b36fdf706dd8efde5b494ac6b33515d4885 (
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
40
41
42
43
44
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/rain/rain-1.2.9_beta1.ebuild,v 1.2 2010/09/15 16:29:47 jer Exp $
EAPI="2"
inherit autotools eutils
MY_P=${P/_/}
MY_P=${MY_P/-/_}
DESCRIPTION="powerful tool for testing stability of hardware and software utilizing IP protocols"
HOMEPAGE="http://www.mirrors.wiretapped.net/security/packet-construction/rain/"
SRC_URI="
mirror://ubuntu/pool/universe/r/${PN}/${MY_P}.orig.tar.gz
mirror://ubuntu/pool/universe/r/${PN}/${MY_P}-1.diff.gz
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
S="${WORKDIR}/${MY_P/_/-}"
src_prepare() {
# Debian patch
epatch "${WORKDIR}"/${MY_P}-1.diff
# respect CFLAGS, LDFLAGS, correct man path
sed -i Makefile.in \
-e 's|-g|@CFLAGS@|' \
-e 's|/usr/local/man|/usr/share/man|g' \
-e 's|^SBINDIR=|&/usr|g' \
-e 's|$(CC) -o|$(CC) $(CFLAGS) $(LDFLAGS) -o|g' \
|| die "sed Makefile.in"
# generate a new configure that respects/exports CC
eautoreconf
}
src_install() {
emake DESTDIR="${D}" install || die "emake install"
dodoc BUGS CHANGES README TODO
}
|