wok-4.x annotate php-common/receipt @ rev 2076
Add: libexe*, libxfce4mcs*, libxfce4util*, libxfcegui4*
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Jan 23 23:12:13 2009 +0100 (2009-01-23) |
parents | 60fa2013526b |
children | cdb7f539e116 |
rev | line source |
---|---|
pascal@1315 | 1 # SliTaz package receipt. |
pascal@1315 | 2 |
pascal@1315 | 3 PACKAGE="php-common" |
pascal@1315 | 4 VERSION="5.2.5" |
pascal@1315 | 5 CATEGORY="development" |
pascal@1315 | 6 SHORT_DESC="Common files for PHP modules." |
pascal@1315 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1315 | 8 WEB_SITE="http://www.php.net/" |
pascal@1315 | 9 WANTED="php" |
pascal@1315 | 10 CONFIG_FILES="/etc/php.ini" |
pascal@1315 | 11 |
pascal@1315 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1315 | 13 genpkg_rules() |
pascal@1315 | 14 { |
pascal@1315 | 15 mkdir -p $fs/usr/share $fs/etc |
pascal@1315 | 16 cp -a $_pkg/usr/share/phpinfo $fs/usr/share |
pascal@1315 | 17 cp -a $_pkg/usr/share/applications $fs/usr/share |
pascal@1565 | 18 cp -a $_pkg/usr/share/pixmaps $fs/usr/share |
pascal@1315 | 19 cp $_pkg/etc/php.ini $fs/etc |
pascal@1315 | 20 } |
pascal@1315 | 21 |
pascal@1315 | 22 # Post and pre install commands |
pascal@1315 | 23 pre_install() |
pascal@1315 | 24 { |
pascal@1315 | 25 # Backup existing php.ini |
pascal@1315 | 26 if [ -f "$1/etc/php.ini" ]; then |
pascal@1315 | 27 echo -n "Creating php.ini backup..." |
pascal@1315 | 28 cp $1/etc/php.ini $1/etc/php.ini.bak |
pascal@1315 | 29 status |
pascal@1315 | 30 fi |
pascal@1315 | 31 } |
pascal@1315 | 32 post_install() |
pascal@1315 | 33 { |
pascal@1315 | 34 # Restore original php.ini |
pascal@1315 | 35 if [ -f "$1/etc/php.ini.bak" ]; then |
pascal@1315 | 36 echo -n "Restoring php.ini backup..." |
pascal@1315 | 37 mv -f $1/etc/php.ini.bak $1/etc/php.ini |
pascal@1315 | 38 status |
pascal@1315 | 39 fi |
pascal@1315 | 40 } |