summaryrefslogtreecommitdiff
blob: fb07f0477001c7770261a3181501b14bf60f1c3e (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=4

inherit eutils

DESCRIPTION="Set of IPv6 security/trouble-shooting tools, that can send arbitrary IPv6-based packets"
HOMEPAGE="http://www.si6networks.com/tools/ipv6toolkit/"
MY_P="${PN}-v${PV}"
SRC_URI="http://www.si6networks.com/tools/ipv6toolkit/${MY_P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="net-libs/libpcap[ipv6]"
RDEPEND="${DEPEND}
		 sys-apps/hwids"

S="${WORKDIR}/${MY_P}"

src_prepare() {
	epatch "${FILESDIR}"/ipv6-toolkit-1.3.1-destdir.patch
	cd "${S}"
	sed -i 's,/usr/share/ipv6toolkit/oui.txt,/usr/share/misc/oui.txt,g' \
		data/ipv6toolkit.conf \
		manuals/ipv6toolkit.conf.5 \
		tools/scan6.c || die "failed to sed out oui path"
}

src_compile() {
	emake CFLAGS="-Wall ${CFLAGS}"
}

src_install() {
	emake install DESTDIR="${D}"
	rm -f "${D}"/usr/share/ipv6toolkit/oui.txt
	dodoc README* manuals/*{odt,pdf}
}