wok rev 23656

updated snort, snort-dev and snort-mysql (2.9.4 -> 2.9.16)
author Hans-G?nter Theisgen
date Wed Apr 22 06:38:03 2020 +0100 (2020-04-22)
parents 1d84e90f8d94
children f76ed41ec985
files snort-dev/receipt snort-mysql/receipt snort/receipt
line diff
     1.1 --- a/snort-dev/receipt	Tue Apr 21 06:26:34 2020 +0000
     1.2 +++ b/snort-dev/receipt	Wed Apr 22 06:38:03 2020 +0100
     1.3 @@ -1,21 +1,22 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="snort-dev"
     1.7 -VERSION="2.9.4"
     1.8 +VERSION="2.9.16"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="Network intrusion prevention and detection system, development files."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="GPL2"
    1.13  WEB_SITE="https://www.snort.org/"
    1.14 +
    1.15 +DEPENDS="pkg-config snort"
    1.16  WANTED="snort"
    1.17  
    1.18 -DEPENDS="snort pkg-config"
    1.19 -
    1.20  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.21  genpkg_rules()
    1.22  {
    1.23  	mkdir -p $fs/usr
    1.24 -	cp -a $install/usr/src $fs/usr
    1.25 -	cp -a $install/usr/lib $fs/usr
    1.26 -	rm -rf $fs/usr/lib/*/*.so*
    1.27 +
    1.28 +	cp -a $install/usr/src	$fs/usr
    1.29 +	cp -a $install/usr/lib	$fs/usr
    1.30 +	rm -rf			$fs/usr/lib/*/*.so*
    1.31  }
     2.1 --- a/snort-mysql/receipt	Tue Apr 21 06:26:34 2020 +0000
     2.2 +++ b/snort-mysql/receipt	Wed Apr 22 06:38:03 2020 +0100
     2.3 @@ -1,28 +1,34 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="snort-mysql"
     2.7 -VERSION="2.9.4"
     2.8 +VERSION="2.9.16"
     2.9  CATEGORY="network"
    2.10  SHORT_DESC="Network intrusion prevention and detection system (IDS/IPS) with MySQL support."
    2.11  MAINTAINER="pascal.bellard@slitaz.org"
    2.12  LICENSE="GPL2"
    2.13 -TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.14  WEB_SITE="https://www.snort.org/"
    2.15 -WGET_URL="https://www.snort.org/downloads/1207"
    2.16 -DEPENDS="pcre libdnet libdaq libmysqlclient"
    2.17 -BUILD_DEPENDS="pcre-dev libpcap-dev libdaq-dev libdnet-dev wget zlib-dev \
    2.18 -mysql-dev flex"
    2.19 +
    2.20 +SOURCE="snort"
    2.21 +TARBALL="$SOURCE-$VERSION.tar.gz"
    2.22 +WGET_URL="${WEB_SITE}downloads/$SOURCE/$TARBALL"
    2.23 +
    2.24 +DEPENDS="libdaq libdnet libmysqlclient openssl pcre"
    2.25 +BUILD_DEPENDS="flex libdaq-dev libdnet-dev libpcap-dev luajit-dev 
    2.26 +	mysql-dev openssl-dev pcre-dev zlib-dev"
    2.27  
    2.28  # Rules to configure and make the package.
    2.29  compile_rules()
    2.30  {
    2.31 -	./configure \
    2.32 -		--prefix=/usr \
    2.33 -		--with-mysql \
    2.34 -		--enable-dynamicplugin \
    2.35 -		--enable-perfprofiling \
    2.36 -		--enable-zlib \
    2.37 -		--enable-reload \
    2.38 +	./configure					\
    2.39 +		luajit_LIBS=/usr/lib/libluajit-5.1.so	\
    2.40 +		lujit_CFLAGS=" "			\
    2.41 +		--prefix=/usr				\
    2.42 +		--with-mysql				\
    2.43 +		 --enable-dynamicplugin			\
    2.44 +		--disable-openappid			\
    2.45 +		 --enable-perfprofiling			\
    2.46 +		 --enable-reload			\
    2.47 +		 --enable-zlib				\
    2.48  		$CONFIGURE_ARGS &&
    2.49  	make &&
    2.50  	make DESTDIR=$DESTDIR install
    2.51 @@ -37,15 +43,15 @@
    2.52  		$fs/usr/share/snort/schemas \
    2.53  		$fs/var/log/snort
    2.54  
    2.55 -	cp -a $install/usr/bin $fs/usr
    2.56 -	cp -a $install/usr/lib/snort_dynamic* $fs/usr/lib
    2.57 +	cp -a $install/usr/bin			$fs/usr
    2.58 +	cp -a $install/usr/lib/snort_dynamic*	$fs/usr/lib
    2.59  
    2.60 -	cp -a $src/etc/*.conf* $fs/etc/snort
    2.61 -	cp -a $src/etc/*.map $fs/etc/snort
    2.62 -	cp -a $src/schemas/create_mysql  $fs/usr/share/snort/schemas
    2.63 +	cp -a $src/etc/*.conf*			$fs/etc/snort
    2.64 +	cp -a $src/etc/*.map			$fs/etc/snort
    2.65 +	cp -a $src/schemas/create_mysql		$fs/usr/share/snort/schemas
    2.66  
    2.67  	# Remove unwanted files
    2.68 -	rm -f $fs/usr/lib/*/*.*a
    2.69 +	rm -f					$fs/usr/lib/*/*.*a
    2.70  }
    2.71  
    2.72  # Post install commands
    2.73 @@ -58,13 +64,16 @@
    2.74  	newline
    2.75  
    2.76  	# addgroup snort if needed
    2.77 -	if ! grep -q snort "$1/etc/group"; then
    2.78 +	if ! grep -q snort "$1/etc/group"
    2.79 +	  then
    2.80  		action 'Adding group snort...'
    2.81  		chroot "$1/" /bin/addgroup snort
    2.82  		status
    2.83  	fi
    2.84 +
    2.85  	# adduser snort if needed
    2.86 -	if ! grep -q 'snort:' "$1/etc/passwd"; then
    2.87 +	if ! grep -q 'snort:' "$1/etc/passwd"
    2.88 +	  then
    2.89  		action 'Adding user snort...'
    2.90  		chroot "$1/" /bin/adduser -s /bin/false -h /dev/null \
    2.91  			-g "Snort Daemon user" -H -D -S -G snort snort
    2.92 @@ -73,13 +82,16 @@
    2.93  	chroot "$1/" chown snort.snort /var/log/snort 
    2.94  
    2.95  	# Create database
    2.96 -	if [ -z "$1" ]; then
    2.97 -		if ( ! mysqladmin -s ping > /dev/null ); then
    2.98 +	if [ -z "$1" ]
    2.99 +	  then
   2.100 +		if ( ! mysqladmin -s ping > /dev/null )
   2.101 +		  then
   2.102  			echo 'Starting MySQL server'
   2.103  			( /etc/init.d/mysql start ; status  ) || exit
   2.104  			sleep 4 #let the mysql daemon start
   2.105  		fi
   2.106 -		if ( ! mysql -u root -Be 'show databases' | grep -q $db_name ); then
   2.107 +		if ( ! mysql -u root -Be 'show databases' | grep -q $db_name )
   2.108 +		  then
   2.109  			action 'Create $db_name database'
   2.110  			mysql -Be "create database $db_name"
   2.111  			status
     3.1 --- a/snort/receipt	Tue Apr 21 06:26:34 2020 +0000
     3.2 +++ b/snort/receipt	Wed Apr 22 06:38:03 2020 +0100
     3.3 @@ -1,22 +1,24 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="snort"
     3.7 -VERSION="2.9.4"
     3.8 +VERSION="2.9.16"
     3.9  CATEGORY="network"
    3.10  SHORT_DESC="Network intrusion prevention and detection system (IDS/IPS)."
    3.11  MAINTAINER="pascal.bellard@slitaz.org"
    3.12  LICENSE="GPL2"
    3.13 +WEB_SITE="https://www.snort.org/"
    3.14 +
    3.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.16 -WEB_SITE="https://www.snort.org/"
    3.17 -WGET_URL="https://www.snort.org/downloads/1207"
    3.18 +WGET_URL="${WEB_SITE}downloads/$PACKAGE/$TARBALL"
    3.19  
    3.20 -DEPENDS="pcre libdnet libdaq"
    3.21 -BUILD_DEPENDS="pcre-dev libpcap-dev libdaq-dev libdnet-dev wget flex"
    3.22 +DEPENDS="libdaq libdnet openssl pcre"
    3.23 +BUILD_DEPENDS="flex libdaq-dev libdnet-dev libpcap-dev luajit-dev 
    3.24 +	openssl-dev pcre-dev"
    3.25  
    3.26  # Rules to configure and make the package.
    3.27  compile_rules()
    3.28  {
    3.29 -	./configure \
    3.30 +	./configure		\
    3.31  		$CONFIGURE_ARGS &&
    3.32  	make &&
    3.33  	make DESTDIR=$DESTDIR install
    3.34 @@ -25,9 +27,11 @@
    3.35  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.36  genpkg_rules()
    3.37  {
    3.38 -	mkdir -p $fs/usr/
    3.39 -	cp -a $install/usr/bin $fs/usr
    3.40 -	cp -a $install/usr/lib $fs/usr
    3.41 -	rm -f $fs/usr/lib/*/*a
    3.42 -	rm -rf $fs/usr/lib/pkgconfig
    3.43 +	mkdir -p $fs/usr
    3.44 +
    3.45 +	cp -a $install/usr/bin	$fs/usr
    3.46 +	cp -a $install/usr/lib	$fs/usr
    3.47 +
    3.48 +	rm -f			$fs/usr/lib/*/*a
    3.49 +	rm -rf			$fs/usr/lib/pkgconfig
    3.50  }