summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2005-03-19 14:57:12 +0000
committerAaron Walker <ka0ttic@gentoo.org>2005-03-19 14:57:12 +0000
commit5688f63697f3748634a88685b2f2c7b7369f699f (patch)
treededb57190e08082fad2d4c444b7a0d65a12a92ee
parentVersion bump. (diff)
downloadhistorical-5688f63697f3748634a88685b2f2c7b7369f699f.tar.gz
historical-5688f63697f3748634a88685b2f2c7b7369f699f.tar.bz2
historical-5688f63697f3748634a88685b2f2c7b7369f699f.zip
Version bump; marked 2.3.0-r1 stable on x86.
Package-Manager: portage-2.0.51.19
-rw-r--r--net-analyzer/snort/ChangeLog8
-rw-r--r--net-analyzer/snort/Manifest14
-rw-r--r--net-analyzer/snort/files/digest-snort-2.3.24
-rw-r--r--net-analyzer/snort/snort-2.3.0-r1.ebuild4
-rw-r--r--net-analyzer/snort/snort-2.3.2.ebuild152
5 files changed, 173 insertions, 9 deletions
diff --git a/net-analyzer/snort/ChangeLog b/net-analyzer/snort/ChangeLog
index cdf0083f6010..936c8ca8fdc3 100644
--- a/net-analyzer/snort/ChangeLog
+++ b/net-analyzer/snort/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/snort
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.62 2005/02/10 00:50:52 ka0ttic Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.63 2005/03/19 14:57:12 ka0ttic Exp $
+
+*snort-2.3.2 (19 Mar 2005)
+
+ 19 Mar 2005; Aaron Walker <ka0ttic@gentoo.org> snort-2.3.0-r1.ebuild,
+ +snort-2.3.2.ebuild:
+ Version bump; marked 2.3.0-r1 stable on x86.
09 Feb 2005; Aaron Walker <ka0ttic@gentoo.org> snort-2.3.0-r1.ebuild,
snort-2.3.0.ebuild, snort-2.3.0_rc2.ebuild:
diff --git a/net-analyzer/snort/Manifest b/net-analyzer/snort/Manifest
index e91c9e3a21c3..0d9b966ef7da 100644
--- a/net-analyzer/snort/Manifest
+++ b/net-analyzer/snort/Manifest
@@ -3,11 +3,12 @@ Hash: SHA1
MD5 ea9f93a543ea9a0fe2a2a2618b1d1351 snort-2.2.0.ebuild 4378
MD5 0ee736821e1141642d8d94cd4d0f4b13 snort-2.0.6.ebuild 3121
-MD5 02a0eff9fdb50aa0f1f60e260d7ab4ab snort-2.3.0-r1.ebuild 4449
+MD5 d480ebe08f3b5eb3de0d9a26a3ce6f94 snort-2.3.0-r1.ebuild 4448
MD5 ceb1cef02f0e92fcabcbbbb15e03b38c snort-2.3.0.ebuild 4169
+MD5 4d804483ca085b4973cb2ba625cdc162 snort-2.3.2.ebuild 4455
MD5 0d4b980ee35a1f18ce2a75f81098b20f snort-2.1.3.ebuild 4372
MD5 fa95f59e8e9f721a74b9d4ee268c8ea3 snort-2.3.0_rc2.ebuild 3974
-MD5 4ab0f63800d91cc3fe3a581b1fdf1712 ChangeLog 11984
+MD5 fae50e29fde5059be26290b849fe692b ChangeLog 12155
MD5 53edc4328d9adeaf087c65ea94b1594b metadata.xml 246
MD5 08107e2e3ce78a19d7df4c78b9461303 files/digest-snort-2.3.0_rc2 221
MD5 919058894f4983c35900bc8bb98a96d4 files/snort.rc6 764
@@ -18,6 +19,7 @@ MD5 202dd3be05b16c852303a04284eba720 files/digest-snort-2.0.6 150
MD5 ca486c6119dbf106f900a3b51e4f3985 files/digest-snort-2.1.3 129
MD5 a654db9256f89b77a9ce482c976dc896 files/digest-snort-2.2.0 129
MD5 20c2ec2c963cca8c0abe1b6ee2b5b9f7 files/digest-snort-2.3.0 218
+MD5 5d26c971694357c500d666e68622a120 files/digest-snort-2.3.2 287
MD5 513637a4fadce14177bf85e97e5931f8 files/snort-2.0.6-gcc3.patch 350
MD5 446f8d2b3435b8a6be738da978670605 files/snort.confd 423
MD5 fe6a25fdd3c6d4b527d89c51d78b8f36 files/2.1.2-libnet-1.0.patch 2753
@@ -25,9 +27,9 @@ MD5 513637a4fadce14177bf85e97e5931f8 files/snort-2.1.2-gcc3.patch 350
MD5 513637a4fadce14177bf85e97e5931f8 files/snort-2.1.3-gcc3.patch 350
MD5 a9fc70d50c4512c835aa428f4b198fae files/digest-snort-2.3.0-r1 287
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.0 (GNU/Linux)
+Version: GnuPG v1.4.1 (GNU/Linux)
-iD8DBQFCCrBkEZCkKN40op4RAoHmAKC3U7Tml4YdaRMXzOO42aujmKdBuQCZAVEv
-bnSaxXB7dcK33JQHiyLYY0o=
-=M0Sy
+iD8DBQFCPD3OEZCkKN40op4RAuEyAJ9EhU4d/cNwm18ic/4uIVT9sGZuHQCfacg/
+i72Z/KotPG/n2osPL4MINP8=
+=kRpb
-----END PGP SIGNATURE-----
diff --git a/net-analyzer/snort/files/digest-snort-2.3.2 b/net-analyzer/snort/files/digest-snort-2.3.2
new file mode 100644
index 000000000000..ff86961e7a5a
--- /dev/null
+++ b/net-analyzer/snort/files/digest-snort-2.3.2
@@ -0,0 +1,4 @@
+MD5 692602827ce9d1a611630149f8e50ec8 snort-2.3.2.tar.gz 2620487
+MD5 2eeef1a7a040d67c3afaf9d749905e47 snortsam-20050110.tar.gz 29395
+MD5 323ab2956a59de113aa13099917f0d3a snort-prelude-reporting-patch-0.3.6.tar.gz 21964
+MD5 681fa7e99aa674c0e2be4788ef503d69 sguil-sensor-0.5.3.tar.gz 89816
diff --git a/net-analyzer/snort/snort-2.3.0-r1.ebuild b/net-analyzer/snort/snort-2.3.0-r1.ebuild
index 1c84e56ea679..d74711591ece 100644
--- a/net-analyzer/snort/snort-2.3.0-r1.ebuild
+++ b/net-analyzer/snort/snort-2.3.0-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.3.0-r1.ebuild,v 1.3 2005/02/10 00:50:52 ka0ttic Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.3.0-r1.ebuild,v 1.4 2005/03/19 14:57:12 ka0ttic Exp $
inherit eutils gnuconfig flag-o-matic
@@ -16,7 +16,7 @@ SRC_URI="http://www.snort.org/dl/${P}.tar.gz
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~x86 -sparc -alpha ~amd64 ppc"
+KEYWORDS="x86 -sparc -alpha ~amd64 ppc"
IUSE="ssl postgres mysql flexresp selinux snortsam odbc prelude inline sguil"
# Local useflag snortsam: patch snort for use with snortsam package.
diff --git a/net-analyzer/snort/snort-2.3.2.ebuild b/net-analyzer/snort/snort-2.3.2.ebuild
new file mode 100644
index 000000000000..c7ffce0a086c
--- /dev/null
+++ b/net-analyzer/snort/snort-2.3.2.ebuild
@@ -0,0 +1,152 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.3.2.ebuild,v 1.1 2005/03/19 14:57:12 ka0ttic Exp $
+
+inherit eutils gnuconfig flag-o-matic
+
+DESCRIPTION="Libpcap-based packet sniffer/logger/lightweight IDS"
+HOMEPAGE="http://www.snort.org/"
+SRC_URI="http://www.snort.org/dl/current/${P}.tar.gz
+ snortsam? ( mirror://gentoo/snortsam-20050110.tar.gz )
+ prelude? ( http://www.prelude-ids.org/download/releases/snort-prelude-reporting-patch-0.3.6.tar.gz )
+ sguil? ( mirror://sourceforge/sguil/sguil-sensor-0.5.3.tar.gz )"
+
+# snortsam? ( http://www.snortsam.net/files/snort-plugin/snortsam-patch.tar.gz )
+# Gentoo mirrored because of naming conflict with previous version
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 -sparc -alpha ~amd64 ~ppc"
+IUSE="ssl postgres mysql flexresp selinux snortsam odbc prelude inline sguil"
+
+# Local useflag snortsam: patch snort for use with snortsam package.
+
+
+DEPEND="virtual/libc
+ >=dev-libs/libpcre-4.2-r1
+ virtual/libpcap
+ flexresp? ( ~net-libs/libnet-1.0.2a )
+ 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 )
+ odbc? ( dev-db/unixODBC )
+ inline? (
+ ~net-libs/libnet-1.0.2a
+ net-firewall/iptables
+ )"
+
+RDEPEND="${DEPEND}
+ dev-lang/perl
+ selinux? ( sec-policy/selinux-snort )
+ snortsam? ( net-analyzer/snortsam )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ gnuconfig_update
+
+ if use flexresp || use inline ; then
+ epatch ${FILESDIR}/${PV}-libnet-1.0.patch
+ fi
+
+ einfo "Patching /etc/snort.conf"
+ sed -i "s:var RULE_PATH ../rules:var RULE_PATH /etc/snort:" \
+ etc/snort.conf || die "sed snort.conf failed"
+
+ if use prelude ; then
+ epatch ../snort-2.2.0-prelude-0.3.6.diff
+ sed -i -e "s:AC_PROG_RANLIB:AC_PROG_LIBTOOL:" configure.in \
+ || die "sed configure.in failed"
+ fi
+
+ if use sguil ; then
+ cd ${S}/src/preprocessors
+ epatch ${WORKDIR}/sguil-0.5.3/sensor/snort_mods/2_1/spp_portscan_sguil.patch || die
+ epatch ${WORKDIR}/sguil-0.5.3/sensor/snort_mods/2_1/spp_stream4_sguil.patch || die
+ cd ${S}
+ fi
+
+ # need to pick up prelude and or flexresp patches
+ einfo "Regenerating autoconf/automake files"
+ autoreconf -f -i || die "autoreconf failed"
+
+ if use snortsam
+ then
+ cd ..
+ einfo "Applying snortsam patch"
+ ./patchsnort.sh ${S} || die "snortsam patch failed"
+ cd ${S}
+ fi
+}
+
+src_compile() {
+ local myconf
+
+ # There is no --diable-flexresp, cannot use use_enable
+ use flexresp && myconf="${myconf} --enable-flexresp"
+
+ use inline && append-flags -I/usr/include/libipq
+
+ econf \
+ $(use_with postgres postgresql) \
+ $(use_with mysql) \
+ $(use_with ssl openssl) \
+ $(use_with odbc) \
+ --without-oracle \
+ $(use_with prelude) \
+ $(use_with sguil) \
+ $(use_enable inline) \
+ ${myconf} || die "bad ./configure"
+
+ emake || die "compile problem"
+}
+
+pkg_preinst() {
+ enewgroup snort
+ enewuser snort -1 /bin/false /var/log/snort snort
+ usermod -d "/var/log/snort" snort || die "usermod problem"
+ usermod -g "snort" snort || die "usermod problem"
+ usermod -s "/bin/false" snort || die "usermod problem"
+ echo "ignore any message about CREATE_HOME above..."
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ keepdir /var/log/snort/
+
+ dodoc COPYING LICENSE doc/*
+ docinto schemas ; dodoc schemas/*
+
+ insinto /etc/snort
+ doins etc/reference.config etc/classification.config rules/*.rules \
+ etc/*.map etc/threshold.conf
+ newins etc/snort.conf snort.conf.distrib
+
+ use prelude && doins etc/prelude-classification.config
+
+ newinitd ${FILESDIR}/snort.rc6 snort
+ newconfd ${FILESDIR}/snort.confd snort
+
+ chown snort:snort ${D}/var/log/snort
+ chmod 0770 ${D}/var/log/snort
+}
+
+pkg_postinst() {
+ if use mysql || use postgres || use odbc
+ then
+ einfo "To use a database as a backend for snort you will have to"
+ einfo "import the correct tables to the database."
+ einfo "You will have to setup a database called snort first."
+ einfo ""
+ use mysql && \
+ einfo " MySQL: zcat /usr/share/doc/${PF}/schemas/create_mysql.gz | mysql -p snort"
+ use postgres && \
+ einfo " PostgreSQL: import /usr/share/doc/${PF}/schemas/create_postgresql.gz"
+ use odbc && einfo "SQL tables need to be created - look at /usr/share/doc/${PF}/schemas/"
+ einfo ""
+ einfo "Also, read the following Gentoo forums article:"
+ einfo ' http://forums.gentoo.org/viewtopic.php?t=78718'
+ fi
+}