wok-current view php-common/receipt @ rev 12670
Up: tazpanel (1.5.4)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue May 01 13:04:04 2012 +0200 (2012-05-01) |
parents | a82ead0ea109 |
children | 855f42b596c0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="php-common"
4 VERSION="5.2.17"
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 }