mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-05 11:00:48 +02:00
ipv6toolkit: remove old version
This commit is contained in:
parent
44467ccab6
commit
e3a10d85d6
2 changed files with 0 additions and 73 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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*
|
||||
}
|
||||
Loading…
Reference in a new issue