wok view php-gd/receipt @ rev 23163

updated man-pages (5.00 -> 5.05)
author Hans-G?nter Theisgen
date Tue Mar 17 14:37:26 2020 +0100 (2020-03-17)
parents 84a3b4b621e1
children b10d41313e54
line source
1 # SliTaz package receipt.
3 PACKAGE="php-gd"
4 VERSION="7.3.12"
5 CATEGORY="development"
6 SHORT_DESC="gd module for PHP web programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.php.net/"
10 WANTED="php"
12 DEPENDS="libpng php jpeg libvpx"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/usr/share/php
18 cp $(find $install | grep gd.so) $fs/usr/share/php/
19 }
21 # Post and pre install commans to stop
22 # and restart Web server if needed.
23 pre_install()
24 {
25 while read daemon file; do
26 if [ -z "$1" -a -f "/var/run/$file" ]; then
27 /etc/init.d/$daemon stop
28 fi
29 done <<EOT
30 apache apache/httpd.pid
31 lighttpd lighttpd.pid
32 EOT
33 }
35 post_install()
36 {
37 grep -q ^extension=gd.so "$1/etc/php.ini" || \
38 sed -e 's|extension=bz2.so|extension=bz2.so\nextension=gd.so|' -i "$1/etc/php.ini"
39 # Start Web server.
40 while read daemon file; do
41 [ -z "$1" ] || continue
42 if [ -z "$1" -a -f "/var/run/$file" ]; then
43 /etc/init.d/$daemon stop
44 sleep 2
45 fi
46 if [ -z "$1" -a -f /etc/init.d/$daemon ]; then
47 /etc/init.d/$daemon start
48 fi
49 done <<EOT
50 apache apache/httpd.pid
51 lighttpd lighttpd.pid
52 EOT
53 }
55 # Pre and post remove commands for Tazpkg.
56 pre_remove()
57 {
58 sed -i '/.*=gd.so.*/d' "$1/etc/php.ini"
60 # Start Web server.
61 while read daemon file; do
62 if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]; then
63 [ -z "$1" ] || continue
64 if [ -z "$1" -a -f "/var/run/$file" ]; then
65 /etc/init.d/$daemon stop
66 sleep 2
67 fi
68 if [ -z "$1" -a -f /etc/init.d/$daemon ]; then
69 /etc/init.d/$daemon start
70 fi
71 fi
72 done <<EOT
73 apache apache/httpd.pid
74 lighttpd lighttpd.pid
75 EOT
76 }