diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-09-20 11:07:17 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-09-20 11:07:17 +0000 |
commit | f78cbca98d99d8cff0b08effba3a971ba042954b (patch) | |
tree | 5e932cfec88e986a02b1afaf4d0e33a41bee1d84 /net-analyzer/dsniff | |
parent | This package is not compatible with recent exo, or vala. Fix dependencies wrt... (diff) | |
download | gentoo-2-f78cbca98d99d8cff0b08effba3a971ba042954b.tar.gz gentoo-2-f78cbca98d99d8cff0b08effba3a971ba042954b.tar.bz2 gentoo-2-f78cbca98d99d8cff0b08effba3a971ba042954b.zip |
Fix parallel make issue by Nathan Phillip Brink (ohnobinki, bug #338086). Name patches consistently. Merge Makefile.ini patches.
(Portage version: 2.2_rc84/cvs/Linux i686)
Diffstat (limited to 'net-analyzer/dsniff')
-rw-r--r-- | net-analyzer/dsniff/ChangeLog | 11 | ||||
-rw-r--r-- | net-analyzer/dsniff/dsniff-2.4_beta1-r4.ebuild | 4 | ||||
-rw-r--r-- | net-analyzer/dsniff/dsniff-2.4_beta1-r5.ebuild | 59 | ||||
-rw-r--r-- | net-analyzer/dsniff/files/2.3-makefile.patch | 4 | ||||
-rw-r--r-- | net-analyzer/dsniff/files/2.3-openssl.patch | 12 | ||||
-rw-r--r-- | net-analyzer/dsniff/files/2.4_beta1-httppostfix.patch (renamed from net-analyzer/dsniff/files/dsniff-httppostfix.patch) | 4 | ||||
-rw-r--r-- | net-analyzer/dsniff/files/2.4_beta1-make.patch | 51 |
7 files changed, 126 insertions, 19 deletions
diff --git a/net-analyzer/dsniff/ChangeLog b/net-analyzer/dsniff/ChangeLog index b4fb52592e25..fbf3d31c4228 100644 --- a/net-analyzer/dsniff/ChangeLog +++ b/net-analyzer/dsniff/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for net-analyzer/dsniff # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/dsniff/ChangeLog,v 1.53 2010/05/07 18:10:51 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/dsniff/ChangeLog,v 1.54 2010/09/20 11:07:17 jer Exp $ + +*dsniff-2.4_beta1-r5 (20 Sep 2010) + + 20 Sep 2010; Jeroen Roovers <jer@gentoo.org> files/2.3-makefile.patch, + dsniff-2.4_beta1-r4.ebuild, -files/2.3-openssl.patch, + +dsniff-2.4_beta1-r5.ebuild, +files/2.4_beta1-httppostfix.patch, + +files/2.4_beta1-make.patch, -files/dsniff-httppostfix.patch: + Fix parallel make issue by Nathan Phillip Brink (ohnobinki, bug #338086). + Name patches consistently. Merge Makefile.ini patches. 07 May 2010; Raúl Porcel <armin76@gentoo.org> dsniff-2.4_beta1-r4.ebuild: alpha stable wrt #312835 diff --git a/net-analyzer/dsniff/dsniff-2.4_beta1-r4.ebuild b/net-analyzer/dsniff/dsniff-2.4_beta1-r4.ebuild index 919cb57b8dbe..256f8950a16f 100644 --- a/net-analyzer/dsniff/dsniff-2.4_beta1-r4.ebuild +++ b/net-analyzer/dsniff/dsniff-2.4_beta1-r4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/dsniff/dsniff-2.4_beta1-r4.ebuild,v 1.6 2010/05/07 18:10:51 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/dsniff/dsniff-2.4_beta1-r4.ebuild,v 1.7 2010/09/20 11:07:17 jer Exp $ inherit autotools eutils flag-o-matic toolchain-funcs @@ -37,7 +37,7 @@ src_unpack() { epatch "${FILESDIR}"/2.3-makefile.patch # Bug 125084 - epatch "${FILESDIR}"/${PN}-httppostfix.patch + epatch "${FILESDIR}"/${PV}-httppostfix.patch eautoreconf } diff --git a/net-analyzer/dsniff/dsniff-2.4_beta1-r5.ebuild b/net-analyzer/dsniff/dsniff-2.4_beta1-r5.ebuild new file mode 100644 index 000000000000..935258a0aba7 --- /dev/null +++ b/net-analyzer/dsniff/dsniff-2.4_beta1-r5.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/dsniff/dsniff-2.4_beta1-r5.ebuild,v 1.1 2010/09/20 11:07:17 jer Exp $ + +EAPI="2" + +inherit autotools eutils flag-o-matic toolchain-funcs + +DESCRIPTION="A collection of tools for network auditing and penetration testing" +HOMEPAGE="http://monkey.org/~dugsong/dsniff/" +SRC_URI="http://monkey.org/~dugsong/${PN}/beta/${P/_beta/b}.tar.gz + mirror://debian/pool/main/d/${PN}/${PN}_2.4b1+debian-18.diff.gz" +LICENSE="BSD" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" +IUSE="X" + +DEPEND="net-libs/libpcap + >=net-libs/libnet-1.1.2.1-r1 + >=net-libs/libnids-1.21 + >=dev-libs/openssl-0.9.6e + >=sys-libs/db-4.2.52_p4 + X? ( x11-libs/libXmu )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P/_beta1/}" + +src_prepare() { + # Debian's patchset + epatch "${DISTDIR}"/${PN}_2.4b1+debian-18.diff.gz + epatch dsniff-2.4b1+debian/debian/patches/*.dpatch + + # Bug 125084 + epatch "${FILESDIR}"/${PV}-httppostfix.patch + + # various Makefile.in patches + epatch "${FILESDIR}"/${PV}-make.patch + + eautoreconf +} + +src_configure() { + econf \ + $(use_with X x) \ + || die "econf failed" +} + +src_compile() { + emake CC="$(tc-getCC)" || die "emake failed" +} + +src_install() { + emake install install_prefix="${D}" || die "emake install failed" + dodir /etc/dsniff + cp "${D}"/usr/share/dsniff/{dnsspoof.hosts,dsniff.{magic,services}} \ + "${D}"/etc/dsniff/ + dodoc CHANGES README TODO +} diff --git a/net-analyzer/dsniff/files/2.3-makefile.patch b/net-analyzer/dsniff/files/2.3-makefile.patch index 83beecee6d35..6225ec2f4473 100644 --- a/net-analyzer/dsniff/files/2.3-makefile.patch +++ b/net-analyzer/dsniff/files/2.3-makefile.patch @@ -1,5 +1,5 @@ ---- Makefile.in.orig 2003-08-25 18:07:17.000000000 +1200 -+++ Makefile.in 2003-08-25 18:29:13.000000000 +1200 +--- a/Makefile.in 2003-08-25 18:07:17.000000000 +1200 ++++ b/Makefile.in 2003-08-25 18:29:13.000000000 +1200 @@ -94,7 +94,7 @@ $(RANLIB) $@ diff --git a/net-analyzer/dsniff/files/2.3-openssl.patch b/net-analyzer/dsniff/files/2.3-openssl.patch deleted file mode 100644 index b7df13d8acd5..000000000000 --- a/net-analyzer/dsniff/files/2.3-openssl.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -ru dsniff-2.3~/sshcrypto.c dsniff-2.3/sshcrypto.c ---- dsniff-2.3~/sshcrypto.c 2006-12-01 23:44:43.000000000 +0100 -+++ dsniff-2.3/sshcrypto.c 2006-12-01 23:46:52.000000000 +0100 -@@ -14,6 +14,8 @@ - - #include <sys/types.h> - #include <openssl/ssl.h> -+#include <openssl/blowfish.h> -+#include <openssl/des.h> - - #include <err.h> - #include <stdio.h> diff --git a/net-analyzer/dsniff/files/dsniff-httppostfix.patch b/net-analyzer/dsniff/files/2.4_beta1-httppostfix.patch index b02e621ccacb..62c9a90fe8e3 100644 --- a/net-analyzer/dsniff/files/dsniff-httppostfix.patch +++ b/net-analyzer/dsniff/files/2.4_beta1-httppostfix.patch @@ -1,5 +1,5 @@ ---- decode_http.c.orig 2000-12-19 07:38:05.000000000 +0800 -+++ decode_http.c 2006-03-05 22:32:14.000000000 +0800 +--- a/decode_http.c 2000-12-19 07:38:05.000000000 +0800 ++++ b/decode_http.c 2006-03-05 22:32:14.000000000 +0800 @@ -139,14 +139,14 @@ host = p; } diff --git a/net-analyzer/dsniff/files/2.4_beta1-make.patch b/net-analyzer/dsniff/files/2.4_beta1-make.patch new file mode 100644 index 000000000000..b0d80b0a4b06 --- /dev/null +++ b/net-analyzer/dsniff/files/2.4_beta1-make.patch @@ -0,0 +1,51 @@ +--- a/Makefile.in 2010-09-20 12:12:25.000000000 +0200 ++++ b/Makefile.in 2010-09-20 12:12:26.000000000 +0200 +@@ -16,7 +16,7 @@ + mandir = @mandir@ + + CC = @CC@ +-CFLAGS = @CFLAGS@ -DDSNIFF_LIBDIR=\"$(libdir)/\" ++CFLAGS = @CFLAGS@ + LDFLAGS = @LDFLAGS@ + + PCAPINC = @PCAPINC@ +@@ -75,7 +75,11 @@ + .c.o: + $(CC) $(CFLAGS) $(INCS) -c $(srcdir)/$*.c + +-all: libmissing.a $(PROGS) ++all: $(PROGS) ++ ++$(PROGS): libmissing.a ++ ++$(OBJS): $(GEN) + + mount.c: mount.x + rpcgen -h mount.x -o mount.h +@@ -93,7 +97,7 @@ + $(RANLIB) $@ + + dsniff: $(HDRS) $(SRCS) $(OBJS) +- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(DBLIB) $(SSLLIB) ++ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(DBLIB) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(SSLLIB) + + arpspoof: arpspoof.o arp.o + $(CC) $(LDFLAGS) -o $@ arpspoof.o arp.o $(LIBS) $(PCAPLIB) $(LNETLIB) +@@ -114,7 +118,7 @@ + $(CC) $(LDFLAGS) -o $@ msgsnarf.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) + + sshmitm: sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o +- $(CC) $(LDFLAGS) -o $@ sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB) ++ $(CC) $(LDFLAGS) -o $@ sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o $(LIBS) $(DBLIB) $(LNETLIB) $(SSLLIB) + + sshow: sshow.o pcaputil.o + $(CC) $(LDFLAGS) -o $@ sshow.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) +@@ -132,7 +136,7 @@ + $(CC) $(LDFLAGS) -o $@ urlsnarf.o base64.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) + + webmitm: webmitm.o base64.o buf.o decode_http.o record.o +- $(CC) $(LDFLAGS) -o $@ webmitm.o base64.o buf.o decode_http.o record.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB) ++ $(CC) $(LDFLAGS) -o $@ webmitm.o base64.o buf.o decode_http.o record.o $(LIBS) $(DBLIB) $(LNETLIB) $(SSLLIB) + + webspy: webspy.o base64.o buf.o remote.o + $(CC) $(LDFLAGS) -o $@ webspy.o base64.o buf.o remote.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(X11LIB) |