wok-current diff php-common/receipt @ rev 23561

updated python-simplejson (2.1.1 -> 3.17.0)
author Hans-G?nter Theisgen
date Tue Apr 07 07:51:57 2020 +0100 (2020-04-07)
parents b10d41313e54
children a23978bfa665
line diff
     1.1 --- a/php-common/receipt	Fri Mar 20 15:21:15 2020 +0100
     1.2 +++ b/php-common/receipt	Tue Apr 07 07:51:57 2020 +0100
     1.3 @@ -1,33 +1,39 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="php-common"
     1.7 -VERSION="7.3.16"
     1.8 +VERSION="7.4.4"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="Common files for PHP modules."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="BSD"
    1.13  WEB_SITE="https://www.php.net/"
    1.14 +
    1.15  WANTED="php"
    1.16 +
    1.17  CONFIG_FILES="/etc/php.ini"
    1.18  
    1.19  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.20  genpkg_rules()
    1.21  {
    1.22 -	mkdir -p $fs/etc \
    1.23 -		$fs/usr/share/applications \
    1.24 -		$fs/usr/share/pixmaps
    1.25 -	cp -a $stuff/phpinfo $fs/usr/share
    1.26 -	cp $stuff/php.desktop $fs/usr/share/applications 
    1.27 -	cp $stuff/php.png $fs/usr/share/pixmaps 
    1.28 -	cp $install/etc/php.ini $fs/etc
    1.29 -	sed -i 's|.*\(extension_dir.*/usr/share/php.*\)$|\1|' $fs/etc/php.ini
    1.30 +	mkdir -p $fs/etc
    1.31 +	mkdir -p $fs/usr/share/applications
    1.32 +	mkdir -p $fs/usr/share/pixmaps
    1.33 +
    1.34 +	cp -a $stuff/phpinfo	$fs/usr/share
    1.35 +	cp $stuff/php.desktop	$fs/usr/share/applications 
    1.36 +	cp $stuff/php.png	$fs/usr/share/pixmaps 
    1.37 +	cp $install/etc/php.ini	$fs/etc
    1.38 +
    1.39 +	sed -i 's|.*\(extension_dir.*/usr/share/php.*\)$|\1|' \
    1.40 +				$fs/etc/php.ini
    1.41  }
    1.42  
    1.43  # Post and pre install commands
    1.44  pre_install()
    1.45  {
    1.46  	# Backup existing php.ini
    1.47 -	if [ -f "$1/etc/php.ini" ]; then
    1.48 +	if [ -f "$1/etc/php.ini" ]
    1.49 +	  then
    1.50  		echo
    1.51  		echo -n "Creating php.ini backup..."
    1.52  		cp "$1/etc/php.ini" "$1/etc/php.ini.bak"
    1.53 @@ -37,7 +43,8 @@
    1.54  post_install()
    1.55  {
    1.56  	# Restore original php.ini
    1.57 -	if [ -f "$1/etc/php.ini.bak" ]; then
    1.58 +	if [ -f "$1/etc/php.ini.bak" ]
    1.59 +	  then
    1.60  		echo
    1.61  		echo -n "Restoring php.ini backup..."
    1.62  		mv -f "$1/etc/php.ini.bak" "$1/etc/php.ini"