mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
snort: upgrade 2.9.11.1 -> 2.9.13
* Add PACKAGECONFIG[appid] for application identification support. * Set the variables 'have_daq_packet_trace' and 'have_daq_verdict_reason' to 'no' since they are only supported in daq 2.2.2 but not in 2.0.6. * Cleanup snort.init script and fix the incorrect argument of mkdir Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+2
-2
@@ -226,7 +226,7 @@ index 4b3a5db..a6c5498 100644
|
||||
-]])],
|
||||
-[have_daq_packet_trace="yes"],
|
||||
-[have_daq_packet_trace="no"])
|
||||
+have_daq_packet_trace="yes"
|
||||
+have_daq_packet_trace="no"
|
||||
AC_MSG_RESULT($have_daq_packet_trace)
|
||||
if test "x$have_daq_packet_trace" = "xyes"; then
|
||||
AC_DEFINE([HAVE_DAQ_PKT_TRACE],[1],
|
||||
@@ -245,7 +245,7 @@ index 4b3a5db..a6c5498 100644
|
||||
-]])],
|
||||
-[have_daq_verdict_reason="yes"],
|
||||
-[have_daq_verdict_reason="no"])
|
||||
+have_daq_verdict_reason="yes"
|
||||
+have_daq_verdict_reason="no"
|
||||
AC_MSG_RESULT($have_daq_verdict_reason)
|
||||
if test "x$have_daq_verdict_reason" = "xyes"; then
|
||||
AC_DEFINE([HAVE_DAQ_VERDICT_REASON],[1],
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Snort Startup Script modified for OpenEmbedded
|
||||
# Snort Startup Script modified for OpenEmbedded
|
||||
#
|
||||
|
||||
# Script variables
|
||||
@@ -30,16 +30,16 @@ fi
|
||||
|
||||
start()
|
||||
{
|
||||
|
||||
[ -n "$LAN_INTERFACE" ] || return 0
|
||||
# Check if log diratory is present. Otherwise, create it.
|
||||
if [ ! -d $LOGDIR/$DATE ]; then
|
||||
mkdir -d $LOGDIR/$DATE
|
||||
mkdir -p $LOGDIR/$DATE
|
||||
/bin/chown -R $USER:$USER $LOGDIR/$DATE
|
||||
/bin/chmod -R 700 $LOGDIR/$DATE
|
||||
/bin/chmod -R 700 $LOGDIR/$DATE
|
||||
fi
|
||||
|
||||
/bin/echo "Starting $PROG: "
|
||||
|
||||
# Snort parameters
|
||||
# -D Run Snort in background (daemon) mode
|
||||
# -i <if> Listen on interface <if>
|
||||
@@ -64,7 +64,7 @@ stop()
|
||||
RETURN_VAL=$?
|
||||
/bin/echo "$PROG shutdown complete."
|
||||
[ -e $DEL_PID ] && rm -f $DEL_PID
|
||||
[ -e $DEL_PID.lck ] && rm -f $DEL_PID.lck
|
||||
[ -e $DEL_PID.lck ] && rm -f $DEL_PID.lck
|
||||
else
|
||||
/bin/echo "ERROR: PID in $PID file not found."
|
||||
RETURN_VAL=1
|
||||
@@ -72,12 +72,13 @@ stop()
|
||||
return $RETURN_VAL
|
||||
}
|
||||
|
||||
status() {
|
||||
if [ -s $PID ]; then
|
||||
echo "$PROG is running as pid `cat $PID`:"
|
||||
else
|
||||
echo "$PROG is not running."
|
||||
fi
|
||||
status()
|
||||
{
|
||||
if [ -s $PID ]; then
|
||||
echo "$PROG is running as pid `cat $PID`:"
|
||||
else
|
||||
echo "$PROG is not running."
|
||||
fi
|
||||
}
|
||||
|
||||
restart()
|
||||
@@ -89,21 +90,21 @@ restart()
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
status)
|
||||
status
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
/bin/echo "Usage: $0 {start|stop|status|restart|reload}"
|
||||
RETURN_VAL=1
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
status)
|
||||
status
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
/bin/echo "Usage: $0 {start|stop|status|restart|reload}"
|
||||
RETURN_VAL=1
|
||||
esac
|
||||
|
||||
exit $RETURN_VAL
|
||||
|
||||
+3
-2
@@ -13,8 +13,8 @@ SRC_URI = "https://www.snort.org/downloads/archive/snort/${BP}.tar.gz \
|
||||
file://disable-run-test-program-while-cross-compiling.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "378e3938b2b5c8e358f942d0ffce18cc"
|
||||
SRC_URI[sha256sum] = "9f6b3aeac5a109f55504bd370564ac431cb1773507929dc461626898f33f46cd"
|
||||
SRC_URI[md5sum] = "b61ae846af022018b05511076baad60c"
|
||||
SRC_URI[sha256sum] = "31447393d15286b848810dd78ab2cb3ad231fcd1f1663f959587690eeea75413"
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://www.snort.org/downloads"
|
||||
UPSTREAM_CHECK_REGEX = "snort-(?P<pver>\d+(\.\d+)+)\.tar"
|
||||
@@ -45,6 +45,7 @@ EXTRA_OECONF = " \
|
||||
PACKAGECONFIG ?= "openssl lzma"
|
||||
PACKAGECONFIG[openssl] = "--with-openssl-includes=${STAGING_INCDIR} --with-openssl-libraries=${STAGING_LIBDIR}, --without-openssl-includes --without-openssl-libraries, openssl,"
|
||||
PACKAGECONFIG[lzma] = "--with-lzma-includes=${STAGING_INCDIR} --with-lzma-libraries=${STAGING_LIBDIR}, --without-lzma-includes --without-lzma-libraries, xz,"
|
||||
PACKAGECONFIG[appid] = "--enable-open-appid, --disable-open-appid, luajit, bash"
|
||||
|
||||
CFLAGS += "-I${STAGING_INCDIR}/tirpc"
|
||||
LDFLAGS += " -ltirpc"
|
||||
Reference in New Issue
Block a user