summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boman <mboman@gentoo.org>2003-11-28 08:02:21 +0000
committerMichael Boman <mboman@gentoo.org>2003-11-28 08:02:21 +0000
commit48aaf89e24910dd1a7c788d5009a5179fe3ddfde (patch)
treea923a796bed1d3e8d465b7c30a819da8dd80d515 /net-analyzer/snort
parentMade flexresp optional (controlled by "flexresp" local USE flag), closes #341... (diff)
downloadgentoo-2-48aaf89e24910dd1a7c788d5009a5179fe3ddfde.tar.gz
gentoo-2-48aaf89e24910dd1a7c788d5009a5179fe3ddfde.tar.bz2
gentoo-2-48aaf89e24910dd1a7c788d5009a5179fe3ddfde.zip
Made flexresp optional (controlled by "flexresp" local USE flag), closes #34150. Made smbalert optional (controlled by "samba" USE flag). Threading support removed (never worked anyway). Updated prelude patch. Assigned myself as the primary maintainer.
Diffstat (limited to 'net-analyzer/snort')
-rw-r--r--net-analyzer/snort/ChangeLog14
-rw-r--r--net-analyzer/snort/Manifest4
-rw-r--r--net-analyzer/snort/files/digest-snort-2.0.5-r12
-rw-r--r--net-analyzer/snort/metadata.xml8
-rw-r--r--net-analyzer/snort/snort-2.0.5-r1.ebuild102
5 files changed, 123 insertions, 7 deletions
diff --git a/net-analyzer/snort/ChangeLog b/net-analyzer/snort/ChangeLog
index b169057f718d..babf667c8a4b 100644
--- a/net-analyzer/snort/ChangeLog
+++ b/net-analyzer/snort/ChangeLog
@@ -1,6 +1,18 @@
# 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.23 2003/11/24 10:44:39 aliz Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.24 2003/11/28 08:02:00 mboman Exp $
+
+*snort-2.0.5-r1 (28 Nov 2003)
+
+ 28 Nov 2003; Michael Boman <mboman@gentoo.org> snort-2.0.5-r1.ebuild:
+ - Made flexresp optional (controlled by "flexresp" local USE flag), closes #34150.
+ - Made smbalert optional (controlled by "samba" USE flag).
+ - Threading support was never officially supported in Snort, and has
+ been removed from ebuild now as the code is, if not already has been,
+ cleaned from the source tree.
+ - Updated prelude patch.
+ - Assigned myself as the primary maintainer of this ebuild, with the
+ hardened as the herd.
*snort-2.0.5 (24 Nov 2003)
diff --git a/net-analyzer/snort/Manifest b/net-analyzer/snort/Manifest
index 8cfe470e3eab..4013cdc1a088 100644
--- a/net-analyzer/snort/Manifest
+++ b/net-analyzer/snort/Manifest
@@ -1,4 +1,4 @@
-MD5 ff333e413d59d619c173bb1316b18bde ChangeLog 5290
+MD5 5d338c99d8bfca0e73b546bb0b4b1009 ChangeLog 5292
MD5 9c6b611339af7149d67f677a96d398db metadata.xml 930
MD5 b258d6bde85f672f46bc502706fef0ae snort-1.9.1-r1.ebuild 2809
MD5 8ee1186f0ba880f4c310a03733144dda snort-1.9.1-r2.ebuild 2802
@@ -7,7 +7,7 @@ MD5 93365a3c8fad043445b0dcbdff7c7379 snort-2.0.0.ebuild 2985
MD5 0c4f28771a4096a1dc044f13ea500bff snort-2.0.1-r1.ebuild 2734
MD5 02c960da9a74fdb00a4dfbccccb5cdc2 snort-2.0.2.ebuild 2650
MD5 98b1c38ace076a3c4ba465a3bfac1693 snort-2.0.5.ebuild 2650
-MD5 b295700eb2f8f8e13602d167ca6bd404 snort-2.0.5-r1.ebuild 3007
+MD5 ab7b8bc6bdd9ab9e2ddec0598f26a9f0 snort-2.0.5-r1.ebuild 3010
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
diff --git a/net-analyzer/snort/files/digest-snort-2.0.5-r1 b/net-analyzer/snort/files/digest-snort-2.0.5-r1
new file mode 100644
index 000000000000..4351b0787e07
--- /dev/null
+++ b/net-analyzer/snort/files/digest-snort-2.0.5-r1
@@ -0,0 +1,2 @@
+MD5 f129ee00a3d6e7b7c1ff4a1e1fba3a08 snort-2.0.5.tar.gz 1951308
+MD5 7fd78d7bb755227c5acec7bfecdb94f7 snort-prelude-reporting-patch-0.2.5.tar.gz 39277
diff --git a/net-analyzer/snort/metadata.xml b/net-analyzer/snort/metadata.xml
index 5443a900bcfc..1e5841748441 100644
--- a/net-analyzer/snort/metadata.xml
+++ b/net-analyzer/snort/metadata.xml
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>no-herd</herd>
+ <herd>hardened</herd>
<maintainer>
- <email></email>
- <description></description>
+ <email>mboman@gentoo.org</email>
+ <description>Primary Maintainer</description>
</maintainer>
-<longdescription>Snort is a lightweight network intrusion detection system, capable of performing real-time traffic analysis and packet logging on IP networks. It can perform protocol analysis, content searching/matching and can be used to detect a variety of attacks and probes, such as buffer overflows, stealth port scans, CGI attacks, SMB probes, OS fingerprinting attempts, and much more. Snort uses a flexible rule based language to describe traffic that it should collect or pass, and a modular detection engine. Snort has a real-time alerting capability, with alert mechanisms for syslog, a user specified file, a UNIX socket, or WinPopup messages to Windows clients using Samba's smbclient.</longdescription>
+<longdescription>Snort is a lightweight network intrusion detection system, capable of performing real-time traffic analysis and packet logging on IP networks. It can perform protocol analysis, content searching/matching and can be used to detect a variety of attacks and probes, such as buffer overflows, stealth port scans, CGI attacks, SMB probes, OS fingerprinting attempts, and much more. Snort uses a flexible rule based language to describe traffic that it should collect or pass, and a modular detection engine. Snort has a real-time alerting capability, with alert mechanisms for syslog, a user specified file, or a UNIX socket.</longdescription>
</pkgmetadata>
diff --git a/net-analyzer/snort/snort-2.0.5-r1.ebuild b/net-analyzer/snort/snort-2.0.5-r1.ebuild
new file mode 100644
index 000000000000..3fe805bb7200
--- /dev/null
+++ b/net-analyzer/snort/snort-2.0.5-r1.ebuild
@@ -0,0 +1,102 @@
+# 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.5-r1.ebuild,v 1.1 2003/11/28 08:02:00 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"
+IUSE="ssl postgres mysql prelude flexresp samba"
+# snort 2.0.x does not support snmp yet Bug #26310
+# IUSE="${IUSE} snmp"
+
+DEPEND="virtual/glibc
+ >=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-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
+
+ sed "s:var RULE_PATH ../rules:var RULE_PATH /etc/snort:" < etc/snort.conf > etc/snort.conf.distrib
+
+ use prelude && epatch ../${P/.5/.2}-prelude.diff
+}
+
+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
+
+ econf \
+ `use_with postgres postgresql` \
+ `use_with mysql` \
+ `use_with ssl openssl` \
+ `use_with prelude` \
+ --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
+ 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
+}