diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-12-17 00:31:21 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-12-17 00:31:21 +0000 |
commit | 40b6feff50e501c3a2853d834fe16bb6e211f61d (patch) | |
tree | d7dae2f3dd4dc74cc0b5f0d32ba578b81c957876 /net-analyzer/snort | |
parent | add 1.99.11 (diff) | |
download | gentoo-2-40b6feff50e501c3a2853d834fe16bb6e211f61d.tar.gz gentoo-2-40b6feff50e501c3a2853d834fe16bb6e211f61d.tar.bz2 gentoo-2-40b6feff50e501c3a2853d834fe16bb6e211f61d.zip |
libnet-1.0 patch for snort-2.0.0
Diffstat (limited to 'net-analyzer/snort')
-rw-r--r-- | net-analyzer/snort/ChangeLog | 5 | ||||
-rw-r--r-- | net-analyzer/snort/files/2.0.0-libnet-1.0.patch | 54 | ||||
-rw-r--r-- | net-analyzer/snort/snort-2.0.0.ebuild | 7 |
3 files changed, 63 insertions, 3 deletions
diff --git a/net-analyzer/snort/ChangeLog b/net-analyzer/snort/ChangeLog index c17a20c4d14b..9a2908ca3719 100644 --- a/net-analyzer/snort/ChangeLog +++ b/net-analyzer/snort/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-analyzer/snort # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.25 2003/12/09 15:07:38 mboman Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.26 2003/12/17 00:31:21 vapier Exp $ + + 16 Dec 2003; Mike Frysinger <vapier@gentoo.org> : + Port the libnet-1.0 patch to snort-2.0.0 to help out the sparc peeps. *snort-2.0.5-r2 (09 Dec 2003) diff --git a/net-analyzer/snort/files/2.0.0-libnet-1.0.patch b/net-analyzer/snort/files/2.0.0-libnet-1.0.patch new file mode 100644 index 000000000000..df3ec1fc2d89 --- /dev/null +++ b/net-analyzer/snort/files/2.0.0-libnet-1.0.patch @@ -0,0 +1,54 @@ +--- configure.orig 2003-12-16 19:24:37.835720000 -0500 ++++ configure 2003-12-16 19:25:58.933391280 -0500 +@@ -6258 +6258 @@ +- CPPFLAGS="${CPPFLAGS} -DENABLE_RESPONSE `libnet-config --defines --cflags`" LDFLAGS="${LDFLAGS} `libnet-config --libs`" ++ CPPFLAGS="${CPPFLAGS} -DENABLE_RESPONSE `libnet-1.0-config --defines --cflags`" LDFLAGS="${LDFLAGS} `libnet-1.0-config --libs`" +@@ -6264 +6264 @@ +- if test `libnet-config --cflags | wc -c` = "1"; then ++ if test `libnet-1.0-config --cflags | wc -c` = "1"; then +@@ -6269,3 +6269,3 @@ +- if test `libnet-config --libs | wc -c` = "1"; then +- { echo "$as_me:$LINENO: WARNING: libnet-config --libs is broken on your system. If you" >&5 +-echo "$as_me: WARNING: libnet-config --libs is broken on your system. If you" >&2;} ++ if test `libnet-1.0-config --libs | wc -c` = "1"; then ++ { echo "$as_me:$LINENO: WARNING: libnet-1.0-config --libs is broken on your system. If you" >&5 ++echo "$as_me: WARNING: libnet-1.0-config --libs is broken on your system. If you" >&2;} +@@ -6281 +6281 @@ +-for ac_header in libnet.h ++for ac_header in libnet-1.0.h +@@ -6414 +6414 @@ +- libnet_dir=`libnet-config --cflags | cut -dI -f2` ++ libnet_dir=`libnet-1.0-config --cflags | cut -dI -f2` +@@ -6419 +6419 @@ +- if test -r $i/libnet.h; then ++ if test -r $i/libnet-1.0.h; then +@@ -6425 +6425 @@ +- if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v 1.0.2a >/dev/null"; then ++ if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet-1.0.h | grep -v 1.0.2a >/dev/null"; then +@@ -6436 +6436 @@ +- echo " ERROR: unable to find" "libnet 1.0.2a (libnet.h)" ++ echo " ERROR: unable to find" "libnet 1.0.2a (libnet-1.0.h)" +@@ -6455 +6455 @@ +- echo " ERROR: unable to find" "libnet 1.0.2a (libnet.h)" ++ echo " ERROR: unable to find" "libnet 1.0.2a (libnet-1.0.h)" +@@ -6468,2 +6468,2 @@ +-echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet" >&5 +-echo $ECHO_N "checking for libnet_build_ip in -lnet... $ECHO_C" >&6 ++echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet-1.0" >&5 ++echo $ECHO_N "checking for libnet_build_ip in -lnet-1.0... $ECHO_C" >&6 +@@ -6474 +6474 @@ +-LIBS="-lnet $LIBS" ++LIBS="-lnet-1.0 $LIBS" +@@ -6528 +6528 @@ +- LIBS="-lnet $LIBS" ++ LIBS="-lnet-1.0 $LIBS" +--- src/detection-plugins/sp_respond.c.orig 2003-12-16 19:26:32.043357800 -0500 ++++ src/detection-plugins/sp_respond.c 2003-12-16 19:26:41.158972016 -0500 +@@ -33 +33 @@ +-#include <libnet.h> ++#include <libnet-1.0.h> +--- src/detection-plugins/sp_react.c.orig 2003-12-16 19:26:28.034967168 -0500 ++++ src/detection-plugins/sp_react.c 2003-12-16 19:26:45.993237096 -0500 +@@ -56 +56 @@ +-#include <libnet.h> ++#include <libnet-1.0.h> diff --git a/net-analyzer/snort/snort-2.0.0.ebuild b/net-analyzer/snort/snort-2.0.0.ebuild index b1e6fcd981d1..2c288ad7635a 100644 --- a/net-analyzer/snort/snort-2.0.0.ebuild +++ b/net-analyzer/snort/snort-2.0.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.0.0.ebuild,v 1.7 2003/12/08 07:45:56 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.0.0.ebuild,v 1.8 2003/12/17 00:31:21 vapier Exp $ inherit eutils @@ -16,7 +16,8 @@ KEYWORDS="x86 sparc -alpha" DEPEND="virtual/glibc >=net-libs/libpcap-0.6.2-r1 - ~net-libs/libnet-1.0.2a + <net-libs/libnet-1.1 + >=net-libs/libnet-1.0.2a-r3 postgres? ( >=dev-db/postgresql-7.2 ) mysql? ( >=dev-db/mysql-3.23.26 ) ssl? ( >=dev-libs/openssl-0.9.6b ) @@ -40,6 +41,8 @@ src_unpack() { #is this needed in 2.0? -Method #use alpha && epatch ${FILESDIR}/${P}-alpha.patch + epatch ${FILESDIR}/${PV}-libnet-1.0.patch + sed "s:var RULE_PATH ../rules:var RULE_PATH /etc/snort:" < etc/snort.conf > etc/snort.conf.distrib } |