wok-current annotate php-common/receipt @ rev 15843
Up: python-distribute to 0.6.49.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Jan 27 06:12:51 2014 +0000 (2014-01-27) |
parents | 78cb1e930abd |
children | 76c1f14d1820 |
rev | line source |
---|---|
pascal@1315 | 1 # SliTaz package receipt. |
pascal@1315 | 2 |
pascal@1315 | 3 PACKAGE="php-common" |
pascal@15729 | 4 VERSION="5.4.23" |
pascal@1315 | 5 CATEGORY="development" |
pascal@1315 | 6 SHORT_DESC="Common files for PHP modules." |
pascal@1315 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15198 | 8 LICENSE="BSD" |
pascal@1315 | 9 WEB_SITE="http://www.php.net/" |
pascal@1315 | 10 WANTED="php" |
pascal@1315 | 11 CONFIG_FILES="/etc/php.ini" |
pascal@1315 | 12 |
pascal@1315 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1315 | 14 genpkg_rules() |
pascal@1315 | 15 { |
pankso@10819 | 16 mkdir -p $fs/etc \ |
pankso@10819 | 17 $fs/usr/share/applications \ |
pankso@10819 | 18 $fs/usr/share/pixmaps |
pankso@10819 | 19 cp -a $stuff/phpinfo $fs/usr/share |
pankso@10819 | 20 cp $stuff/php.desktop $fs/usr/share/applications |
pankso@10819 | 21 cp $stuff/php.png $fs/usr/share/pixmaps |
pankso@10819 | 22 cp $install/etc/php.ini $fs/etc |
pascal@1315 | 23 } |
pascal@1315 | 24 |
pascal@1315 | 25 # Post and pre install commands |
pascal@1315 | 26 pre_install() |
pascal@1315 | 27 { |
pascal@1315 | 28 # Backup existing php.ini |
pascal@1315 | 29 if [ -f "$1/etc/php.ini" ]; then |
pascal@1315 | 30 echo -n "Creating php.ini backup..." |
pascal@1315 | 31 cp $1/etc/php.ini $1/etc/php.ini.bak |
pascal@1315 | 32 status |
pascal@1315 | 33 fi |
pascal@1315 | 34 } |
pascal@1315 | 35 post_install() |
pascal@1315 | 36 { |
pascal@1315 | 37 # Restore original php.ini |
pascal@1315 | 38 if [ -f "$1/etc/php.ini.bak" ]; then |
pascal@1315 | 39 echo -n "Restoring php.ini backup..." |
pascal@1315 | 40 mv -f $1/etc/php.ini.bak $1/etc/php.ini |
pascal@1315 | 41 status |
pascal@1315 | 42 fi |
pascal@1315 | 43 } |