wok-next diff phpvirtualbox/receipt @ rev 19647

Forgotten changes: libdrm-*, dbus, fontconfig, harfbuzz, libdrm, pixman, xorg-glproto.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Feb 23 00:58:26 2017 +0200 (2017-02-23)
parents 78cb1e930abd
children a3c581bf52b8
line diff
     1.1 --- a/phpvirtualbox/receipt	Sat Sep 07 15:59:12 2013 +0000
     1.2 +++ b/phpvirtualbox/receipt	Thu Feb 23 00:58:26 2017 +0200
     1.3 @@ -26,13 +26,13 @@
     1.4  post_install()
     1.5  {
     1.6  	# Virtualbox OSE needs to disable authenication for vboxwebsrv
     1.7 -	[ -d $1/var/lib/tazpkg/installed/virtualbox ] ||
     1.8 -	chroot $1/ VBoxManage setproperty websrvauthlibrary null 
     1.9 +	[ -d "$1/var/lib/tazpkg/installed/virtualbox" ] ||
    1.10 +	chroot "$1/" VBoxManage setproperty websrvauthlibrary null 
    1.11  
    1.12  	# Configure lighttpd server
    1.13 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
    1.14 -		if ! grep -q /usr/share/phpvirtualbox/ $1/etc/lighttpd/lighttpd.conf; then
    1.15 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phpvirtualbox/" => "/usr/share/phpvirtualbox/",|g' -i $1/etc/lighttpd/lighttpd.conf
    1.16 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
    1.17 +		if ! grep -q /usr/share/phpvirtualbox/ "$1/etc/lighttpd/lighttpd.conf"; then
    1.18 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phpvirtualbox/" => "/usr/share/phpvirtualbox/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
    1.19  			if [ -z "$1" ]; then
    1.20  				# Start Web server.
    1.21  				/etc/init.d/lighttpd stop
    1.22 @@ -41,9 +41,9 @@
    1.23  		fi
    1.24  	fi
    1.25  	# Configure apache server
    1.26 -	if [ -f $1/etc/apache/httpd.conf ]; then
    1.27 -		if [ ! -f $1/etc/apache/conf.d/phpvirtualbox ]; then
    1.28 -			cat > $1/etc/apache/conf.d/phpvirtualbox <<EOT
    1.29 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
    1.30 +		if [ ! -f "$1/etc/apache/conf.d/phpvirtualbox" ]; then
    1.31 +			cat > "$1/etc/apache/conf.d/phpvirtualbox" <<EOT
    1.32  <IfModule mod_alias.c>
    1.33      Alias /phpvirtualbox /usr/share/phpvirtualbox
    1.34  </IfModule>