summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Scherbaum <dertobi123@gentoo.org>2008-12-31 10:05:32 +0000
committerTobias Scherbaum <dertobi123@gentoo.org>2008-12-31 10:05:32 +0000
commitb5ca6ac4e7c37c7ec8f3aad1df68199c14943e14 (patch)
tree180da1af7d5e99a791f27e9c597f421479b13025 /net-analyzer/snort
parentVersion bump. (diff)
downloadgentoo-2-b5ca6ac4e7c37c7ec8f3aad1df68199c14943e14.tar.gz
gentoo-2-b5ca6ac4e7c37c7ec8f3aad1df68199c14943e14.tar.bz2
gentoo-2-b5ca6ac4e7c37c7ec8f3aad1df68199c14943e14.zip
Various QA fixes, as requested by Mr_Bones_. Also describe local use-flags (and switch pthreads to just threads), though those local use-flags do need some better descriptions. Hey, at least I do care ...
(Portage version: 2.2_rc20/cvs/Linux 2.6.25-gentoo-r7 x86_64)
Diffstat (limited to 'net-analyzer/snort')
-rw-r--r--net-analyzer/snort/ChangeLog8
-rw-r--r--net-analyzer/snort/metadata.xml10
-rw-r--r--net-analyzer/snort/snort-2.8.3.1.ebuild117
3 files changed, 74 insertions, 61 deletions
diff --git a/net-analyzer/snort/ChangeLog b/net-analyzer/snort/ChangeLog
index a29c060da2e1..6b9ada18b15f 100644
--- a/net-analyzer/snort/ChangeLog
+++ b/net-analyzer/snort/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/snort
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.135 2008/11/23 15:29:38 vanquirius Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.136 2008/12/31 10:05:32 dertobi123 Exp $
+
+ 31 Dec 2008; Tobias Scherbaum <dertobi123@gentoo.org> metadata.xml,
+ snort-2.8.3.1.ebuild:
+ Various QA fixes, as requested by Mr_Bones_. Also describe local use-flags
+ (and switch pthreads to just threads), though those local use-flags do need
+ some better descriptions. Hey, at least I do care ...
*snort-2.8.3.1 (23 Nov 2008)
diff --git a/net-analyzer/snort/metadata.xml b/net-analyzer/snort/metadata.xml
index 5a5277a06bb0..d76e098fcf6a 100644
--- a/net-analyzer/snort/metadata.xml
+++ b/net-analyzer/snort/metadata.xml
@@ -4,16 +4,26 @@
<herd>netmon</herd>
<longdescription>Libpcap-based packet sniffer/logger/lightweight IDS</longdescription>
<use>
+<flag name='aruba'>Enable Aruba support</flag>
+<flag name='community-rules'>Include Community rules</flag>
+<flag name='decoder-preprocessor-rules'></flag>
<flag name='dynamicplugin'>Enable ability to dynamically load preprocessors, detection engine, and rules library</flag>
<flag name='flexresp'>Enable new connection tearing (not recommended)</flag>
<flag name='flexresp2'>Enable new connection tearing</flag>
<flag name='gre'>Enable GRE support</flag>
<flag name='inline'>Enable snort-inline for accepting packets from <pkg>net-firewall/iptables</pkg>, via libipq, rather than <pkg>net-libs/libpcap</pkg>.</flag>
+<flag name='inline-init-failopen'>Enable inline-init-failopen support</flag>
<flag name='linux-smp-stats'>Enable statistics reporting through proc on smp systems</flag>
+<flag name='memory-cleanup'>Enable memory-cleanup support</flag>
+<flag name='mpls'>Enable support for mpls networks</flag>
<flag name='perfprofiling'>Enable preprocessor and rule performance profiling</flag>
+<flag name='ppm'>Enable ppm support</flag>
<flag name='react'>Enable interception and termination of offending HTTP accesses</flag>
+<flag name='ruleperf'>Enable ruleperf support</flag>
<flag name='sguil'>Enable sguil (The Analyst Console for Network Security Monitoring) support</flag>
<flag name='snortsam'>patches <pkg>net-analyzer/snort</pkg> for use with <pkg>net-analyzer/snortsam</pkg></flag>
+<flag name='stream4udp'>Enable stream4udp support</flag>
+<flag name='targetbased'>Enable targetbased support</flag>
<flag name='timestats'>Enable TimeStats functionality</flag>
</use>
</pkgmetadata>
diff --git a/net-analyzer/snort/snort-2.8.3.1.ebuild b/net-analyzer/snort/snort-2.8.3.1.ebuild
index 16ac79b3903d..db3360719c1c 100644
--- a/net-analyzer/snort/snort-2.8.3.1.ebuild
+++ b/net-analyzer/snort/snort-2.8.3.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.8.3.1.ebuild,v 1.1 2008/11/23 15:29:38 vanquirius Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.8.3.1.ebuild,v 1.2 2008/12/31 10:05:32 dertobi123 Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
@@ -15,22 +15,21 @@ SRC_URI="http://www.snort.org/dl/${P}.tar.gz
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 -sparc ~x86"
-IUSE="static debug pthreads prelude stream4udp memory-cleanup decoder-preprocessor-rules ipv6 targetbased dynamicplugin timestats ruleperf ppm perfprofiling linux-smp-stats inline inline-init-failopen flexresp flexresp2 react aruba gre mpls pic postgres mysql odbc selinux community-rules"
+IUSE="static debug threads prelude stream4udp memory-cleanup decoder-preprocessor-rules ipv6 targetbased dynamicplugin timestats ruleperf ppm perfprofiling linux-smp-stats inline inline-init-failopen flexresp flexresp2 react aruba gre mpls pic postgres mysql odbc selinux community-rules"
#flexresp, react, and inline _ONLY_ work with net-libs/libnet-1.0.2a
DEPEND="virtual/libc
virtual/libpcap
>=sys-devel/libtool-1.4
>=dev-libs/libpcre-6.0
- flexresp2? ( dev-libs/libdnet )
+ flexresp2? ( dev-libs/libdnet )
flexresp? ( ~net-libs/libnet-1.0.2a )
react? ( ~net-libs/libnet-1.0.2a )
- postgres? ( || ( dev-db/postgresql dev-db/libpq ) )
- mysql? ( virtual/mysql )
- odbc? ( dev-db/unixODBC )
+ postgres? ( || ( dev-db/postgresql dev-db/libpq ) )
+ mysql? ( virtual/mysql )
+ odbc? ( dev-db/unixODBC )
prelude? ( >=dev-libs/libprelude-0.9.0 )
- inline? ( ~net-libs/libnet-1.0.2a
- net-firewall/iptables )"
+ inline? ( ~net-libs/libnet-1.0.2a net-firewall/iptables )"
RDEPEND="${DEPEND}
dev-lang/perl
@@ -65,30 +64,29 @@ pkg_setup() {
epause
fi
- if use ruleperf && ! use dynamicplugin; then
- ewarn
+ if use ruleperf && ! use dynamicplugin; then
ewarn
- ewarn "You have enabled 'ruleperf' but not 'dynamicplugin'."
- ewarn "'ruleperf' requires 'dynamicplugin' to compile."
- ewarn
- ewarn "Enabling dynamicplugin..."
+ ewarn
+ ewarn "You have enabled 'ruleperf' but not 'dynamicplugin'."
+ ewarn "'ruleperf' requires 'dynamicplugin' to compile."
+ ewarn
+ ewarn "Enabling dynamicplugin..."
ewarn
ewarn
epause
- fi
+ fi
- if use inline-init-failopen && ! use inline; then
- ewarn
+ if use inline-init-failopen && ! use inline; then
ewarn
- ewarn "You have enabled 'inline-init-failopen' but not 'inline'."
- ewarn "'inline-init-failopen' is an 'inline' only function."
- ewarn
- ewarn "Enabling inline mode..."
+ ewarn
+ ewarn "You have enabled 'inline-init-failopen' but not 'inline'."
+ ewarn "'inline-init-failopen' is an 'inline' only function."
+ ewarn
+ ewarn "Enabling inline mode..."
ewarn
ewarn
epause
- fi
-
+ fi
}
@@ -110,8 +108,7 @@ src_unpack() {
}
src_compile() {
-
- local myconf
+ local myconf
#Both shared and static are enable by defaut so we need to be specific
if use static; then
@@ -144,57 +141,57 @@ src_compile() {
myconf="${myconf} --disable-dynamicplugin"
fi
- # USE flages 'targetbased' and 'inline-init-failopen' require pthreads
- #Only 'pthreads' is set here. 'targetbased' and 'inline-init-failopen' are set below via econf.
- if use targetbased || use inline-init-failopen || use pthreads; then
- myconf="${myconf} --enable-pthread"
- else
- myconf="${myconf} --disable-pthread"
- fi
+ # USE flages 'targetbased' and 'inline-init-failopen' require threads
+ #Only 'threads' is set here. 'targetbased' and 'inline-init-failopen' are set below via econf.
+ if use targetbased || use inline-init-failopen || use threads; then
+ myconf="${myconf} --enable-pthread"
+ else
+ myconf="${myconf} --disable-pthread"
+ fi
#Only needed if...
- if use flexresp || use react || use inline; then
+ if use flexresp || use react || use inline; then
myconf="${myconf} --with-libipq-includes=/usr/include/libipq"
fi
- #'inline-init-failopen' requires 'inline'
- if use inline-init-failopen || use inline; then
- myconf="${myconf} --enable-inline"
+ #'inline-init-failopen' requires 'inline'
+ if use inline-init-failopen || use inline; then
+ myconf="${myconf} --enable-inline"
else
myconf="${myconf} --disable-inline"
- fi
+ fi
-#The --enable-<feature> options... 'static' 'dynamicplugin' 'pthreads' 'flexresp' 'flexresp2' 'inline'
+#The --enable-<feature> options... 'static' 'dynamicplugin' 'threads' 'flexresp' 'flexresp2' 'inline'
# are configured above due to dependancy/conflict issues.
#All others are handled the standard ebuild way via econf
econf \
--without-oracle \
- $(use_with postgres postgresql) \
- $(use_with mysql) \
- $(use_with odbc) \
- $(use_with pic) \
+ $(use_with postgres postgresql) \
+ $(use_with mysql) \
+ $(use_with odbc) \
+ $(use_with pic) \
--disable-ipfw \
--disable-profile \
--disable-ppm-test \
$(use_enable debug) \
- $(use_enable prelude) \
- $(use_enable stream4udp) \
- $(use_enable memory-cleanup) \
- $(use_enable decoder-preprocessor-rules) \
+ $(use_enable prelude) \
+ $(use_enable stream4udp) \
+ $(use_enable memory-cleanup) \
+ $(use_enable decoder-preprocessor-rules) \
$(use_enable ipv6) \
$(use_enable targetbased) \
- $(use_enable timestats) \
- $(use_enable ruleperf) \
- $(use_enable ppm) \
- $(use_enable perfprofiling) \
- $(use_enable linux-smp-stats) \
- $(use_enable inline-init-failopen) \
- $(use_enable react) \
- $(use_enable aruba) \
- $(use_enable gre) \
- $(use_enable mpls) \
+ $(use_enable timestats) \
+ $(use_enable ruleperf) \
+ $(use_enable ppm) \
+ $(use_enable perfprofiling) \
+ $(use_enable linux-smp-stats) \
+ $(use_enable inline-init-failopen) \
+ $(use_enable react) \
+ $(use_enable aruba) \
+ $(use_enable gre) \
+ $(use_enable mpls) \
${myconf} || die "econf failed"
# limit to single as reported by jforman on irc
@@ -227,7 +224,7 @@ src_install() {
etc/snort.conf > "${D}"/etc/snort/snort.conf.distrib
fi
- sed -i -e "s:RULE_PATH ../rules:RULE_PATH /etc/snort/rules:g" \
+ sed -i -e "s:RULE_PATH ../rules:RULE_PATH /etc/snort/rules:g" \
"${D}"/etc/snort/snort.conf.distrib
sed -i -e "s:PREPROC_RULE_PATH ../preproc_rules:PREPROC_RULE_PATH /etc/snort/preproc_rules:g" \
@@ -283,9 +280,9 @@ pkg_postinst() {
elog "The COMMUNITY ruleset has been installed."
elog
else
- elog
- elog "The COMMUNITY ruleset has NOT been installed."
- elog
+ elog
+ elog "The COMMUNITY ruleset has NOT been installed."
+ elog
fi
elog "To learn how to manage updates to your rulesets please visit..."
elog