# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/ipv6-toolkit/ipv6-toolkit-1.3.1.ebuild,v 1.1 2013/02/19 19:22:31 robbat2 Exp $ 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} }