1 |
commit: 86ce85bd4b8909a89321b4f33a4ca1e22b7af63c |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 8 09:14:51 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=86ce85bd |
7 |
|
8 |
net-analyzer/ipv6toolkit: Version 2.1_p20190919 |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/ipv6toolkit/Manifest | 1 + |
14 |
.../ipv6toolkit/ipv6toolkit-2.1_p20190919.ebuild | 45 ++++++++++++++++++++++ |
15 |
2 files changed, 46 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/ipv6toolkit/Manifest b/net-analyzer/ipv6toolkit/Manifest |
18 |
index 0f2bc79a5b2..c09196eaf27 100644 |
19 |
--- a/net-analyzer/ipv6toolkit/Manifest |
20 |
+++ b/net-analyzer/ipv6toolkit/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST ipv6toolkit-2.0_p20160422.tar.gz 796716 BLAKE2B 468375afbf385ac9b571708be1baff0b0c56a0895bb73f3711522120b0e5fdfded3d73fea2a7d48b38f1e6387e0d63674c08eb503281f6eb635ea131ae67ec47 SHA512 532d6b76159fca03bdcebe341540a4071d2381dd3046469d0dfa5e8eecda5ffb4182d40658ef14c67bd11b781773bff1192e96d0ac4210c5ca095c6475d6c26d |
23 |
+DIST ipv6toolkit-2.1_p20190919.tar.gz 979235 BLAKE2B 1b652b00874b9a71a5e5b86643d9c71fc02917af93d9730e7e4be7e5203d07dfef5bc7d1bb0453a6bf9dece69f7f4256912f0902132dd21530ae8ea9e94b8b4f SHA512 78e7565f4827d21573ced06002311a4f3736df71846085b3e8e47e0d6aebeaa4e60881c148c3c65ee010ffcfb2bf3ad56bb2625203aff5b0fdf40fbb7f37ecb9 |
24 |
|
25 |
diff --git a/net-analyzer/ipv6toolkit/ipv6toolkit-2.1_p20190919.ebuild b/net-analyzer/ipv6toolkit/ipv6toolkit-2.1_p20190919.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..6a4df21782c |
28 |
--- /dev/null |
29 |
+++ b/net-analyzer/ipv6toolkit/ipv6toolkit-2.1_p20190919.ebuild |
30 |
@@ -0,0 +1,45 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+inherit toolchain-funcs |
36 |
+ |
37 |
+DESCRIPTION="Set of IPv6 security/trouble-shooting tools to send arbitrary IPv6-based packets" |
38 |
+HOMEPAGE="https://www.si6networks.com/tools/ipv6toolkit/" |
39 |
+SNAPSHOT="20de5f297f73b6a8115d1eac52adfe0b6df5b3ed" |
40 |
+SRC_URI="https://github.com/fgont/ipv6toolkit/archive/${SNAPSHOT}.tar.gz -> ${P}.tar.gz" |
41 |
+S="${WORKDIR}"/"${PN}"-"${SNAPSHOT}" |
42 |
+ |
43 |
+LICENSE="GPL-3" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+ |
47 |
+DEPEND=" |
48 |
+ net-libs/libpcap[ipv6(+)] |
49 |
+" |
50 |
+RDEPEND=" |
51 |
+ ${DEPEND} |
52 |
+ sys-apps/hwids |
53 |
+" |
54 |
+ |
55 |
+HWIDS_OUI_PATH=/usr/share/misc/oui.txt |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ default |
59 |
+ sed -i "s#/usr/share/ipv6toolkit/oui.txt#${HWIDS_OUI_PATH}#" \ |
60 |
+ manuals/ipv6toolkit.conf.5 |
61 |
+} |
62 |
+src_compile() { |
63 |
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" PREFIX=/usr |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ dodir /etc |
68 |
+ emake install DESTDIR="${ED}" PREFIX=/usr |
69 |
+ #remove the included oui file |
70 |
+ rm -f "${D}"/usr/share/ipv6toolkit/oui.txt |
71 |
+ #fix the conf file to use the one from sys-apps/hwids |
72 |
+ sed -i "s#/usr/share/ipv6toolkit/oui.txt#${HWIDS_OUI_PATH}#" \ |
73 |
+ "${ED}"/etc/ipv6toolkit.conf |
74 |
+ dodoc CHANGES.TXT README.TXT |
75 |
+} |