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/ipv6toolkit/
Date: Wed, 08 Jan 2020 09:16:31
Message-Id: 1578474984.78a9c81c87e92d48d247da5210c9cc1dc29ede96.jer@gentoo
1 commit: 78a9c81c87e92d48d247da5210c9cc1dc29ede96
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 8 09:05:13 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 8 09:16:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78a9c81c
7
8 net-analyzer/ipv6toolkit: Add live ebuild
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 .../ipv6toolkit/ipv6toolkit-99999999.ebuild | 43 ++++++++++++++++++++++
14 1 file changed, 43 insertions(+)
15
16 diff --git a/net-analyzer/ipv6toolkit/ipv6toolkit-99999999.ebuild b/net-analyzer/ipv6toolkit/ipv6toolkit-99999999.ebuild
17 new file mode 100644
18 index 00000000000..8a862e67718
19 --- /dev/null
20 +++ b/net-analyzer/ipv6toolkit/ipv6toolkit-99999999.ebuild
21 @@ -0,0 +1,43 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +inherit git-r3 toolchain-funcs
27 +
28 +DESCRIPTION="Set of IPv6 security/trouble-shooting tools to send arbitrary IPv6-based packets"
29 +HOMEPAGE="https://www.si6networks.com/tools/ipv6toolkit/"
30 +EGIT_REPO_URI="https://github.com/fgont/ipv6toolkit"
31 +
32 +LICENSE="GPL-3"
33 +SLOT="0"
34 +KEYWORDS=""
35 +
36 +DEPEND="
37 + net-libs/libpcap[ipv6(+)]
38 +"
39 +RDEPEND="
40 + ${DEPEND}
41 + sys-apps/hwids
42 +"
43 +
44 +HWIDS_OUI_PATH=/usr/share/misc/oui.txt
45 +
46 +src_prepare() {
47 + default
48 + sed -i "s#/usr/share/ipv6toolkit/oui.txt#${HWIDS_OUI_PATH}#" \
49 + manuals/ipv6toolkit.conf.5
50 +}
51 +src_compile() {
52 + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" PREFIX=/usr
53 +}
54 +
55 +src_install() {
56 + dodir /etc
57 + emake install DESTDIR="${ED}" PREFIX=/usr
58 + #remove the included oui file
59 + rm -f "${D}"/usr/share/ipv6toolkit/oui.txt
60 + #fix the conf file to use the one from sys-apps/hwids
61 + sed -i "s#/usr/share/ipv6toolkit/oui.txt#${HWIDS_OUI_PATH}#" \
62 + "${ED}"/etc/ipv6toolkit.conf
63 + dodoc CHANGES.TXT README.TXT
64 +}