diff options
author | Michael Boman <mboman@gentoo.org> | 2004-01-06 15:47:25 +0000 |
---|---|---|
committer | Michael Boman <mboman@gentoo.org> | 2004-01-06 15:47:25 +0000 |
commit | 7dd609ddb3d5aa80dcebd574d064f9bfac271826 (patch) | |
tree | 30c0b3f86004155fcee3b96d265a555338972c44 /net-analyzer | |
parent | New upstream version. Breaks prelude support, samba support is now obsoleted ... (diff) | |
download | gentoo-2-7dd609ddb3d5aa80dcebd574d064f9bfac271826.tar.gz gentoo-2-7dd609ddb3d5aa80dcebd574d064f9bfac271826.tar.bz2 gentoo-2-7dd609ddb3d5aa80dcebd574d064f9bfac271826.zip |
New upstream version. Breaks prelude support, samba support is now obsoleted by upstream.
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/snort/ChangeLog | 10 | ||||
-rw-r--r-- | net-analyzer/snort/Manifest | 6 | ||||
-rw-r--r-- | net-analyzer/snort/files/2.1.0-libnet-1.0.patch | 57 | ||||
-rw-r--r-- | net-analyzer/snort/files/digest-snort-2.1.0 | 2 | ||||
-rw-r--r-- | net-analyzer/snort/files/snort-2.1.0-gcc3.patch | 12 | ||||
-rw-r--r-- | net-analyzer/snort/snort-2.1.0.ebuild | 116 |
6 files changed, 200 insertions, 3 deletions
diff --git a/net-analyzer/snort/ChangeLog b/net-analyzer/snort/ChangeLog index a17f8cb4c319..6d5bcf0c773d 100644 --- a/net-analyzer/snort/ChangeLog +++ b/net-analyzer/snort/ChangeLog @@ -1,6 +1,14 @@ # 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.28 2003/12/21 03:53:11 mboman Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.29 2004/01/06 15:47:09 mboman Exp $ + +*snort-2.1.0 (06 Jan 2004) + + 06 Jan 2004; Michael Boman <mboman@gentoo.org> snort-2.1.0.ebuild, + files/2.1.0-libnet-1.0.patch, files/snort-2.1.0-gcc3.patch: + New upstream version. Breaks prelude support, samba support is now + obsoleted by upstream. Ebuild with prelude support will follow once + a updated patch is made availble. *snort-2.0.6 (21 Dec 2003) diff --git a/net-analyzer/snort/Manifest b/net-analyzer/snort/Manifest index 23fe9acde574..ef734272ece6 100644 --- a/net-analyzer/snort/Manifest +++ b/net-analyzer/snort/Manifest @@ -1,4 +1,4 @@ -MD5 d41e65840935bc7acd88bbf61e15d8e8 ChangeLog 6023 +MD5 ce14e6fb0c0ae4b406d07fa2ddc7aa2d ChangeLog 6358 MD5 9c6b611339af7149d67f677a96d398db metadata.xml 930 MD5 f80a28eb514d54c97e9962eebf935123 snort-2.0.5-r2.ebuild 3146 MD5 5cf6cb439a158c243eb718af43bd2ce5 snort-2.0.6.ebuild 3144 @@ -8,7 +8,7 @@ MD5 0c4f28771a4096a1dc044f13ea500bff snort-2.0.1-r1.ebuild 2734 MD5 02c960da9a74fdb00a4dfbccccb5cdc2 snort-2.0.2.ebuild 2650 MD5 ab7b8bc6bdd9ab9e2ddec0598f26a9f0 snort-2.0.5-r1.ebuild 3010 MD5 98b1c38ace076a3c4ba465a3bfac1693 snort-2.0.5.ebuild 2650 -MD5 2264a33447eb7f8d219296efb940a104 snort-2.1.0.ebuild 3183 +MD5 95696d553856853a917f5868cac6083c snort-2.1.0.ebuild 3468 MD5 a45c40b1fd8165ed1e9616808d8f4d41 files/1.9.1-libnet-1.0.patch 2907 MD5 fe6a25fdd3c6d4b527d89c51d78b8f36 files/2.0.1-libnet-1.0.patch 2753 MD5 fe6a25fdd3c6d4b527d89c51d78b8f36 files/2.0.2-libnet-1.0.patch 2753 @@ -33,3 +33,5 @@ MD5 ea783bd276257a20df5b6537d3ff5d49 files/snort-drop-calculation.diff 4957 MD5 202dd3be05b16c852303a04284eba720 files/digest-snort-2.0.6 150 MD5 513637a4fadce14177bf85e97e5931f8 files/snort-2.0.6-gcc3.patch 350 MD5 7c11e6d5a07263b09e86572d96222d09 files/digest-snort-2.1.0 150 +MD5 fe6a25fdd3c6d4b527d89c51d78b8f36 files/2.1.0-libnet-1.0.patch 2753 +MD5 513637a4fadce14177bf85e97e5931f8 files/snort-2.1.0-gcc3.patch 350 diff --git a/net-analyzer/snort/files/2.1.0-libnet-1.0.patch b/net-analyzer/snort/files/2.1.0-libnet-1.0.patch new file mode 100644 index 000000000000..c26fa717ba1c --- /dev/null +++ b/net-analyzer/snort/files/2.1.0-libnet-1.0.patch @@ -0,0 +1,57 @@ +--- configure.orig 2003-08-19 01:19:05.948824752 -0400 ++++ configure 2003-08-19 01:19:06.212784624 -0400 +@@ -6376 +6376 @@ +- 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`" +@@ -6382 +6382 @@ +- if test `libnet-config --cflags | wc -c` = "1"; then ++ if test `libnet-1.0-config --cflags | wc -c` = "1"; then +@@ -6387,3 +6387,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;} +@@ -6395 +6395 @@ +- LIBS="${LIBS} -lnet" ++ LIBS="${LIBS} -lnet-1.0" +@@ -6400 +6400 @@ +-for ac_header in libnet.h ++for ac_header in libnet-1.0.h +@@ -6533 +6533 @@ +- libnet_dir=`libnet-config --cflags | cut -dI -f2` ++ libnet_dir=`libnet-1.0-config --cflags | cut -dI -f2` +@@ -6538 +6538 @@ +- if test -r $i/libnet.h; then ++ if test -r $i/libnet-1.0.h; then +@@ -6544 +6544 @@ +- 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 +@@ -6555 +6555 @@ +- echo " ERROR: unable to find" "libnet 1.0.2a (libnet.h)" ++ echo " ERROR: unable to find" "libnet 1.0.2a (libnet-1.0.h)" +@@ -6574 +6574 @@ +- echo " ERROR: unable to find" "libnet 1.0.2a (libnet.h)" ++ echo " ERROR: unable to find" "libnet 1.0.2a (libnet-1.0.h)" +@@ -6587,2 +6587,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 +@@ -6593 +6593 @@ +-LIBS="-lnet $LIBS" ++LIBS="-lnet-1.0 $LIBS" +@@ -6647 +6647 @@ +- LIBS="-lnet $LIBS" ++ LIBS="-lnet-1.0 $LIBS" +--- src/detection-plugins/sp_react.c.orig 2003-08-19 01:19:06.106800736 -0400 ++++ src/detection-plugins/sp_react.c 2003-08-19 01:19:06.220783408 -0400 +@@ -56 +56 @@ +-#include <libnet.h> ++#include <libnet-1.0.h> +--- src/detection-plugins/sp_respond.c.orig 2003-08-19 01:19:06.111799976 -0400 ++++ src/detection-plugins/sp_respond.c 2003-08-19 01:19:06.225782648 -0400 +@@ -33 +33 @@ +-#include <libnet.h> ++#include <libnet-1.0.h> diff --git a/net-analyzer/snort/files/digest-snort-2.1.0 b/net-analyzer/snort/files/digest-snort-2.1.0 new file mode 100644 index 000000000000..0eab5dafe236 --- /dev/null +++ b/net-analyzer/snort/files/digest-snort-2.1.0 @@ -0,0 +1,2 @@ +MD5 1da6d683d18b39a72a3c277e8deffc69 snort-2.1.0.tar.gz 2244701 +MD5 7fd78d7bb755227c5acec7bfecdb94f7 snort-prelude-reporting-patch-0.2.5.tar.gz 39277 diff --git a/net-analyzer/snort/files/snort-2.1.0-gcc3.patch b/net-analyzer/snort/files/snort-2.1.0-gcc3.patch new file mode 100644 index 000000000000..972aee39c74a --- /dev/null +++ b/net-analyzer/snort/files/snort-2.1.0-gcc3.patch @@ -0,0 +1,12 @@ +diff -ur snort-2.0.2/src/util.h snort-2.0.2-gentoo/src/util.h +--- snort-2.0.2/src/util.h 2003-03-27 09:59:30.000000000 +1200 ++++ snort-2.0.2-gentoo/src/util.h 2003-10-10 02:11:41.000000000 +1300 +@@ -39,6 +39,8 @@ + #include "strlcpyu.h" + #endif + ++#include <sys/types.h> ++ + extern u_long netmasks[33]; + + /* Self preservation memory control struct */ diff --git a/net-analyzer/snort/snort-2.1.0.ebuild b/net-analyzer/snort/snort-2.1.0.ebuild new file mode 100644 index 000000000000..cc3f863b43c2 --- /dev/null +++ b/net-analyzer/snort/snort-2.1.0.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.1.0.ebuild,v 1.1 2004/01/06 15:47:09 mboman Exp $ + +inherit eutils + +DESCRIPTION="Libpcap-based packet sniffer/logger/lightweight IDS" +HOMEPAGE="http://www.snort.org/" +SRC_URI="http://www.snort.org/dl/${P}.tar.gz" +# prelude? ( http://www.prelude-ids.org/download/releases/snort-prelude-reporting-patch-0.2.5.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~sparc -alpha ~amd64" +IUSE="ssl postgres mysql flexresp" +# snort 2.1.x does not have prelude patches yet +# IUSE="${IUSE} prelude" +# snort 2.1.x has discontinued smb alert output, and no 3rd party have done them yet +# IUSE="${IUSE} samba" +# snort 2.0.x does not support snmp yet Bug #26310 (2.1.x doesn't have SNMP either) +# IUSE="${IUSE} snmp" + + +DEPEND="virtual/glibc + >=dev-libs/libpcre-4.2-r1 + >=net-libs/libpcap-0.6.2-r1 + flexresp? ( <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 )" +# prelude? ( >=dev-libs/libprelude-0.8 ) +# snmp? ( >=net-analyzer/net-snmp-5.0 ) +RDEPEND="virtual/glibc + >=dev-libs/libpcre-4.2-r1 + dev-lang/perl + >=net-libs/libpcap-0.6.2-r1 + postgres? ( >=dev-db/postgresql-7.2 ) + mysql? ( >=dev-db/mysql-3.23.26 ) + ssl? ( >=dev-libs/openssl-0.9.6b )" +# samba? ( net-fs/samba ) +# prelude? ( >=dev-libs/libprelude-0.8 ) + +src_unpack() { + unpack ${A} + + cd ${S} + #is this needed in 2.0? -Method + #epatch ${FILESDIR}/${P}-configure.patch + use flexresp && epatch ${FILESDIR}/${PV}-libnet-1.0.patch + + epatch ${FILESDIR}/${P}-gcc3.patch + + epatch ${FILESDIR}/snort-drop-calculation.diff + + sed "s:var RULE_PATH ../rules:var RULE_PATH /etc/snort:" < etc/snort.conf > etc/snort.conf.distrib + + # Prelude patch currently not compatible with 2.1.0 + #use prelude && ( + # epatch ../${P/.1.0/.0.2}-prelude.diff + # sh ./autogen.sh + #) +} + +src_compile() { + local myconf + use flexresp && myconf="$myconf --enable-flexresp" # There is no --diable-flexresp, can't use use_enable +# use samba && myconf="$myconf --enable-smbalerts" # There is no --diable-smbalerts, can't use use_enable + +# `use_with snmp` \ +# --enable-pthreads \ # Not supported, never was, and now also removed +# `use_with prelude` \ + + econf \ + `use_with postgres postgresql` \ + `use_with mysql` \ + `use_with ssl openssl` \ + --without-odbc \ + --without-oracle \ + $myconf || die "bad ./configure" + + emake || die "compile problem" +} + +src_install() { + make DESTDIR=${D} install || die + + dodir /var/log/snort + keepdir /var/log/snort/ + + insinto /usr/lib/snort/bin + doins contrib/{create_mysql,snortlog,*.pl} + + dodoc COPYING LICENSE doc/* + docinto contrib ; dodoc contrib/* + + insinto /etc/snort + doins etc/reference.config etc/classification.config rules/*.rules etc/*.map + #use prelude && doins etc/prelude-classification.config + doins etc/snort.conf.distrib + + exeinto /etc/init.d ; newexe ${FILESDIR}/snort.rc6 snort + insinto /etc/conf.d ; newins ${FILESDIR}/snort.confd snort +} + +pkg_postinst() { + enewgroup snort + enewuser snort -1 /dev/null /var/log/snort snort + usermod -d "/var/log/snort" snort || die "usermod problem" + usermod -g "snort" snort || die "usermod problem" + usermod -s "/dev/null" snort || die "usermod problem" + echo "ignore any message about CREATE_HOME above..." + + chown snort:snort /var/log/snort + chmod 0770 /var/log/snort +} |