wok-current annotate php-common/receipt @ rev 20331
fasm: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 29 10:57:28 2018 +0200 (2018-05-29) |
parents | 9e01bc6321ea |
children | b95ac33cc6fe |
rev | line source |
---|---|
pascal@1315 | 1 # SliTaz package receipt. |
pascal@1315 | 2 |
pascal@1315 | 3 PACKAGE="php-common" |
erjo@16733 | 4 VERSION="5.5.13" |
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@20319 | 30 echo |
pascal@1315 | 31 echo -n "Creating php.ini backup..." |
pascal@18730 | 32 cp "$1/etc/php.ini" "$1/etc/php.ini.bak" |
pascal@1315 | 33 status |
pascal@1315 | 34 fi |
pascal@1315 | 35 } |
pascal@1315 | 36 post_install() |
pascal@1315 | 37 { |
pascal@1315 | 38 # Restore original php.ini |
pascal@1315 | 39 if [ -f "$1/etc/php.ini.bak" ]; then |
pascal@20319 | 40 echo |
pascal@1315 | 41 echo -n "Restoring php.ini backup..." |
pascal@18730 | 42 mv -f "$1/etc/php.ini.bak" "$1/etc/php.ini" |
pascal@1315 | 43 status |
pascal@1315 | 44 fi |
pascal@1315 | 45 } |