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