wok-current view php-common/receipt @ rev 25721
Update slitaz-i18n for gnumeric
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Jun 18 11:25:19 2024 +0000 (4 months ago) |
parents | bcea19bfa7af |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="php-common"
4 VERSION="7.4.33"
5 CATEGORY="development"
6 SHORT_DESC="Common files for PHP modules."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.php.net/"
11 WANTED="php"
13 CONFIG_FILES="/etc/php.ini"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/etc
19 mkdir -p $fs/usr/share/applications
20 mkdir -p $fs/usr/share/pixmaps
22 cp -a $stuff/phpinfo $fs/usr/share
23 cp $stuff/php.desktop $fs/usr/share/applications
24 cp $stuff/php.png $fs/usr/share/pixmaps
25 cp $install/etc/php.ini $fs/etc
27 sed -i 's|.*\(extension_dir.*/usr/share/php.*\)$|\1|' \
28 $fs/etc/php.ini
29 }
31 # Post and pre install commands
32 pre_install()
33 {
34 # Backup existing php.ini
35 if [ -f "$1/etc/php.ini" ]
36 then
37 echo
38 echo -n "Creating php.ini backup..."
39 cp "$1/etc/php.ini" "$1/etc/php.ini.bak"
40 status
41 fi
42 }
43 post_install()
44 {
45 # Restore original php.ini
46 if [ -f "$1/etc/php.ini.bak" ]
47 then
48 echo
49 echo -n "Restoring php.ini backup..."
50 mv -f "$1/etc/php.ini.bak" "$1/etc/php.ini"
51 status
52 fi
53 }