wok-6.x view php-common/receipt @ rev 14702
perl, rrdtool: add LICENSE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jun 07 18:46:07 2013 +0200 (2013-06-07) |
parents | 855f42b596c0 |
children | 78cb1e930abd |
line source
1 # SliTaz package receipt.
3 PACKAGE="php-common"
4 VERSION="5.4.13"
5 CATEGORY="development"
6 SHORT_DESC="Common files for PHP modules."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://www.php.net/"
9 WANTED="php"
10 CONFIG_FILES="/etc/php.ini"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 mkdir -p $fs/etc \
16 $fs/usr/share/applications \
17 $fs/usr/share/pixmaps
18 cp -a $stuff/phpinfo $fs/usr/share
19 cp $stuff/php.desktop $fs/usr/share/applications
20 cp $stuff/php.png $fs/usr/share/pixmaps
21 cp $install/etc/php.ini $fs/etc
22 }
24 # Post and pre install commands
25 pre_install()
26 {
27 # Backup existing php.ini
28 if [ -f "$1/etc/php.ini" ]; then
29 echo -n "Creating php.ini backup..."
30 cp $1/etc/php.ini $1/etc/php.ini.bak
31 status
32 fi
33 }
34 post_install()
35 {
36 # Restore original php.ini
37 if [ -f "$1/etc/php.ini.bak" ]; then
38 echo -n "Restoring php.ini backup..."
39 mv -f $1/etc/php.ini.bak $1/etc/php.ini
40 status
41 fi
42 }