-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 07860ae96776002e9ae119dbde42f92d snort-2.1.2.ebuild 3519
-MD5 82ee28ac888dd7bcd1c43e9bffe8f921 snort-2.2.0.ebuild 4391
+MD5 f0468f5511bf6559659788e3bb18f7ef snort-2.2.0.ebuild 4390
MD5 8f89d5403bedc2791b69f44b0813bfef snort-2.0.6.ebuild 3139
MD5 2075215d2b74257aad1b3ee0dcfd285b snort-2.1.3.ebuild 4383
-MD5 f478485525bbd337222163f24e4fe415 ChangeLog 9729
+MD5 cfc38c053c7f8d98f6f6e479bfc278e5 ChangeLog 9832
MD5 53edc4328d9adeaf087c65ea94b1594b metadata.xml 246
MD5 919058894f4983c35900bc8bb98a96d4 files/snort.rc6 764
MD5 ea783bd276257a20df5b6537d3ff5d49 files/snort-drop-calculation.diff 4957
MD5 fe6a25fdd3c6d4b527d89c51d78b8f36 files/2.0.6-libnet-1.0.patch 2753
MD5 202dd3be05b16c852303a04284eba720 files/digest-snort-2.0.6 150
-MD5 cfa70b4b7a18ef0615bd6a8681ace3e2 files/digest-snort-2.1.2 64
MD5 ca486c6119dbf106f900a3b51e4f3985 files/digest-snort-2.1.3 129
MD5 a654db9256f89b77a9ce482c976dc896 files/digest-snort-2.2.0 129
MD5 513637a4fadce14177bf85e97e5931f8 files/snort-2.0.6-gcc3.patch 350
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
-iD8DBQFBgp6fT+MN7JbqCpMRAjuBAKCSFIVmPrut/nHapTyy4EBqReak7ACbBZUU
-vXfij+ycdnFq3iCKxemoeaM=
-=oSgB
+iD8DBQFBg7wxT+MN7JbqCpMRAkeIAJ4rZxw21Ca6W/5UA3/PPUkG68gj1gCfWLf8
+cH4Rs1Ux4orWhXT8vdsZ72o=
+=9zPJ
-----END PGP SIGNATURE-----
+++ /dev/null
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.1.2.ebuild,v 1.6 2004/07/01 20:18:32 squinky86 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 ~ppc"
-IUSE="ssl postgres mysql flexresp selinux"
-# 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/libc
- >=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/libc
- >=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 )
- selinux? ( sec-policy/selinux-snort )"
-# 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 -i "s:var RULE_PATH ../rules:var RULE_PATH /etc/snort:" etc/snort.conf
-
- # 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 etc/threshold.conf
- #use prelude && doins etc/prelude-classification.config
- newins etc/snort.conf 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
-}