wok annotate php-common/receipt @ rev 7115
Up: web-applications to 1.3. Removed freehg and replaced it with bitbucket. Freehg is dead btw before slitaz 3.0 it looks like.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Nov 04 03:25:11 2010 +0000 (2010-11-04) |
parents | 6e3fc22e770a |
children | 79688ff060bd |
rev | line source |
---|---|
pascal@1315 | 1 # SliTaz package receipt. |
pascal@1315 | 2 |
pascal@1315 | 3 PACKAGE="php-common" |
slaxemulator@6569 | 4 VERSION="5.2.14" |
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 } |