wok view php-curl/receipt @ rev 25609

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 20 14:03:05 2023 +0000 (16 months ago)
parents b10d41313e54
children
line source
1 # SliTaz package receipt.
3 PACKAGE="php-curl"
4 VERSION="7.4.4"
5 CATEGORY="development"
6 SHORT_DESC="curl module for PHP web programming language."
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.php.net/"
11 DEPENDS="curl php"
12 WANTED="php"
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 curl.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
26 do
27 if [ -z "$1" -a -f "/var/run/$file" ]
28 then
29 /etc/init.d/$daemon stop
30 fi
31 done <<EOT
32 apache apache/httpd.pid
33 lighttpd lighttpd.pid
34 EOT
35 }
37 post_install()
38 {
39 grep -q ^extension=curl.so "$1/etc/php.ini" ||
40 sed -e 's|extension=bz2.so|extension=bz2.so\nextension=curl.so|' \
41 -i "$1/etc/php.ini"
43 # Start Web server.
44 while read daemon file
45 do
46 [ -z "$1" ] || continue
47 if [ -f "/var/run/$file" ]
48 then
49 /etc/init.d/$daemon stop
50 sleep 2
51 fi
52 if [ -f /etc/init.d/$daemon ]
53 then
54 /etc/init.d/$daemon start
55 fi
56 done <<EOT
57 apache apache/httpd.pid
58 lighttpd lighttpd.pid
59 EOT
60 }
62 # Pre and post remove commands for Tazpkg.
63 pre_remove()
64 {
65 sed -i '/.*=curl.so.*/d' /etc/php.ini
67 # Start Web server.
68 while read daemon file
69 do
70 [ -z "$1" ] || continue
71 if [ -f "/var/run/$file" ]
72 then
73 /etc/init.d/$daemon stop
74 sleep 2
75 fi
76 if [ -f /etc/init.d/$daemon ]
77 then
78 /etc/init.d/$daemon start
79 fi
80 done <<EOT
81 apache apache/httpd.pid
82 lighttpd lighttpd.pid
83 EOT
84 }