diff options
Diffstat (limited to 'network/snort/snort.SlackBuild')
-rw-r--r-- | network/snort/snort.SlackBuild | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/network/snort/snort.SlackBuild b/network/snort/snort.SlackBuild index 2eaeea0d5d..b65057130b 100644 --- a/network/snort/snort.SlackBuild +++ b/network/snort/snort.SlackBuild @@ -25,10 +25,10 @@ # Modified by the SlackBuilds.org project # Maintained as of version 2.8.6.1 by Niels Horn <niels.horn@gmail.com> -# revision date: 2010/09/18 +# revision date: 2010/10/09 PRGNAM=snort -VERSION=${VERSION:-2.8.6.1} +VERSION=${VERSION:-2.9.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -95,6 +95,7 @@ CXXFLAGS="$SLKCFLAGS" \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --enable-pthread \ --enable-linux-smp-stats \ + --enable-zlib \ --with-mysql-libraries=/usr/lib${LIBDIRSUFFIX}/mysql \ --with-mysql-includes=/usr/include/mysql \ --build=$ARCH-slackware-linux @@ -108,14 +109,20 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $(readlink $i).gz $i.gz ; rm # Set up a sane config directory - snort won't do this on its own mkdir -p $PKG/etc/$PRGNAM # Fix paths for libraries in snort.conf, also 64-bits and rules paths... +# also set "unified2" as standard output, without special options sed -e "s|usr/local/lib|usr/lib${LIBDIRSUFFIX}|g" \ - -e "s|PATH ../|PATH |g" etc/snort.conf > $PKG/etc/snort/snort.conf.new + -e "s|PATH ../|PATH |g" \ + -e "/^# output unified2*/aoutput unified2: filename snort.log, limit 128" \ + etc/snort.conf > $PKG/etc/snort/snort.conf.new cat etc/threshold.conf > $PKG/etc/snort/threshold.conf.new cat etc/reference.config > $PKG/etc/snort/reference.config.new cat etc/classification.config > $PKG/etc/snort/classification.config.new cat etc/attribute_table.dtd > $PKG/etc/snort/attribute_table.dtd.new cat etc/gen-msg.map > $PKG/etc/snort/gen-msg.map.new -cat etc/sid-msg.map > $PKG/etc/snort/sid-msg.map.new +# sid-msg.map is not included in the source tarball, but it is in the +# snort-rules package. We'll just skip it for now, it might come back in +# the next release... +#cat etc/sid-msg.map > $PKG/etc/snort/sid-msg.map.new cat etc/unicode.map > $PKG/etc/snort/unicode.map.new # Create default, empty directory for rules |