summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero_Chaos <zerochaos@gentoo.org>2016-10-05 23:23:36 -0400
committerZero_Chaos <zerochaos@gentoo.org>2016-10-05 23:23:36 -0400
commit90c2a473713f966f07aff10b48b25a626e8f3081 (patch)
treee566e71dccdbf390a46ad255d325b1ea224408ec /net-analyzer/ipv6toolkit/ipv6toolkit-2.0_p20160422.ebuild
parentnet-analyzer/ipv6-toolkit: remove, moved (with cleanup) to ipv6toolkit (diff)
downloadgentoo-90c2a473713f966f07aff10b48b25a626e8f3081.tar.gz
gentoo-90c2a473713f966f07aff10b48b25a626e8f3081.tar.bz2
gentoo-90c2a473713f966f07aff10b48b25a626e8f3081.zip
net-analyzer/ipv6toolkit: despite git not having a tag, there was a 2.0 release which makes this p not pre
Package-Manager: portage-2.3.1
Diffstat (limited to 'net-analyzer/ipv6toolkit/ipv6toolkit-2.0_p20160422.ebuild')
-rw-r--r--net-analyzer/ipv6toolkit/ipv6toolkit-2.0_p20160422.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/net-analyzer/ipv6toolkit/ipv6toolkit-2.0_p20160422.ebuild b/net-analyzer/ipv6toolkit/ipv6toolkit-2.0_p20160422.ebuild
new file mode 100644
index 000000000000..ca04eb19573f
--- /dev/null
+++ b/net-analyzer/ipv6toolkit/ipv6toolkit-2.0_p20160422.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Set of IPv6 security/trouble-shooting tools to send arbitrary IPv6-based packets"
+HOMEPAGE="http://www.si6networks.com/tools/ipv6toolkit/"
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE=""
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/fgont/ipv6toolkit.git"
+ inherit git-r3
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64 ~x86"
+ SNAPSHOT="d14d90969e88a455e4ca8ea0ea7d88c9b7fb5c9f"
+ SRC_URI="https://github.com/fgont/ipv6toolkit/archive/${SNAPSHOT}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}"/"${PN}"-"${SNAPSHOT}"
+fi
+
+DEPEND="net-libs/libpcap[ipv6(+)]"
+RDEPEND="${DEPEND}
+ sys-apps/hwids"
+
+HWIDS_OUI_PATH=/usr/share/misc/oui.txt
+
+src_prepare() {
+ sed -i "s#/usr/share/ipv6toolkit/oui.txt#${HWIDS_OUI_PATH}#" \
+ manuals/ipv6toolkit.conf.5
+}
+src_compile() {
+ emake 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
+}