
Receipt for package "php56-gd"
# SliTaz package receipt. PACKAGE="php56-gd" VERSION="5.6.40" CATEGORY="development" SHORT_DESC="gd module for PHP 5.6 web programming language." MAINTAINER="shann@slitaz.org" LICENSE="BSD" WEB_SITE="https://www.php.net/" DEPENDS="jpeg libpng libvpx php56" WANTED="php56" HOST_ARCH="i486 x86_64" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/php56 cp $(find $install | grep gd.so) $fs/usr/share/php56/ } # 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 <<EOT apache apache/httpd.pid lighttpd lighttpd.pid EOT } post_install() { grep -q ^extension=gd.so "$1//etc/php56/php.ini" || sed -e 's|extension=bz2.so|extension=bz2.so\nextension=gd.so|' \ -i "$1//etc/php56/php.ini" # Start Web server. while read daemon file do [ -z "$1" ] || continue if [ -z "$1" -a -f "/var/run/$file" ] then /etc/init.d/$daemon stop sleep 2 fi if [ -z "$1" -a -f /etc/init.d/$daemon ] then /etc/init.d/$daemon start fi done <<EOT apache apache/httpd.pid lighttpd lighttpd.pid EOT } # Pre and post remove commands for Tazpkg. pre_remove() { sed -i '/.*=gd.so.*/d' "$1//etc/php56/php.ini" # Start Web server. while read daemon file do if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ] then [ -z "$1" ] || continue if [ -z "$1" -a -f "/var/run/$file" ] then /etc/init.d/$daemon stop sleep 2 fi if [ -z "$1" -a -f /etc/init.d/$daemon ] then /etc/init.d/$daemon start fi fi done <<EOT apache apache/httpd.pid lighttpd lighttpd.pid EOT }
6088 packages and 256128 files in current database (Wed Mar 5 09:18:31 2025)