wok-current view php56-gd/receipt @ rev 25786
Bump gvfs to fix issue with open files on android device, patch udev to fix mtp issue on pcmanfm
| author | Stanislas Leduc <shann@slitaz.org> |
|---|---|
| date | Tue Jul 29 18:05:13 2025 +0000 (2 months ago) |
| parents | |
| children |
line source
1 # SliTaz package receipt.
3 PACKAGE="php56-gd"
4 VERSION="5.6.40"
5 CATEGORY="development"
6 SHORT_DESC="gd module for PHP 5.6 web programming language."
7 MAINTAINER="shann@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.php.net/"
11 DEPENDS="jpeg libpng libvpx php56"
12 WANTED="php56"
14 HOST_ARCH="i486 x86_64"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 mkdir -p $fs/usr/share/php56
20 cp $(find $install | grep gd.so) $fs/usr/share/php56/
21 }
23 # Post and pre install commans to stop
24 # and restart Web server if needed.
25 pre_install()
26 {
27 while read daemon file
28 do
29 if [ -z "$1" -a -f "/var/run/$file" ]
30 then
31 /etc/init.d/$daemon stop
32 fi
33 done <<EOT
34 apache apache/httpd.pid
35 lighttpd lighttpd.pid
36 EOT
37 }
39 post_install()
40 {
41 grep -q ^extension=gd.so "$1//etc/php56/php.ini" ||
42 sed -e 's|extension=bz2.so|extension=bz2.so\nextension=gd.so|' \
43 -i "$1//etc/php56/php.ini"
45 # Start Web server.
46 while read daemon file
47 do
48 [ -z "$1" ] || continue
49 if [ -z "$1" -a -f "/var/run/$file" ]
50 then
51 /etc/init.d/$daemon stop
52 sleep 2
53 fi
54 if [ -z "$1" -a -f /etc/init.d/$daemon ]
55 then
56 /etc/init.d/$daemon start
57 fi
58 done <<EOT
59 apache apache/httpd.pid
60 lighttpd lighttpd.pid
61 EOT
62 }
64 # Pre and post remove commands for Tazpkg.
65 pre_remove()
66 {
67 sed -i '/.*=gd.so.*/d' "$1//etc/php56/php.ini"
69 # Start Web server.
70 while read daemon file
71 do
72 if [ -f /etc/init.d/$daemon -a -f "/var/run/$file" ]
73 then
74 [ -z "$1" ] || continue
75 if [ -z "$1" -a -f "/var/run/$file" ]
76 then
77 /etc/init.d/$daemon stop
78 sleep 2
79 fi
80 if [ -z "$1" -a -f /etc/init.d/$daemon ]
81 then
82 /etc/init.d/$daemon start
83 fi
84 fi
85 done <<EOT
86 apache apache/httpd.pid
87 lighttpd lighttpd.pid
88 EOT
89 }