Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/fragroute/
Date: Sun, 27 Sep 2020 10:07:02
Message-Id: 1601201216.f299f49c951d680113412807a38a90c5024aba57.jer@gentoo
1 commit: f299f49c951d680113412807a38a90c5024aba57
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 27 10:06:06 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 27 10:06:56 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f299f49c
7
8 net-analyzer/fragroute: Depend on >=dev-libs/libdnet-1.14-r1
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Bug: https://bugs.gentoo.org/744484
12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
13
14 net-analyzer/fragroute/fragroute-1.2.6-r4.ebuild | 54 ++++++++++++++++++++++++
15 1 file changed, 54 insertions(+)
16
17 diff --git a/net-analyzer/fragroute/fragroute-1.2.6-r4.ebuild b/net-analyzer/fragroute/fragroute-1.2.6-r4.ebuild
18 new file mode 100644
19 index 00000000000..58e9d754203
20 --- /dev/null
21 +++ b/net-analyzer/fragroute/fragroute-1.2.6-r4.ebuild
22 @@ -0,0 +1,54 @@
23 +# Copyright 1999-2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +MY_P="${P}-ipv6"
28 +inherit autotools
29 +
30 +DESCRIPTION="Testing of network intrusion detection systems, firewalls and TCP/IP stacks"
31 +HOMEPAGE="https://github.com/stsi/fragroute-ipv6"
32 +SRC_URI="https://fragroute-ipv6.googlecode.com/files/${MY_P}.tar.gz"
33 +
34 +LICENSE="BSD"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
37 +
38 +RDEPEND="
39 + >=dev-libs/libdnet-1.14-r1
40 + dev-libs/libevent:=
41 + net-libs/libpcap
42 +"
43 +DEPEND="
44 + ${RDEPEND}
45 +"
46 +BDEPEND="
47 + virtual/awk
48 +"
49 +DOCS=( INSTALL README TODO )
50 +PATCHES=(
51 + "${FILESDIR}"/${P}-libdir.patch
52 + "${FILESDIR}"/${P}-pcap_open.patch
53 +)
54 +S="${WORKDIR}/${MY_P}"
55 +
56 +src_prepare() {
57 + default
58 +
59 + # Remove broken and old files, autotools will regen needed files
60 + rm *.m4 acconfig.h missing Makefile.in || die
61 +
62 + # Add missing includes
63 + sed -i -e "/#define IPUTIL_H/a#include <stdio.h>\n#include <stdint.h>" iputil.h || die
64 +
65 + eautoreconf
66 +}
67 +
68 +src_configure() {
69 + econf \
70 + DNETINC='' \
71 + DNETLIB=-ldnet \
72 + EVENTINC='' \
73 + EVENTLIB=-levent \
74 + PCAPINC='' \
75 + PCAPLIB=-lpcap
76 +}