ipv6toolkit: remove old version

This commit is contained in:
blshkv 2016-10-03 10:08:59 +08:00
parent 44467ccab6
commit e3a10d85d6
No known key found for this signature in database
GPG key ID: 9CCF6FCB8D8A14BF
2 changed files with 0 additions and 73 deletions

View file

@ -1,29 +0,0 @@
--- 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

@ -1,44 +0,0 @@
# 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 to send arbitrary IPv6-based packets"
HOMEPAGE="http://www.si6networks.com/tools/ipv6toolkit/"
EGIT_REPO_URI="https://github.com/fgont/ipv6toolkit.git"
EGIT_COMMIT="98749ce154dd66f263b13190be72bf9faf778960"
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*
}