# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Maintainer: Pau Oliva S="${WORKDIR}/${P}" DESCRIPTION="dsniff is a collection of tools for network auditing and penetration testing" SRC_URI="http://www.monkey.org/~dugsong/dsniff/${P}.tar.gz" HOMEPAGE="http://www.monkey.org/~dugsong/dsniff" LICENSE="as-is" DEPEND=" >sys-libs/db-3* >=dev-libs/openssl-0.9.6 >=net-libs/libpcap-0.7.1 >=net-libs/libnet-1.0.2 >=net-libs/libnids-1.16" RDEPEND="${DEPEND}" src_compile() { # don't pass --prefix to configure, it breaks Makefile einfo "Running configure..." ./configure \ --host=${CHOST} \ --mandir=/usr/share/man || die "./configure failed" # change config.h to use db_185.h from db3 (configure is # broken and build fails if you try to use --with-db option) einfo "Patching config.h..." cp config.h config.h.orig sed -e "s/HAVE_DB_H/HAVE_DB_185_H/g" \ < config.h.orig > config.h # change DBINC, DBLIB, prefix and install_prefix in Makefile einfo "Patching Makefile..." cp Makefile Makefile.orig sed -e "s/DBINC.*=.*/DBINC = -I\/usr\/include\/db3/g" \ -e "s/DBLIB.*=.*/DBLIB = -ldb/g" \ -e "s:^install_prefix.*=.*:install_prefix = ${D}:" \ -e "s/^prefix.*=.*/prefix = \/usr/" \ < Makefile.orig > Makefile einfo "Running emake..." emake || die "emake failed" } src_install () { einfo "Running make install..." make install || die "make install failed" einfo "Installing documentation..." dodoc CHANGES LICENSE README TODO }