wok-next diff sagan/receipt @ rev 20845

Add neofetch, tcl2c-fork; build two versions of tklauncher (using tcl2c and tcl2c-fork) with different warnings
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jun 23 09:45:42 2018 +0300 (2018-06-23)
parents 757d032c55c7
children d5aab818505e
line diff
     1.1 --- a/sagan/receipt	Fri Mar 30 19:31:50 2018 +0300
     1.2 +++ b/sagan/receipt	Sat Jun 23 09:45:42 2018 +0300
     1.3 @@ -11,21 +11,48 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.5  WGET_URL="http://sagan.softwink.com/download/$TARBALL"
     1.6  
     1.7 -BUILD_DEPENDS="libesmtp-dev libpcap-dev libdnet-dev liblognorm-dev pcre-dev"
     1.8 +BUILD_DEPENDS="libesmtp-dev libpcap-dev libdnet-dev liblognorm-dev pcre-dev \
     1.9 +mysql-dev postgresql-dev"
    1.10 +SPLIT="sagan-mysql:mysql sagan-pgsql:pgsql"
    1.11  
    1.12  compile_rules() {
    1.13 +	case $SET in
    1.14 +		'')    SET_ARGS="--disable-mysql --disable-postgresql";;
    1.15 +		mysql) SET_ARGS="--disable-postgresql";;
    1.16 +		pgsql) SET_ARGS="--disable-mysql \
    1.17 +				--with-postgresql-includes=/usr/include/postgresql \
    1.18 +				--with-postgresql-libraries=/usr/lib/postgresql";;
    1.19 +	esac
    1.20 +
    1.21  	./configure \
    1.22  		--sysconfdir=/etc/sagan \
    1.23 -		--disable-mysql \
    1.24 -		--disable-postgresql \
    1.25  		--disable-prelude \
    1.26  		--disable-lognorm \
    1.27 +		$SET_ARGS \
    1.28  		$CONFIGURE_ARGS &&
    1.29  	make &&
    1.30  	make install
    1.31  }
    1.32  
    1.33  genpkg_rules() {
    1.34 -	copy @std
    1.35 -	DEPENDS="libesmtp libpcap libdnet liblognorm sagan-rules pcre"
    1.36 +	case $PACKAGE in
    1.37 +		sagan)
    1.38 +			copy @std
    1.39 +			DEPENDS="libesmtp libpcap libpcre   libdnet sagan-rules"
    1.40 +			;;
    1.41 +		sagan-mysql)
    1.42 +			copy @std
    1.43 +			DEPENDS="libesmtp libmysqlclient libpcap libpcre   libdnet \
    1.44 +			sagan-rules"
    1.45 +			CATEGORY="security|with MySQL support"
    1.46 +			PROVIDE="sagan"
    1.47 +			;;
    1.48 +		sagan-pgsql)
    1.49 +			copy @std
    1.50 +			DEPENDS="libesmtp libpcap libpcre libpostgresqlclient   libdnet \
    1.51 +			sagan-rules"
    1.52 +			CATEGORY="security|with PostgreSQL support"
    1.53 +			PROVIDE="sagan"
    1.54 +			;;
    1.55 +	esac
    1.56  }