wok-current annotate php-pear/receipt @ rev 24906

updated minidlna (1.2.1 -> 1.3.0)
author Hans-G?nter Theisgen
date Sat Apr 09 14:37:52 2022 +0100 (2022-04-09)
parents b10d41313e54
children a23978bfa665
rev   line source
pascal@1779 1 # SliTaz package receipt.
pascal@1779 2
pascal@1779 3 PACKAGE="php-pear"
Hans-G?nter@23426 4 VERSION="7.4.4"
pascal@1779 5 CATEGORY="development"
pascal@1779 6 SHORT_DESC="PHP web programming language pear libs."
pascal@1779 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15198 8 LICENSE="BSD"
pascal@21278 9 WEB_SITE="https://www.php.net/"
pascal@1779 10
pascal@15198 11 DEPENDS="php-cli"
Hans-G?nter@23426 12 WANTED="php"
pascal@15198 13
pascal@1779 14 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1779 15 genpkg_rules()
pascal@1779 16 {
Hans-G?nter@23426 17 mkdir -p $fs/usr/share
Hans-G?nter@23426 18 mkdir -p $fs/usr/bin $fs/etc
Hans-G?nter@23426 19
Hans-G?nter@23426 20 cp -a $install/usr/share/php $fs/usr/share
Hans-G?nter@23426 21 cp -a $install/etc/pear.conf $fs/etc
Hans-G?nter@23426 22 cp -a $install/usr/bin/pe* $fs/usr/bin
pascal@1779 23 }
pascal@1781 24
pascal@1781 25 # Pre and post install commands for Tazpkg.
pascal@1805 26 pre_install()
pascal@1805 27 {
Hans-G?nter@23426 28 while read daemon file
Hans-G?nter@23426 29 do
Hans-G?nter@23426 30 if [ -z "$1" -a -f "/var/run/$file" ]
Hans-G?nter@23426 31 then
pascal@1805 32 /etc/init.d/$daemon stop
pascal@1805 33 fi
Hans-G?nter@23426 34 done <<EOT
pascal@1805 35 apache apache/httpd.pid
pascal@1805 36 lighttpd lighttpd.pid
pascal@1805 37 EOT
pascal@1805 38 }
pascal@1805 39
pascal@1781 40 post_install()
pascal@1781 41 {
pascal@18730 42 grep ^include_path "$1/etc/php.ini"
Hans-G?nter@23426 43 sed -i 's|/php/includes"|/php/includes"\ninclude_path = ".:/usr/share/php"|' \
Hans-G?nter@23426 44 "$1/etc/php.ini"
Hans-G?nter@23426 45
pascal@1782 46 # Restart Web server.
Hans-G?nter@23426 47 while read daemon file
Hans-G?nter@23426 48 do
pascal@1805 49 [ -z "$1" ] || continue
Hans-G?nter@23426 50 if [ -f "/var/run/$file" ]
Hans-G?nter@23426 51 then
pascal@1805 52 /etc/init.d/$daemon stop
pascal@1805 53 sleep 2
pascal@1805 54 fi
Hans-G?nter@23426 55 if [ -f /etc/init.d/$daemon ]
Hans-G?nter@23426 56 then
pascal@1782 57 /etc/init.d/$daemon start
pascal@1782 58 fi
Hans-G?nter@23426 59 done <<EOT
pascal@1805 60 apache apache/httpd.pid
pascal@1805 61 lighttpd lighttpd.pid
pascal@1805 62 EOT
pascal@1781 63 }