network/snort: Support non-ethernet decoders.
Thanks to Panagiotis Nikolaou. Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
5310799a40
commit
3e68e1cb60
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
--------------
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue