wok-current rev 23429

updated phpmyadmin (3.5.2 -> 5.0.2)
author Hans-G?nter Theisgen
date Wed Apr 01 16:48:48 2020 +0100 (2020-04-01)
parents d25f12337a71
children fea693604883
files phpmyadmin/receipt
line diff
     1.1 --- a/phpmyadmin/receipt	Wed Apr 01 16:29:33 2020 +0100
     1.2 +++ b/phpmyadmin/receipt	Wed Apr 01 16:48:48 2020 +0100
     1.3 @@ -1,33 +1,39 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="phpmyadmin"
     1.7 -VERSION="3.5.2"
     1.8 +VERSION="5.0.2"
     1.9  CATEGORY="misc"
    1.10  SHORT_DESC="Administration of MySQL over the Web."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="GPL2"
    1.13 -PHPMYADM="phpMyAdmin-$VERSION-all-languages"
    1.14 -TARBALL="$PHPMYADM.tar.bz2"
    1.15  WEB_SITE="https://www.phpmyadmin.net/"
    1.16 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.17 -CONFIG_FILES="/etc/phpmyadmin/config.inc.php"
    1.18 -HOST_ARCH="any"
    1.19 +
    1.20 +SOURCE="phpMyAdmin"
    1.21 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.22 +WGET_URL="https://files.phpmyadmin.net/$SOURCE/$VERSION/$SOURCE-$VERSION-all-languages.tar.xz"
    1.23  
    1.24  DEPENDS="php-mysqli"
    1.25  
    1.26 +CONFIG_FILES="/etc/phpmyadmin/config.inc.php"
    1.27 +
    1.28 +HOST_ARCH="any"
    1.29 +
    1.30  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.31  genpkg_rules()
    1.32  {
    1.33 -	mkdir -p $fs/usr/share/phpmyadmin $fs/etc/phpmyadmin $fs/usr/share/applications
    1.34 -	cp -a $src/. $fs/usr/share/phpmyadmin
    1.35 -	ln -s /etc/phpmyadmin/config.inc.php $fs/usr/share/phpmyadmin/config.inc.php
    1.36 -	cp $src/config.sample.inc.php $fs/etc/phpmyadmin/config.inc.php
    1.37 -	rm -f $fs/usr/share/phpmyadmin/phpMyAdmin-$VERSION-all-languages
    1.38 -	cp $stuff/phpmyadmin.desktop $fs/usr/share/applications
    1.39 +	mkdir -p $fs/usr/share/phpmyadmin
    1.40 +	mkdir -p $fs/etc/phpmyadmin
    1.41 +	mkdir -p $fs/usr/share/applications
    1.42 +
    1.43 +	cp -a $src/.				$fs/usr/share/phpmyadmin
    1.44 +	ln -s /etc/phpmyadmin/config.inc.php	$fs/usr/share/phpmyadmin/config.inc.php
    1.45 +	cp $src/config.sample.inc.php		$fs/etc/phpmyadmin/config.inc.php
    1.46 +	rm -f			$fs/usr/share/phpmyadmin/phpMyAdmin-$VERSION-all-languages
    1.47 +	cp $stuff/phpmyadmin.desktop		$fs/usr/share/applications
    1.48  	chown -R www.www $fs/usr/share/phpmyadmin $fs/etc/phpmyadmin
    1.49 -	chmod 700 $fs/etc/phpmyadmin
    1.50 -	chmod 644 $fs/etc/phpmyadmin/config.inc.php
    1.51 -	
    1.52 +	chmod 700				$fs/etc/phpmyadmin
    1.53 +	chmod 644				$fs/etc/phpmyadmin/config.inc.php
    1.54 +
    1.55  	sed -i s'/\?>//' $fs/etc/phpmyadmin/config.inc.php
    1.56  	
    1.57  	cat <<"EOT">> $fs/etc/phpmyadmin/config.inc.php
    1.58 @@ -47,20 +53,27 @@
    1.59  	secret=$(dd if=/dev/urandom count=1 2> /dev/null | md5sum | sed 's/ .*//')
    1.60  	sed -i "s/^\(.*blowfish_secret'] = '\)'/\1$secret'/" \
    1.61  		"$1/etc/phpmyadmin/config.inc.php"
    1.62 +
    1.63  	# Configure lighttpd server
    1.64 -	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
    1.65 -		if ! grep -q /usr/share/phpmyadmin/ "$1/etc/lighttpd/lighttpd.conf"; then
    1.66 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]
    1.67 +	  then
    1.68 +		if ! grep -q /usr/share/phpmyadmin/ "$1/etc/lighttpd/lighttpd.conf"
    1.69 +		  then
    1.70  	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phpmyadmin/" => "/usr/share/phpmyadmin/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
    1.71 -			if [ -z "$1" ]; then
    1.72 +			if [ -z "$1" ]
    1.73 +			  then
    1.74  				# Start Web server.
    1.75  				/etc/init.d/lighttpd stop
    1.76  				/etc/init.d/lighttpd start
    1.77  			fi
    1.78  		fi
    1.79  	fi
    1.80 +
    1.81  	# Configure apache server
    1.82 -	if [ -f "$1/etc/apache/httpd.conf" ]; then
    1.83 -		if [ ! -f "$1/etc/apache/conf.d/phpmyadmin" ]; then
    1.84 +	if [ -f "$1/etc/apache/httpd.conf" ]
    1.85 +	  then
    1.86 +		if [ ! -f "$1/etc/apache/conf.d/phpmyadmin" ]
    1.87 +		  then
    1.88  			cat > "$1/etc/apache/conf.d/phpmyadmin" <<EOT
    1.89  <IfModule mod_alias.c>
    1.90      Alias /phpmyadmin /usr/share/phpmyadmin
    1.91 @@ -73,7 +86,8 @@
    1.92      Allow from all
    1.93  </Directory>
    1.94  EOT
    1.95 -			if [ -z "$1" ]; then
    1.96 +			if [ -z "$1" ]
    1.97 +			  then
    1.98  				# Start Web server.
    1.99  				/etc/init.d/apache stop
   1.100  				/etc/init.d/apache start