diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-08-18 03:32:41 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-08-18 03:32:41 +0000 |
commit | baf332c460046fa67cce79293172b63a6879ba61 (patch) | |
tree | 7e77aede04a88ebc1a416eb58ba4fa2dce7fbb5a /net-analyzer/packit | |
parent | fix source on patch (diff) | |
download | gentoo-2-baf332c460046fa67cce79293172b63a6879ba61.tar.gz gentoo-2-baf332c460046fa67cce79293172b63a6879ba61.tar.bz2 gentoo-2-baf332c460046fa67cce79293172b63a6879ba61.zip |
initial ebuild #26093
Diffstat (limited to 'net-analyzer/packit')
-rw-r--r-- | net-analyzer/packit/ChangeLog | 8 | ||||
-rw-r--r-- | net-analyzer/packit/files/digest-packit-0.6.0c | 1 | ||||
-rw-r--r-- | net-analyzer/packit/files/packit-0.6.0c-gentoo.patch | 50 | ||||
-rw-r--r-- | net-analyzer/packit/packit-0.6.0c.ebuild | 34 |
4 files changed, 93 insertions, 0 deletions
diff --git a/net-analyzer/packit/ChangeLog b/net-analyzer/packit/ChangeLog new file mode 100644 index 000000000000..6c7460a44fc5 --- /dev/null +++ b/net-analyzer/packit/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-analyzer/packit +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/packit/ChangeLog,v 1.1 2003/08/18 03:32:41 vapier Exp $ + +*packit-0.6.0c (17 Aug 2003) + + 17 Aug 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by Wolfjourn <josh@wolfjourn.net> #26093. diff --git a/net-analyzer/packit/files/digest-packit-0.6.0c b/net-analyzer/packit/files/digest-packit-0.6.0c new file mode 100644 index 000000000000..7a7ec2481622 --- /dev/null +++ b/net-analyzer/packit/files/digest-packit-0.6.0c @@ -0,0 +1 @@ +MD5 972946d7134c1a35ff1a7308cbafa9ca packit-0.6.0c.tgz 114265 diff --git a/net-analyzer/packit/files/packit-0.6.0c-gentoo.patch b/net-analyzer/packit/files/packit-0.6.0c-gentoo.patch new file mode 100644 index 000000000000..3551f96dc2a0 --- /dev/null +++ b/net-analyzer/packit/files/packit-0.6.0c-gentoo.patch @@ -0,0 +1,50 @@ +diff -aur packit-0.6.0c-original/configure packit-0.6.0c/configure +--- packit-0.6.0c-original/configure 2003-06-03 17:28:39.000000000 -0400 ++++ packit-0.6.0c/configure 2003-08-06 20:11:49.000000000 -0400 +@@ -3695,7 +3695,7 @@ + fi + + +-for ac_header in libnet.h ++for ac_header in libnet-1.1/libnet.h + do + as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` + if eval "test \"\${$as_ac_Header+set}\" = set"; then +@@ -4127,13 +4127,13 @@ + fi + + +-echo "$as_me:$LINENO: checking for libnet_build_ipv4 in -lnet" >&5 +-echo $ECHO_N "checking for libnet_build_ipv4 in -lnet... $ECHO_C" >&6 ++echo "$as_me:$LINENO: checking for libnet_build_ipv4 in -lnet1.1" >&5 ++echo $ECHO_N "checking for libnet_build_ipv4 in -lnet1.1... $ECHO_C" >&6 + if test "${ac_cv_lib_net_libnet_build_ipv4+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lnet $LIBS" ++LIBS="-lnet1.1 $LIBS" + cat >conftest.$ac_ext <<_ACEOF + #line $LINENO "configure" + /* confdefs.h. */ +@@ -4186,7 +4186,7 @@ + #define HAVE_LIBNET 1 + _ACEOF + +- LIBS="-lnet $LIBS" ++ LIBS="-lnet1.1 $LIBS" + + else + LIBNET="no" +diff -aur packit-0.6.0c-original/include/packit.h packit-0.6.0c/include/packit.h +--- packit-0.6.0c-original/include/packit.h 2003-05-29 22:33:43.000000000 -0400 ++++ packit-0.6.0c/include/packit.h 2003-08-06 20:11:29.000000000 -0400 +@@ -28,7 +28,7 @@ + #include "config.h" + #endif + +-#include <libnet.h> ++#include <libnet-1.1/libnet.h> + #include <pcap.h> + #include <sys/types.h> + #include <net/bpf.h> diff --git a/net-analyzer/packit/packit-0.6.0c.ebuild b/net-analyzer/packit/packit-0.6.0c.ebuild new file mode 100644 index 000000000000..3ba808ffc8d7 --- /dev/null +++ b/net-analyzer/packit/packit-0.6.0c.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/packit/packit-0.6.0c.ebuild,v 1.1 2003/08/18 03:32:41 vapier Exp $ + +inherit eutils + +DESCRIPTION="network auditing tool that allows you to monitor, manipulate, and inject customized IPv4 traffic" +HOMEPAGE="http://www.packetfactory.net/projects/packit/" +SRC_URI="http://www.packetfactory.net/projects/packit/downloads/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +DEPEND=">=net-libs/libnet-1.1" + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/${P}-gentoo.patch +} + +src_compile() { + econf \ + --with-libnet-includes=/usr/include/libnet-1.1 \ + --with-libnet-libraries=/usr/lib/libnet-1.1 \ + || die "./configure failed" + emake || die +} + +src_install() { + make install DESTDIR=${D} || die + #einstall || die + dodoc INSTALL LICENSE VERSION docs/* +} |