wok-next diff wordpress/receipt @ rev 21212

updated barnyard2 (1.9 -> 2.1.13)
author Hans-G?nter Theisgen
date Mon Dec 02 17:16:10 2019 +0100 (2019-12-02)
parents 7506b35e1c6f
children
line diff
     1.1 --- a/wordpress/receipt	Mon Aug 13 00:47:17 2018 +0300
     1.2 +++ b/wordpress/receipt	Mon Dec 02 17:16:10 2019 +0100
     1.3 @@ -4,20 +4,19 @@
     1.4  VERSION="3.4.1"
     1.5  CATEGORY="misc"
     1.6  SHORT_DESC="Blog Tool and Publishing Platform"
     1.7 -MAINTAINER="slaxemulator@gmail.com"
     1.8 +MAINTAINER="devel@slitaz.org"
     1.9  LICENSE="GPL2"
    1.10  WEB_SITE="https://wordpress.org/"
    1.11  
    1.12  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13  WGET_URL="$WEB_SITE/$TARBALL"
    1.14  
    1.15 -DEPENDS="php mysql php-mysql"
    1.16 -
    1.17  genpkg_rules() {
    1.18  	mkdir -p $fs/var/www/wordpress
    1.19  	cp -a $src/* $fs/var/www/wordpress
    1.20  	chown -R www.www $fs/var/www/wordpress
    1.21 -SUGGESTED="apache cherokee"
    1.22 +	DEPENDS="php mysql php-mysql"
    1.23 +	SUGGESTED="apache cherokee"
    1.24  }
    1.25  
    1.26  post_install() {
    1.27 @@ -33,19 +32,23 @@
    1.28  		( /etc/init.d/mysql start; status ) || exit
    1.29  		sleep 4 #let the mysql daemon start
    1.30  	fi
    1.31 +
    1.32  	if ( ! mysql -u root -Be 'show databases' | grep -q $db ); then
    1.33  		action "Create $db database"
    1.34 -		mysql -Be "create database $db"; status
    1.35 +		mysql -Be "create database $db"
    1.36 +		status
    1.37  
    1.38  		# We suppose that $DB_USER user does not exist.
    1.39  		# It may be false.
    1.40  		action "Create user $db_user with password $db_password"
    1.41 -		mysql -Be "grant all privileges on $db.* to '"$db_user"'@'localhost' 
    1.42 -			identified by '"$db_password"'" ; status
    1.43 +		mysql -Be "grant all privileges on $db.* to '"$db_user"'@'localhost'
    1.44 +			identified by '"$db_password"'"
    1.45 +		status
    1.46  
    1.47  		# At last create the database for $PACKAGE.
    1.48 -		action "Create $db database schema."
    1.49 -		#mysql -u glpi -pglpi -D glpi < /usr/share/glpi/install/mysql/glpi-${VERSION}-empty.sql ; status
    1.50 +		# action "Create $db database schema."
    1.51 +		# mysql -u glpi -pglpi -D glpi < /usr/share/glpi/install/mysql/glpi-$VERSION-empty.sql
    1.52 +		# status
    1.53  	fi
    1.54  }
    1.55