profile: fork and add ipv6toolkit

This commit is contained in:
blshkv 2016-01-08 09:58:20 +08:00
parent 54912ebac8
commit fc66546bdf
5 changed files with 92 additions and 4 deletions

View file

@ -0,0 +1,29 @@
--- ipv6-toolkit-2.0/work/ipv6toolkit-v2.0/tools/scan6.c.orig 2015-04-05 16:03:21.000000000 +0200
+++ ipv6-toolkit-2.0/work/ipv6toolkit-v2.0/tools/scan6.c 2015-04-06 12:31:01.000000000 +0200
@@ -56,6 +56,13 @@
#include "ipv6toolkit.h"
#include "libipv6.h"
+#ifndef OUI_DATABASE // keep this the same as the Makefiles
+#define OUI_DATABASE "/usr/share/ipv6toolkit/oui.txt"
+#endif
+#ifndef SNPN_DATABASE // keep this the same as the Makefiles
+#define SNPN_DATABASE "/usr/share/ipv6toolkit/service-names-port-numbers.csv"
+#endif
+
/* #define DEBUG */
/* Function prototypes */
@@ -5565,10 +5572,10 @@ int process_config_file(const char *path
fclose(fp);
if(!fname_f)
- strncpy(fname, "/usr/local/share/ipv6toolkit/oui.txt", MAX_FILENAME_SIZE-1);
+ strncpy(fname, OUI_DATABASE, MAX_FILENAME_SIZE-1);
if(!portsfname_f)
- strncpy(fname, "/usr/local/share/ipv6toolkit/service-names-port-numbers.csv", MAX_FILENAME_SIZE-1);
+ strncpy(fname, SNPN_DATABASE, MAX_FILENAME_SIZE-1);
return(1);
}

View file

@ -0,0 +1,44 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit git-2 eutils
DESCRIPTION="Set of IPv6 security/trouble-shooting tools, that can send arbitrary IPv6-based packets"
HOMEPAGE="http://www.si6networks.com/tools/ipv6toolkit/"
EGIT_REPO_URI="https://github.com/fgont/ipv6toolkit.git"
EGIT_COMMIT="4a5e945866baa79695df250f2f30139ac3875208"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="net-libs/libpcap[ipv6]"
RDEPEND="${DEPEND}
sys-apps/hwids"
HWIDS_OUI_PATH=/usr/share/misc/oui.txt
SNPN_PATH=/usr/share/ipv6toolkit/service-names-port-numbers.csv
src_prepare() {
epatch "${FILESDIR}"/${PN}-2.0-oui-snpn-path.patch
cd "${S}"
sed -i "s,/usr/share/[^[:space:]\"']*/?oui.txt,${HWIDS_OUI_PATH},g" \
manuals/ipv6toolkit.conf.5 \
|| die "failed to sed out oui path"
}
src_compile() {
emake CFLAGS="-Wall ${CFLAGS}" OUI_DATABASE="${HWIDS_OUI_PATH}" SNPN_PATH="${SNPN_PATH}" PREFIX=/usr
}
src_install() {
dodir /etc
emake install DESTDIR="${D}" OUI_DATABASE="${HWIDS_OUI_PATH}" SNPN_PATH="${SNPN_PATH}" PREFIX=/usr
rm -f "${D}"/usr/share/ipv6toolkit/oui.txt
rmdir "${D}"/usr/share/ipv6toolkit
dodoc CHANGES.TXT README*
}

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>robbat2@gentoo.org</email>
<name>Robin H. Johnson</name>
</maintainer>
<longdescription lang="en">
The SI6 Networks' IPv6 toolkit is a set of IPv6 security/trouble-shooting tools, that can send arbitrary IPv6-based packets.
</longdescription>
</pkgmetadata>

View file

@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# $Id$
EAPI="5"
@ -26,7 +26,8 @@ RDEPEND="${DEPEND}
net-analyzer/wireshark
!minipentoo? (
ipv6? ( net-analyzer/thc-ipv6 )
ipv6? ( net-analyzer/thc-ipv6
net-analyzer/ipv6-toolkit )
java? ( ldap? ( net-nds/jxplorer ) )
x86? ( net-analyzer/angst )
net-analyzer/aimsniff

View file

@ -43,8 +43,10 @@ net-analyzer/cloudshark
~net-analyzer/hunt-1.5-r1
~net-analyzer/hydra-8.1
~net-analyzer/hyenae-0.36_p1
net-analyzer/ike-scan
=net-analyzer/ike-scan-1.9*
~net-analyzer/inguma-0.4
~net-analyzer/ipv6-toolkit-1.4.1
=net-analyzer/ipv6toolkit-2.0*
~net-analyzer/libnasl-2.2.9
~net-analyzer/loki-0.2.7
~net-analyzer/masscan-1.0.3