wok-next diff sagan-pgsql/receipt @ rev 20534

Clean default configure options when site script used.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 30 19:31:50 2018 +0300 (2018-03-30)
parents 96615f3b1048
children
line diff
     1.1 --- a/sagan-pgsql/receipt	Sun Oct 29 23:24:57 2017 +0100
     1.2 +++ b/sagan-pgsql/receipt	Fri Mar 30 19:31:50 2018 +0300
     1.3 @@ -1,41 +1,35 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="sagan-pgsql"
     1.8  VERSION="0.2.0"
     1.9  CATEGORY="security"
    1.10 -SHORT_DESC="Real time system and event log monitoring system with PostgreSQL support"
    1.11 +SHORT_DESC="Real time system and event log monitoring system with PostgreSQL \
    1.12 +support"
    1.13  MAINTAINER="erjo@slitaz.org"
    1.14  LICENSE="GPL2"
    1.15  WEB_SITE="http://sagan.softwink.com/"
    1.16 -SOURCE="sagan"
    1.17 -TARBALL="$SOURCE-$VERSION.tar.gz"
    1.18 +
    1.19 +TARBALL="sagan-$VERSION.tar.gz"
    1.20  WGET_URL="http://sagan.softwink.com/download/$TARBALL"
    1.21  
    1.22 -DEPENDS="libesmtp libpcap libdnet libpostgresqlclient liblognorm sagan-rules"
    1.23  BUILD_DEPENDS="libesmtp-dev libpcap-dev libdnet-dev postgresql-dev \
    1.24  liblognorm-dev pcre-dev"
    1.25 -PROVIDE="sagan"
    1.26  
    1.27 -# Rules to configure and make the package.
    1.28 -compile_rules()
    1.29 -{
    1.30 -	cd $src
    1.31 -	./configure $CONFIGURE_ARGS \
    1.32 +compile_rules() {
    1.33 +	./configure \
    1.34  		--sysconfdir=/etc/sagan \
    1.35  		--with-postgresql-includes=/usr/include/postgresql \
    1.36  		--with-postgresql-libraries=/usr/lib/postgresql \
    1.37  		--disable-mysql \
    1.38  		--disable-prelude \
    1.39  		--disable-lognorm \
    1.40 -	&& make && make install
    1.41 +		$CONFIGURE_ARGS &&
    1.42 +	make &&
    1.43 +	make install
    1.44  }
    1.45  
    1.46 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.47 -genpkg_rules()
    1.48 -{
    1.49 -	mkdir $fs/usr
    1.50 -	
    1.51 -	cp -a $install/usr/bin $fs/usr
    1.52 -	cp -a $install/var $fs/
    1.53 -	cp -a $install/etc $fs/
    1.54 +genpkg_rules() {
    1.55 +	copy @std
    1.56 +	DEPENDS="libesmtp libpcap libdnet libpostgresqlclient liblognorm sagan-rules"
    1.57 +	PROVIDE="sagan"
    1.58  }