summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2010-09-15 01:49:59 +0000
committerMichael Weber <xmw@gentoo.org>2010-09-15 01:49:59 +0000
commitb2e2acc82a779c606f1ef6417705310395bb3a95 (patch)
treeeb12f78b9729e468e4950a7b56b316cc3639f373 /net-analyzer/thc-ipv6
parentRespect LDFLAGS (bug #337322), CC. Fix HOMEPAGE and SRC_URI. (diff)
downloadhistorical-b2e2acc82a779c606f1ef6417705310395bb3a95.tar.gz
historical-b2e2acc82a779c606f1ef6417705310395bb3a95.tar.bz2
historical-b2e2acc82a779c606f1ef6417705310395bb3a95.zip
Initial import
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'net-analyzer/thc-ipv6')
-rw-r--r--net-analyzer/thc-ipv6/ChangeLog12
-rw-r--r--net-analyzer/thc-ipv6/files/thc-ipv6-1.2-Makefile25
-rw-r--r--net-analyzer/thc-ipv6/files/thc-ipv6-1.2-header.patch21
-rw-r--r--net-analyzer/thc-ipv6/metadata.xml10
-rw-r--r--net-analyzer/thc-ipv6/thc-ipv6-1.2.ebuild37
5 files changed, 105 insertions, 0 deletions
diff --git a/net-analyzer/thc-ipv6/ChangeLog b/net-analyzer/thc-ipv6/ChangeLog
new file mode 100644
index 000000000000..03dc95ed9cd0
--- /dev/null
+++ b/net-analyzer/thc-ipv6/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for net-analyzer/thc-ipv6
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/thc-ipv6/ChangeLog,v 1.1 2010/09/15 01:49:58 xmw Exp $
+
+*thc-ipv6-1.2 (15 Sep 2010)
+
+ 15 Sep 2010; Michael Weber <xmw@gentoo.org> +thc-ipv6-1.2.ebuild,
+ +files/thc-ipv6-1.2-Makefile, +files/thc-ipv6-1.2-header.patch,
+ +metadata.xml:
+ Initial import, thanks to Christian Neukirchen <chneukirchen@gmail.com>
+ for the Makefile.
+
diff --git a/net-analyzer/thc-ipv6/files/thc-ipv6-1.2-Makefile b/net-analyzer/thc-ipv6/files/thc-ipv6-1.2-Makefile
new file mode 100644
index 000000000000..ce177a8061e4
--- /dev/null
+++ b/net-analyzer/thc-ipv6/files/thc-ipv6-1.2-Makefile
@@ -0,0 +1,25 @@
+CC=gcc
+#CFLAGS?=-Wall -ggdb
+CFLAGS?=-O2
+LDFLAGS+=-lpcap -lssl -lcrypto -lpthread
+PROGRAMS=parasite6 dos-new-ip6 detect-new-ip6 fake_router6 fake_advertise6 fake_mld6 fake_mipv6 redir6 smurf6 alive6 toobig6 rsmurf6 implementation6 implementation6d sendpees6 fuzz_ip6 flood_router6 flood_advertise6 trace6 dnsdict6 recon6
+LIBS=thc-ipv6-lib.o
+
+PREFIX = /usr/local
+MANPREFIX = ${PREFIX}/share/man
+
+all: $(LIBS) $(PROGRAMS)
+
+%: %.c $(LIBS)
+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
+
+install: all
+ install -m0755 -d ${DESTDIR}${PREFIX}/bin
+ install -m0755 $(PROGRAMS) ${DESTDIR}${PREFIX}/bin
+ install -m0755 -d ${DESTDIR}${MANPREFIX}/man8
+ install -m0644 -D thc-ipv6.8 ${DESTDIR}${MANPREFIX}/man8
+
+clean:
+ rm -f $(PROGRAMS) $(LIBS) core DEADJOE *~
+
+.PHONY: all install clean
diff --git a/net-analyzer/thc-ipv6/files/thc-ipv6-1.2-header.patch b/net-analyzer/thc-ipv6/files/thc-ipv6-1.2-header.patch
new file mode 100644
index 000000000000..e5d9a2faac91
--- /dev/null
+++ b/net-analyzer/thc-ipv6/files/thc-ipv6-1.2-header.patch
@@ -0,0 +1,21 @@
+--- thc-ipv6.h 2010-06-24 13:44:48.000000000 +0200
++++ thc-ipv6.h 2010-09-15 03:33:04.366387803 +0200
+@@ -284,6 +284,7 @@
+
+ extern thc_key_t *thc_generate_key(int key_len);
+ extern thc_cga_hdr *thc_generate_cga(unsigned char *prefix, thc_key_t *key, unsigned char **cga);
++int thc_add_send(unsigned char *pkt, int *pkt_len, int type, int code, unsigned int flags, unsigned char *data, int data_len, thc_cga_hdr *cga_hdr, thc_key_t *key, unsigned char *tag, int checksum);
+
+ #endif
+
+--- thc-ipv6-lib.c 2010-06-24 13:44:48.000000000 +0200
++++ thc-ipv6-lib.c 2010-09-15 03:35:35.064387802 +0200
+@@ -41,6 +41,8 @@
+ /* libssl */
+ #include <openssl/evp.h>
+ #include <openssl/sha.h>
++#include <openssl/rsa.h>
++#include <openssl/x509.h>
+
+
+
diff --git a/net-analyzer/thc-ipv6/metadata.xml b/net-analyzer/thc-ipv6/metadata.xml
new file mode 100644
index 000000000000..02b909e46b7e
--- /dev/null
+++ b/net-analyzer/thc-ipv6/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+<email>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
+
diff --git a/net-analyzer/thc-ipv6/thc-ipv6-1.2.ebuild b/net-analyzer/thc-ipv6/thc-ipv6-1.2.ebuild
new file mode 100644
index 000000000000..ecc73ef8c9bc
--- /dev/null
+++ b/net-analyzer/thc-ipv6/thc-ipv6-1.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/thc-ipv6/thc-ipv6-1.2.ebuild,v 1.1 2010/09/15 01:49:58 xmw Exp $
+
+EAPI=2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="complete tool set to attack the inherent protocol weaknesses of IPV6 and ICMP6"
+HOMEPAGE="http://freeworld.thc.org/thc-ipv6/"
+SRC_URI="http://freeworld.thc.org/releases/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="net-libs/libpcap
+ dev-libs/openssl"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ rm Makefile || die
+ cp "${FILESDIR}"/${P}-Makefile Makefile || die
+
+ epatch "${FILESDIR}"/${P}-header.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="/usr" install || die
+
+ dodoc CHANGES README || die
+}