blob: 8a862e677183bf7855d7cb0232d73d2b9c2ab1c5 (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3 toolchain-funcs
DESCRIPTION="Set of IPv6 security/trouble-shooting tools to send arbitrary IPv6-based packets"
HOMEPAGE="https://www.si6networks.com/tools/ipv6toolkit/"
EGIT_REPO_URI="https://github.com/fgont/ipv6toolkit"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
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
}
|