commit:     86ce85bd4b8909a89321b4f33a4ca1e22b7af63c
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  8 09:14:51 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Wed Jan  8 09:16:24 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86ce85bd

net-analyzer/ipv6toolkit: Version 2.1_p20190919

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 net-analyzer/ipv6toolkit/Manifest                  |  1 +
 .../ipv6toolkit/ipv6toolkit-2.1_p20190919.ebuild   | 45 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/net-analyzer/ipv6toolkit/Manifest 
b/net-analyzer/ipv6toolkit/Manifest
index 0f2bc79a5b2..c09196eaf27 100644
--- a/net-analyzer/ipv6toolkit/Manifest
+++ b/net-analyzer/ipv6toolkit/Manifest
@@ -1 +1,2 @@
 DIST ipv6toolkit-2.0_p20160422.tar.gz 796716 BLAKE2B 
468375afbf385ac9b571708be1baff0b0c56a0895bb73f3711522120b0e5fdfded3d73fea2a7d48b38f1e6387e0d63674c08eb503281f6eb635ea131ae67ec47
 SHA512 
532d6b76159fca03bdcebe341540a4071d2381dd3046469d0dfa5e8eecda5ffb4182d40658ef14c67bd11b781773bff1192e96d0ac4210c5ca095c6475d6c26d
+DIST ipv6toolkit-2.1_p20190919.tar.gz 979235 BLAKE2B 
1b652b00874b9a71a5e5b86643d9c71fc02917af93d9730e7e4be7e5203d07dfef5bc7d1bb0453a6bf9dece69f7f4256912f0902132dd21530ae8ea9e94b8b4f
 SHA512 
78e7565f4827d21573ced06002311a4f3736df71846085b3e8e47e0d6aebeaa4e60881c148c3c65ee010ffcfb2bf3ad56bb2625203aff5b0fdf40fbb7f37ecb9

diff --git a/net-analyzer/ipv6toolkit/ipv6toolkit-2.1_p20190919.ebuild 
b/net-analyzer/ipv6toolkit/ipv6toolkit-2.1_p20190919.ebuild
new file mode 100644
index 00000000000..6a4df21782c
--- /dev/null
+++ b/net-analyzer/ipv6toolkit/ipv6toolkit-2.1_p20190919.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit toolchain-funcs
+
+DESCRIPTION="Set of IPv6 security/trouble-shooting tools to send arbitrary 
IPv6-based packets"
+HOMEPAGE="https://www.si6networks.com/tools/ipv6toolkit/";
+SNAPSHOT="20de5f297f73b6a8115d1eac52adfe0b6df5b3ed"
+SRC_URI="https://github.com/fgont/ipv6toolkit/archive/${SNAPSHOT}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}"/"${PN}"-"${SNAPSHOT}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+       net-libs/libpcap[ipv6(+)]
+"
+RDEPEND="
+       ${DEPEND}
+       sys-apps/hwids
+"
+
+HWIDS_OUI_PATH=/usr/share/misc/oui.txt
+
+src_prepare() {
+       default
+       sed -i "s#/usr/share/ipv6toolkit/oui.txt#${HWIDS_OUI_PATH}#" \
+               manuals/ipv6toolkit.conf.5
+}
+src_compile() {
+       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" PREFIX=/usr
+}
+
+src_install() {
+       dodir /etc
+       emake install DESTDIR="${ED}" PREFIX=/usr
+       #remove the included oui file
+       rm -f "${D}"/usr/share/ipv6toolkit/oui.txt
+       #fix the conf file to use the one from sys-apps/hwids
+       sed -i "s#/usr/share/ipv6toolkit/oui.txt#${HWIDS_OUI_PATH}#" \
+               "${ED}"/etc/ipv6toolkit.conf
+       dodoc CHANGES.TXT README.TXT
+}

Reply via email to