diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2017-01-28 15:07:04 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-02-04 06:59:25 +0700 |
commit | 3e68e1cb6046f1cddd73449b526b2e51a82ae3ea (patch) | |
tree | 6f677a02c9514b56e8bc614784c1c478e404806a | |
parent | 5310799a40f028770901940bdf0d54a2e3280329 (diff) |
network/snort: Support non-ethernet decoders.
Thanks to Panagiotis Nikolaou.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r-- | network/snort/README | 3 | ||||
-rw-r--r-- | network/snort/README.SLACKWARE | 10 | ||||
-rw-r--r-- | network/snort/snort.SlackBuild | 8 |
3 files changed, 20 insertions, 1 deletions
diff --git a/network/snort/README b/network/snort/README index 2b30f035ae718..6beb0ff2e3269 100644 --- a/network/snort/README +++ b/network/snort/README @@ -14,3 +14,6 @@ Snort has three primary functional modes. It can be used as a packet sniffer like tcpdump(1), a packet logger (useful for network traffic debugging, etc), or as a full blown network intrusion detection and prevention system. + +For more information about running Snort on Slackware, please see +README.SLACKWARE. diff --git a/network/snort/README.SLACKWARE b/network/snort/README.SLACKWARE index 8b02a1dcc0ccc..6bcf0714d1cd8 100644 --- a/network/snort/README.SLACKWARE +++ b/network/snort/README.SLACKWARE @@ -12,6 +12,16 @@ information can be found at the following URLs: http://manual.snort.org/ (user manual) +Running the SlackBuild +---------------------- + +By default, non-Ethernet decoders (for example, venet0) are enabled. If +you need to disable this for performance reasons, use the option +'NON_ETHER=no': + + NON_ETHER=no ./snort.SlackBuild + + Starting snort -------------- diff --git a/network/snort/snort.SlackBuild b/network/snort/snort.SlackBuild index cac218f702de5..eb3768d3730c3 100644 --- a/network/snort/snort.SlackBuild +++ b/network/snort/snort.SlackBuild @@ -27,7 +27,7 @@ PRGNAM=snort VERSION=${VERSION:-2.9.9.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -82,6 +82,11 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +NON_ETHERNET_DECODERS='--enable-non-ether-decoders' +if [ "${NON_ETHER:-yes}" = 'no' ]; then + NON_ETHERNET_DECODERS='' +fi + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -94,6 +99,7 @@ CXXFLAGS="$SLKCFLAGS" \ --enable-pthread \ --enable-linux-smp-stats \ --enable-zlib \ + ${NON_ETHERNET_DECODERS} \ --build=$ARCH-slackware-linux make |