wok rev 23658

reverted snort-mysql to 2.9.4
author Hans-G?nter Theisgen
date Wed Apr 22 07:37:32 2020 +0100 (2020-04-22)
parents f76ed41ec985
children f35073d3864a
files snort-mysql/receipt
line diff
     1.1 --- a/snort-mysql/receipt	Wed Apr 22 07:33:31 2020 +0100
     1.2 +++ b/snort-mysql/receipt	Wed Apr 22 07:37:32 2020 +0100
     1.3 @@ -1,34 +1,28 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="snort-mysql"
     1.7 -VERSION="2.9.16"
     1.8 +VERSION="2.9.4"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Network intrusion prevention and detection system (IDS/IPS) with MySQL support."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="GPL2"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14  WEB_SITE="https://www.snort.org/"
    1.15 -
    1.16 -SOURCE="snort"
    1.17 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.18 -WGET_URL="${WEB_SITE}downloads/$SOURCE/$TARBALL"
    1.19 -
    1.20 -DEPENDS="libdaq libdnet libmysqlclient openssl pcre"
    1.21 -BUILD_DEPENDS="flex libdaq-dev libdnet-dev libpcap-dev luajit-dev 
    1.22 -	mysql-dev openssl-dev pcre-dev zlib-dev"
    1.23 +WGET_URL="https://www.snort.org/downloads/1207"
    1.24 +DEPENDS="pcre libdnet libdaq libmysqlclient"
    1.25 +BUILD_DEPENDS="pcre-dev libpcap-dev libdaq-dev libdnet-dev wget zlib-dev \
    1.26 +mysql-dev flex"
    1.27  
    1.28  # Rules to configure and make the package.
    1.29  compile_rules()
    1.30  {
    1.31 -	./configure					\
    1.32 -		luajit_LIBS=/usr/lib/libluajit-5.1.so	\
    1.33 -		lujit_CFLAGS=" "			\
    1.34 -		--prefix=/usr				\
    1.35 -		--with-mysql				\
    1.36 -		 --enable-dynamicplugin			\
    1.37 -		--disable-openappid			\
    1.38 -		 --enable-perfprofiling			\
    1.39 -		 --enable-reload			\
    1.40 -		 --enable-zlib				\
    1.41 +	./configure \
    1.42 +		--prefix=/usr \
    1.43 +		--with-mysql \
    1.44 +		--enable-dynamicplugin \
    1.45 +		--enable-perfprofiling \
    1.46 +		--enable-zlib \
    1.47 +		--enable-reload \
    1.48  		$CONFIGURE_ARGS &&
    1.49  	make &&
    1.50  	make DESTDIR=$DESTDIR install
    1.51 @@ -43,15 +37,15 @@
    1.52  		$fs/usr/share/snort/schemas \
    1.53  		$fs/var/log/snort
    1.54  
    1.55 -	cp -a $install/usr/bin			$fs/usr
    1.56 -	cp -a $install/usr/lib/snort_dynamic*	$fs/usr/lib
    1.57 +	cp -a $install/usr/bin $fs/usr
    1.58 +	cp -a $install/usr/lib/snort_dynamic* $fs/usr/lib
    1.59  
    1.60 -	cp -a $src/etc/*.conf*			$fs/etc/snort
    1.61 -	cp -a $src/etc/*.map			$fs/etc/snort
    1.62 -	cp -a $src/schemas/create_mysql		$fs/usr/share/snort/schemas
    1.63 +	cp -a $src/etc/*.conf* $fs/etc/snort
    1.64 +	cp -a $src/etc/*.map $fs/etc/snort
    1.65 +	cp -a $src/schemas/create_mysql  $fs/usr/share/snort/schemas
    1.66  
    1.67  	# Remove unwanted files
    1.68 -	rm -f					$fs/usr/lib/*/*.*a
    1.69 +	rm -f $fs/usr/lib/*/*.*a
    1.70  }
    1.71  
    1.72  # Post install commands
    1.73 @@ -64,16 +58,13 @@
    1.74  	newline
    1.75  
    1.76  	# addgroup snort if needed
    1.77 -	if ! grep -q snort "$1/etc/group"
    1.78 -	  then
    1.79 +	if ! grep -q snort "$1/etc/group"; then
    1.80  		action 'Adding group snort...'
    1.81  		chroot "$1/" /bin/addgroup snort
    1.82  		status
    1.83  	fi
    1.84 -
    1.85  	# adduser snort if needed
    1.86 -	if ! grep -q 'snort:' "$1/etc/passwd"
    1.87 -	  then
    1.88 +	if ! grep -q 'snort:' "$1/etc/passwd"; then
    1.89  		action 'Adding user snort...'
    1.90  		chroot "$1/" /bin/adduser -s /bin/false -h /dev/null \
    1.91  			-g "Snort Daemon user" -H -D -S -G snort snort
    1.92 @@ -82,16 +73,13 @@
    1.93  	chroot "$1/" chown snort.snort /var/log/snort 
    1.94  
    1.95  	# Create database
    1.96 -	if [ -z "$1" ]
    1.97 -	  then
    1.98 -		if ( ! mysqladmin -s ping > /dev/null )
    1.99 -		  then
   1.100 +	if [ -z "$1" ]; then
   1.101 +		if ( ! mysqladmin -s ping > /dev/null ); then
   1.102  			echo 'Starting MySQL server'
   1.103  			( /etc/init.d/mysql start ; status  ) || exit
   1.104  			sleep 4 #let the mysql daemon start
   1.105  		fi
   1.106 -		if ( ! mysql -u root -Be 'show databases' | grep -q $db_name )
   1.107 -		  then
   1.108 +		if ( ! mysql -u root -Be 'show databases' | grep -q $db_name ); then
   1.109  			action 'Create $db_name database'
   1.110  			mysql -Be "create database $db_name"
   1.111  			status