--- /usr/portage/net-analyzer/snort/snort-2.0.0.ebuild 2003-04-17 00:52:11.000000000 +0800 +++ snort-2.0.0-r1.ebuild 2003-04-20 22:31:13.000000000 +0800 @@ -4,7 +4,7 @@ inherit eutils -IUSE="ssl postgres mysql snmp" +IUSE="ssl postgres mysql snmp prelude" S=${WORKDIR}/${P} DESCRIPTION="Libpcap-based packet sniffer/logger/lightweight IDS" SRC_URI="http://www.snort.org/dl/${P}.tar.gz" @@ -20,14 +20,16 @@ postgres? ( >=dev-db/postgresql-7.2 ) mysql? ( >=dev-db/mysql-3.23.26 ) ssl? ( >=dev-libs/openssl-0.9.6b ) - snmp? ( >=net-analyzer/net-snmp-5.0 )" + snmp? ( >=net-analyzer/net-snmp-5.0 ) + prelude? ( net-analyzer/libprelude )" 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 )" + ssl? ( >=dev-libs/openssl-0.9.6b ) + prelude? ( net-analyzer/libprelude )" src_unpack() { unpack ${A} @@ -39,6 +41,7 @@ # Following patch contributed in bug #18258 #is this needed in 2.0? -Method #use alpha && epatch ${FILESDIR}/${P}-alpha.patch + use prelude && ( epatch ${WORKDIR}/snort-2.0.0-prelude.diff; sh autogen.sh ) } src_compile() { @@ -51,8 +54,11 @@ || myconf="${myconf} --without-mysql" use ssl && myconf="${myconf} --with-openssl" \ || myconf="${myconf} --without-openssl" - use snmp && myconf="${myconf} --with-snmp" \ - || myconf="${myconf} --without-snmp" + use snmp && myconf="${myconf} --with-snmp" \ + || myconf="${myconf} --without-snmp" + use prelude && "${myconf} --with-prelude" \ + || myconf="${myconf} --without-prelude" + ./configure \ @@ -83,6 +89,7 @@ insinto /etc/snort doins etc/classification.config rules/*.rules + use prelude && doins etc/prelude-classification.config newins etc/snort.conf snort.conf.distrib exeinto /etc/init.d ; newexe ${FILESDIR}/snort.rc6 snort