wok-6.x annotate php-pear/receipt @ rev 1782
php-pear: restart web server
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 29 10:38:27 2008 +0000 (2008-11-29) |
parents | dc930a3898b9 |
children | 1143af92f66a |
rev | line source |
---|---|
pascal@1779 | 1 # SliTaz package receipt. |
pascal@1779 | 2 |
pascal@1779 | 3 PACKAGE="php-pear" |
pascal@1779 | 4 VERSION="5.2.5" |
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@1779 | 8 DEPENDS="php" |
pascal@1779 | 9 WEB_SITE="http://www.php.net/" |
pascal@1779 | 10 WANTED="php" |
pascal@1779 | 11 |
pascal@1779 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1779 | 13 genpkg_rules() |
pascal@1779 | 14 { |
pascal@1779 | 15 mkdir -p $fs/usr/share $fs/usr/bin $fs/etc |
pascal@1779 | 16 cp -a $_pkg/usr/share/php $fs/usr/share |
pascal@1779 | 17 cp $_pkg/etc/pear.conf $fs/etc |
pascal@1779 | 18 cp $_pkg/usr/bin/pe* $fs/usr/bin |
pascal@1779 | 19 } |
pascal@1781 | 20 |
pascal@1781 | 21 # Pre and post install commands for Tazpkg. |
pascal@1781 | 22 post_install() |
pascal@1781 | 23 { |
pascal@1781 | 24 grep ^include_path $1/etc/php.ini |
pascal@1781 | 25 sed -i 's|/php/includes"|/php/includes"\ninclude_path = ".:/usr/share/php"|' $1/etc/php.ini |
pascal@1782 | 26 # Restart Web server. |
pascal@1782 | 27 for daemon in apache lighttpd ; do |
pascal@1782 | 28 if [ -f /etc/init.d/$daemon ]; then |
pascal@1782 | 29 /etc/init.d/$daemon stop |
pascal@1782 | 30 /etc/init.d/$daemon start |
pascal@1782 | 31 fi |
pascal@1782 | 32 done |
pascal@1781 | 33 } |