wok-stable diff php/receipt @ rev 10728

Fixed all sourced slitaz-dev-tools receipts. The way cook works is it keeps the .hg folder when downloading mecurial sources. By downloading the $VERSION.tar.bz2 and renaming it $SOURCE-$VERSION.tar.bz2 we don't keep the .hg folder in source tarball. Repos will be backup on source dvd anyway so this does save a little bit of space.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat May 28 21:18:14 2011 +0000 (2011-05-28)
parents 95a06d7c9189
children 62786d242bc4
line diff
     1.1 --- a/php/receipt	Mon May 16 20:12:20 2011 +0200
     1.2 +++ b/php/receipt	Sat May 28 21:18:14 2011 +0000
     1.3 @@ -67,6 +67,13 @@
     1.4  		cp /etc/apache/httpd.conf $DESTDIR/etc/apache/httpd.conf
     1.5  		make INSTALL_ROOT=$DESTDIR install
     1.6  	}
     1.7 +	# Recommended config file and phpinfo.
     1.8 +	cp $src/php.ini-recommended $DESTDIR/etc/php.ini
     1.9 +	sed -e 's|extension_dir = "./"|extension_dir = "/usr/share/php/"|' \
    1.10 +		-i $DESTDIR/etc/php.ini
    1.11 +	mkdir -p $DESTDIR/usr/share/applicattions $DESTDIR/usr/share/pixmaps
    1.12 +	cp $stuff/php.desktop $DESTDIR/usr/share/applications
    1.13 +	cp $stuff/php.png $DESTDIR/usr/share/pixmaps
    1.14  }
    1.15  
    1.16  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.17 @@ -74,10 +81,7 @@
    1.18  {
    1.19  	mkdir -p $fs/usr/bin $fs/etc $fs/usr/share/php
    1.20  	cp -a $src/sapi/cgi/php-cgi $fs/usr/bin
    1.21 -	# Recommended config file and phpinfo.
    1.22 -	cp $src/php.ini-recommended $fs/etc/php.ini
    1.23 -	sed -e 's|extension_dir = "./"|extension_dir = "/usr/share/php/"|' \
    1.24 -	    -i $fs/etc/php.ini
    1.25 +
    1.26  	cp -a $stuff/phpinfo $install/usr/share
    1.27  }
    1.28