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/files
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/files')
-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
2 files changed, 46 insertions, 0 deletions
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>
+
+
+