wok diff ocsreports/receipt @ rev 8808

Add: libdrm-mach64 20110109
author Antoine Bodin <gokhlayeh@slitaz.org>
date Wed Feb 23 01:16:27 2011 +0100 (2011-02-23)
parents 93d0091756cf
children 129bb5b11a7e
line diff
     1.1 --- a/ocsreports/receipt	Fri Feb 04 17:06:43 2011 +0100
     1.2 +++ b/ocsreports/receipt	Wed Feb 23 01:16:27 2011 +0100
     1.3 @@ -15,12 +15,10 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 -	src=$WOK/$WANTED/$SOURCE-$VERSION
     1.8 -	
     1.9  	mkdir -p $fs/usr/share \
    1.10  		$fs/etc/ocsreports
    1.11  		
    1.12 -	cp -a $WOK/$WANTED/${SOURCE}-${VERSION}/${PACKAGE} $fs/usr/share/
    1.13 +	cp -a $src/${PACKAGE} $fs/usr/share/
    1.14  	cat > $fs/etc/ocsreports/dbconfig.inc.php <<EOT
    1.15  <?php 
    1.16  	\$_SESSION["SERVEUR_SQL"]="localhost";
    1.17 @@ -87,6 +85,8 @@
    1.18  
    1.19  post_remove()
    1.20  {
    1.21 +
    1.22 +	if [ -z $1 ]; then
    1.23  		echo -n "Would you like to remove data and database files.(y/n) "
    1.24  		read answer
    1.25  
    1.26 @@ -105,6 +105,7 @@
    1.27  		*)
    1.28  			;;
    1.29  		esac
    1.30 +	fi
    1.31  	
    1.32  }
    1.33