--- snort-2.3.2.ebuild 2005-04-01 14:16:59.000000000 -0300 +++ snort-2.3.2-r1.ebuild 2005-04-01 14:49:04.000000000 -0300 @@ -6,9 +6,11 @@ DESCRIPTION="Libpcap-based packet sniffer/logger/lightweight IDS" HOMEPAGE="http://www.snort.org/" -SRC_URI="http://www.snort.org/dl/current/${P}.tar.gz +MY_P="${P}-0.9.0-rc1" +MY_PRELUDE="${P}-prelude-0.9.0-rc1" +SRC_URI="!prelude? ( 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 ) + prelude? ( http://www.prelude-ids.org/download/releases/${MY_P}.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 ) @@ -29,7 +31,7 @@ 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 ) + prelude? ( >=dev-libs/libprelude-0.9.0_rc1 ) odbc? ( dev-db/unixODBC ) inline? ( ~net-libs/libnet-1.0.2a @@ -41,6 +43,10 @@ selinux? ( sec-policy/selinux-snort ) snortsam? ( net-analyzer/snortsam )" +if use prelude; then + S="${WORKDIR}/${MY_PRELUDE}" +fi + src_unpack() { unpack ${A} cd ${S} @@ -54,12 +60,6 @@ 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