wok-next rev 21212

updated barnyard2 (1.9 -> 2.1.13)
author Hans-G?nter Theisgen
date Mon Dec 02 17:16:10 2019 +0100 (2019-12-02)
parents 0fad48cbb7f8
children fe4ea69342c1
files barnyard2/receipt
line diff
     1.1 --- a/barnyard2/receipt	Mon Dec 02 17:01:23 2019 +0100
     1.2 +++ b/barnyard2/receipt	Mon Dec 02 17:16:10 2019 +0100
     1.3 @@ -1,21 +1,22 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="barnyard2"
     1.7 -VERSION="1.9"
     1.8 +VERSION="2.1.13"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="Output spool reader for Snort"
    1.11 -MAINTAINER="devel@slitaz.org"
    1.12 +MAINTAINER="maintainer@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14  WEB_SITE="https://github.com/firnsy/barnyard2"
    1.15  
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WGET_URL="http://www.securixlive.com/download/barnyard2/$TARBALL"
    1.18 +WGET_URL="https://github.com/firnsy/$PACKAGE/archive/v${VERSION/./-}/$TARBALL"
    1.19  
    1.20  BUILD_DEPENDS="libpcap-dev"
    1.21  
    1.22 -compile_rules() {
    1.23 -	./configure \
    1.24 -		--sysconfdir=/etc/barnyard2 \
    1.25 +compile_rules()
    1.26 +{
    1.27 +	./configure				\
    1.28 +		--sysconfdir=/etc/barnyard2	\
    1.29  		$CONFIGURE_ARGS &&
    1.30  	fix libtool &&
    1.31  	make &&
    1.32 @@ -24,19 +25,23 @@
    1.33  	mkdir -p $install/var/log/barnyard2/
    1.34  }
    1.35  
    1.36 -genpkg_rules() {
    1.37 +genpkg_rules()
    1.38 +{
    1.39  	copy @std
    1.40  	DEPENDS="libpcap"
    1.41  }
    1.42  
    1.43 -post_install() {
    1.44 +post_install()
    1.45 +{
    1.46  	# addgroup snort if needed
    1.47 -	if ! grep -q 'snort:' "$1/etc/group"; then
    1.48 +	if ! grep -q 'snort:' "$1/etc/group"
    1.49 +	  then
    1.50  		chroot "$1/" /bin/addgroup snort
    1.51  	fi
    1.52  
    1.53  	# adduser snort if needed
    1.54 -	if ! grep -q 'snort:' "$1/etc/passwd"; then
    1.55 +	if ! grep -q 'snort:' "$1/etc/passwd"
    1.56 +	  then
    1.57  		chroot "$1/" /bin/adduser -s /bin/false -h /dev/null \
    1.58  			-g "Snort Daemon user" -H -D -S -G snort snort
    1.59  	fi