wok-current view php-common/receipt @ rev 13985
xdg-utils: up to 1.1.0-rc1 , xdg-open support LXDE too
author | ernia <monghitri@aruba.it> |
---|---|
date | Fri Feb 08 22:07:00 2013 +0000 (2013-02-08) |
parents | 5f0378f7067c |
children | ea4381b83496 |
line source
1 # SliTaz package receipt.
3 PACKAGE="php-common"
4 VERSION="5.4.4"
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 }