diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-09-18 23:24:50 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-09-18 23:24:50 +0000 |
commit | 35477a53d70382a5a03eecbbce1153a69466dc24 (patch) | |
tree | f2d54419efedf89412bc046f7c421acea6d751d2 /net-dns | |
parent | Version bump. (diff) | |
download | historical-35477a53d70382a5a03eecbbce1153a69466dc24.tar.gz historical-35477a53d70382a5a03eecbbce1153a69466dc24.tar.bz2 historical-35477a53d70382a5a03eecbbce1153a69466dc24.zip |
Respect LDFLAGS (bug #336187), CC and CFLAGS (by adapting the patch, mostly). Fix one compiler warning. Clean up patch.
Package-Manager: portage-2.2_rc83/cvs/Linux i686
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/dnshijacker/ChangeLog | 11 | ||||
-rw-r--r-- | net-dns/dnshijacker/Manifest | 5 | ||||
-rw-r--r-- | net-dns/dnshijacker/dnshijacker-1.3-r2.ebuild | 38 | ||||
-rw-r--r-- | net-dns/dnshijacker/files/1.3-libnet-1.0.patch | 53 |
4 files changed, 75 insertions, 32 deletions
diff --git a/net-dns/dnshijacker/ChangeLog b/net-dns/dnshijacker/ChangeLog index 437851218458..4fc00b0ad29e 100644 --- a/net-dns/dnshijacker/ChangeLog +++ b/net-dns/dnshijacker/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-dns/dnshijacker -# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/dnshijacker/ChangeLog,v 1.11 2008/01/21 18:36:04 armin76 Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/dnshijacker/ChangeLog,v 1.12 2010/09/18 23:24:50 jer Exp $ + +*dnshijacker-1.3-r2 (18 Sep 2010) + + 18 Sep 2010; Jeroen Roovers <jer@gentoo.org> files/1.3-libnet-1.0.patch, + +dnshijacker-1.3-r2.ebuild: + Respect LDFLAGS (bug #336187), CC and CFLAGS (by adapting the patch, + mostly). Fix one compiler warning. Clean up patch. 21 Jan 2008; Raúl Porcel <armin76@gentoo.org> -dnshijacker-1.3.ebuild: old diff --git a/net-dns/dnshijacker/Manifest b/net-dns/dnshijacker/Manifest index 357f84bc2cca..245f5e5536ff 100644 --- a/net-dns/dnshijacker/Manifest +++ b/net-dns/dnshijacker/Manifest @@ -1,5 +1,6 @@ -AUX 1.3-libnet-1.0.patch 2089 RMD160 a4b8a3f641ba641af48a19b3da33b83d35edd165 SHA1 ddfd94ddd0a02611777443e260413e8bddb4ddb5 SHA256 a3a0c31fa9dab768f80563051488bb19d5bb0e5733a0bfb19ff9c772e2f91389 +AUX 1.3-libnet-1.0.patch 1758 RMD160 8ee45c80e907b38c8ff0a047f912bdccd2b63e9b SHA1 afd56bbca9de526ec1e7f0451a61746e1b680907 SHA256 dbdee16f91a90dd80bba52e71b56afd50e651ea3df8ad1f8f168239ef17ba3fc DIST dnshijacker-1.3.tar.gz 23569 RMD160 4ee8f902b464381a87d7898f074e649d276fe061 SHA1 80373a4d9b545b1e06b1c816d7403b515ba429be SHA256 4040cb211860bec4dd43af09e157da25ebd20189d35884c11639d281ef7cd16a EBUILD dnshijacker-1.3-r1.ebuild 821 RMD160 5326a3096342a4b2b2c12d62a7a993bd79051b33 SHA1 d65581e957b77c7407f00c2034625113665b4876 SHA256 15d0b740e3da50a1bd3217e28c606600f84ff31d8b56545f1c44a6f98dd6c838 -MISC ChangeLog 1335 RMD160 b4db2e1c1e0cc936c3fbcc512ae62f82855efffd SHA1 8034cb09cd6de36885a6757f980aee707521f1f1 SHA256 31d91bd1113019cc1a253faaab38987666d432eb08e0e24ab36058011561580c +EBUILD dnshijacker-1.3-r2.ebuild 813 RMD160 c92315c92da1b405fdb69c0e31b21b11808204b0 SHA1 e01425dd9c727458dd7684be9e376e45ff450351 SHA256 147f164c4b8c2fed865fd5e4f21052c93e0a237d9e6088b7932dcf8360f2dc84 +MISC ChangeLog 1596 RMD160 b6efd5a34b0e53fb6f377a8758b1140b43f94b4f SHA1 83662ca71ba0becad0895b4babd5f6f52ac1df0d SHA256 4fe3c8590631149edeb94407de9240c1bd1fc771899bf1d5bbf475c63c90b823 MISC metadata.xml 314 RMD160 25181cde297628576a9545bea3a76601485bfaf3 SHA1 ac16b621acf5a22b64859e3323d466fb556fc4c8 SHA256 736baab77aea9c4da199c01e3cd6877c271bd02357ff9b41b537a2232c6e96d7 diff --git a/net-dns/dnshijacker/dnshijacker-1.3-r2.ebuild b/net-dns/dnshijacker/dnshijacker-1.3-r2.ebuild new file mode 100644 index 000000000000..48a3cbe99b16 --- /dev/null +++ b/net-dns/dnshijacker/dnshijacker-1.3-r2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/dnshijacker/dnshijacker-1.3-r2.ebuild,v 1.1 2010/09/18 23:24:50 jer Exp $ + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="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" +IUSE="" + +DEPEND="net-libs/libpcap + >=net-libs/libnet-1.0.2a-r3 + <net-libs/libnet-1.1" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-libnet-1.0.patch +} + +src_compile() { + emake CC=$(tc-getCC) || 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 index 08337d5c8282..b9fe3193d1b4 100644 --- a/net-dns/dnshijacker/files/1.3-libnet-1.0.patch +++ b/net-dns/dnshijacker/files/1.3-libnet-1.0.patch @@ -1,39 +1,36 @@ -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 +--- a/answer_dns.c 2002-10-28 02:58:37.000000000 +0100 ++++ b/answer_dns.c 2010-09-19 01:16:28.000000000 +0200 +@@ -5 +5 @@ +-#include <libnet.h>
++#include <libnet-1.0.h>
+--- a/ask_dns.c 2002-10-28 02:58:34.000000000 +0100 ++++ b/ask_dns.c 2010-09-19 01:16:28.000000000 +0200 +@@ -5 +5 @@ +-#include <libnet.h>
++#include <libnet-1.0.h>
+--- a/dnshijacker.h 2002-11-18 05:21:48.000000000 +0100 ++++ b/dnshijacker.h 2010-09-19 01:16:28.000000000 +0200 +@@ -10 +10 @@ +-#include <libnet.h> ++#include <libnet-1.0.h> +@@ -70,0 +71 @@ ++int dn_expand(u_char * dns, u_char *packet, char *data, char *name, int length); +--- a/Makefile 2002-12-02 01:51:09.000000000 +0100 ++++ b/Makefile 2010-09-19 01:16:28.000000000 +0200 @@ -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 ++ $(CC) $(CFLAGS) $(LDFLAGS) 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 ++ $(CC) $(CFLAGS) $(LDFLAGS) 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 ++ $(CC) $(CFLAGS) $(LDFLAGS) 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 ++ $(CC) $(CFLAGS) $(LDFLAGS) dnshijacker.c -lpcap -lnet-1.0 -lresolv `libnet-1.0-config --defines` -o dnshijacker -DDEBUG -ggdb +--- a/README 2002-10-30 06:12:09.000000000 +0100 ++++ b/README 2010-09-19 01:16:28.000000000 +0200 @@ -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> |