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