wok-6.x annotate php-pear/receipt @ rev 1781
php_pear: setup include_path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 29 10:01:52 2008 +0000 (2008-11-29) |
parents | 82beb3f42c4b |
children | 111a98b98ac0 |
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@1781 | 26 } |