wok-current view php-common/receipt @ rev 24310
updated tidy-html5 (5.6.0 -> 5.8.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jan 19 09:24:46 2022 +0100 (2022-01-19) |
parents | b10d41313e54 |
children | a23978bfa665 |
line source
1 # SliTaz package receipt.
3 PACKAGE="php-common"
4 VERSION="7.4.4"
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 }