wok rev 12096

Up: sarg (2.3.1) + improve receipt
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sun Mar 11 02:32:35 2012 +0100 (2012-03-11)
parents 8fd412038da2
children 8eca57f89147
files sarg/receipt
line diff
     1.1 --- a/sarg/receipt	Sat Mar 10 23:13:38 2012 +0100
     1.2 +++ b/sarg/receipt	Sun Mar 11 02:32:35 2012 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="sarg"
     1.7 -VERSION="2.2.6"
     1.8 +VERSION="2.3.1"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Squid Analysis Report Generator."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -12,28 +12,22 @@
    1.13  # Rules to configure and make the package.
    1.14  compile_rules()
    1.15  {
    1.16 -	cd $src
    1.17 -	./configure --prefix=/usr --infodir=/usr/share/info \
    1.18 -	--enable-sysconfdir=/etc/sarg --enable-htmldir=/var/www \
    1.19 -	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.20 -	make || return 1
    1.21 -	sed -e "s|/usr/bin|$PWD/_pkg/usr/bin|" \
    1.22 -	    -e "s|/etc/sarg|$PWD/_pkg/etc/sarg|" \
    1.23 -	    -e "s|/var/www|$PWD/_pkg/var/www|" \
    1.24 -	    -e "s|/usr/local/man/man1|$PWD/_pkg/usr/man/man1|" \
    1.25 -	    < Makefile > Makefile.install
    1.26 -	mkdir -p $PWD/_pkg/usr/bin $PWD/_pkg/etc/sarg $PWD/_pkg/var/www \
    1.27 -		 $PWD/_pkg/usr/man/man1
    1.28 -	make -f Makefile.install install
    1.29 +	./configure --sysconfdir=/etc/sarg \
    1.30 +		--bindir=/usr/bin \
    1.31 +		--enable-htmldir=/var/www \
    1.32 +		--enable-fontdir=/usr/share/sarg/fonts \
    1.33 +		--enable-imagedir=/usr/share/sarg/images \
    1.34 +		--enable-sargphp=/var/www/sarg-php \
    1.35 +		&&	make && make install
    1.36  }
    1.37  
    1.38  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.39  genpkg_rules()
    1.40  {
    1.41 -	mkdir -p $fs/usr
    1.42 -	cp -a $_pkg/var $fs
    1.43 -	cp -a $_pkg/etc $fs
    1.44 -	rm -rf $fs/etc/sarg/sarg-php
    1.45 -	cp -a $_pkg/usr/bin $fs/usr
    1.46 +	mkdir -p $fs/usr $fs/usr/share
    1.47 +	cp -a $install/var $fs
    1.48 +	cp -a $install/etc $fs
    1.49 +	cp -a $install/usr/bin $fs/usr
    1.50 +	cp -a $install/usr/share/sarg $fs/usr/share
    1.51  }
    1.52