blob: 1570fd66980e7f12ace700dc87a90ae4fb9f77d9 (
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
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Set of IPv6 security/trouble-shooting tools to send arbitrary IPv6-based packets"
HOMEPAGE="https://www.si6networks.com/tools/ipv6toolkit/"
SRC_URI="https://github.com/fgont/ipv6toolkit/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="
net-libs/libpcap[ipv6(+)]
"
RDEPEND="
${DEPEND}
sys-apps/hwdata
"
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" PREFIX="${EPREFIX}/usr"
sed -i -e "s:ipv6toolkit/oui.txt:hwdata/oui.txt:" \
data/ipv6toolkit.conf \
manuals/ipv6toolkit.conf.5 || die
}
src_install() {
dodir /etc
emake install DESTDIR="${D}" PREFIX="${EPREFIX}/usr"
# Remove the included oui file
rm "${ED}"/usr/share/ipv6toolkit/oui.txt || die
dodoc CHANGES.TXT README.TXT
}
|