# HG changeset patch # User Pascal Bellard # Date 1220024468 0 # Node ID 24cffdc5d96157822c93c4365bd8ad92a1e4d99e # Parent cf2ce55f4ea3ddc4385825f5577b333eff7cfce3 Add php-gd diff -r cf2ce55f4ea3 -r 24cffdc5d961 php-gd/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/php-gd/receipt Fri Aug 29 15:41:08 2008 +0000 @@ -0,0 +1,48 @@ +# SliTaz package receipt. + +PACKAGE="php-gd" +VERSION="5.2.5" +CATEGORY="development" +SHORT_DESC="gd module for PHP web programming language." +MAINTAINER="pascal.bellard@slitaz.org" +DEPENDS="libpng php" +WEB_SITE="http://www.php.net/" +WANTED="php" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/php + cp $(find $_pkg | grep gd.so) $fs/usr/share/php/ +} + +# Post and pre install commans to stop +# and restart Web server if needed. +pre_install() +{ + while read daemon file; do + if [ -z "$1" -a -f "/var/run/$file" ]; then + /etc/init.d/$daemon stop + fi + done <