summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-08-21 05:05:41 +0000
committerMike Frysinger <vapier@gentoo.org>2003-08-21 05:05:41 +0000
commit94cee67393c645a95cdbe810e306e46cfd747b7f (patch)
tree6bfbca98b4bfb489874b5d053b8553533c1a4fc0 /net-dns/dnshijacker
parentstupid cvs up/down (diff)
downloadgentoo-2-94cee67393c645a95cdbe810e306e46cfd747b7f.tar.gz
gentoo-2-94cee67393c645a95cdbe810e306e46cfd747b7f.tar.bz2
gentoo-2-94cee67393c645a95cdbe810e306e46cfd747b7f.zip
patch to compile against SLOT-ed libnet #17772
Diffstat (limited to 'net-dns/dnshijacker')
-rw-r--r--net-dns/dnshijacker/ChangeLog7
-rw-r--r--net-dns/dnshijacker/dnshijacker-1.3-r1.ebuild37
-rw-r--r--net-dns/dnshijacker/files/1.3-libnet-1.0.patch39
-rw-r--r--net-dns/dnshijacker/files/digest-dnshijacker-1.3-r11
4 files changed, 83 insertions, 1 deletions
diff --git a/net-dns/dnshijacker/ChangeLog b/net-dns/dnshijacker/ChangeLog
index e2bb00382a9a..d8061a0ebb32 100644
--- a/net-dns/dnshijacker/ChangeLog
+++ b/net-dns/dnshijacker/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-dns/dnshijacker
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/dnshijacker/ChangeLog,v 1.4 2003/05/04 19:17:05 mholzer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/dnshijacker/ChangeLog,v 1.5 2003/08/21 05:04:32 vapier Exp $
+
+*dnshijacker-1.3-r1 (21 Aug 2003)
+
+ 21 Aug 2003; Mike Frysinger <vapier@gentoo.org> :
+ Patch to compile against SLOT-ed libnet-1.0.x #17772.
*dnshijacker-1.3 (07 Mar 2003)
diff --git a/net-dns/dnshijacker/dnshijacker-1.3-r1.ebuild b/net-dns/dnshijacker/dnshijacker-1.3-r1.ebuild
new file mode 100644
index 000000000000..d45e4860a69c
--- /dev/null
+++ b/net-dns/dnshijacker/dnshijacker-1.3-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/dnshijacker/dnshijacker-1.3-r1.ebuild,v 1.1 2003/08/21 05:04:32 vapier Exp $
+
+inherit eutils
+
+DESCRIPTION="dnshijacker is a libnet/libpcap based packet sniffer and spoofer"
+HOMEPAGE="http://pedram.redhive.com/projects.php"
+SRC_URI="http://pedram.redhive.com/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND=">=net-libs/libpcap-0.7.1
+ >=net-libs/libnet-1.0.2a-r3
+ <net-libs/libnet-1.1"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-libnet-1.0.patch
+ sed -i "s|gcc |gcc ${CFLAGS} |g" Makefile || die
+}
+
+src_compile() {
+ make || die
+}
+
+src_install() {
+ dosbin dnshijacker ask_dns answer_dns
+
+ insinto /etc/dnshijacker
+ doins ftable
+
+ dodoc README
+}
diff --git a/net-dns/dnshijacker/files/1.3-libnet-1.0.patch b/net-dns/dnshijacker/files/1.3-libnet-1.0.patch
new file mode 100644
index 000000000000..08337d5c8282
--- /dev/null
+++ b/net-dns/dnshijacker/files/1.3-libnet-1.0.patch
@@ -0,0 +1,39 @@
+diff -U 0 -r dnshijacker-1.3.orig/Makefile dnshijacker-1.3/Makefile
+--- dnshijacker-1.3.orig/Makefile 2003-08-19 15:39:54.068117160 -0400
++++ dnshijacker-1.3/Makefile 2003-08-19 15:40:26.836135664 -0400
+@@ -4 +4 @@
+- gcc ask_dns.c -lnet `libnet-config --defines` -o ask_dns
++ gcc ask_dns.c -lnet-1.0 `libnet-1.0-config --defines` -o ask_dns
+@@ -7 +7 @@
+- gcc answer_dns.c -lnet `libnet-config --defines` -o answer_dns
++ gcc answer_dns.c -lnet-1.0 `libnet-1.0-config --defines` -o answer_dns
+@@ -10 +10 @@
+- gcc dnshijacker.c -lpcap -lnet -lresolv `libnet-config --defines` -o dnshijacker
++ gcc dnshijacker.c -lpcap -lnet-1.0 -lresolv `libnet-1.0-config --defines` -o dnshijacker
+@@ -13 +13 @@
+- gcc dnshijacker.c -lpcap -lnet -lresolv `libnet-config --defines` -o dnshijacker -DDEBUG -ggdb
++ gcc dnshijacker.c -lpcap -lnet-1.0 -lresolv `libnet-1.0-config --defines` -o dnshijacker -DDEBUG -ggdb
+diff -U 0 -r dnshijacker-1.3.orig/README dnshijacker-1.3/README
+--- dnshijacker-1.3.orig/README 2003-08-19 15:39:54.068117160 -0400
++++ dnshijacker-1.3/README 2003-08-19 15:40:26.840135056 -0400
+@@ -61 +61 @@
+- gcc dnshijacker.c -lpcap -lnet `libnet-config --defines` -o dnshijacker
++ gcc dnshijacker.c -lpcap -lnet-1.0 `libnet-1.0-config --defines` -o dnshijacker
+diff -U 0 -r dnshijacker-1.3.orig/answer_dns.c dnshijacker-1.3/answer_dns.c
+--- dnshijacker-1.3.orig/answer_dns.c 2003-08-19 15:39:54.069117008 -0400
++++ dnshijacker-1.3/answer_dns.c 2003-08-19 15:40:48.815794248 -0400
+@@ -5 +5 @@
+-#include <libnet.h>
++#include <libnet-1.0.h>
+diff -U 0 -r dnshijacker-1.3.orig/ask_dns.c dnshijacker-1.3/ask_dns.c
+--- dnshijacker-1.3.orig/ask_dns.c 2003-08-19 15:39:54.068117160 -0400
++++ dnshijacker-1.3/ask_dns.c 2003-08-19 15:40:48.816794096 -0400
+@@ -5 +5 @@
+-#include <libnet.h>
++#include <libnet-1.0.h>
+diff -U 0 -r dnshijacker-1.3.orig/dnshijacker.h dnshijacker-1.3/dnshijacker.h
+--- dnshijacker-1.3.orig/dnshijacker.h 2003-08-19 15:39:54.068117160 -0400
++++ dnshijacker-1.3/dnshijacker.h 2003-08-19 15:40:48.818793792 -0400
+@@ -10 +10 @@
+-#include <libnet.h>
++#include <libnet-1.0.h>
diff --git a/net-dns/dnshijacker/files/digest-dnshijacker-1.3-r1 b/net-dns/dnshijacker/files/digest-dnshijacker-1.3-r1
new file mode 100644
index 000000000000..4f6a0e3932dd
--- /dev/null
+++ b/net-dns/dnshijacker/files/digest-dnshijacker-1.3-r1
@@ -0,0 +1 @@
+MD5 f7e8f1432de7f63538b3a7ed91ecf2bd dnshijacker-1.3.tar.gz 23569