wok-current annotate php-imap/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 | a23978bfa665 |
| children |
| rev | line source |
|---|---|
| pascal@1324 | 1 # SliTaz package receipt. |
| pascal@1324 | 2 |
| pascal@1324 | 3 PACKAGE="php-imap" |
| shann@25629 | 4 VERSION="7.4.33" |
| pascal@1324 | 5 CATEGORY="development" |
| pascal@1324 | 6 SHORT_DESC="imap module for PHP web programming language." |
| pascal@1324 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
| pascal@15198 | 8 LICENSE="BSD" |
| pascal@21278 | 9 WEB_SITE="https://www.php.net/" |
| Hans-Günter@23426 | 10 |
| Hans-Günter@23426 | 11 DEPENDS="openssl php" |
| pascal@1324 | 12 WANTED="php" |
| pascal@1324 | 13 |
| shann@25728 | 14 HOST_ARCH="i486 x86_64" |
| shann@25728 | 15 |
| pascal@1324 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
| pascal@1324 | 17 genpkg_rules() |
| pascal@1324 | 18 { |
| pascal@1324 | 19 mkdir -p $fs/usr/share/php |
| Hans-Günter@23426 | 20 cp $(find $install | grep imap.so) $fs/usr/share/php/ |
| pascal@1324 | 21 } |
| pascal@1324 | 22 |
| pascal@1324 | 23 # Post and pre install commans to stop |
| pascal@1324 | 24 # and restart Web server if needed. |
| pascal@1324 | 25 pre_install() |
| pascal@1324 | 26 { |
| Hans-Günter@23426 | 27 while read daemon file |
| Hans-Günter@23426 | 28 do |
| Hans-Günter@23426 | 29 if [ -z "$1" -a -f "/var/run/$file" ] |
| Hans-Günter@23426 | 30 then |
| pascal@1324 | 31 /etc/init.d/$daemon stop |
| pascal@1324 | 32 fi |
| Hans-Günter@23426 | 33 done <<EOT |
| pascal@1324 | 34 apache apache/httpd.pid |
| pascal@1324 | 35 lighttpd lighttpd.pid |
| pascal@1324 | 36 EOT |
| pascal@1324 | 37 } |
| pascal@1324 | 38 |
| pascal@1324 | 39 post_install() |
| pascal@1324 | 40 { |
| Hans-Günter@23426 | 41 grep -q ^extension=imap.so "$1/etc/php.ini" || |
| Hans-Günter@23426 | 42 sed -e 's|extension=bz2.so|extension=bz2.so\nextension=imap.so|' \ |
| Hans-Günter@23426 | 43 -i "$1/etc/php.ini" |
| Hans-Günter@23426 | 44 |
| pascal@1324 | 45 # Start Web server. |
| Hans-Günter@23426 | 46 while read daemon file |
| Hans-Günter@23426 | 47 do |
| pascal@1805 | 48 [ -z "$1" ] || continue |
| Hans-Günter@23426 | 49 if [ -f "/var/run/$file" ] |
| Hans-Günter@23426 | 50 then |
| pascal@1805 | 51 /etc/init.d/$daemon stop |
| pascal@1805 | 52 sleep 2 |
| pascal@1805 | 53 fi |
| Hans-Günter@23426 | 54 if [ -f /etc/init.d/$daemon ] |
| Hans-Günter@23426 | 55 then |
| pascal@1324 | 56 /etc/init.d/$daemon start |
| pascal@1324 | 57 fi |
| Hans-Günter@23426 | 58 done <<EOT |
| pascal@1324 | 59 apache apache/httpd.pid |
| pascal@1324 | 60 lighttpd lighttpd.pid |
| pascal@1324 | 61 EOT |
| pascal@1324 | 62 } |
| pascal@1324 | 63 |
| pascal@1749 | 64 # Pre and post remove commands for Tazpkg. |
| pascal@1749 | 65 pre_remove() |
| pascal@1749 | 66 { |
| pascal@1749 | 67 sed -i '/.*=imap.so.*/d' /etc/php.ini |
| pascal@1749 | 68 |
| pascal@1749 | 69 # Start Web server. |
| Hans-Günter@23426 | 70 while read daemon file |
| Hans-Günter@23426 | 71 do |
| slaxemulator@14614 | 72 [ -z "$1" ] || continue |
| Hans-Günter@23426 | 73 if [ -f "/var/run/$file" ] |
| Hans-Günter@23426 | 74 then |
| pascal@1805 | 75 /etc/init.d/$daemon stop |
| pascal@1805 | 76 sleep 2 |
| slaxemulator@14614 | 77 fi |
| Hans-Günter@23426 | 78 if [ -f /etc/init.d/$daemon ] |
| Hans-Günter@23426 | 79 then |
| pascal@1749 | 80 /etc/init.d/$daemon start |
| pascal@1749 | 81 fi |
| Hans-Günter@23426 | 82 done <<EOT |
| pascal@1749 | 83 apache apache/httpd.pid |
| pascal@1749 | 84 lighttpd lighttpd.pid |
| pascal@1749 | 85 EOT |
| pascal@1749 | 86 } |