summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <drac@gentoo.org>2008-04-29 19:44:02 +0000
committerSamuli Suominen <drac@gentoo.org>2008-04-29 19:44:02 +0000
commit349c6099c123c7bc68ab7aafda2992f489c5485e (patch)
tree918ce3e8cdd05f18e7d92f19df34fc4e7a6b5e3f /net-analyzer/dsniff
parentold (diff)
downloadgentoo-2-349c6099c123c7bc68ab7aafda2992f489c5485e.tar.gz
gentoo-2-349c6099c123c7bc68ab7aafda2992f489c5485e.tar.bz2
gentoo-2-349c6099c123c7bc68ab7aafda2992f489c5485e.zip
old wrt #218479
(Portage version: 2.1.5_rc6)
Diffstat (limited to 'net-analyzer/dsniff')
-rw-r--r--net-analyzer/dsniff/dsniff-2.3-r10.ebuild75
-rw-r--r--net-analyzer/dsniff/dsniff-2.3-r7.ebuild55
-rw-r--r--net-analyzer/dsniff/files/2.3-libnet-1.0.patch140
3 files changed, 0 insertions, 270 deletions
diff --git a/net-analyzer/dsniff/dsniff-2.3-r10.ebuild b/net-analyzer/dsniff/dsniff-2.3-r10.ebuild
deleted file mode 100644
index fcd838e7ccd2..000000000000
--- a/net-analyzer/dsniff/dsniff-2.3-r10.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/dsniff/dsniff-2.3-r10.ebuild,v 1.6 2007/07/22 07:49:53 pva Exp $
-
-inherit eutils flag-o-matic
-
-DESCRIPTION="A collection of tools for network auditing and penetration testing"
-HOMEPAGE="http://monkey.org/~dugsong/dsniff/"
-SRC_URI="http://monkey.org/~dugsong/dsniff/${P}.tar.gz"
-
-LICENSE="DSNIFF"
-SLOT="0"
-KEYWORDS="~alpha ppc x86"
-IUSE="X"
-
-DEPEND="net-libs/libpcap
- <net-libs/libnet-1.1
- >=net-libs/libnet-1.0.2a-r3
- =net-libs/libnids-1.18
- >=dev-libs/openssl-0.9.6e
- ~sys-libs/db-3.2.9
- sys-apps/sed
- X? ( x11-libs/libXmu )"
-RDEPEND="${DEPEND}"
-
-src_unpack() {
- unpack ${A}
-
- # Making sure data files get correctly installed and that dsniff
- # can find them
- # Working around dsniff b0rky config script
- # Data stuff goes into /etc/dsniff
- cd "${S}"
- epatch "${FILESDIR}"/${PV}-libnet-1.0.patch
- sed -i \
- -e 's:-ldb:-ldb -lpthread:' \
- -e "s:lib':':" \
- configure || die "sed configure"
- sed -i 's:-DDSNIFF_LIBDIR=\\\"$(libdir)/\\\"::' Makefile.in || die "sed makefile"
- sed -i 's:/usr/local/lib:/etc/dsniff:' pathnames.h || die "sed pathnames"
- epatch "${FILESDIR}"/${PV}-makefile.patch
-
- # Allow amd64 compilation
- append-ldflags -lresolv
-
- # Fix for the local ip inversion (see bug #108144)
- sed -i "s/de->ip = htonl(lnet_ip);/de->ip = lnet_ip;/" dnsspoof.c \
- || die "sed dnsspoof"
-
- # bug 125084
- epatch ${FILESDIR}/${PN}-httppostfix.patch
-
- # bug #146573
- if has_version '>=dev-libs/openssl-0.9.8'; then
- epatch "${FILESDIR}"/${PV}-openssl.patch
- fi
-}
-
-src_compile() {
- econf \
- $(use_with X x) \
- || die "econf failed"
-
- if has_version '>=sys-libs/glibc-2.4' ; then
- append-flags -DCLK_TCK=CLOCKS_PER_SEC
- fi
- emake || die "emake failed"
-}
-
-src_install() {
- make install install_prefix="${D}" || die
- dodir /etc/dsniff
- mv "${D}"/usr/{dnsspoof.hosts,dsniff.{magic,services}} "${D}"/etc/dsniff/
- dodoc CHANGES README TODO
-}
diff --git a/net-analyzer/dsniff/dsniff-2.3-r7.ebuild b/net-analyzer/dsniff/dsniff-2.3-r7.ebuild
deleted file mode 100644
index c7f6034d5585..000000000000
--- a/net-analyzer/dsniff/dsniff-2.3-r7.ebuild
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/dsniff/dsniff-2.3-r7.ebuild,v 1.10 2006/10/31 21:28:37 jokey Exp $
-
-inherit eutils flag-o-matic
-
-DESCRIPTION="A collection of tools for network auditing and penetration testing"
-HOMEPAGE="http://monkey.org/~dugsong/dsniff/"
-SRC_URI="http://monkey.org/~dugsong/dsniff/${P}.tar.gz"
-
-LICENSE="DSNIFF"
-SLOT="0"
-KEYWORDS="alpha ppc x86"
-IUSE=""
-
-DEPEND="net-libs/libpcap
- <net-libs/libnet-1.1
- >=net-libs/libnet-1.0.2a-r3
- =net-libs/libnids-1.18
- >=dev-libs/openssl-0.9.6e
- ~sys-libs/db-3.2.9
- sys-apps/sed"
-RDEPEND="${DEPEND}"
-
-src_unpack() {
- unpack ${A}
-
- # Making sure data files get correctly installed and that dsniff
- # can find them
- # Working around dsniff b0rky config script
- # Data stuff goes into /etc/dsniff
- cd "${S}"
- epatch "${FILESDIR}"/${PV}-libnet-1.0.patch
- sed -i \
- -e 's:-ldb:-ldb -lpthread:' \
- -e "s:lib':':" \
- configure || die "sed configure"
- sed -i 's:-DDSNIFF_LIBDIR=\\\"$(libdir)/\\\"::' Makefile.in || die "sed makefile"
- sed -i 's:/usr/local/lib:/etc/dsniff:' pathnames.h || die "sed pathnames"
- epatch "${FILESDIR}"/${PV}-makefile.patch
-
- # Allow amd64 compilation
- append-ldflags -lresolv
-
- # Fix for the local ip inversion (see bug #108144)
- sed -i "s/de->ip = htonl(lnet_ip);/de->ip = lnet_ip;/" dnsspoof.c \
- || die "sed dnsspoof"
-}
-
-src_install() {
- make install install_prefix="${D}" || die
- dodir /etc/dsniff
- mv "${D}"/usr/{dnsspoof.hosts,dsniff.{magic,services}} "${D}"/etc/dsniff/
- dodoc CHANGES README TODO
-}
diff --git a/net-analyzer/dsniff/files/2.3-libnet-1.0.patch b/net-analyzer/dsniff/files/2.3-libnet-1.0.patch
deleted file mode 100644
index 0e036f86874e..000000000000
--- a/net-analyzer/dsniff/files/2.3-libnet-1.0.patch
+++ /dev/null
@@ -1,140 +0,0 @@
-diff -U 0 -r dsniff-2.3.orig/arpspoof.c dsniff-2.3/arpspoof.c
---- dsniff-2.3.orig/arpspoof.c 2000-11-28 02:43:43.000000000 -0500
-+++ dsniff-2.3/arpspoof.c 2003-08-19 14:51:56.094635632 -0400
-@@ -20 +20 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/configure dsniff-2.3/configure
---- dsniff-2.3.orig/configure 2000-12-02 23:35:46.000000000 -0500
-+++ dsniff-2.3/configure 2003-08-19 14:51:56.304603712 -0400
-@@ -3068 +3068 @@
-- if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a; then
-+ if test -f $withval/include/libnet-1.0.h -a -f $withval/lib/libnet-1.0.a; then
-@@ -3071,4 +3071,4 @@
-- if test -f $withval/bin/libnet-config; then
-- CFLAGS="$CFLAGS `$withval/bin/libnet-config --defines`"
-- elif test -f $withval/libnet-config; then
-- CFLAGS="$CFLAGS `$withval/libnet-config --defines`"
-+ if test -f $withval/bin/libnet-1.0-config; then
-+ CFLAGS="$CFLAGS `$withval/bin/libnet-1.0-config --defines`"
-+ elif test -f $withval/libnet-1.0-config; then
-+ CFLAGS="$CFLAGS `$withval/libnet-1.0-config --defines`"
-@@ -3076 +3076 @@
-- CFLAGS="$CFLAGS `libnet-config --defines`"
-+ CFLAGS="$CFLAGS `libnet-1.0-config --defines`"
-@@ -3079 +3079 @@
-- LNETLIB="-L$withval/lib -lnet"
-+ LNETLIB="-L$withval/lib -lnet-1.0"
-@@ -3081 +3081 @@
-- { echo "configure: error: libnet.h or libnet.a not found in $withval" 1>&2; exit 1; }
-+ { echo "configure: error: libnet-1.0.h or libnet-1.0.a not found in $withval" 1>&2; exit 1; }
-@@ -3086,2 +3086,2 @@
-- if test -f ${prefix}/include/libnet.h; then
-- CFLAGS="$CFLAGS `${prefix}/bin/libnet-config --defines`"
-+ if test -f ${prefix}/include/libnet-1.0.h; then
-+ CFLAGS="$CFLAGS `${prefix}/bin/libnet-1.0-config --defines`"
-@@ -3089,4 +3089,4 @@
-- LNETLIB="-L${prefix}/lib -lnet"
-- elif test -f /usr/include/libnet.h; then
-- CFLAGS="$CFLAGS `libnet-config --defines`"
-- LNETLIB="-lnet"
-+ LNETLIB="-L${prefix}/lib -lnet-1.0"
-+ elif test -f /usr/include/libnet-1.0.h; then
-+ CFLAGS="$CFLAGS `libnet-1.0-config --defines`"
-+ LNETLIB="-lnet-1.0"
-diff -U 0 -r dsniff-2.3.orig/decode_portmap.c dsniff-2.3/decode_portmap.c
---- dsniff-2.3.orig/decode_portmap.c 2000-12-15 15:13:29.000000000 -0500
-+++ dsniff-2.3/decode_portmap.c 2003-08-19 14:51:56.350596720 -0400
-@@ -18,1 +18,1 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/dnsspoof.c dsniff-2.3/dnsspoof.c
---- dsniff-2.3.orig/dnsspoof.c 2000-11-19 14:39:40.000000000 -0500
-+++ dsniff-2.3/dnsspoof.c 2003-08-19 14:51:56.183622104 -0400
-@@ -24 +24 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/dsniff.c dsniff-2.3/dsniff.c
---- dsniff-2.3.orig/dsniff.c 2000-12-01 16:27:15.000000000 -0500
-+++ dsniff-2.3/dsniff.c 2003-08-19 14:51:56.352596416 -0400
-@@ -21,1 +21,1 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/filesnarf.c dsniff-2.3/filesnarf.c
---- dsniff-2.3.orig/filesnarf.c 2000-12-15 15:16:58.000000000 -0500
-+++ dsniff-2.3/filesnarf.c 2003-08-19 14:51:56.357595656 -0400
-@@ -22,1 +22,1 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/macof.c dsniff-2.3/macof.c
---- dsniff-2.3.orig/macof.c 2000-11-14 10:50:55.000000000 -0500
-+++ dsniff-2.3/macof.c 2003-08-19 14:51:56.192620736 -0400
-@@ -21 +21 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/mailsnarf.c dsniff-2.3/mailsnarf.c
---- dsniff-2.3.orig/mailsnarf.c 2000-11-19 14:39:41.000000000 -0500
-+++ dsniff-2.3/mailsnarf.c 2003-08-19 14:51:56.361595048 -0400
-@@ -21,1 +21,1 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/msgsnarf.c dsniff-2.3/msgsnarf.c
---- dsniff-2.3.orig/msgsnarf.c 2000-12-15 15:12:19.000000000 -0500
-+++ dsniff-2.3/msgsnarf.c 2003-08-19 14:51:56.369593832 -0400
-@@ -20,1 +20,1 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/record.c dsniff-2.3/record.c
---- dsniff-2.3.orig/record.c 2000-11-14 10:51:02.000000000 -0500
-+++ dsniff-2.3/record.c 2003-08-19 14:51:56.206618608 -0400
-@@ -22 +22 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/sshmitm.c dsniff-2.3/sshmitm.c
---- dsniff-2.3.orig/sshmitm.c 2000-12-17 16:09:43.000000000 -0500
-+++ dsniff-2.3/sshmitm.c 2003-08-19 14:51:56.210618000 -0400
-@@ -19 +19 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/tcp_raw.c dsniff-2.3/tcp_raw.c
---- dsniff-2.3.orig/tcp_raw.c 2000-11-28 02:48:25.000000000 -0500
-+++ dsniff-2.3/tcp_raw.c 2003-08-19 14:51:56.212617696 -0400
-@@ -15 +15 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/tcpkill.c dsniff-2.3/tcpkill.c
---- dsniff-2.3.orig/tcpkill.c 2000-11-29 19:39:05.000000000 -0500
-+++ dsniff-2.3/tcpkill.c 2003-08-19 14:51:56.214617392 -0400
-@@ -19 +19 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/tcpnice.c dsniff-2.3/tcpnice.c
---- dsniff-2.3.orig/tcpnice.c 2000-11-29 19:39:05.000000000 -0500
-+++ dsniff-2.3/tcpnice.c 2003-08-19 14:51:56.216617088 -0400
-@@ -21 +21 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/trigger.c dsniff-2.3/trigger.c
---- dsniff-2.3.orig/trigger.c 2000-11-19 16:44:29.000000000 -0500
-+++ dsniff-2.3/trigger.c 2003-08-19 14:51:56.376592768 -0400
-@@ -15,1 +15,1 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/urlsnarf.c dsniff-2.3/urlsnarf.c
---- dsniff-2.3.orig/urlsnarf.c 2000-12-18 21:53:36.000000000 -0500
-+++ dsniff-2.3/urlsnarf.c 2003-08-19 14:51:56.378592464 -0400
-@@ -24,1 +24,1 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/webmitm.c dsniff-2.3/webmitm.c
---- dsniff-2.3.orig/webmitm.c 2000-12-03 00:13:28.000000000 -0500
-+++ dsniff-2.3/webmitm.c 2003-08-19 14:51:56.229615112 -0400
-@@ -23 +23 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>
-diff -U 0 -r dsniff-2.3.orig/webspy.c dsniff-2.3/webspy.c
---- dsniff-2.3.orig/webspy.c 2000-11-14 10:51:04.000000000 -0500
-+++ dsniff-2.3/webspy.c 2003-08-19 14:51:56.381592008 -0400
-@@ -24,1 +24,1 @@
--#include <libnet.h>
-+#include <libnet-1.0.h>