wok-stable view php-common/receipt @ rev 10877
thunderbird-langpack-*: Fixed all thunderbird langpacks paths.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Jun 23 21:57:48 2011 +0000 (2011-06-23) |
parents | a82ead0ea109 |
children |
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 }