wok rev 18730

Quote root dir in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 20 15:13:45 2015 +0100 (2015-12-20)
parents 67528625d306
children 60ed06eac8b9
files QtWeb/receipt TiMidity++/receipt ajaxterm/receipt alsa-utils/receipt apache-mod-wsgi/receipt apache/receipt asterisk/receipt autoblog/receipt awstats/receipt backuppc/receipt barnyard2/receipt bind/receipt boinc/receipt boxbackup-client/receipt boxbackup-server/receipt busybox-pam/receipt busybox-static/receipt busybox/receipt c_icap/receipt ccid/receipt clamav/receipt claws-mail/receipt connman/receipt cookutils/receipt coreutils-character/receipt coreutils-command/receipt coreutils-conditions/receipt coreutils-context-system/receipt coreutils-context-user/receipt coreutils-context-working/receipt coreutils-directory/receipt coreutils-disk/receipt coreutils-file-attributes/receipt coreutils-file-format/receipt coreutils-file-output-full/receipt coreutils-file-output-part/receipt coreutils-file-sort/receipt coreutils-file-special/receipt coreutils-file-summarize/receipt coreutils-line/receipt coreutils-numeric/receipt coreutils-operations/receipt coreutils-path/receipt coreutils-print/receipt coreutils-redirection/receipt coreutils/receipt couchdb/receipt cpio/receipt cyrus-imapd/receipt daloradius/receipt dansguardian/receipt depmod/receipt diffutils/receipt distcc/receipt docbook-xml/receipt docbook-xsl-ns/receipt docbook-xsl/receipt dolibarr/receipt dooble/receipt dovecot/receipt dropbear/receipt dwm/receipt eaccelerator/receipt eggwm/receipt elksemu/receipt emacs/receipt enlightenment-pam/receipt enlightenment/receipt enna/receipt eom/receipt epdfview-cups/receipt eudev/receipt ffmpeg-compat/receipt findutils/receipt firefox-dev/receipt fluxbox/receipt foomatic-db-engine/receipt foomatic-db-nonfree/receipt fpc/receipt freepats/receipt freeradius-dialupadmin/receipt freetype-infinality/receipt gawk/receipt gcc+gcj/receipt gcc/receipt gcc49-lib-base/receipt gecko-mediaplayer/receipt get-wifi-firmware/receipt git/receipt glib-dev/receipt glpi/receipt gnome-calculator/receipt gnu-netcat/receipt grep/receipt grooms/receipt gtk-clearlooks/receipt gvfs-smb/receipt gvim/receipt gzip-full/receipt gzip/receipt hal/receipt hardware-ibm-6272/receipt hardware-thinkpad-600e/receipt hd2u/receipt hplip/receipt iaxmodem/receipt icedtea6-jre/receipt iron-linux/receipt jwm/receipt karmen/receipt kismet/receipt kriss_feed/receipt less/receipt libQtGui/receipt libdevmapper/receipt libgphoto2/receipt librsvg/receipt lightdm-gtk2-greeter/receipt lightdm-gtk3-greeter/receipt lighttpd-ssl/receipt lighttpd/receipt linux-autofs/receipt linux-cifs/receipt linux-coda/receipt linux-configfs/receipt linux-cramfs/receipt linux-dlm/receipt linux-exofs/receipt linux-gfs2/receipt linux-hfs/receipt linux-hfsplus/receipt linux-jfs/receipt linux-libre-api-headers/receipt linux-libre-autofs/receipt linux-libre-btrfs/receipt linux-libre-cifs/receipt linux-libre-coda/receipt linux-libre-configfs/receipt linux-libre-cramfs/receipt linux-libre-dlm/receipt linux-libre-gfs2/receipt linux-libre-hfs/receipt linux-libre-hfsplus/receipt linux-libre-jfs/receipt linux-libre-logfs/receipt linux-libre-minix/receipt linux-libre-module-headers/receipt linux-libre-ncpfs/receipt linux-libre-nfsd/receipt linux-libre-reiserfs/receipt linux-libre-squashfs/receipt linux-libre-udf/receipt linux-libre-usbip/receipt linux-libre/receipt linux-logfs/receipt linux-minix/receipt linux-module-headers/receipt linux-ncpfs/receipt linux-nfsd/receipt linux-reiserfs/receipt linux-romfs/receipt linux-squashfs/receipt linux-usbip/receipt linux/receipt linux64-autofs/receipt linux64-btrfs/receipt linux64-cifs/receipt linux64-coda/receipt linux64-configfs/receipt linux64-cramfs/receipt linux64-dlm/receipt linux64-exofs/receipt linux64-gfs2/receipt linux64-hfs/receipt linux64-hfsplus/receipt linux64-jfs/receipt linux64-logfs/receipt linux64-minix/receipt linux64-module-headers/receipt linux64-ncpfs/receipt linux64-nfsd/receipt linux64-reiserfs/receipt linux64-romfs/receipt linux64-squashfs/receipt linux64-usbip/receipt linux64/receipt logrotate/receipt lxde/receipt lxqt-common/receipt lxqt/receipt lzma/receipt marco/receipt mariadb/receipt mate-control-center/receipt mate-panel/receipt mate-session-manager/receipt mgetty/receipt mingw32-gcc-c/receipt mingw32-gcc/receipt mingw32-runtime/receipt mingw32-w32api/receipt mist-icon-theme/receipt mk-livestatus/receipt module-init-tools/receipt monitorix/receipt mosh/receipt mplayerplug-in/receipt muninlite/receipt mutt/receipt mysql/receipt nagios-nrpe/receipt nagios-plugins/receipt nagios/receipt nagisk/receipt nail/receipt nareto/receipt ncmpcpp/receipt nconf/receipt ndoutils/receipt netatalk-pam/receipt nfs-utils/receipt nginx-extras/receipt nginx/receipt novnc/receipt nss_ldap/receipt ntfs-3g/receipt ntop/receipt nvidia-173xx/receipt nvidia-96xx/receipt nzbget-webui/receipt obmenu/receipt ocsinventory-agent/receipt ocsinventory-server/receipt ocsreports/receipt open-iscsi/receipt openerp-server/receipt openerp-web/receipt openldap/receipt openssh-pam/receipt openssh/receipt openvas-scanner/receipt oxygen-icons/receipt partimage-pam/receipt partimage/receipt patch/receipt pciutils/receipt pcmciautils/receipt pcsc-lite/receipt pdnsd/receipt pekwm/receipt perdition-pam/receipt perdition/receipt perl-core/receipt perl-thread/receipt perl/receipt php-apache/receipt php-auth-pam/receipt php-cherokee/receipt php-common/receipt php-curl/receipt php-dba/receipt php-gd/receipt php-imap/receipt php-ldap/receipt php-mcrypt/receipt php-mysql/receipt php-mysqli/receipt php-odbc/receipt php-openssl/receipt php-pdo-mysql/receipt php-pdo-pgsql/receipt php-pear/receipt php-pgsql/receipt php-snmp/receipt php-soap/receipt php-sqlite/receipt php/receipt phpeasyvcs/receipt phpldapadmin/receipt phpmyadmin/receipt phppgadmin/receipt phproxy/receipt phpsysinfo/receipt phpvirtualbox/receipt pm-utils/receipt polipo/receipt postfix/receipt postfixadmin/receipt postgresql/receipt postgrey/receipt privoxy/receipt procps/receipt ptxdist/receipt pwsafe/receipt pxe-kexec/receipt pybootchartgui/receipt pyradio/receipt python-django/receipt python-docutils/receipt python-jinja2/receipt python-mysql/receipt python-numpy/receipt python-pil/receipt python-pychart/receipt python-pydot/receipt python-pygame/receipt python-pypdf/receipt python-pytz/receipt python-pyxml/receipt python-reportlab/receipt python-simplejson/receipt python-sphinx/receipt qcad/receipt razorqt/receipt remind/receipt rox-filer/receipt rpm4/receipt rsync/receipt runcom/receipt sane-backends/receipt shaarli/receipt shaarlo/receipt shell-detector/receipt silc-server/receipt slib/receipt slim-pam/receipt slim/receipt slitaz-boot-scripts/receipt slitaz-configs-base/receipt slitaz-configs/receipt slitaz-eeepc/receipt slitaz-icon/receipt slitaz-tango-icon/receipt smbwebclient/receipt snort-mysql/receipt squid/receipt squidclamav/receipt squidguard/receipt squidguardmgr/receipt squirrelmail-ar/receipt squirrelmail-archive/receipt squirrelmail-autocomplete/receipt squirrelmail-autorespond/receipt squirrelmail-bg_BG/receipt squirrelmail-bn_IN/receipt squirrelmail-bookmarks/receipt squirrelmail-ca_ES/receipt squirrelmail-calendard-file-backend/receipt squirrelmail-calendard-sql-backend/receipt squirrelmail-compatibility-plugin/receipt squirrelmail-cs_CZ/receipt squirrelmail-cy_GB/receipt squirrelmail-da_DK/receipt squirrelmail-de_DE/receipt squirrelmail-el_GR/receipt squirrelmail-en_GB/receipt squirrelmail-es_ES/receipt squirrelmail-et_EE/receipt squirrelmail-eu_ES/receipt squirrelmail-fa_IR/receipt squirrelmail-fi_FI/receipt squirrelmail-fo_FO/receipt squirrelmail-fr_FR/receipt squirrelmail-fy/receipt squirrelmail-he_IL/receipt squirrelmail-hr_HR/receipt squirrelmail-html/receipt squirrelmail-html_mail/receipt squirrelmail-hu_HU/receipt squirrelmail-id_ID/receipt squirrelmail-is_IS/receipt squirrelmail-it_IT/receipt squirrelmail-ja_JP/receipt squirrelmail-ka/receipt squirrelmail-ko_KR/receipt squirrelmail-ldapuser/receipt squirrelmail-legend/receipt squirrelmail-lt_LT/receipt squirrelmail-ms_MY/receipt squirrelmail-msg_flags/receipt squirrelmail-multilogin/receipt squirrelmail-nb_NO/receipt squirrelmail-nl_NL/receipt squirrelmail-nn_NO/receipt squirrelmail-notes/receipt squirrelmail-pl_PL/receipt squirrelmail-pt_BR/receipt squirrelmail-pt_PT/receipt squirrelmail-quota/receipt squirrelmail-ro_RO/receipt squirrelmail-ru_RU/receipt squirrelmail-shared_calendars/receipt squirrelmail-sieve/receipt squirrelmail-sizes/receipt squirrelmail-sk_SK/receipt squirrelmail-sl_SI/receipt squirrelmail-smallcal/receipt squirrelmail-spamassassin/receipt squirrelmail-sr_YU/receipt squirrelmail-sv_SE/receipt squirrelmail-tr_TR/receipt squirrelmail-ug/receipt squirrelmail-uk_UA/receipt squirrelmail-vkeyboard/receipt squirrelmail-zh_CN/receipt squirrelmail-zh_TW/receipt squirrelmail/receipt ssmtp/receipt st/receipt sudo-pam/receipt sudo/receipt swat/receipt t2/receipt tar/receipt tazpanel-extra/receipt tazpanel-theme-sandfive/receipt tazpanel/receipt tazwikiss/receipt tiptop/receipt tmux-mem-cpu-load/receipt transmission/receipt ttf-bitstream-vera/receipt udev/receipt udhcpc6-fake/receipt ufr2/receipt unzip/receipt usbmuxd/receipt usbutils/receipt util-linux-blockdev/receipt util-linux-flock/receipt util-linux-uuid/receipt vim-tiny/receipt vim/receipt virtualbox-ose-guestutils/receipt virtualbox-ose/receipt watchdog/receipt wbar/receipt webalizer/receipt which/receipt wicd/receipt wine/receipt wordpress/receipt wpa_supplicant/receipt wvstreams/receipt x11vnc-extra/receipt x11vnc/receipt xfce4-ristretto/receipt xfce4/receipt xine-plugin/receipt xlockmore/receipt xorg-base-fonts/receipt xorg-server-Xephyr/receipt xorg-server-Xfbdev/receipt xorg-server-Xnest/receipt xorg-server-Xvfb/receipt xorg-server-light/receipt xorg-server/receipt xtel/receipt xvkbd/receipt xz/receipt yasr/receipt zerobin/receipt zsh/receipt
line diff
     1.1 --- a/QtWeb/receipt	Sat Dec 19 21:50:31 2015 +0100
     1.2 +++ b/QtWeb/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.3 @@ -62,7 +62,7 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 -	cd $1/tmp ; cat>'QtWeb Internet Browser.conf' << EOT
     1.8 +	cd "$1/tmp" ; cat>'QtWeb Internet Browser.conf' << EOT
     1.9  [MainWindow]
    1.10  downloadAudioVideo=true
    1.11  style=Cleanlooks
    1.12 @@ -78,10 +78,10 @@
    1.13  showDisableJavascript=true
    1.14  EOT
    1.15  
    1.16 -	for i in $(ls $1/home 2> /dev/null); do
    1.17 -		[ -f /home/$i/.config/QtWeb.NET/QtWeb\ Internet\ Browser.conf ] && continue
    1.18 -		mkdir -p $1/home/$i/.config/QtWeb.NET
    1.19 -		cp $1/tmp/QtWeb\ Internet\ Browser.conf $1/home/$i/.config/QtWeb.NET
    1.20 -		chroot $1/ chown -R $(stat -c "%u.%g" $1/home/$i) /home/$i/.config/QtWeb.NET
    1.21 +	for i in $(ls "$1/home" 2> /dev/null); do
    1.22 +		[ -f "/home/$i/.config/QtWeb.NET/QtWeb Internet Browser.conf" ] && continue
    1.23 +		mkdir -p "$1/home/$i/.config/QtWeb.NET"
    1.24 +		cp "$1/tmp/QtWeb Internet Browser.conf" "$1/home/$i/.config/QtWeb.NET"
    1.25 +		chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.config/QtWeb.NET"
    1.26  	done
    1.27  }
     2.1 --- a/TiMidity++/receipt	Sat Dec 19 21:50:31 2015 +0100
     2.2 +++ b/TiMidity++/receipt	Sun Dec 20 15:13:45 2015 +0100
     2.3 @@ -36,12 +36,12 @@
     2.4  post_install()
     2.5  {
     2.6  	# create config file
     2.7 -	mkdir $1/usr/share/timidity
     2.8 -	touch $1/usr/share/timidity/timidity.cfg
     2.9 +	mkdir "$1/usr/share/timidity"
    2.10 +	touch "$1/usr/share/timidity/timidity.cfg"
    2.11  }
    2.12  
    2.13  post_remove()
    2.14  {
    2.15 -	rm -rf $1/usr/share/timidity
    2.16 +	rm -rf "$1/usr/share/timidity"
    2.17  }
    2.18  
     3.1 --- a/ajaxterm/receipt	Sat Dec 19 21:50:31 2015 +0100
     3.2 +++ b/ajaxterm/receipt	Sun Dec 20 15:13:45 2015 +0100
     3.3 @@ -27,16 +27,16 @@
     3.4  
     3.5  post_install()
     3.6  {
     3.7 -	grep ^RUN_DAEMONS $1/etc/rcS.conf | grep -q "ajaxterm" || sed -i \
     3.8 -	  's/RUN_DAEMONS="/RUN_DAEMONS="ajaxterm /' $1/etc/rcS.conf
     3.9 +	grep ^RUN_DAEMONS "$1/etc/rcS.conf" | grep -q "ajaxterm" || sed -i \
    3.10 +	  's/RUN_DAEMONS="/RUN_DAEMONS="ajaxterm /' "$1/etc/rcS.conf"
    3.11  	# Configure lighttpd server
    3.12 -	if [ -f $1/usr/lib/lighttpd/mod_proxy.so ]; then
    3.13 -			grep -q mod_proxy $1/etc/lighttpd/lighttpd.conf ||
    3.14 -			cat >> $1/etc/lighttpd/lighttpd.conf <<EOT
    3.15 +	if [ -f "$1/usr/lib/lighttpd/mod_proxy.so" ]; then
    3.16 +			grep -q mod_proxy "$1/etc/lighttpd/lighttpd.conf" ||
    3.17 +			cat >> "$1/etc/lighttpd/lighttpd.conf" <<EOT
    3.18  server.modules += ( "mod_proxy" )
    3.19  EOT
    3.20 -			grep -q ajaxterm $1/etc/lighttpd/lighttpd.conf ||
    3.21 -			cat >> $1/etc/lighttpd/lighttpd.conf <<EOT
    3.22 +			grep -q ajaxterm "$1/etc/lighttpd/lighttpd.conf" ||
    3.23 +			cat >> "$1/etc/lighttpd/lighttpd.conf" <<EOT
    3.24  proxy.server = ( "/ajaxterm/" =>
    3.25  	( ( "host" => "127.0.0.1", "port" => 8022 ) )
    3.26  )
    3.27 @@ -48,9 +48,9 @@
    3.28  			fi
    3.29  	fi
    3.30  	# Configure apache server
    3.31 -	if [ -f $1/etc/apache/httpd.conf ]; then
    3.32 -		if [ ! -f $1/etc/apache/conf.d/ajaxterm ]; then
    3.33 -			cat > $1/etc/apache/conf.d/ajaxterm <<EOT
    3.34 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
    3.35 +		if [ ! -f "$1/etc/apache/conf.d/ajaxterm" ]; then
    3.36 +			cat > "$1/etc/apache/conf.d/ajaxterm" <<EOT
    3.37  <IfModule mod_proxy.c>
    3.38      ProxyRequests Off
    3.39      <Proxy *>
    3.40 @@ -70,8 +70,8 @@
    3.41  		fi
    3.42  	fi
    3.43  	[ -z "$1" ] && /etc/init.d/ajaxterm start
    3.44 -	[ ! -f $1/usr/lib/lighttpd/mod_proxy.so -a \
    3.45 -	  ! -f $1/etc/apache/httpd.conf ] &&
    3.46 +	[ ! -f "$1/usr/lib/lighttpd/mod_proxy.so" -a \
    3.47 +	  ! -f "$1/etc/apache/httpd.conf" ] &&
    3.48  	  [ -z "$quiet" ] && cat <<EOT
    3.49  --------
    3.50  You should install either lighttpd
     4.1 --- a/alsa-utils/receipt	Sat Dec 19 21:50:31 2015 +0100
     4.2 +++ b/alsa-utils/receipt	Sun Dec 20 15:13:45 2015 +0100
     4.3 @@ -51,14 +51,14 @@
     4.4  # sound card and settings working.
     4.5  pre_install()
     4.6  {
     4.7 -	if [ -f $1/etc/asound.state ]; then
     4.8 -		mv $1/etc/asound.state $1/tmp
     4.9 +	if [ -f "$1/etc/asound.state" ]; then
    4.10 +		mv "$1/etc/asound.state" "$1/tmp"
    4.11  	fi
    4.12  }
    4.13  
    4.14  post_install()
    4.15  {
    4.16 -	if [ -f $1/tmp/asound.state ]; then
    4.17 -		mv $1/tmp/asound.state $1/var/lib/alsa
    4.18 +	if [ -f "$1/tmp/asound.state" ]; then
    4.19 +		mv "$1/tmp/asound.state" "$1/var/lib/alsa"
    4.20  	fi
    4.21  }
     5.1 --- a/apache-mod-wsgi/receipt	Sat Dec 19 21:50:31 2015 +0100
     5.2 +++ b/apache-mod-wsgi/receipt	Sun Dec 20 15:13:45 2015 +0100
     5.3 @@ -34,13 +34,13 @@
     5.4  post_install()
     5.5  {
     5.6  		# Enable WSGI module
     5.7 -		echo "# Python WSGI module" >> $1/etc/apache/httpd.conf
     5.8 -		echo "Include /etc/apache/extra/httpd-mod-wsgi.conf  " >> $1/etc/apache/httpd.conf
     5.9 +		echo "# Python WSGI module" >> "$1/etc/apache/httpd.conf"
    5.10 +		echo "Include /etc/apache/extra/httpd-mod-wsgi.conf  " >> "$1/etc/apache/httpd.conf"
    5.11  }
    5.12  
    5.13  post_remove()
    5.14  {
    5.15  		# Remove WSGI configuration
    5.16 -		sed -i s/\# Python.*// $1/etc/apache/httpd.conf
    5.17 -		sed -i s/.*httpd-mod-wsgi.conf// $1/etc/apache/httpd.conf
    5.18 +		sed -i s/\# Python.*// "$1/etc/apache/httpd.conf"
    5.19 +		sed -i s/.*httpd-mod-wsgi.conf// "$1/etc/apache/httpd.conf"
    5.20  }
     6.1 --- a/apache/receipt	Sat Dec 19 21:50:31 2015 +0100
     6.2 +++ b/apache/receipt	Sun Dec 20 15:13:45 2015 +0100
     6.3 @@ -80,12 +80,12 @@
     6.4  	local hostname=$(cat /etc/hostname 2>/dev/null)
     6.5  
     6.6  	# Just in case.
     6.7 -	chown www.www $1/var/log/$PACKAGE
     6.8 +	chown www.www "$1/var/log/$PACKAGE"
     6.9  	ping -c 2 $(hostname) > /dev/null 2>&1 || 
    6.10 -		sed -i "s/localhost/$(hostname) localhost/" $1/etc/hosts
    6.11 -	[ -s $1/etc/ssl/apache/apache.pem ] ||
    6.12 -	openssl req -new -x509 -keyout $1/etc/ssl/apache/apache.pem \
    6.13 -		-out $1/etc/ssl/apache/apache.pem -days 3650 -nodes <<EOT
    6.14 +		sed -i "s/localhost/$(hostname) localhost/" "$1/etc/hosts"
    6.15 +	[ -s "$1/etc/ssl/apache/apache.pem" ] ||
    6.16 +	openssl req -new -x509 -keyout "$1/etc/ssl/apache/apache.pem" \
    6.17 +		-out "$1/etc/ssl/apache/apache.pem" -days 3650 -nodes <<EOT
    6.18  ${lang:-us}
    6.19  ${tz:-UTC}
    6.20  
    6.21 @@ -95,14 +95,14 @@
    6.22  
    6.23  EOT
    6.24  	[ -z "$quiet" ] && echo # Start new line
    6.25 -	( cd $1/$INSTALLED/ ; grep -l /etc/apache/conf.d/ */receipt ) | \
    6.26 +	( cd "$1/$INSTALLED/" ; grep -l /etc/apache/conf.d/ */receipt ) | \
    6.27  	while read file; do
    6.28  		pkg=$(dirname $file)
    6.29  		[ "$pkg" = "$PACKAGE" ] && continue
    6.30  		[ -z "$quiet" ] && echo "Reconfiguring $pkg for $PACKAGE..."
    6.31  		tazpkg reconfigure $pkg
    6.32  	done
    6.33 -	[ -f $1/etc/php.ini ] && tazpkg get-install php-apache --root=$1
    6.34 +	[ -f "$1/etc/php.ini" ] && tazpkg get-install php-apache --root="$1"
    6.35  	[ "$1" ] || netstat -ltn 2> /dev/null | grep -q :80 ||
    6.36  	/etc/init.d/$PACKAGE start
    6.37  }
     7.1 --- a/asterisk/receipt	Sat Dec 19 21:50:31 2015 +0100
     7.2 +++ b/asterisk/receipt	Sun Dec 20 15:13:45 2015 +0100
     7.3 @@ -85,36 +85,36 @@
     7.4  {
     7.5  	case "$2" in
     7.6  	mysql_host)
     7.7 -		sed -i "s|^hostname=.*|hostname=$3|" $1/etc/asterisk/cdr_mysql.conf
     7.8 -		sed -i "s|^dbhost=.*|dbhost=$3|" $1/etc/asterisk/res_mysql.conf
     7.9 +		sed -i "s|^hostname=.*|hostname=$3|" "$1/etc/asterisk/cdr_mysql.conf"
    7.10 +		sed -i "s|^dbhost=.*|dbhost=$3|" "$1/etc/asterisk/res_mysql.conf"
    7.11  		;;
    7.12  	mysql_user)
    7.13 -		sed -i "s|^user=.*|user=$3|" $1/etc/asterisk/cdr_mysql.conf
    7.14 -		sed -i "s|^dbuser=.*|dbuser=$3|" $1/etc/asterisk/res_mysql.conf
    7.15 +		sed -i "s|^user=.*|user=$3|" "$1/etc/asterisk/cdr_mysql.conf"
    7.16 +		sed -i "s|^dbuser=.*|dbuser=$3|" "$1/etc/asterisk/res_mysql.conf"
    7.17  		;;
    7.18  	mysql_password)
    7.19 -		sed -i "s|^password=.*|password=$3|" $1/etc/asterisk/cdr_mysql.conf
    7.20 -		sed -i "s|^dbpass=.*|dbpass=$3|" $1/etc/asterisk/res_mysql.conf
    7.21 +		sed -i "s|^password=.*|password=$3|" "$1/etc/asterisk/cdr_mysql.conf"
    7.22 +		sed -i "s|^dbpass=.*|dbpass=$3|" "$1/etc/asterisk/res_mysql.conf"
    7.23  		;;
    7.24  	mysql_database)
    7.25 -		sed -i "s|^dbname=.*|dbname=$3|" $1/etc/asterisk/res_mysql.conf \
    7.26 -						 $1/etc/asterisk/cdr_mysql.conf
    7.27 +		sed -i "s|^dbname=.*|dbname=$3|" "$1/etc/asterisk/res_mysql.conf" \
    7.28 +						 "$1/etc/asterisk/cdr_mysql.conf"
    7.29  		;;
    7.30  	pgsql_host)
    7.31 -		sed -i "s|^hostname=.*|hostname=$3|" $1/etc/asterisk/cdr_pgsql.conf
    7.32 -		sed -i "s|^dbhost=.*|dbhost=$3|" $1/etc/asterisk/res_pgsql.conf
    7.33 +		sed -i "s|^hostname=.*|hostname=$3|" "$1/etc/asterisk/cdr_pgsql.conf"
    7.34 +		sed -i "s|^dbhost=.*|dbhost=$3|" "$1/etc/asterisk/res_pgsql.conf"
    7.35  		;;
    7.36  	pgsql_user)
    7.37 -		sed -i "s|^user=.*|user=$3|" $1/etc/asterisk/cdr_pgsql.conf
    7.38 -		sed -i "s|^dbuser=.*|dbuser=$3|" $1/etc/asterisk/res_pgsql.conf
    7.39 +		sed -i "s|^user=.*|user=$3|" "$1/etc/asterisk/cdr_pgsql.conf"
    7.40 +		sed -i "s|^dbuser=.*|dbuser=$3|" "$1/etc/asterisk/res_pgsql.conf"
    7.41  		;;
    7.42  	pgsql_password)
    7.43 -		sed -i "s|^password=.*|password=$3|" $1/etc/asterisk/cdr_pgsql.conf
    7.44 -		sed -i "s|^dbpass=.*|dbpass=$3|" $1/etc/asterisk/res_pgsql.conf
    7.45 +		sed -i "s|^password=.*|password=$3|" "$1/etc/asterisk/cdr_pgsql.conf"
    7.46 +		sed -i "s|^dbpass=.*|dbpass=$3|" "$1/etc/asterisk/res_pgsql.conf"
    7.47  		;;
    7.48  	pgsql_database)
    7.49 -		sed -i "s|^dbname=.*|dbname=$3|" $1/etc/asterisk/res_pgsql.conf \
    7.50 -						 $1/etc/asterisk/cdr_pgsql.conf
    7.51 +		sed -i "s|^dbname=.*|dbname=$3|" "$1/etc/asterisk/res_pgsql.conf" \
    7.52 +						 "$1/etc/asterisk/cdr_pgsql.conf"
    7.53  		;;
    7.54  	*)	cat <<EOT
    7.55  mysql_host	hostname or ip of mysql server
     8.1 --- a/autoblog/receipt	Sat Dec 19 21:50:31 2015 +0100
     8.2 +++ b/autoblog/receipt	Sun Dec 20 15:13:45 2015 +0100
     8.3 @@ -39,8 +39,8 @@
     8.4  
     8.5  post_install()
     8.6  {
     8.7 -	mytz="$(cat $1/etc/TZ)"
     8.8 -	[ -n "$mytz" ] && sed  -i "s|Europe/Paris|$mytz|" $1/var/www/$PACKAGE/index.php
     8.9 -	chown -R www $1/var/www/$PACKAGE
    8.10 +	mytz="$(cat "$1/etc/TZ")"
    8.11 +	[ -n "$mytz" ] && sed  -i "s|Europe/Paris|$mytz|" "$1/var/www/$PACKAGE/index.php"
    8.12 +	chown -R www "$1/var/www/$PACKAGE"
    8.13  	[ -z "$quiet" ] && echo "You should update /var/www/$PACKAGE/vvb.ini now..."
    8.14  }
     9.1 --- a/awstats/receipt	Sat Dec 19 21:50:31 2015 +0100
     9.2 +++ b/awstats/receipt	Sun Dec 20 15:13:45 2015 +0100
     9.3 @@ -62,11 +62,11 @@
     9.4  post_install()
     9.5  {
     9.6  	# Set lighttpd or apache config
     9.7 -	if [ -f $1/etc/apache/httpd.conf ]; then
     9.8 -		if [ ! -f $1/etc/apache/conf.d/awstats.conf ]; then
     9.9 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
    9.10 +		if [ ! -f "$1/etc/apache/conf.d/awstats.conf" ]; then
    9.11  			
    9.12 -			cp $1/usr/share/awstats/extras/awstats-apache.conf \
    9.13 -				$1/etc/apache/conf.d/awstats.conf
    9.14 +			cp "$1/usr/share/awstats/extras/awstats-apache.conf" \
    9.15 +				"$1/etc/apache/conf.d/awstats.conf"
    9.16  		fi
    9.17  		if [ -z "$1" ]; then
    9.18  			# Start Web server if necessary.
    9.19 @@ -76,10 +76,10 @@
    9.20  		fi
    9.21  	fi
    9.22  
    9.23 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
    9.24 -		if [ ! -f $1/etc/lighttpd/awstats.conf ]; then
    9.25 -			cp $1/usr/share/awstats/extras/awstats-lighttpd.conf \
    9.26 -				$1/etc/lighttpd/awstats.conf
    9.27 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
    9.28 +		if [ ! -f "$1/etc/lighttpd/awstats.conf" ]; then
    9.29 +			cp "$1/usr/share/awstats/extras/awstats-lighttpd.conf" \
    9.30 +				"$1/etc/lighttpd/awstats.conf"
    9.31  		fi
    9.32  					# Start Web server if necessary.
    9.33  		if [ -f /var/run/lighttpd.pid ]; then
    10.1 --- a/backuppc/receipt	Sat Dec 19 21:50:31 2015 +0100
    10.2 +++ b/backuppc/receipt	Sun Dec 20 15:13:45 2015 +0100
    10.3 @@ -54,17 +54,17 @@
    10.4  
    10.5  post_install()
    10.6  {
    10.7 -	grep -qs backuppc $1/etc/rcS.conf ||
    10.8 -	sed -i 's/^RUN_DAEMONS="/RUN_DAEMONS="backuppc /' $1/etc/rcS.conf
    10.9 +	grep -qs backuppc "$1/etc/rcS.conf" ||
   10.10 +	sed -i 's/^RUN_DAEMONS="/RUN_DAEMONS="backuppc /' "$1/etc/rcS.conf"
   10.11  	loc=$LANG
   10.12 -	[ -s $1/usr/lib/BackupPC/Lang/$loc.pm ] || loc=${loc:0:2}
   10.13 -	[ -s $1/usr/lib/BackupPC/Lang/$loc.pm ] &&
   10.14 -	sed -i "s/'en'/'$loc'/" $1/etc/BackupPC/config.pl
   10.15 +	[ -s "$1/usr/lib/BackupPC/Lang/$loc.pm" ] || loc=${loc:0:2}
   10.16 +	[ -s "$1/usr/lib/BackupPC/Lang/$loc.pm" ] &&
   10.17 +	sed -i "s/'en'/'$loc'/" "$1/etc/BackupPC/config.pl"
   10.18  	[ -x /usr/bin/par2 ] &&
   10.19 -	sed -i 's/{ArchivePar} =.*/{ArchivePar} = 5;/' $1/etc/BackupPC/config.pl
   10.20 -	if [ ! -d $1/etc/BackupPC/.ssh ]; then
   10.21 -		mkdir $1/etc/BackupPC/.ssh
   10.22 -		chroot $1/ ssh-keygen -t rsa -f /etc/BackupPC/.ssh/id_rsa -C '' -N ''
   10.23 +	sed -i 's/{ArchivePar} =.*/{ArchivePar} = 5;/' "$1/etc/BackupPC/config.pl"
   10.24 +	if [ ! -d "$1/etc/BackupPC/.ssh" ]; then
   10.25 +		mkdir "$1/etc/BackupPC/.ssh"
   10.26 +		chroot "$1/" ssh-keygen -t rsa -f /etc/BackupPC/.ssh/id_rsa -C '' -N ''
   10.27  	fi
   10.28  	if [ -z "$1" ]; then
   10.29  		/etc/init.d/apache stop
   10.30 @@ -75,8 +75,8 @@
   10.31  	cat <<EOT
   10.32  
   10.33  Now you should :
   10.34 -- append $1/etc/BackupPC/.ssh/id_rsa.pub to every unix client /root/.ssh/authorized_keys file
   10.35 -- update \$Conf{CgiAdminUsers} in $1/etc/BackupPC/config.pl 
   10.36 +- append /etc/BackupPC/.ssh/id_rsa.pub to every unix client /root/.ssh/authorized_keys file
   10.37 +- update \$Conf{CgiAdminUsers} in /etc/BackupPC/config.pl 
   10.38  - enable web access with 'htpasswd -c root /etc/BackupPC/BackupPC.users'
   10.39  - update passwords in /etc/BackupPC/*.sh
   10.40  EOT
    11.1 --- a/barnyard2/receipt	Sat Dec 19 21:50:31 2015 +0100
    11.2 +++ b/barnyard2/receipt	Sun Dec 20 15:13:45 2015 +0100
    11.3 @@ -42,7 +42,7 @@
    11.4  	fi
    11.5  
    11.6  	# adduser snort if needed
    11.7 -	if ! grep -q 'snort:' $1/etc/passwd; then
    11.8 +	if ! grep -q 'snort:' "$1/etc/passwd"; then
    11.9  		action 'Adding user Snort...'
   11.10  		chroot "$1/" /bin/adduser -s /bin/false -h /dev/null \
   11.11  			-g "Snort Daemon user" -H -D -S -G snort snort
    12.1 --- a/bind/receipt	Sat Dec 19 21:50:31 2015 +0100
    12.2 +++ b/bind/receipt	Sun Dec 20 15:13:45 2015 +0100
    12.3 @@ -42,7 +42,7 @@
    12.4  post_install()
    12.5  {
    12.6  	localnets="192.168.0.0/16; 127.0.0.1;"
    12.7 -	grep -qs allow-recursion $1/etc/bind/named.conf.options ||
    12.8 +	grep -qs allow-recursion "$1/etc/bind/named.conf.options" ||
    12.9  	sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \
   12.10 -		$1/etc/bind/named.conf.options
   12.11 +		"$1/etc/bind/named.conf.options"
   12.12  }
    13.1 --- a/boinc/receipt	Sat Dec 19 21:50:31 2015 +0100
    13.2 +++ b/boinc/receipt	Sun Dec 20 15:13:45 2015 +0100
    13.3 @@ -51,7 +51,7 @@
    13.4  {
    13.5  	echo
    13.6  	# Check if boinc user already exists
    13.7 -	if grep -q ^${BOINCUSER}: $1/etc/passwd; then
    13.8 +	if grep -q ^${BOINCUSER}: "$1/etc/passwd"; then
    13.9  		chroot "$1/" adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
   13.10  	else
   13.11  		# In case boinc was previously installed:
   13.12 @@ -68,7 +68,7 @@
   13.13  	read -t 30 answer
   13.14  	if [ "$answer" == "yes" ]; then
   13.15  		chroot "$1/" deluser boinc
   13.16 -		rm -r $1/var/lib/boinc
   13.17 +		rm -r "$1/var/lib/boinc"
   13.18  	else
   13.19  		echo ""
   13.20  		echo "Leaving user boinc and /var/lib/boinc"
    14.1 --- a/boxbackup-client/receipt	Sat Dec 19 21:50:31 2015 +0100
    14.2 +++ b/boxbackup-client/receipt	Sun Dec 20 15:13:45 2015 +0100
    14.3 @@ -78,12 +78,12 @@
    14.4  	rm -rf "$1/$CONF_DIR"/bbackupd*
    14.5  
    14.6  	# Delete CONF dir (if empty)
    14.7 -	if [ $(ls -lA $CONF_DIR | wc -l) -eq 0 ]; then
    14.8 +	if [ $(ls -lA "$1/$CONF_DIR" | wc -l) -eq 0 ]; then
    14.9  		echo
   14.10  		action "Removing $CONF_DIR..."
   14.11 -		rm -rf $1/$CONF_DIR
   14.12 +		rm -rf "$1/$CONF_DIR"
   14.13  		status
   14.14  	fi
   14.15  	# Delete PID, sock files
   14.16 -	rm -f $1/var/run/bbackupd.*
   14.17 +	rm -f "$1/var/run/bbackupd".*
   14.18  }
    15.1 --- a/boxbackup-server/receipt	Sat Dec 19 21:50:31 2015 +0100
    15.2 +++ b/boxbackup-server/receipt	Sun Dec 20 15:13:45 2015 +0100
    15.3 @@ -61,51 +61,51 @@
    15.4  post_install()
    15.5  {
    15.6  	# default conf dir is now /etc/boxbackup
    15.7 -	if [ ! -e $1/etc/box/bbstored.conf ]; then
    15.8 -		mv /etc/box $1$CONF_DIR
    15.9 +	if [ ! -e "$1/etc/box/bbstored.conf" ]; then
   15.10 +		mv /etc/box "$1$CONF_DIR"
   15.11  	fi
   15.12  
   15.13  	# adduser BBUSER if needed
   15.14 -	if  ! grep -q $BBUSER $1/etc/passwd; then
   15.15 +	if  ! grep -q $BBUSER "$1/etc/passwd"; then
   15.16  		echo
   15.17  		action "Adding user '$BBUSER'..."
   15.18 -		echo $BBUSER':x:505:505:BoxBackup Network Backup:/dev/null:/bin/false' >> $1/etc/passwd
   15.19 -		echo $BBUSER':!:14013:0:99999:7:::' >> $1/etc/shadow
   15.20 -		echo $BBUSER':x:505:' >> $1/etc/group
   15.21 -		echo $BBUSER':!::' >> $1/etc/gshadow
   15.22 +		echo $BBUSER':x:505:505:BoxBackup Network Backup:/dev/null:/bin/false' >> "$1/etc/passwd"
   15.23 +		echo $BBUSER':!:14013:0:99999:7:::' >> "$1/etc/shadow"
   15.24 +		echo $BBUSER':x:505:' >> "$1/etc/group"
   15.25 +		echo $BBUSER':!::' >> "$1/etc/gshadow"
   15.26  		status
   15.27  	fi
   15.28  
   15.29  	# Create config is needed
   15.30 -	if [ ! -e $1$CONF_DIR ]; then
   15.31 -		mkdir -p $1$CONF_DIR &&
   15.32 -		chroot $1/ chown $BBUSER $CONF_DIR &&
   15.33 -		chmod 700 $1$CONF_DIR
   15.34 +	if [ ! -e "$1$CONF_DIR" ]; then
   15.35 +		mkdir -p "$1$CONF_DIR" &&
   15.36 +		chroot "$1/" chown $BBUSER $CONF_DIR &&
   15.37 +		chmod 700 "$1$CONF_DIR"
   15.38  	fi
   15.39  
   15.40 -	if [ ! -e $1$DATA_DIR/backup ]; then
   15.41 +	if [ ! -e "$1$DATA_DIR/backup" ]; then
   15.42  		# Creating backup dir
   15.43  		action "Creating backup directory..."
   15.44 -		mkdir -p $1$DATA_DIR/backup &&
   15.45 -		chroot $1/ chown -R $BBUSER $DATA_DIR &&
   15.46 -		chmod -R 700 $1$DATA_DIR
   15.47 +		mkdir -p "$1$DATA_DIR/backup" &&
   15.48 +		chroot "$1/" chown -R $BBUSER $DATA_DIR &&
   15.49 +		chmod -R 700 "$1$DATA_DIR"
   15.50  		status
   15.51  	fi
   15.52  
   15.53 -	if [ ! -e $1$CONF_DIR/raidfile.conf ]; then
   15.54 +	if [ ! -e "$1$CONF_DIR/raidfile.conf" ]; then
   15.55  		# RAID Setup
   15.56  		action "Disabling deprecated userland RAID..."
   15.57 -		chroot $1/ /usr/bin/raidfile-config $CONF_DIR 2048 $DATA_DIR 2>1 > /dev/null
   15.58 +		chroot "$1/" /usr/bin/raidfile-config $CONF_DIR 2048 $DATA_DIR 2>1 > /dev/null
   15.59  		status
   15.60 -		chroot $1/ chown -R $BBUSER $CONF_DIR/raidfile.conf &&
   15.61 -		chmod 700 -R $1$CONF_DIR/raidfile.conf
   15.62 +		chroot "$1/" chown -R $BBUSER $CONF_DIR/raidfile.conf &&
   15.63 +		chmod 700 -R "$1$CONF_DIR/raidfile.conf"
   15.64  	fi
   15.65  
   15.66 -	if [ ! -e $1$CONF_DIR/bbstored.conf ]; then
   15.67 +	if [ ! -e "$1$CONF_DIR/bbstored.conf" ]; then
   15.68  		# Setting hostname
   15.69  		action "Setting hostname... "
   15.70 -		if [ $(chroot $1/ hostname -f 2>1 > /dev/null;echo $?) -eq 0 ]; then
   15.71 -			HOSTNAME=$(chroot $1/ hostname -f)
   15.72 +		if [ $(chroot "$1/" hostname -f 2>1 > /dev/null;echo $?) -eq 0 ]; then
   15.73 +			HOSTNAME=$(chroot "$1/" hostname -f)
   15.74  		fi
   15.75  		if [ -z $HOSTNAME ]; then
   15.76  			HOSTNAME="127.0.0.1"
   15.77 @@ -115,17 +115,17 @@
   15.78  
   15.79  		# Setting up the CA environment
   15.80  		action "Creating certificates..."
   15.81 -		chroot $1/ /usr/bin/bbstored-certs $CA_DIR init 2>1 > /dev/null
   15.82 +		chroot "$1/" /usr/bin/bbstored-certs $CA_DIR init 2>1 > /dev/null
   15.83  		status
   15.84  
   15.85  		# Generate server certificate request
   15.86  		action "Generate server certificate request..."
   15.87 -		chroot $1/ bbstored-config $CONF_DIR $HOSTNAME $BBUSER 2>1 > /dev/null
   15.88 +		chroot "$1/" bbstored-config $CONF_DIR $HOSTNAME $BBUSER 2>1 > /dev/null
   15.89  		status
   15.90  
   15.91  		# Sign the server certificate
   15.92  		action "Sign the server certificate..."
   15.93 -		chroot $1/ openssl x509 -req -sha1 -extensions usr_crt \
   15.94 +		chroot "$1/" openssl x509 -req -sha1 -extensions usr_crt \
   15.95  			-in $CONF_DIR/$BBUSER/${HOSTNAME}-csr.pem \
   15.96  			-CA $CA_DIR/roots/serverCA.pem \
   15.97  			-CAkey $CA_DIR/keys/serverRootKey.pem \
   15.98 @@ -135,18 +135,18 @@
   15.99  
  15.100  		# Preparing the server certificates
  15.101  		action "Installing server certificate..."
  15.102 -		cp -a $1$CA_DIR/servers/${HOSTNAME}-cert.pem $1$CONF_DIR/$BBUSER
  15.103 +		cp -a "$1$CA_DIR/servers/${HOSTNAME}-cert.pem" "$1$CONF_DIR/$BBUSER"
  15.104  		status
  15.105  		action "Installing client certificate..."
  15.106 -		cp -a $1$CA_DIR/roots/clientCA.pem $1$CONF_DIR/$BBUSER
  15.107 +		cp -a "$1$CA_DIR/roots/clientCA.pem" "$1$CONF_DIR/$BBUSER"
  15.108  		status
  15.109  
  15.110  		# Securing $CONF_DIR
  15.111 -		chroot $1/ chown -R $BBUSER $CONF_DIR/bbstored* &&
  15.112 -		chmod 700 -R $1$CONF_DIR/bbstored*
  15.113 +		chroot "$1/" chown -R $BBUSER $CONF_DIR/bbstored* &&
  15.114 +		chmod 700 -R "$1$CONF_DIR/bbstored"*
  15.115  	fi
  15.116  
  15.117 -	if [ -e $1$CA_DIR ]; then
  15.118 +	if [ -e "$1$CA_DIR" ]; then
  15.119  		# Warning
  15.120  		echo
  15.121  		echo "IMPORTANT NOTE:"
  15.122 @@ -167,7 +167,7 @@
  15.123  post_remove()
  15.124  {
  15.125  	echo
  15.126 -	if  grep -q $BBUSER $1/etc/passwd; then
  15.127 +	if  grep -q $BBUSER /etc/passwd; then
  15.128  		action "Removing $BBUSER user..."
  15.129  		deluser bbstored
  15.130  		status
    16.1 --- a/busybox-pam/receipt	Sat Dec 19 21:50:31 2015 +0100
    16.2 +++ b/busybox-pam/receipt	Sun Dec 20 15:13:45 2015 +0100
    16.3 @@ -34,5 +34,5 @@
    16.4  
    16.5  post_install()
    16.6  {
    16.7 -	chmod 4755 $1/bin/busybox
    16.8 +	chmod 4755 "$1/bin/busybox"
    16.9  }
    17.1 --- a/busybox-static/receipt	Sat Dec 19 21:50:31 2015 +0100
    17.2 +++ b/busybox-static/receipt	Sun Dec 20 15:13:45 2015 +0100
    17.3 @@ -27,5 +27,5 @@
    17.4  
    17.5  post_install()
    17.6  {
    17.7 -    chmod 4755 $1/usr/share/boot/busybox-static
    17.8 +    chmod 4755 "$1/usr/share/boot/busybox-static"
    17.9  }
    18.1 --- a/busybox/receipt	Sat Dec 19 21:50:31 2015 +0100
    18.2 +++ b/busybox/receipt	Sun Dec 20 15:13:45 2015 +0100
    18.3 @@ -168,8 +168,8 @@
    18.4  	local i
    18.5  	cp -a /etc/resolv.conf /etc/resolv.conf-busybox-install
    18.6  	answer=""
    18.7 -	for i in $(cat $1$INSTALLED/$PACKAGE/files.list); do
    18.8 -		[ -f $1$i ] || continue
    18.9 +	for i in $(cat "$1$INSTALLED/$PACKAGE/files.list"); do
   18.10 +		[ -f "$1$i" ] || continue
   18.11  		case "$i" in
   18.12  			/bin/busybox) continue ;;
   18.13  			*bin/*) ;;
   18.14 @@ -183,7 +183,7 @@
   18.15  			*) answer="Y";;
   18.16  			esac
   18.17  		fi
   18.18 -		cp -a $1$i $1$i-busybox-install
   18.19 +		cp -a "$1$i" "$1$i-busybox-install"
   18.20  	done
   18.21  }
   18.22  
   18.23 @@ -193,10 +193,10 @@
   18.24  	[ -f /etc/resolv.conf-busybox-install ] &&
   18.25  	mv -f /etc/resolv.conf-busybox-install /etc/resolv.conf
   18.26  	while read i ; do
   18.27 -		[ -f $1$i-busybox-install ] || continue
   18.28 -		mv $1$i-busybox-install $1$i
   18.29 -	done < $1$INSTALLED/$PACKAGE/files.list
   18.30 -	chmod 4755 $1/bin/busybox
   18.31 +		[ -f "$1$i-busybox-install" ] || continue
   18.32 +		mv "$1$i-busybox-install" "$1$i"
   18.33 +	done < "$1$INSTALLED/$PACKAGE/files.list"
   18.34 +	chmod 4755 "$1/bin/busybox"
   18.35  
   18.36  	touch $root/etc/daemons.conf
   18.37  	# /etc/daemons.conf (tftp + dnsd + httpd may not be present)
    19.1 --- a/c_icap/receipt	Sat Dec 19 21:50:31 2015 +0100
    19.2 +++ b/c_icap/receipt	Sun Dec 20 15:13:45 2015 +0100
    19.3 @@ -73,6 +73,6 @@
    19.4  post_remove()
    19.5  {
    19.6  	echo "Removing stalled files..."
    19.7 -	test -d $1/var/log/c-icap && rm -rf $1/var/log/c-icap
    19.8 -	test -d $1/usr/run/c-icap && rm -rf $1/usr/run/c-icap
    19.9 +	test -d "$1/var/log/c-icap" && rm -rf "$1/var/log/c-icap"
   19.10 +	test -d "$1/usr/run/c-icap" && rm -rf "$1/usr/run/c-icap"
   19.11  }
    20.1 --- a/ccid/receipt	Sat Dec 19 21:50:31 2015 +0100
    20.2 +++ b/ccid/receipt	Sun Dec 20 15:13:45 2015 +0100
    20.3 @@ -43,9 +43,9 @@
    20.4  post_install()
    20.5  {
    20.6  	# addgroup pcscd if needed                                                                                                                
    20.7 -	if ! grep -q pcscd $1/etc/group; then
    20.8 +	if ! grep -q pcscd "$1/etc/group"; then
    20.9  		echo -n "Adding group pcscd..."
   20.10 -		chroot $1/ addgroup pcscd
   20.11 +		chroot "$1/" addgroup pcscd
   20.12  		status
   20.13  	fi
   20.14  }
    21.1 --- a/clamav/receipt	Sat Dec 19 21:50:31 2015 +0100
    21.2 +++ b/clamav/receipt	Sun Dec 20 15:13:45 2015 +0100
    21.3 @@ -70,23 +70,23 @@
    21.4  	
    21.5  	# Enable freshclam update
    21.6  	echo -n "Enabling freshclam update..."
    21.7 -	cd $1/etc/clamav
    21.8 +	cd "$1/etc/clamav"
    21.9  	sed -i 's/^Example/#Example/' freshclam.conf 
   21.10  	status
   21.11  
   21.12  	# adduser clamav if needed
   21.13 -	if ! grep -q "${user}:" $1/etc/passwd; then
   21.14 +	if ! grep -q "${user}:" "$1/etc/passwd"; then
   21.15  		echo -n "Adding user/group $user..."
   21.16 -		chroot $1/ addgroup -S $group
   21.17 -		chroot $1/ adduser -s /bin/false -S -D -H -G $group $user
   21.18 +		chroot "$1/" addgroup -S $group
   21.19 +		chroot "$1/" adduser -s /bin/false -S -D -H -G $group $user
   21.20  		status
   21.21  	fi
   21.22  
   21.23  	# Enable daily.cvd updates (sometimes needed for new version)
   21.24 -	#chown -R ${user}:${group} $1/var/lib/clamav
   21.25 +	#chown -R ${user}:${group} "$1/var/lib/clamav"
   21.26  	
   21.27  	# Fix perms
   21.28 -	chroot $1/ chown -R ${user}.${group} /var/log/clamav \
   21.29 +	chroot "$1/" chown -R ${user}.${group} /var/log/clamav \
   21.30  		/run/clamav /var/lib/clamav
   21.31  
   21.32  }
    22.1 --- a/claws-mail/receipt	Sat Dec 19 21:50:31 2015 +0100
    22.2 +++ b/claws-mail/receipt	Sun Dec 20 15:13:45 2015 +0100
    22.3 @@ -46,6 +46,6 @@
    22.4  # Post installation custom.
    22.5  post_install()
    22.6  {
    22.7 -	[ -x $1/usr/bin/gtk-update-icon-cache ] &&
    22.8 +	[ -x "$1/usr/bin/gtk-update-icon-cache" ] &&
    22.9  	  chroot "$1/" gtk-update-icon-cache -f -t /usr/share/icons/hicolor
   22.10  }
    23.1 --- a/connman/receipt	Sat Dec 19 21:50:31 2015 +0100
    23.2 +++ b/connman/receipt	Sun Dec 20 15:13:45 2015 +0100
    23.3 @@ -66,13 +66,12 @@
    23.4  # Pre and post remove commands for Tazpkg
    23.5  post_install()
    23.6  {
    23.7 -	local root=$1
    23.8 -	if ! grep -qs ^CONNMAND_OPTIONS $root/etc/daemons.conf; then
    23.9 -		echo '# Connman daemon options.' >> $root/etc/daemons.conf
   23.10 -		echo 'CONNMAND_OPTIONS=""' >> $root/etc/daemons.conf
   23.11 -		echo '' >> $root/etc/daemons.conf
   23.12 +	if ! grep -qs ^CONNMAND_OPTIONS "$1/etc/daemons.conf"; then
   23.13 +		echo '# Connman daemon options.' >> "$1/etc/daemons.conf"
   23.14 +		echo 'CONNMAND_OPTIONS=""' >> "$1/etc/daemons.conf"
   23.15 +		echo '' >> "$1/etc/daemons.conf"
   23.16  	fi
   23.17 -	if [ -z "$root" -a -s /etc/network.conf ]; then
   23.18 +	if [ -z "$1" -a -s /etc/network.conf ]; then
   23.19  		/etc/init.d/connman start || /etc/init.d/connman restart
   23.20  	fi
   23.21  }
    24.1 --- a/cookutils/receipt	Sat Dec 19 21:50:31 2015 +0100
    24.2 +++ b/cookutils/receipt	Sun Dec 20 15:13:45 2015 +0100
    24.3 @@ -36,11 +36,11 @@
    24.4  # Pre and post install commands for Tazpkg.
    24.5  post_install()
    24.6  {
    24.7 -	case "$(cat $1/etc/hostname 2> /dev/null)" in
    24.8 +	case "$(cat "$1/etc/hostname" 2> /dev/null)" in
    24.9  	tank*)
   24.10 -		if ! chroot $1/ tazpkg list | grep -q aufs ; then
   24.11 -			tazpkg get-install aufs --root=$1/
   24.12 -			sed -i 's/LOAD_MODULES="/&aufs /' $1/etc/rcS.conf
   24.13 +		if ! chroot "$1/" tazpkg list | grep -q aufs ; then
   24.14 +			tazpkg get-install aufs --root="$1/"
   24.15 +			sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf"
   24.16  		fi ;;
   24.17  	esac
   24.18  }
    25.1 --- a/coreutils-character/receipt	Sat Dec 19 21:50:31 2015 +0100
    25.2 +++ b/coreutils-character/receipt	Sun Dec 20 15:13:45 2015 +0100
    25.3 @@ -30,17 +30,15 @@
    25.4  #
    25.5  pre_install()
    25.6  {
    25.7 -	local root
    25.8 -	root=$1
    25.9  	echo "Processing pre-install commands..."
   25.10  	echo -n "Removing all Busybox replaced utils... "
   25.11 -	rm -f $root/usr/bin/tr $root/usr/bin/expand $root/usr/bin/unexpand
   25.12 +	rm -f "$1/usr/bin/tr" "$1/usr/bin/expand" "$1/usr/bin/unexpand"
   25.13  	status
   25.14  }
   25.15  
   25.16  post_remove()
   25.17  {
   25.18 -	ln -s /bin/busybox $1/usr/bin/tr
   25.19 -	ln -s /bin/busybox $1/usr/bin/expand
   25.20 -	ln -s /bin/busybox $1/usr/bin/unexpand
   25.21 +	ln -s /bin/busybox "$1/usr/bin/tr"
   25.22 +	ln -s /bin/busybox "$1/usr/bin/expand"
   25.23 +	ln -s /bin/busybox "$1/usr/bin/unexpand"
   25.24  }
    26.1 --- a/coreutils-command/receipt	Sat Dec 19 21:50:31 2015 +0100
    26.2 +++ b/coreutils-command/receipt	Sun Dec 20 15:13:45 2015 +0100
    26.3 @@ -38,23 +38,21 @@
    26.4  #
    26.5  pre_install()
    26.6  {
    26.7 -	local root
    26.8 -	root=$1
    26.9  	echo "Processing pre-install commands..."
   26.10  	echo -n "Removing all Busybox replaced utils... "
   26.11 -	rm -f $root/bin/nice $root/bin/kill $root/bin/sleep
   26.12 -	rm -f $root/usr/bin/env $root/usr/bin/nohup $root/usr/bin/timeout
   26.13 -	rm -f $root/usr/sbin/chroot
   26.14 +	rm -f "$1/bin/nice" "$1/bin/kill" "$1/bin/sleep"
   26.15 +	rm -f "$1/usr/bin/env" "$1/usr/bin/nohup" "$1/usr/bin/timeout"
   26.16 +	rm -f "$1/usr/sbin/chroot"
   26.17  	status
   26.18  }
   26.19  
   26.20  post_remove()
   26.21  {
   26.22 -	ln -s /bin/busybox $1/bin/nice
   26.23 -	ln -s /bin/busybox $1/bin/kill
   26.24 -	ln -s /bin/busybox $1/bin/sleep
   26.25 -	ln -s /bin/busybox $1/usr/bin/env
   26.26 -	ln -s /bin/busybox $1/usr/bin/nohup
   26.27 -	ln -s /bin/busybox $1/usr/bin/timeout
   26.28 -	ln -s /bin/busybox $1/usr/sbin/chroot
   26.29 +	ln -s /bin/busybox "$1/bin/nice"
   26.30 +	ln -s /bin/busybox "$1/bin/kill"
   26.31 +	ln -s /bin/busybox "$1/bin/sleep"
   26.32 +	ln -s /bin/busybox "$1/usr/bin/env"
   26.33 +	ln -s /bin/busybox "$1/usr/bin/nohup"
   26.34 +	ln -s /bin/busybox "$1/usr/bin/timeout"
   26.35 +	ln -s /bin/busybox "$1/usr/sbin/chroot"
   26.36  }
    27.1 --- a/coreutils-conditions/receipt	Sat Dec 19 21:50:31 2015 +0100
    27.2 +++ b/coreutils-conditions/receipt	Sun Dec 20 15:13:45 2015 +0100
    27.3 @@ -34,20 +34,18 @@
    27.4  #
    27.5  pre_install()
    27.6  {
    27.7 -	local root
    27.8 -	root=$1
    27.9  	echo "Processing pre-install commands..."
   27.10  	echo -n "Removing all Busybox replaced utils... "
   27.11 -	rm -f $root/bin/false $root/bin/true
   27.12 -	rm -f $root/usr/bin/test $root/usr/bin/[ $root/usr/bin/expr
   27.13 +	rm -f "$1/bin/false" "$1/bin/true"
   27.14 +	rm -f "$1/usr/bin/test" "$1/usr/bin/[" "$1/usr/bin/expr"
   27.15  	status
   27.16  }
   27.17  
   27.18  post_remove()
   27.19  {
   27.20 -	ln -s /bin/busybox $1/bin/false
   27.21 -	ln -s /bin/busybox $1/bin/true
   27.22 -	ln -s /bin/busybox $1/usr/bin/test
   27.23 -	ln -s /bin/busybox $1/usr/bin/[
   27.24 -	ln -s /bin/busybox $1/usr/bin/expr
   27.25 +	ln -s /bin/busybox "$1/bin/false"
   27.26 +	ln -s /bin/busybox "$1/bin/true"
   27.27 +	ln -s /bin/busybox "$1/usr/bin/test"
   27.28 +	ln -s /bin/busybox "$1/usr/bin/["
   27.29 +	ln -s /bin/busybox "$1/usr/bin/expr"
   27.30  }
    28.1 --- a/coreutils-context-system/receipt	Sat Dec 19 21:50:31 2015 +0100
    28.2 +++ b/coreutils-context-system/receipt	Sun Dec 20 15:13:45 2015 +0100
    28.3 @@ -35,19 +35,17 @@
    28.4  #
    28.5  pre_install()
    28.6  {
    28.7 -	local root
    28.8 -	root=$1
    28.9  	echo "Processing pre-install commands..."
   28.10  	echo -n "Removing all Busybox replaced utils... "
   28.11 -	rm -f $root/bin/date $root/bin/uname
   28.12 -	rm -f $root/usr/bin/hostid $root/usr/bin/uptime
   28.13 +	rm -f "$1/bin/date" "$1/bin/uname"
   28.14 +	rm -f "$1/usr/bin/hostid" "$1/usr/bin/uptime"
   28.15  	status
   28.16  }
   28.17  
   28.18  post_remove()
   28.19  {
   28.20 -	ln -s /bin/busybox $1/bin/date
   28.21 -	ln -s /bin/busybox $1/bin/uname
   28.22 -	ln -s /bin/busybox $1/usr/bin/hostid
   28.23 -	ln -s /bin/busybox $1/usr/bin/uptime
   28.24 +	ln -s /bin/busybox "$1/bin/date"
   28.25 +	ln -s /bin/busybox "$1/bin/uname"
   28.26 +	ln -s /bin/busybox "$1/usr/bin/hostid"
   28.27 +	ln -s /bin/busybox "$1/usr/bin/uptime"
   28.28  }
    29.1 --- a/coreutils-context-user/receipt	Sat Dec 19 21:50:31 2015 +0100
    29.2 +++ b/coreutils-context-user/receipt	Sun Dec 20 15:13:45 2015 +0100
    29.3 @@ -36,19 +36,17 @@
    29.4  #
    29.5  pre_install()
    29.6  {
    29.7 -	local root
    29.8 -	root=$1
    29.9  	echo "Processing pre-install commands..."
   29.10  	echo -n "Removing all Busybox replaced utils... "
   29.11 -	rm -f $root/bin/id
   29.12 -	rm -f $root/usr/bin/logname $root/usr/bin/whoami $root/usr/bin/who
   29.13 +	rm -f "$1/bin/id"
   29.14 +	rm -f "$1/usr/bin/logname" "$1/usr/bin/whoami" "$1/usr/bin/who"
   29.15  	status
   29.16  }
   29.17  
   29.18  post_remove()
   29.19  {
   29.20 -	ln -s /bin/busybox $1/bin/id
   29.21 -	ln -s /bin/busybox $1/usr/bin/logname
   29.22 -	ln -s /bin/busybox $1/usr/bin/whoami
   29.23 -	ln -s /bin/busybox $1/usr/bin/who
   29.24 +	ln -s /bin/busybox "$1/bin/id"
   29.25 +	ln -s /bin/busybox "$1/usr/bin/logname"
   29.26 +	ln -s /bin/busybox "$1/usr/bin/whoami"
   29.27 +	ln -s /bin/busybox "$1/usr/bin/who"
   29.28  }
    30.1 --- a/coreutils-context-working/receipt	Sat Dec 19 21:50:31 2015 +0100
    30.2 +++ b/coreutils-context-working/receipt	Sun Dec 20 15:13:45 2015 +0100
    30.3 @@ -33,19 +33,17 @@
    30.4  #
    30.5  pre_install()
    30.6  {
    30.7 -	local root
    30.8 -	root=$1
    30.9  	echo "Processing pre-install commands..."
   30.10  	echo -n "Removing all Busybox replaced utils... "
   30.11 -	rm -f $root/bin/pwd $root/bin/stty $root/bin/printenv
   30.12 -	rm -f $root/usr/bin/tty
   30.13 +	rm -f "$1/bin/pwd" "$1/bin/stty" "$1/bin/printenv"
   30.14 +	rm -f "$1/usr/bin/tty"
   30.15  	status
   30.16  }
   30.17  
   30.18  post_remove()
   30.19  {
   30.20 -	ln -s /bin/busybox $1/bin/pwd
   30.21 -	ln -s /bin/busybox $1/bin/stty
   30.22 -	ln -s /bin/busybox $1/bin/printenv
   30.23 -	ln -s /bin/busybox $1/usr/bin/tty
   30.24 +	ln -s /bin/busybox "$1/bin/pwd"
   30.25 +	ln -s /bin/busybox "$1/bin/stty"
   30.26 +	ln -s /bin/busybox "$1/bin/printenv"
   30.27 +	ln -s /bin/busybox "$1/usr/bin/tty"
   30.28  }
    31.1 --- a/coreutils-directory/receipt	Sat Dec 19 21:50:31 2015 +0100
    31.2 +++ b/coreutils-directory/receipt	Sun Dec 20 15:13:45 2015 +0100
    31.3 @@ -33,18 +33,16 @@
    31.4  #
    31.5  pre_install()
    31.6  {
    31.7 -	local root
    31.8 -	root=$1
    31.9  	echo "Processing pre-install commands..."
   31.10  	echo -n "Removing all Busybox replaced utils... "
   31.11 -	rm -f $root/bin/ls $root/usr/bin/dir $root/usr/bin/vdir $root/usr/bin/dircolors
   31.12 +	rm -f "$1/bin/ls" "$1/usr/bin/dir" "$1/usr/bin/vdir" "$1/usr/bin/dircolors"
   31.13  	status
   31.14  }
   31.15  
   31.16  post_remove()
   31.17  {
   31.18 -	ln -s /bin/busybox $1/bin/ls
   31.19 -	ln -s /bin/busybox $1/usr/bin/dir
   31.20 -	ln -s /bin/busybox $1/usr/bin/vdir
   31.21 -	ln -s /bin/busybox $1/usr/bin/dircolors
   31.22 +	ln -s /bin/busybox "$1/bin/ls"
   31.23 +	ln -s /bin/busybox "$1/usr/bin/dir"
   31.24 +	ln -s /bin/busybox "$1/usr/bin/vdir"
   31.25 +	ln -s /bin/busybox "$1/usr/bin/dircolors"
   31.26  }
    32.1 --- a/coreutils-disk/receipt	Sat Dec 19 21:50:31 2015 +0100
    32.2 +++ b/coreutils-disk/receipt	Sun Dec 20 15:13:45 2015 +0100
    32.3 @@ -34,19 +34,17 @@
    32.4  #
    32.5  pre_install()
    32.6  {
    32.7 -	local root
    32.8 -	root=$1
    32.9  	echo "Processing pre-install commands..."
   32.10  	echo -n "Removing all Busybox replaced utils... "
   32.11 -	rm -f $root/bin/df $root/bin/stat $root/bin/sync
   32.12 -	rm -f $root/usr/bin/du
   32.13 +	rm -f "$1/bin/df" "$1/bin/stat" "$1/bin/sync"
   32.14 +	rm -f "$1/usr/bin/du"
   32.15  	status
   32.16  }
   32.17  
   32.18  post_remove()
   32.19  {
   32.20 -	ln -s /bin/busybox $1/bin/df
   32.21 -	ln -s /bin/busybox $1/bin/stat
   32.22 -	ln -s /bin/busybox $1/bin/sync
   32.23 -	ln -s /bin/busybox $1/usr/bin/du
   32.24 +	ln -s /bin/busybox "$1/bin/df"
   32.25 +	ln -s /bin/busybox "$1/bin/stat"
   32.26 +	ln -s /bin/busybox "$1/bin/sync"
   32.27 +	ln -s /bin/busybox "$1/usr/bin/du"
   32.28  }
    33.1 --- a/coreutils-file-attributes/receipt	Sat Dec 19 21:50:31 2015 +0100
    33.2 +++ b/coreutils-file-attributes/receipt	Sun Dec 20 15:13:45 2015 +0100
    33.3 @@ -31,18 +31,16 @@
    33.4  #
    33.5  pre_install()
    33.6  {
    33.7 -	local root
    33.8 -	root=$1
    33.9  	echo "Processing pre-install commands..."
   33.10  	echo -n "Removing all Busybox replaced utils... "
   33.11 -	rm -f $root/bin/chown $root/bin/chgrp $root/bin/chmod $root/bin/touch
   33.12 +	rm -f "$1/bin/chown" "$1/bin/chgrp" "$1/bin/chmod" "$1/bin/touch"
   33.13  	status
   33.14  }
   33.15  
   33.16  post_remove()
   33.17  {
   33.18 -	ln -s /bin/busybox $1/bin/chown
   33.19 -	ln -s /bin/busybox $1/bin/chgrp
   33.20 -	ln -s /bin/busybox $1/bin/chmod
   33.21 -	ln -s /bin/busybox $1/bin/touch
   33.22 +	ln -s /bin/busybox "$1/bin/chown"
   33.23 +	ln -s /bin/busybox "$1/bin/chgrp"
   33.24 +	ln -s /bin/busybox "$1/bin/chmod"
   33.25 +	ln -s /bin/busybox "$1/bin/touch"
   33.26  }
    34.1 --- a/coreutils-file-format/receipt	Sat Dec 19 21:50:31 2015 +0100
    34.2 +++ b/coreutils-file-format/receipt	Sun Dec 20 15:13:45 2015 +0100
    34.3 @@ -30,15 +30,13 @@
    34.4  #
    34.5  pre_install()
    34.6  {
    34.7 -	local root
    34.8 -	root=$1
    34.9  	echo "Processing pre-install commands..."
   34.10  	echo -n "Removing all Busybox replaced utils... "
   34.11 -	rm -f $root/usr/bin/fold
   34.12 +	rm -f "$root/usr/bin/fold"
   34.13  	status
   34.14  }
   34.15  
   34.16  post_remove()
   34.17  {
   34.18 -	ln -s /bin/busybox $1/usr/bin/fold
   34.19 +	ln -s /bin/busybox "$1/usr/bin/fold"
   34.20  }
    35.1 --- a/coreutils-file-output-full/receipt	Sat Dec 19 21:50:31 2015 +0100
    35.2 +++ b/coreutils-file-output-full/receipt	Sun Dec 20 15:13:45 2015 +0100
    35.3 @@ -34,17 +34,15 @@
    35.4  #
    35.5  pre_install()
    35.6  {
    35.7 -	local root
    35.8 -	root=$1
    35.9  	echo "Processing pre-install commands..."
   35.10  	echo -n "Removing all Busybox replaced utils... "
   35.11 -	rm -f $root/bin/cat $root/usr/bin/od $root/usr/bin/tac
   35.12 +	rm -f "$1/bin/cat" "$1/usr/bin/od" "$1/usr/bin/tac"
   35.13  	status
   35.14  }
   35.15  
   35.16  post_remove()
   35.17  {
   35.18 -	ln -s /bin/busybox $1/bin/cat
   35.19 -	ln -s /bin/busybox $1/usr/bin/od
   35.20 -	ln -s /bin/busybox $1/usr/bin/tac
   35.21 +	ln -s /bin/busybox "$1/bin/cat"
   35.22 +	ln -s /bin/busybox "$1/usr/bin/od"
   35.23 +	ln -s /bin/busybox "$1/usr/bin/tac"
   35.24  }
    36.1 --- a/coreutils-file-output-part/receipt	Sat Dec 19 21:50:31 2015 +0100
    36.2 +++ b/coreutils-file-output-part/receipt	Sun Dec 20 15:13:45 2015 +0100
    36.3 @@ -31,17 +31,15 @@
    36.4  #
    36.5  pre_install()
    36.6  {
    36.7 -	local root
    36.8 -	root=$1
    36.9  	echo "Processing pre-install commands..."
   36.10  	echo -n "Removing all Busybox replaced utils... "
   36.11 -	rm -f $root/usr/bin/head $root/usr/bin/tail $root/usr/bin/split
   36.12 +	rm -f "$1/usr/bin/head" "$1/usr/bin/tail" "$1/usr/bin/split"
   36.13  	status
   36.14  }
   36.15  
   36.16  post_remove()
   36.17  {
   36.18 -	ln -s /bin/busybox $1/usr/bin/head
   36.19 -	ln -s /bin/busybox $1/usr/bin/tail
   36.20 -	ln -s /bin/busybox $1/usr/bin/split
   36.21 +	ln -s /bin/busybox "$1/usr/bin/head"
   36.22 +	ln -s /bin/busybox "$1/usr/bin/tail"
   36.23 +	ln -s /bin/busybox "$1/usr/bin/split"
   36.24  }
    37.1 --- a/coreutils-file-sort/receipt	Sat Dec 19 21:50:31 2015 +0100
    37.2 +++ b/coreutils-file-sort/receipt	Sun Dec 20 15:13:45 2015 +0100
    37.3 @@ -33,17 +33,15 @@
    37.4  #
    37.5  pre_install()
    37.6  {
    37.7 -	local root
    37.8 -	root=$1
    37.9  	echo "Processing pre-install commands..."
   37.10  	echo -n "Removing all Busybox replaced utils... "
   37.11 -	rm -f $root/usr/bin/sort $root/usr/bin/uniq $root/usr/bin/comm
   37.12 +	rm -f "$1/usr/bin/sort" "$1/usr/bin/uniq" "$1/usr/bin/comm"
   37.13  	status
   37.14  }
   37.15  
   37.16  post_remove()
   37.17  {
   37.18 -	ln -s /bin/busybox $1/usr/bin/sort
   37.19 -	ln -s /bin/busybox $1/usr/bin/uniq
   37.20 -	ln -s /bin/busybox $1/usr/bin/comm
   37.21 +	ln -s /bin/busybox "$1/usr/bin/sort"
   37.22 +	ln -s /bin/busybox "$1/usr/bin/uniq"
   37.23 +	ln -s /bin/busybox "$1/usr/bin/comm"
   37.24  }
    38.1 --- a/coreutils-file-special/receipt	Sat Dec 19 21:50:31 2015 +0100
    38.2 +++ b/coreutils-file-special/receipt	Sun Dec 20 15:13:45 2015 +0100
    38.3 @@ -38,31 +38,28 @@
    38.4  #
    38.5  pre_install()
    38.6  {
    38.7 -	local root
    38.8 -	root=$1
    38.9  	echo "Processing pre-install commands..."
   38.10  	echo -n "Removing all Busybox replaced utils... "
   38.11 -	rm -f $root/bin/ln $root/bin/mkdir $root/bin/mknod $root/bin/rmdir
   38.12 -	rm -f $root/usr/bin/mkfifo $root/usr/bin/readlink
   38.13 +	rm -f "$1/bin/ln" "$1/bin/mkdir" "$1/bin/mknod" "$1/bin/rmdir"
   38.14 +	rm -f "$1/usr/bin/mkfifo" "$1/usr/bin/readlink"
   38.15  	status
   38.16  }
   38.17  
   38.18  pre_remove()
   38.19  {
   38.20  	# Need to handle the removal of ln
   38.21 -	cp -a -fd $1/bin/ln $1/bin/ln-coreutils
   38.22 +	cp -a -fd "$1/bin/ln" "$1/bin/ln-coreutils"
   38.23  }
   38.24 -
   38.25  post_remove()
   38.26  {
   38.27  	# Restore ln
   38.28 -	ln-coreutils -s /bin/busybox $1/bin/ln
   38.29 +	ln-coreutils -s /bin/busybox "$1/bin/ln"
   38.30  
   38.31 -	ln -s /bin/busybox $1/bin/mkdir
   38.32 -	ln -s /bin/busybox $1/bin/mknod
   38.33 -	ln -s /bin/busybox $1/bin/rmdir
   38.34 -	ln -s /bin/busybox $1/usr/bin/mkfifo
   38.35 -	ln -s /bin/busybox $1/usr/bin/readlink
   38.36 +	ln -s /bin/busybox "$1/bin/mkdir"
   38.37 +	ln -s /bin/busybox "$1/bin/mknod"
   38.38 +	ln -s /bin/busybox "$1/bin/rmdir"
   38.39 +	ln -s /bin/busybox "$1/usr/bin/mkfifo"
   38.40 +	ln -s /bin/busybox "$1/usr/bin/readlink"
   38.41  	
   38.42 -	rm -f $1/bin/ln-coreutils
   38.43 +	rm -f "$1/bin/ln-coreutils"
   38.44  }
    39.1 --- a/coreutils-file-summarize/receipt	Sat Dec 19 21:50:31 2015 +0100
    39.2 +++ b/coreutils-file-summarize/receipt	Sun Dec 20 15:13:45 2015 +0100
    39.3 @@ -36,23 +36,21 @@
    39.4  #
    39.5  pre_install()
    39.6  {
    39.7 -	local root
    39.8 -	root=$1
    39.9  	echo "Processing pre-install commands..."
   39.10  	echo -n "Removing all Busybox replaced utils... "
   39.11 -	rm -f $root/usr/bin/wc $root/usr/bin/sum $root/usr/bin/cksum \
   39.12 -		$root/usr/bin/md5sum $root/usr/bin/sha1sum \
   39.13 -		$root/usr/bin/sha256sum $root/usr/bin/sha512sum
   39.14 +	rm -f "$1/usr/bin/wc" "$1/usr/bin/sum" "$1/usr/bin/cksum" \
   39.15 +		"$1/usr/bin/md5sum" "$1/usr/bin/sha1sum" \
   39.16 +		"$1/usr/bin/sha256sum" "$1/usr/bin/sha512sum"
   39.17  	status
   39.18  }
   39.19  
   39.20  post_remove()
   39.21  {
   39.22 -	ln -s /bin/busybox $1/usr/bin/wc
   39.23 -	ln -s /bin/busybox $1/usr/bin/sum
   39.24 -	ln -s /bin/busybox $1/usr/bin/cksum
   39.25 -	ln -s /bin/busybox $1/usr/bin/md5sum
   39.26 -	ln -s /bin/busybox $1/usr/bin/sha1sum
   39.27 -	ln -s /bin/busybox $1/usr/bin/sha256sum
   39.28 -	ln -s /bin/busybox $1/usr/bin/sha512sum
   39.29 +	ln -s /bin/busybox "$1/usr/bin/wc"
   39.30 +	ln -s /bin/busybox "$1/usr/bin/sum"
   39.31 +	ln -s /bin/busybox "$1/usr/bin/cksum"
   39.32 +	ln -s /bin/busybox "$1/usr/bin/md5sum"
   39.33 +	ln -s /bin/busybox "$1/usr/bin/sha1sum"
   39.34 +	ln -s /bin/busybox "$1/usr/bin/sha256sum"
   39.35 +	ln -s /bin/busybox "$1/usr/bin/sha512sum"
   39.36  }
    40.1 --- a/coreutils-line/receipt	Sat Dec 19 21:50:31 2015 +0100
    40.2 +++ b/coreutils-line/receipt	Sun Dec 20 15:13:45 2015 +0100
    40.3 @@ -30,15 +30,13 @@
    40.4  #
    40.5  pre_install()
    40.6  {
    40.7 -	local root
    40.8 -	root=$1
    40.9  	echo "Processing pre-install commands..."
   40.10  	echo -n "Removing all Busybox replaced utils... "
   40.11 -	rm -f $root/usr/bin/cut
   40.12 +	rm -f "$1/usr/bin/cut"
   40.13  	status
   40.14  }
   40.15  
   40.16  post_remove()
   40.17  {
   40.18 -	ln -s /bin/busybox $1/usr/bin/cut
   40.19 +	ln -s /bin/busybox "$1/usr/bin/cut"
   40.20  }
    41.1 --- a/coreutils-numeric/receipt	Sat Dec 19 21:50:31 2015 +0100
    41.2 +++ b/coreutils-numeric/receipt	Sun Dec 20 15:13:45 2015 +0100
    41.3 @@ -29,15 +29,13 @@
    41.4  #
    41.5  pre_install()
    41.6  {
    41.7 -	local root
    41.8 -	root=$1
    41.9  	echo "Processing pre-install commands..."
   41.10  	echo -n "Removing all Busybox replaced utils... "
   41.11 -	rm -f $root/usr/bin/seq
   41.12 +	rm -f "$1/usr/bin/seq"
   41.13  	status
   41.14  }
   41.15  
   41.16  post_remove()
   41.17  {
   41.18 -	ln -s /bin/busybox $1/usr/bin/seq
   41.19 +	ln -s /bin/busybox "$1/usr/bin/seq"
   41.20  }
    42.1 --- a/coreutils-operations/receipt	Sat Dec 19 21:50:31 2015 +0100
    42.2 +++ b/coreutils-operations/receipt	Sun Dec 20 15:13:45 2015 +0100
    42.3 @@ -34,10 +34,10 @@
    42.4  {
    42.5  	# use busybox ln applet directly since /bin/ln
    42.6  	# in this package is remove already
    42.7 -#	/bin/busybox ln -fs /bin/busybox $1/bin/cp
    42.8 -	/bin/busybox ln -fs /bin/busybox $1/bin/dd
    42.9 -	/bin/busybox ln -fs /bin/busybox $1/bin/mv
   42.10 -	/bin/busybox ln -fs /bin/busybox $1/bin/ln
   42.11 -#	/bin/busybox ln -fs /bin/busybox $1/bin/rm
   42.12 -	/bin/busybox ln -fs /bin/busybox $1/usr/bin/install
   42.13 +#	/bin/busybox ln -fs /bin/busybox "$1/bin/cp"
   42.14 +	/bin/busybox ln -fs /bin/busybox "$1/bin/dd"
   42.15 +	/bin/busybox ln -fs /bin/busybox "$1/bin/mv"
   42.16 +	/bin/busybox ln -fs /bin/busybox "$1/bin/ln"
   42.17 +#	/bin/busybox ln -fs /bin/busybox "$1/bin/rm"
   42.18 +	/bin/busybox ln -fs /bin/busybox "$1/usr/bin/install"
   42.19  }
    43.1 --- a/coreutils-path/receipt	Sat Dec 19 21:50:31 2015 +0100
    43.2 +++ b/coreutils-path/receipt	Sun Dec 20 15:13:45 2015 +0100
    43.3 @@ -30,16 +30,14 @@
    43.4  #
    43.5  pre_install()
    43.6  {
    43.7 -	local root
    43.8 -	root=$1
    43.9  	echo "Processing pre-install commands..."
   43.10  	echo -n "Removing all Busybox replaced utils... "
   43.11 -	rm -f $root/usr/bin/basename $root/usr/bin/dirname
   43.12 +	rm -f "$1/usr/bin/basename" "$1/usr/bin/dirname"
   43.13  	status
   43.14  }
   43.15  
   43.16  post_remove()
   43.17  {
   43.18 -	ln -s /bin/busybox $1/usr/bin/basename
   43.19 -	ln -s /bin/busybox $1/usr/bin/dirname
   43.20 +	ln -s /bin/busybox "$1/usr/bin/basename"
   43.21 +	ln -s /bin/busybox "$1/usr/bin/dirname"
   43.22  }
    44.1 --- a/coreutils-print/receipt	Sat Dec 19 21:50:31 2015 +0100
    44.2 +++ b/coreutils-print/receipt	Sun Dec 20 15:13:45 2015 +0100
    44.3 @@ -32,18 +32,16 @@
    44.4  #
    44.5  pre_install()
    44.6  {
    44.7 -	local root
    44.8 -	root=$1
    44.9  	echo "Processing pre-install commands..."
   44.10  	echo -n "Removing all Busybox replaced utils... "
   44.11 -	rm -f $root/bin/echo
   44.12 -	rm -f $root/usr/bin/printf $root/usr/bin/yes
   44.13 +	rm -f "$1/bin/echo"
   44.14 +	rm -f "$1/usr/bin/printf" "$1/usr/bin/yes"
   44.15  	status
   44.16  }
   44.17  
   44.18  post_remove()
   44.19  {
   44.20 -	ln -s /bin/busybox $1/bin/echo
   44.21 -	ln -s /bin/busybox $1/usr/bin/printf
   44.22 -	ln -s /bin/busybox $1/usr/bin/yes
   44.23 +	ln -s /bin/busybox "$1/bin/echo"
   44.24 +	ln -s /bin/busybox "$1/usr/bin/printf"
   44.25 +	ln -s /bin/busybox "$1/usr/bin/yes"
   44.26  }
    45.1 --- a/coreutils-redirection/receipt	Sat Dec 19 21:50:31 2015 +0100
    45.2 +++ b/coreutils-redirection/receipt	Sun Dec 20 15:13:45 2015 +0100
    45.3 @@ -28,15 +28,13 @@
    45.4  #
    45.5  pre_install()
    45.6  {
    45.7 -	local root
    45.8 -	root=$1
    45.9  	echo "Processing pre-install commands..."
   45.10  	echo -n "Removing all Busybox replaced utils... "
   45.11 -	rm -f $root/usr/bin/tee
   45.12 +	rm -f "$1/usr/bin/tee"
   45.13  	status
   45.14  }
   45.15  
   45.16  post_remove()
   45.17  {
   45.18 -	ln -s /bin/busybox $1/usr/bin/tee
   45.19 +	ln -s /bin/busybox "$1/usr/bin/tee"
   45.20  }
    46.1 --- a/coreutils/receipt	Sat Dec 19 21:50:31 2015 +0100
    46.2 +++ b/coreutils/receipt	Sun Dec 20 15:13:45 2015 +0100
    46.3 @@ -76,29 +76,27 @@
    46.4  #
    46.5  pre_install()
    46.6  {
    46.7 -	local root
    46.8 -	root=$1
    46.9  	echo "Processing pre-install commands..."
   46.10  	# we keed busybox cp for installing the pkg
   46.11  	echo -n "Removing Busybox replaced utils... "
   46.12 -	rm -f $root/usr/bin/od $root/usr/bin/split
   46.13 +	rm -f "$1/usr/bin/od" "$1/usr/bin/split"
   46.14  	status
   46.15  }
   46.16  
   46.17  post_install()
   46.18  {
   46.19  	echo -n "Installing cp..."
   46.20 -	rm $root/bin/cp &&
   46.21 -	mv $root/usr/bin/cp $root/bin
   46.22 +	rm "$1/bin/cp" &&
   46.23 +	mv "$1/usr/bin/cp" "$1/bin"
   46.24  	status
   46.25  }
   46.26  
   46.27  post_remove()
   46.28  {
   46.29 -	ln -s ../../bin/busybox $1/usr/bin/od
   46.30 -	ln -s ../../bin/busybox $1/usr/bin/split
   46.31 -	rm -f $1/bin/cp
   46.32 -	ln -s busybox $1/bin/cp
   46.33 +	ln -s ../../bin/busybox "$1/usr/bin/od"
   46.34 +	ln -s ../../bin/busybox "$1/usr/bin/split"
   46.35 +	rm -f "$1/bin/cp"
   46.36 +	ln -s busybox "$1/bin/cp"
   46.37  }
   46.38  
   46.39  clean_wok()
    47.1 --- a/couchdb/receipt	Sat Dec 19 21:50:31 2015 +0100
    47.2 +++ b/couchdb/receipt	Sun Dec 20 15:13:45 2015 +0100
    47.3 @@ -53,7 +53,7 @@
    47.4  {
    47.5  	INIT_FILE="/etc/init.d/$PACKAGE"
    47.6  	echo "Processing pre-install commands..."
    47.7 -	[ -f $1$$INIT_FILE ] && chroot "$1/" $INIT_FILE stop
    47.8 +	[ -f "$1$INIT_FILE" ] && chroot "$1/" $INIT_FILE stop
    47.9  	echo "Done..."
   47.10  }
   47.11  
   47.12 @@ -68,9 +68,9 @@
   47.13  
   47.14  	echo "Processing post-install commands..."
   47.15  
   47.16 -	grep -q "$PACKAGE" $1/etc/group || chroot "$1/" addgroup -S $PACKAGE
   47.17 +	grep -q "$PACKAGE" "$1/etc/group" || chroot "$1/" addgroup -S $PACKAGE
   47.18  
   47.19 -	grep -q "$PACKAGE" $1/etc/passwd || chroot "$1/" adduser -S -D -H \
   47.20 +	grep -q "$PACKAGE" "$1/etc/passwd" || chroot "$1/" adduser -S -D -H \
   47.21  	  -h $LIBDIR -G $PACKAGE -s /bin/sh -g "CouchDB Administrator" $PACKAGE
   47.22  
   47.23  	for DIR in $LIBDIR $ETCDIR $LOGDIR $RUNDIR; do
   47.24 @@ -86,7 +86,7 @@
   47.25  {
   47.26  	INIT_FILE="/etc/init.d/$PACKAGE"
   47.27  	echo "Processing pre-remove commands..."
   47.28 -	[ -f $1$INIT_FILE ] && chroot "$1/" $INIT_FILE stop
   47.29 +	[ -f "$1$INIT_FILE" ] && chroot "$1/" $INIT_FILE stop
   47.30  	echo "Done..."
   47.31  }
   47.32  
   47.33 @@ -102,7 +102,7 @@
   47.34  	chroot "$1/" deluser $PACKAGE
   47.35  
   47.36  	for DIR in $LIBDIR $ETCDIR $LOGDIR $RUNDIR; do
   47.37 -		rm -rf $1$DIR
   47.38 +		rm -rf "$1$DIR"
   47.39  	done
   47.40  
   47.41  	echo "Done..."
    48.1 --- a/cpio/receipt	Sat Dec 19 21:50:31 2015 +0100
    48.2 +++ b/cpio/receipt	Sun Dec 20 15:13:45 2015 +0100
    48.3 @@ -38,10 +38,10 @@
    48.4  # Remove Busybox symlink before installing
    48.5  pre_install()
    48.6  {
    48.7 -	rm -f $1/bin/cpio
    48.8 +	rm -f "$1/bin/cpio"
    48.9  }
   48.10  
   48.11  post_remove()
   48.12  {
   48.13 -	ln -s /bin/busybox /bin/cpio
   48.14 +	ln -s /bin/busybox "$1/bin/cpio"
   48.15  }
    49.1 --- a/cyrus-imapd/receipt	Sat Dec 19 21:50:31 2015 +0100
    49.2 +++ b/cyrus-imapd/receipt	Sun Dec 20 15:13:45 2015 +0100
    49.3 @@ -51,22 +51,22 @@
    49.4  post_install()
    49.5  {
    49.6          # adduser cyrus if needed
    49.7 -	if ! grep -q cyrus $1/etc/passwd; then
    49.8 +	if ! grep -q cyrus "$1/etc/passwd"; then
    49.9  		echo -n "Adding user cyrus..."
   49.10 -		chroot $1/ adduser cyrus -D -H -S -h /tmp
   49.11 -		chroot $1/ sh -c 'echo "cyrus:cyrus" | chpasswd -m > /dev/null'
   49.12 +		chroot "$1/" adduser cyrus -D -H -S -h /tmp
   49.13 +		chroot "$1/" sh -c 'echo "cyrus:cyrus" | chpasswd -m > /dev/null'
   49.14  		status
   49.15  	fi
   49.16  	# addgroup mail if needed
   49.17 -	if ! grep -q mail $1/etc/group; then
   49.18 +	if ! grep -q mail "$1/etc/group"; then
   49.19  		echo -n "Adding group mail..."
   49.20 -		chroot $1/ sh -c 'addgroup mail && addgroup cyrus mail'
   49.21 +		chroot "$1/" sh -c 'addgroup mail && addgroup cyrus mail'
   49.22  		status
   49.23  	fi
   49.24 -	chroot $1/ chown -R cyrus.mail /var/spool/imap /var/imap
   49.25 +	chroot "$1/" chown -R cyrus.mail /var/spool/imap /var/imap
   49.26  	while read name port end; do
   49.27 -		grep -q $port $1/etc/services || \
   49.28 -			echo "$name		$port	$end" >> $1/etc/services
   49.29 +		grep -q $port "$1/etc/services" || \
   49.30 +			echo "$name		$port	$end" >> "$1/etc/services"
   49.31  	done <<EOF
   49.32  pop3 110/tcp pop-3
   49.33  nntp 119/tcp readnews untp
   49.34 @@ -81,28 +81,28 @@
   49.35  lmtp 2003/tcp
   49.36  fud 4201/udp
   49.37  EOF
   49.38 -	[ -z "$1" ] && /etc/init.d/$PACKAGE start
   49.39 -	if [ -f $1/etc/init.d/postfix ]; then
   49.40 -		if ! grep -v ^# $1/etc/postfix/main.cf | grep -q lmtp:unix; then
   49.41 +	[ "$1" ] || /etc/init.d/$PACKAGE start
   49.42 +	if [ -f "$1/etc/init.d/postfix" ]; then
   49.43 +		if ! grep -v ^# "$1/etc/postfix/main.cf" | grep -q lmtp:unix; then
   49.44  			echo "Append to /etc/postfix/main.cf:"
   49.45  			echo -n "    "
   49.46  			echo "mailbox_transport = lmtp:unix:/var/imap/socket/lmtp" | \
   49.47 -				tee -a $1/etc/postfix/main.cf
   49.48 +				tee -a "$1/etc/postfix/main.cf"
   49.49  			if [ -z "$1" ]; then
   49.50  				/etc/init.d/postfix start || /etc/init.d/postfix reload
   49.51  			fi
   49.52  		fi
   49.53  	fi
   49.54  	msg="Creating mailbox for"
   49.55 -	for i in root $(awk -F: '{ if ($3 >= 1000) print $1 }' < $1/etc/passwd); do
   49.56 +	for i in root $(awk -F: '{ if ($3 >= 1000) print $1 }' < "$1/etc/passwd"); do
   49.57  		echo -n "$msg $i"
   49.58  		msg=","
   49.59  	done
   49.60  	echo ""
   49.61 -	for i in root $(awk -F: '{ if ($3 >= 1000) print $1 }' < $1/etc/passwd); do
   49.62 +	for i in root $(awk -F: '{ if ($3 >= 1000) print $1 }' < "$1/etc/passwd"); do
   49.63  		echo "createmailbox user.$i"
   49.64 -	done | chroot $1/ cyradm -u cyrus -w cyrus 127.0.0.1 >/dev/null 2>&1
   49.65 -	chroot $1/ su -c "/usr/lib/cyrus/bin/reconstruct" cyrus >/dev/null 2>&1
   49.66 +	done | chroot "$1/" cyradm -u cyrus -w cyrus 127.0.0.1 >/dev/null 2>&1
   49.67 +	chroot "$1/" su -c "/usr/lib/cyrus/bin/reconstruct" cyrus >/dev/null 2>&1
   49.68  	cat <<EOF
   49.69  ----
   49.70  Users must have a password to access the mailbox.
   49.71 @@ -115,9 +115,9 @@
   49.72  EOF
   49.73  
   49.74  	# A security hole with ssh...
   49.75 -	[ -f $1/etc/ssh/sshd_config ] &&
   49.76 -	! grep -q cyrus $1/etc/ssh/sshd_config &&
   49.77 -	echo "DenyUsers cyrus" >> $1/etc/ssh/sshd_config
   49.78 +	[ -f "$1/etc/ssh/sshd_config" ] &&
   49.79 +	! grep -q cyrus "$1/etc/ssh/sshd_config" &&
   49.80 +	echo "DenyUsers cyrus" >> "$1/etc/ssh/sshd_config"
   49.81  }
   49.82  
   49.83  post_remove()
    50.1 --- a/daloradius/receipt	Sat Dec 19 21:50:31 2015 +0100
    50.2 +++ b/daloradius/receipt	Sun Dec 20 15:13:45 2015 +0100
    50.3 @@ -32,9 +32,9 @@
    50.4  post_install()
    50.5  {
    50.6  	# Configure lighttpd server
    50.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
    50.8 -		if ! grep -q /usr/share/daloradius/ $1/etc/lighttpd/lighttpd.conf; then
    50.9 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/daloradius/" => "/usr/share/daloradius/",|g' -i $1/etc/lighttpd/lighttpd.conf
   50.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
   50.11 +		if ! grep -q /usr/share/daloradius/ "$1/etc/lighttpd/lighttpd.conf"; then
   50.12 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/daloradius/" => "/usr/share/daloradius/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
   50.13  			if [ -z "$1" ]; then
   50.14  				# Start Web server.
   50.15  				/etc/init.d/lighttpd stop
   50.16 @@ -43,9 +43,9 @@
   50.17  		fi
   50.18  	fi
   50.19  	# Configure apache server
   50.20 -	if [ -f $1/etc/apache/httpd.conf ]; then
   50.21 -		if [ ! -f $1/etc/apache/conf.d/daloradius ]; then
   50.22 -			cat > $1/etc/apache/conf.d/daloradius <<EOT
   50.23 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
   50.24 +		if [ ! -f "$1/etc/apache/conf.d/daloradius" ]; then
   50.25 +			cat > "$1/etc/apache/conf.d/daloradius" <<EOT
   50.26  <IfModule mod_alias.c>
   50.27      Alias /daloradius /usr/share/daloradius
   50.28  </IfModule>
    51.1 --- a/dansguardian/receipt	Sat Dec 19 21:50:31 2015 +0100
    51.2 +++ b/dansguardian/receipt	Sun Dec 20 15:13:45 2015 +0100
    51.3 @@ -41,7 +41,5 @@
    51.4  
    51.5  post_install()
    51.6  {
    51.7 -		local root
    51.8 -	root=$1
    51.9 -	chown nobody.nogroup $root/var/log/dansguardian 
   51.10 +	chown nobody.nogroup "$1/var/log/dansguardian"
   51.11  }
    52.1 --- a/depmod/receipt	Sat Dec 19 21:50:31 2015 +0100
    52.2 +++ b/depmod/receipt	Sun Dec 20 15:13:45 2015 +0100
    52.3 @@ -21,10 +21,10 @@
    52.4  # Overlap busybox
    52.5  pre_install()
    52.6  {
    52.7 -	rm -f $1/sbin/depmod
    52.8 +	rm -f "$1/sbin/depmod"
    52.9  }
   52.10  
   52.11  post_remove()
   52.12  {
   52.13 -	ln -s /bin/busybox $1/sbin/depmod
   52.14 +	ln -s /bin/busybox "$1/sbin/depmod"
   52.15  }
    53.1 --- a/diffutils/receipt	Sat Dec 19 21:50:31 2015 +0100
    53.2 +++ b/diffutils/receipt	Sun Dec 20 15:13:45 2015 +0100
    53.3 @@ -30,12 +30,12 @@
    53.4  # Overlap busybox
    53.5  pre_install()
    53.6  {
    53.7 -	rm -f $1/usr/bin/diff
    53.8 -	rm -f $1/usr/bin/cmp
    53.9 +	rm -f "$1/usr/bin/diff"
   53.10 +	rm -f "$1/usr/bin/cmp"
   53.11  }
   53.12  
   53.13  post_remove()
   53.14  {
   53.15 -	ln -s /bin/busybox $1/usr/bin/diff
   53.16 -	ln -s /bin/busybox $1/usr/bin/cmp
   53.17 +	ln -s /bin/busybox "$1/usr/bin/diff"
   53.18 +	ln -s /bin/busybox "$1/usr/bin/cmp"
   53.19  }
    54.1 --- a/distcc/receipt	Sat Dec 19 21:50:31 2015 +0100
    54.2 +++ b/distcc/receipt	Sun Dec 20 15:13:45 2015 +0100
    54.3 @@ -46,15 +46,15 @@
    54.4  
    54.5  post_install()
    54.6  {
    54.7 -	if ! grep -q nagios $1/etc/passwd; then
    54.8 +	if ! grep -q nagios "$1/etc/passwd"; then
    54.9  		echo -n "Adding user/group nagios..."
   54.10 -		chroot $1/ addgroup -S distcc
   54.11 -		chroot $1/ adduser -S -D -H -G distcc distcc
   54.12 +		chroot "$1/" addgroup -S distcc
   54.13 +		chroot "$1/" adduser -S -D -H -G distcc distcc
   54.14  		status
   54.15  	fi
   54.16  	
   54.17  	# Fix perms for files and directories
   54.18 -	chroot $1/ chown -R distcc.distcc /var/log/distccd
   54.19 +	chroot "$1/" chown -R distcc.distcc /var/log/distccd
   54.20  	  
   54.21  	cat <<EOF
   54.22  ----
    55.1 --- a/docbook-xml/receipt	Sat Dec 19 21:50:31 2015 +0100
    55.2 +++ b/docbook-xml/receipt	Sun Dec 20 15:13:45 2015 +0100
    55.3 @@ -31,263 +31,268 @@
    55.4  
    55.5  post_install()
    55.6  {
    55.7 -	root=$1
    55.8 -	[ -d $root/etc/xml ] || mkdir -p $root/etc/xml
    55.9 -	if [ -f $root/etc/xml/docbook-xml ]; then
   55.10 -		xmlcatalog --noout $root/etc/xml/docbook-xml
   55.11 +	[ -d "$1/etc/xml" ] || mkdir -p "$1/etc/xml"
   55.12 +	if [ -f "$1/etc/xml/docbook-xml" ]; then
   55.13 +		chroot "$1/" xmlcatalog --noout /etc/xml/docbook-xml
   55.14  	else
   55.15 -		xmlcatalog --noout --create $root/etc/xml/docbook-xml
   55.16 +		chroot "$1/" xmlcatalog --noout --create /etc/xml/docbook-xml
   55.17  	fi
   55.18  	echo -n "Processing post-install commands..."
   55.19  
   55.20 +	if [ "$1" ]; then
   55.21 +		mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2> /dev/null
   55.22 +		cp /etc/resolv.conf "$1/etc/resolv.conf"
   55.23 +	fi
   55.24    # V4.1.2
   55.25 -  xmlcatalog --noout --add "public" \
   55.26 +  chroot "$1/" xmlcatalog --noout --add "public" \
   55.27      "-//OASIS//DTD DocBook XML V4.1.2//EN" \
   55.28      "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
   55.29 -    "$root/etc/xml/docbook-xml"
   55.30 -  xmlcatalog --noout --add "public" \
   55.31 +    "/etc//xml/docbook-xml"
   55.32 +  chroot "$1/" xmlcatalog --noout --add "public" \
   55.33      "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
   55.34      "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
   55.35 -    "$root/etc/xml/docbook-xml"
   55.36 -  xmlcatalog --noout --add "public" \
   55.37 +    "/etc/xml/docbook-xml"
   55.38 +  chroot "$1/" xmlcatalog --noout --add "public" \
   55.39      "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
   55.40      "http://www.oasis-open.org/docbook/xml/4.1.2/calstblx.dtd" \
   55.41 -    "$root/etc/xml/docbook-xml"
   55.42 -  xmlcatalog --noout --add "public" \
   55.43 +    "/etc/xml/docbook-xml"
   55.44 +  chroot "$1/" xmlcatalog --noout --add "public" \
   55.45      "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
   55.46      "http://www.oasis-open.org/docbook/xml/4.1.2/soextblx.dtd" \
   55.47 -    "$root/etc/xml/docbook-xml"
   55.48 -  xmlcatalog --noout --add "public" \
   55.49 +    "/etc/xml/docbook-xml"
   55.50 +  chroot "$1/" xmlcatalog --noout --add "public" \
   55.51      "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
   55.52      "http://www.oasis-open.org/docbook/xml/4.1.2/dbpoolx.mod" \
   55.53 -    "$root/etc/xml/docbook-xml"
   55.54 -  xmlcatalog --noout --add "public" \
   55.55 +    "/etc/xml/docbook-xml"
   55.56 +  chroot "$1/" xmlcatalog --noout --add "public" \
   55.57      "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
   55.58      "http://www.oasis-open.org/docbook/xml/4.1.2/dbhierx.mod" \
   55.59 -    "$root/etc/xml/docbook-xml"
   55.60 -  xmlcatalog --noout --add "public" \
   55.61 +    "/etc/xml/docbook-xml"
   55.62 +  chroot "$1/" xmlcatalog --noout --add "public" \
   55.63      "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
   55.64      "http://www.oasis-open.org/docbook/xml/4.1.2/dbgenent.mod" \
   55.65 -    "$root/etc/xml/docbook-xml"
   55.66 -  xmlcatalog --noout --add "public" \
   55.67 +    "/etc/xml/docbook-xml"
   55.68 +  chroot "$1/" xmlcatalog --noout --add "public" \
   55.69      "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
   55.70      "http://www.oasis-open.org/docbook/xml/4.1.2/dbnotnx.mod" \
   55.71 -    "${DESTDIR}/etc/xml/docbook-xml"
   55.72 -  xmlcatalog --noout --add "public" \
   55.73 +    "/etc/xml/docbook-xml"
   55.74 +  chroot "$1/" xmlcatalog --noout --add "public" \
   55.75      "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
   55.76      "http://www.oasis-open.org/docbook/xml/4.1.2/dbcentx.mod" \
   55.77 -    "$root/etc/xml/docbook-xml"
   55.78 -  xmlcatalog --noout --add "rewriteSystem" \
   55.79 +    "/etc/xml/docbook-xml"
   55.80 +  chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
   55.81      "http://www.oasis-open.org/docbook/xml/4.1.2" \
   55.82      "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
   55.83 -    "$root/etc/xml/docbook-xml"
   55.84 -  xmlcatalog --noout --add "rewriteURI" \
   55.85 +    "/etc/xml/docbook-xml"
   55.86 +  chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
   55.87      "http://www.oasis-open.org/docbook/xml/4.1.2" \
   55.88      "file:///usr/share/xml/docbook/xml-dtd-4.1.2" \
   55.89 -    "$root/etc/xml/docbook-xml"
   55.90 +    "/etc/xml/docbook-xml"
   55.91  
   55.92    # V4.2
   55.93 -  xmlcatalog --noout --add "public" \
   55.94 +  chroot "$1/" xmlcatalog --noout --add "public" \
   55.95      "-//OASIS//DTD DocBook XML V4.2//EN" \
   55.96      "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" \
   55.97 -    "$root/etc/xml/docbook-xml"
   55.98 -  xmlcatalog --noout --add "public" \
   55.99 +    "/etc/xml/docbook-xml"
  55.100 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.101      "-//OASIS//DTD DocBook CALS Table Model V4.2//EN" \
  55.102      "http://www.oasis-open.org/docbook/xml/4.2/calstblx.dtd" \
  55.103 -    "$root/etc/xml/docbook-xml"
  55.104 -  xmlcatalog --noout --add "public" \
  55.105 +    "/etc/xml/docbook-xml"
  55.106 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.107      "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
  55.108      "http://www.oasis-open.org/docbook/xml/4.2/soextblx.dtd" \
  55.109 -    "$root/etc/xml/docbook-xml"
  55.110 -  xmlcatalog --noout --add "public" \
  55.111 +    "/etc/xml/docbook-xml"
  55.112 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.113      "-//OASIS//ELEMENTS DocBook Information Pool V4.2//EN" \
  55.114      "http://www.oasis-open.org/docbook/xml/4.2/dbpoolx.mod" \
  55.115 -    "$root/etc/xml/docbook-xml"
  55.116 -  xmlcatalog --noout --add "public" \
  55.117 +    "/etc/xml/docbook-xml"
  55.118 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.119      "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN" \
  55.120      "http://www.oasis-open.org/docbook/xml/4.2/dbhierx.mod" \
  55.121 -    "$root/etc/xml/docbook-xml"
  55.122 -  xmlcatalog --noout --add "public" \
  55.123 +    "/etc/xml/docbook-xml"
  55.124 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.125      "-//OASIS//ENTITIES DocBook Additional General Entities V4.2//EN" \
  55.126      "http://www.oasis-open.org/docbook/xml/4.2/dbgenent.mod" \
  55.127 -    "$root/etc/xml/docbook-xml"
  55.128 -  xmlcatalog --noout --add "public" \
  55.129 +    "/etc/xml/docbook-xml"
  55.130 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.131      "-//OASIS//ENTITIES DocBook Notations V4.2//EN" \
  55.132      "http://www.oasis-open.org/docbook/xml/4.2/dbnotnx.mod" \
  55.133 -    "$root/etc/xml/docbook-xml"
  55.134 -  xmlcatalog --noout --add "public" \
  55.135 +    "/etc/xml/docbook-xml"
  55.136 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.137      "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN" \
  55.138      "http://www.oasis-open.org/docbook/xml/4.2/dbcentx.mod" \
  55.139 -    "$root/etc/xml/docbook-xml"
  55.140 -  xmlcatalog --noout --add "rewriteSystem" \
  55.141 +    "/etc/xml/docbook-xml"
  55.142 +  chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
  55.143      "http://www.oasis-open.org/docbook/xml/4.2" \
  55.144      "file:///usr/share/xml/docbook/xml-dtd-4.2" \
  55.145 -    "$root/etc/xml/docbook-xml"
  55.146 -  xmlcatalog --noout --add "rewriteURI" \
  55.147 +    "/etc/xml/docbook-xml"
  55.148 +  chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
  55.149      "http://www.oasis-open.org/docbook/xml/4.2" \
  55.150      "file:///usr/share/xml/docbook/xml-dtd-4.2" \
  55.151 -    "$root/etc/xml/docbook-xml"
  55.152 +    "/etc/xml/docbook-xml"
  55.153  
  55.154    # V4.3
  55.155 -  xmlcatalog --noout --add "public" \
  55.156 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.157      "-//OASIS//DTD DocBook XML V4.3//EN" \
  55.158      "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" \
  55.159 -    "$root/etc/xml/docbook-xml"
  55.160 -  xmlcatalog --noout --add "public" \
  55.161 +    "/etc/xml/docbook-xml"
  55.162 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.163      "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" \
  55.164      "http://www.oasis-open.org/docbook/xml/4.3/calstblx.dtd" \
  55.165 -    "$root/etc/xml/docbook-xml"
  55.166 -  xmlcatalog --noout --add "public" \
  55.167 +    "/etc/xml/docbook-xml"
  55.168 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.169      "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
  55.170      "http://www.oasis-open.org/docbook/xml/4.3/soextblx.dtd" \
  55.171 -    "$root/etc/xml/docbook-xml"
  55.172 -  xmlcatalog --noout --add "public" \
  55.173 +    "/etc/xml/docbook-xml"
  55.174 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.175      "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" \
  55.176      "http://www.oasis-open.org/docbook/xml/4.3/dbpoolx.mod" \
  55.177 -    "$root/etc/xml/docbook-xml"
  55.178 -  xmlcatalog --noout --add "public" \
  55.179 +    "/etc/xml/docbook-xml"
  55.180 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.181      "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" \
  55.182      "http://www.oasis-open.org/docbook/xml/4.3/dbhierx.mod" \
  55.183 -    "$root/etc/xml/docbook-xml"
  55.184 -  xmlcatalog --noout --add "public" \
  55.185 +    "/etc/xml/docbook-xml"
  55.186 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.187      "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" \
  55.188      "http://www.oasis-open.org/docbook/xml/4.3/dbgenent.mod" \
  55.189 -    "$root/etc/xml/docbook-xml"
  55.190 -  xmlcatalog --noout --add "public" \
  55.191 +    "/etc/xml/docbook-xml"
  55.192 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.193      "-//OASIS//ENTITIES DocBook Notations V4.3//EN" \
  55.194      "http://www.oasis-open.org/docbook/xml/4.3/dbnotnx.mod" \
  55.195 -    "$root/etc/xml/docbook-xml"
  55.196 -  xmlcatalog --noout --add "public" \
  55.197 +    "/etc/xml/docbook-xml"
  55.198 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.199      "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" \
  55.200      "http://www.oasis-open.org/docbook/xml/4.3/dbcentx.mod" \
  55.201 -    "$root/etc/xml/docbook-xml"
  55.202 -  xmlcatalog --noout --add "rewriteSystem" \
  55.203 +    "/etc/xml/docbook-xml"
  55.204 +  chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
  55.205      "http://www.oasis-open.org/docbook/xml/4.3" \
  55.206      "file:///usr/share/xml/docbook/xml-dtd-4.3" \
  55.207 -    "$root/etc/xml/docbook-xml"
  55.208 -  xmlcatalog --noout --add "rewriteURI" \
  55.209 +    "/etc/xml/docbook-xml"
  55.210 +  chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
  55.211      "http://www.oasis-open.org/docbook/xml/4.3" \
  55.212      "file:///usr/share/xml/docbook/xml-dtd-4.3" \
  55.213 -    "$root/etc/xml/docbook-xml"
  55.214 +    "/etc/xml/docbook-xml"
  55.215  
  55.216    # V4.4
  55.217 -  xmlcatalog --noout --add "public" \
  55.218 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.219      "-//OASIS//DTD DocBook XML V4.4//EN" \
  55.220      "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" \
  55.221 -    "$root/etc/xml/docbook-xml"
  55.222 -  xmlcatalog --noout --add "public" \
  55.223 +    "/etc/xml/docbook-xml"
  55.224 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.225      "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" \
  55.226      "http://www.oasis-open.org/docbook/xml/4.4/calstblx.dtd" \
  55.227 -    "$root/etc/xml/docbook-xml"
  55.228 -  xmlcatalog --noout --add "public" \
  55.229 +    "/etc/xml/docbook-xml"
  55.230 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.231      "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" \
  55.232      "http://www.oasis-open.org/docbook/xml/4.4/htmltblx.mod" \
  55.233 -    "$root/etc/xml/docbook-xml"
  55.234 -  xmlcatalog --noout --add "public" \
  55.235 +    "/etc/xml/docbook-xml"
  55.236 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.237      "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
  55.238      "http://www.oasis-open.org/docbook/xml/4.4/soextblx.dtd" \
  55.239 -    "$root/etc/xml/docbook-xml"
  55.240 -  xmlcatalog --noout --add "public" \
  55.241 +    "/etc/xml/docbook-xml"
  55.242 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.243      "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" \
  55.244      "http://www.oasis-open.org/docbook/xml/4.4/dbpoolx.mod" \
  55.245 -    "$root/etc/xml/docbook-xml"
  55.246 -  xmlcatalog --noout --add "public" \
  55.247 +    "/etc/xml/docbook-xml"
  55.248 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.249      "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" \
  55.250      "http://www.oasis-open.org/docbook/xml/4.4/dbhierx.mod" \
  55.251 -    "$root/etc/xml/docbook-xml"
  55.252 -  xmlcatalog --noout --add "public" \
  55.253 +    "/etc/xml/docbook-xml"
  55.254 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.255      "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" \
  55.256      "http://www.oasis-open.org/docbook/xml/4.4/dbgenent.mod" \
  55.257 -    "$root/etc/xml/docbook-xml"
  55.258 -  xmlcatalog --noout --add "public" \
  55.259 +    "/etc/xml/docbook-xml"
  55.260 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.261      "-//OASIS//ENTITIES DocBook Notations V4.4//EN" \
  55.262      "http://www.oasis-open.org/docbook/xml/4.4/dbnotnx.mod" \
  55.263 -    "$root/etc/xml/docbook-xml"
  55.264 -  xmlcatalog --noout --add "public" \
  55.265 +    "/etc/xml/docbook-xml"
  55.266 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.267      "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" \
  55.268      "http://www.oasis-open.org/docbook/xml/4.4/dbcentx.mod" \
  55.269 -    "$root/etc/xml/docbook-xml"
  55.270 -  xmlcatalog --noout --add "rewriteSystem" \
  55.271 +    "/etc/xml/docbook-xml"
  55.272 +  chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
  55.273      "http://www.oasis-open.org/docbook/xml/4.4" \
  55.274      "file:///usr/share/xml/docbook/xml-dtd-4.4" \
  55.275 -    "$root/etc/xml/docbook-xml"
  55.276 -  xmlcatalog --noout --add "rewriteURI" \
  55.277 +    "/etc/xml/docbook-xml"
  55.278 +  chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
  55.279      "http://www.oasis-open.org/docbook/xml/4.4" \
  55.280      "file:///usr/share/xml/docbook/xml-dtd-4.4" \
  55.281 -    "$root/etc/xml/docbook-xml"
  55.282 +    "/etc/xml/docbook-xml"
  55.283  
  55.284    # V4.5
  55.285 -  xmlcatalog --noout --add "public" \
  55.286 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.287      "-//OASIS//DTD DocBook XML V4.5//EN" \
  55.288      "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
  55.289 -    "$root/etc/xml/docbook-xml"
  55.290 -  xmlcatalog --noout --add "public" \
  55.291 +    "/etc/xml/docbook-xml"
  55.292 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.293      "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
  55.294      "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
  55.295 -    "$root/etc/xml/docbook-xml"
  55.296 -  xmlcatalog --noout --add "public" \
  55.297 +    "/etc/xml/docbook-xml"
  55.298 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.299      "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
  55.300      "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
  55.301 -    "$root/etc/xml/docbook-xml"
  55.302 -  xmlcatalog --noout --add "public" \
  55.303 +    "/etc/xml/docbook-xml"
  55.304 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.305      "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
  55.306      "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
  55.307 -    "$root/etc/xml/docbook-xml"
  55.308 -  xmlcatalog --noout --add "public" \
  55.309 +    "/etc/xml/docbook-xml"
  55.310 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.311      "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
  55.312      "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
  55.313 -    "$root/etc/xml/docbook-xml"
  55.314 -  xmlcatalog --noout --add "public" \
  55.315 +    "/etc/xml/docbook-xml"
  55.316 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.317      "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
  55.318      "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
  55.319 -    "$root/etc/xml/docbook-xml"
  55.320 -  xmlcatalog --noout --add "public" \
  55.321 +    "/etc/xml/docbook-xml"
  55.322 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.323      "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
  55.324      "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
  55.325 -    "$root/etc/xml/docbook-xml"
  55.326 -  xmlcatalog --noout --add "public" \
  55.327 +    "/etc/xml/docbook-xml"
  55.328 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.329      "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
  55.330      "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
  55.331 -    "$root/etc/xml/docbook-xml"
  55.332 -  xmlcatalog --noout --add "public" \
  55.333 +    "/etc/xml/docbook-xml"
  55.334 +  chroot "$1/" xmlcatalog --noout --add "public" \
  55.335      "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
  55.336      "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
  55.337 -    "$root/etc/xml/docbook-xml"
  55.338 -  xmlcatalog --noout --add "rewriteSystem" \
  55.339 +    "/etc/xml/docbook-xml"
  55.340 +  chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
  55.341      "http://www.oasis-open.org/docbook/xml/4.5" \
  55.342      "file:///usr/share/xml/docbook/xml-dtd-4.5" \
  55.343 -    "$root/etc/xml/docbook-xml"
  55.344 -  xmlcatalog --noout --add "rewriteURI" \
  55.345 +    "/etc/xml/docbook-xml"
  55.346 +  chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
  55.347      "http://www.oasis-open.org/docbook/xml/4.5" \
  55.348      "file:///usr/share/xml/docbook/xml-dtd-4.5" \
  55.349 -    "$root/etc/xml/docbook-xml"
  55.350 +    "/etc/xml/docbook-xml"
  55.351  
  55.352 -  if [ -f $root/etc/xml/catalog ]; then
  55.353 -      xmlcatalog --noout $root/etc/xml/catalog
  55.354 +  if [ -f "$1/etc/xml/catalog" ]; then
  55.355 +      xmlcatalog --noout "$1/etc/xml/catalog"
  55.356    else
  55.357 -      xmlcatalog --noout --create $root/etc/xml/catalog
  55.358 +      xmlcatalog --noout --create "$1/etc/xml/catalog"
  55.359    fi
  55.360 -  xmlcatalog --noout --add "delegatePublic" \
  55.361 +  chroot "$1/" xmlcatalog --noout --add "delegatePublic" \
  55.362      "-//OASIS//ENTITIES DocBook XML" \
  55.363      "file:///etc/xml/docbook-xml" \
  55.364 -    "$root/etc/xml/catalog"
  55.365 -  xmlcatalog --noout --add "delegatePublic" \
  55.366 +    "/etc/xml/catalog"
  55.367 +  chroot "$1/" xmlcatalog --noout --add "delegatePublic" \
  55.368      "-//OASIS//DTD DocBook XML" \
  55.369      "file:///etc/xml/docbook-xml" \
  55.370 -    "$root/etc/xml/catalog"
  55.371 -  xmlcatalog --noout --add "delegateSystem" \
  55.372 +    "/etc/xml/catalog"
  55.373 +  chroot "$1/" xmlcatalog --noout --add "delegateSystem" \
  55.374      "http://www.oasis-open.org/docbook/" \
  55.375      "file:///etc/xml/docbook-xml" \
  55.376 -    "$root/etc/xml/catalog"
  55.377 -  xmlcatalog --noout --add "delegateURI" \
  55.378 +    "/etc/xml/catalog"
  55.379 +  chroot "$1/" xmlcatalog --noout --add "delegateURI" \
  55.380      "http://www.oasis-open.org/docbook/" \
  55.381      "file:///etc/xml/docbook-xml" \
  55.382 -    "$root/etc/xml/catalog"
  55.383 +    "/etc/xml/catalog"
  55.384 +	if [ "$1" ]; then
  55.385 +		mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null
  55.386 +	fi
  55.387  }
  55.388  
  55.389  post_remove() 
  55.390  {
  55.391 -	root=$1
  55.392 -	xmlcatalog --noout --del file:///etc/xml/docbook-xml $root/etc/xml/catalog
  55.393 +	xmlcatalog --noout --del file:///etc/xml/docbook-xml "$1/etc/xml/catalog"
  55.394  }
  55.395  
    56.1 --- a/docbook-xsl-ns/receipt	Sat Dec 19 21:50:31 2015 +0100
    56.2 +++ b/docbook-xsl-ns/receipt	Sun Dec 20 15:13:45 2015 +0100
    56.3 @@ -40,32 +40,39 @@
    56.4  post_install()
    56.5  {
    56.6  	echo -n "Processing post-install commands..."
    56.7 +	if [ "$1" ]; then
    56.8 +		mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2> /dev/null
    56.9 +		cp /etc/resolv.conf "$1/etc/resolv.conf"
   56.10 +	fi
   56.11  
   56.12  	# Create a /etc/xml/catalog file
   56.13 -	if [ ! -d $1/etc/xml ]; then install -v -m755 -d $1/etc/xml; fi &&
   56.14 -	if [ ! -f $1/etc/xml/catalog ]; then
   56.15 -    		xmlcatalog --noout --create $1/etc/xml/catalog
   56.16 +	if [ ! -d "$1/etc/xml" ]; then install -v -m755 -d "$1/etc/xml"; fi &&
   56.17 +	if [ ! -f "$1/etc/xml/catalog" ]; then
   56.18 +    		chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
   56.19  	fi &&
   56.20  
   56.21 -	xmlcatalog --noout --add "rewriteSystem" \
   56.22 +	chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
   56.23  		"http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
   56.24  		"/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
   56.25 -	$1/etc/xml/catalog &&
   56.26 +	/etc/xml/catalog &&
   56.27  
   56.28 -	xmlcatalog --noout --add "rewriteURI" \
   56.29 +	chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
   56.30  		"http://docbook.sourceforge.net/release/xsl-ns/$VERSION" \
   56.31  		"/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
   56.32 -	$1/etc/xml/catalog &&
   56.33 +	/etc/xml/catalog &&
   56.34  
   56.35 -	xmlcatalog --noout --add "rewriteSystem" \
   56.36 +	chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
   56.37  		"http://docbook.sourceforge.net/release/xsl-ns/current" \
   56.38  		"/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
   56.39 -	$1/etc/xml/catalog &&
   56.40 +	/etc/xml/catalog &&
   56.41  
   56.42 -	xmlcatalog --noout --add "rewriteURI" \
   56.43 +	chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
   56.44  		"http://docbook.sourceforge.net/release/xsl-ns/current" \
   56.45  		"/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
   56.46 -	$1/etc/xml/catalog
   56.47 +	/etc/xml/catalog
   56.48  	status
   56.49 +	if [ "$1" ]; then
   56.50 +		mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null
   56.51 +	fi
   56.52  }
   56.53  
    57.1 --- a/docbook-xsl/receipt	Sat Dec 19 21:50:31 2015 +0100
    57.2 +++ b/docbook-xsl/receipt	Sun Dec 20 15:13:45 2015 +0100
    57.3 @@ -41,36 +41,43 @@
    57.4  post_install()
    57.5  {
    57.6  	echo -n "Processing post-install commands..."
    57.7 +	if [ "$1" ]; then
    57.8 +		mv -f "$1/etc/resolv.conf" "$1/etc/recolv.conf.$$" 2> /dev/null
    57.9 +		cp /etc/resolv.conf "$1/etc/resolv.conf"
   57.10 +	fi
   57.11  
   57.12  	# Create a /etc/xml/catalog file
   57.13 -	if [ ! -d $1/etc/xml ]; then install -v -m755 -d $1/etc/xml; fi &&
   57.14 -	if [ ! -f $1/etc/xml/catalog ]; then
   57.15 -    		xmlcatalog --noout --create $1/etc/xml/catalog
   57.16 +	if [ ! -d "$1/etc/xml" ]; then install -v -m755 -d "$1/etc/xml"; fi &&
   57.17 +	if [ ! -f "$1/etc/xml/catalog" ]; then
   57.18 +    		chroot "$1/" xmlcatalog --noout --create /etc/xml/catalog
   57.19  	fi &&
   57.20  
   57.21 -	xmlcatalog --noout --add "rewriteSystem" \
   57.22 +	chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
   57.23  		"http://docbook.sourceforge.net/release/xsl/$VERSION" \
   57.24  		"/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
   57.25 -	$1/etc/xml/catalog &&
   57.26 +	/etc/xml/catalog &&
   57.27  
   57.28 -	xmlcatalog --noout --add "rewriteURI" \
   57.29 +	chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
   57.30  		"http://docbook.sourceforge.net/release/xsl/$VERSION" \
   57.31  		"/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
   57.32 -	$1/etc/xml/catalog &&
   57.33 +	/etc/xml/catalog &&
   57.34  
   57.35 -	xmlcatalog --noout --add "rewriteSystem" \
   57.36 +	chroot "$1/" xmlcatalog --noout --add "rewriteSystem" \
   57.37  		"http://docbook.sourceforge.net/release/xsl/current" \
   57.38  		"/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
   57.39 -	$1/etc/xml/catalog &&
   57.40 +	/etc/xml/catalog &&
   57.41  
   57.42 -	xmlcatalog --noout --add "rewriteURI" \
   57.43 +	chroot "$1/" xmlcatalog --noout --add "rewriteURI" \
   57.44  		"http://docbook.sourceforge.net/release/xsl/current" \
   57.45  		"/usr/share/xml/docbook/stylesheet/$PACKAGE/catalog.xml" \
   57.46 -	$1/etc/xml/catalog
   57.47 +	/etc/xml/catalog
   57.48  	
   57.49  	# link nwalsh dir
   57.50 -	cd $1/usr/share/xml/docbook/stylesheet
   57.51 +	cd "$1/usr/share/xml/docbook/stylesheet"
   57.52  		ln -s $PACKAGE nwalsh
   57.53  	status
   57.54 +	if [ "$1" ]; then
   57.55 +		mv -f "$1/etc/resolv.conf.$$" "$1/etc/recolv.conf" 2> /dev/null
   57.56 +	fi
   57.57  }
   57.58  
    58.1 --- a/dolibarr/receipt	Sat Dec 19 21:50:31 2015 +0100
    58.2 +++ b/dolibarr/receipt	Sun Dec 20 15:13:45 2015 +0100
    58.3 @@ -72,9 +72,9 @@
    58.4  	db_password=dolibarr
    58.5  	
    58.6  	# Configure apache server
    58.7 -	if [ -f $1/etc/apache/httpd.conf ]; then
    58.8 -		if [ ! -f $1/etc/apache/conf.d/dolibarr.conf ]; then
    58.9 -			cat > $1/etc/apache/conf.d/dolibarr.conf <<EOT
   58.10 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
   58.11 +		if [ ! -f "$1/etc/apache/conf.d/dolibarr.conf" ]; then
   58.12 +			cat > "$1/etc/apache/conf.d/dolibarr.conf" <<EOT
   58.13  <IfModule mod_alias.c>
   58.14      Alias /dolibarr /usr/share/dolibarr/htdocs
   58.15  </IfModule>
   58.16 @@ -95,7 +95,7 @@
   58.17  	fi
   58.18  	
   58.19  	# Configure every thing.
   58.20 -	if [ -z $1 ]; then
   58.21 +	if [ -z "$1" ]; then
   58.22  		if ( ! mysqladmin -s ping > /dev/null ); then
   58.23  			echo "Starting MySQL server"
   58.24  			( /etc/init.d/mysql start ; status  ) || exit 
    59.1 --- a/dooble/receipt	Sat Dec 19 21:50:31 2015 +0100
    59.2 +++ b/dooble/receipt	Sun Dec 20 15:13:45 2015 +0100
    59.3 @@ -63,12 +63,12 @@
    59.4  
    59.5  post_install()
    59.6  {
    59.7 -	for i in $(ls $1/home 2> /dev/null); do
    59.8 -		[ -f /home/$i/.dooble/Dooble/Dooble.ini ] && continue
    59.9 -		mkdir -p $1/home/$i/.dooble/Dooble
   59.10 -		cp $1/usr/share/dooble/Dooble.ini $1/home/$i/.dooble/Dooble
   59.11 -		rm $1/home/$i/.local/share/applications/dooble.desktop
   59.12 -		chroot $1/ chown -R $(stat -c "%u.%g" $1/home/$i) /home/$i/.dooble
   59.13 +	for i in $(ls "$1/home" 2> /dev/null); do
   59.14 +		[ -f "/home/$i/.dooble/Dooble/Dooble.ini" ] && continue
   59.15 +		mkdir -p "$1/home/$i/.dooble/Dooble"
   59.16 +		cp "$1/usr/share/dooble/Dooble.ini" "$1/home/$i/.dooble/Dooble"
   59.17 +		rm "$1/home/$i/.local/share/applications/dooble.desktop"
   59.18 +		chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.dooble"
   59.19  	done
   59.20  }
   59.21  
    60.1 --- a/dovecot/receipt	Sat Dec 19 21:50:31 2015 +0100
    60.2 +++ b/dovecot/receipt	Sun Dec 20 15:13:45 2015 +0100
    60.3 @@ -86,17 +86,17 @@
    60.4  	user=dovecot
    60.5  	group=dovecot
    60.6  	
    60.7 -	if ! grep -q $user $1/etc/passwd; then
    60.8 +	if ! grep -q $user "$1/etc/passwd"; then
    60.9  		echo -n "Adding user/group $user..."
   60.10 -		chroot $1/ addgroup -g 76 -S $group
   60.11 -		chroot $1/ adduser -u 76 -S -D -H -G $group $user
   60.12 -		chroot $1/ adduser -u 74 -S -D -H -G nogroup dovenull 
   60.13 +		chroot "$1/" addgroup -g 76 -S $group
   60.14 +		chroot "$1/" adduser -u 76 -S -D -H -G $group $user
   60.15 +		chroot "$1/" adduser -u 74 -S -D -H -G nogroup dovenull 
   60.16  		status
   60.17  	fi
   60.18  	
   60.19  
   60.20  	# Set perms for files and directories
   60.21 -	chroot $1/ chown -R ${user}.${group} /var/log/${user} \
   60.22 +	chroot "$1/" chown -R ${user}.${group} /var/log/${user} \
   60.23  
   60.24  	cat <<EOF
   60.25  ----
   60.26 @@ -113,8 +113,8 @@
   60.27  post_remove()
   60.28  {
   60.29  	echo "Removing stalled files..."
   60.30 -	test -d $1/var/log/dovecot && rm -rf $1/var/log/dovecot
   60.31 -	test -d $1/var/run/dovecot && rm -rf $1/var/run/dovecot
   60.32 +	test -d "$1/var/log/dovecot" && rm -rf "$1/var/log/dovecot"
   60.33 +	test -d "$1/var/run/dovecot" && rm -rf "$1/var/run/dovecot"
   60.34  	
   60.35  	echo "Removing user/group daemon"
   60.36  	chroot "$1/" deluser dovecot 
    61.1 --- a/dropbear/receipt	Sat Dec 19 21:50:31 2015 +0100
    61.2 +++ b/dropbear/receipt	Sun Dec 20 15:13:45 2015 +0100
    61.3 @@ -86,15 +86,15 @@
    61.4  # Post message when installing.
    61.5  post_install()
    61.6  {
    61.7 -	[ "$1" ] || while read dropbear openssh ; do
    61.8 -		[ -s $openssh ] || continue
    61.9 -		dropbearconvert openssh dropbear ${root}$openssh ${root}$dropbear
   61.10 -		dropbearkey -y -f ${root}$dropbear | grep Fingerprint
   61.11 +	while read dropbear openssh ; do
   61.12 +		[ -s "$1/$openssh" ] || continue
   61.13 +		chroot "$1/" dropbearconvert openssh dropbear $openssh $dropbear
   61.14 +		chroot "$1/" dropbearkey -y -f $dropbear | grep Fingerprint
   61.15  	done <<EOT
   61.16  /etc/dropbear/dropbear_rsa_host_key	/etc/ssh/ssh_host_rsa_key
   61.17  /etc/dropbear/dropbear_dss_host_key	/etc/ssh/ssh_host_dsa_key
   61.18  EOT
   61.19 -	grep -q ssh $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
   61.20 +	grep -q ssh "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
   61.21  #ssh	stream	tcp	nowait	root	dropbear	dropbear	-i -b /etc/dropbear/banner
   61.22  EOT
   61.23  	echo -e "\nTo starts $PACKAGE server you can run :\n"
   61.24 @@ -104,5 +104,5 @@
   61.25  
   61.26  post_remove()
   61.27  {
   61.28 -	grep -q dropbear $1/etc/inetd.conf && sed -i '/dropbear/d' $1/etc/inetd.conf
   61.29 +	grep -q dropbear "$1/etc/inetd.conf" && sed -i '/dropbear/d' "$1/etc/inetd.conf"
   61.30  }
    62.1 --- a/dwm/receipt	Sat Dec 19 21:50:31 2015 +0100
    62.2 +++ b/dwm/receipt	Sun Dec 20 15:13:45 2015 +0100
    62.3 @@ -42,7 +42,7 @@
    62.4  
    62.5  post_install()
    62.6  {
    62.7 -	res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
    62.8 +	res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
    62.9  	# Adding WM to SLIM available sessions.
   62.10  	if ! echo "$res" | grep -q $PACKAGE; then
   62.11  		echo -n "Adding $PACKAGE to /etc/slim.conf..."
   62.12 @@ -54,7 +54,7 @@
   62.13  post_remove()
   62.14  {
   62.15  	# Remove karmen from SLIM available sessions.
   62.16 -	if grep -q dwm $1/etc/slim.conf; then
   62.17 -		sed -i s/,dwm// $1/etc/slim.conf
   62.18 +	if grep -q dwm "$1/etc/slim.conf"; then
   62.19 +		sed -i s/,dwm// "$1/etc/slim.conf"
   62.20  	fi
   62.21  }
    63.1 --- a/eaccelerator/receipt	Sat Dec 19 21:50:31 2015 +0100
    63.2 +++ b/eaccelerator/receipt	Sun Dec 20 15:13:45 2015 +0100
    63.3 @@ -39,8 +39,8 @@
    63.4  # Pre and post install commands for Tazpkg.
    63.5  post_install()
    63.6  {
    63.7 -	grep -q ^extension=msql.so $1/etc/php.ini || \
    63.8 -	    sed -e 's|;.*extension=msql.so|;   extension=msql.so\nextension=eaccelerator.so\neaccelerator.shm_size="48"\neaccelerator.cache_dir="/tmp/eaccelerator"\neaccelerator.enable="1"\neaccelerator.optimizer="1"\neaccelerator.check_mtime="1"\neaccelerator.debug="0"\neaccelerator.filter=""\neaccelerator.shm_max="0"\neaccelerator.shm_ttl="0"\neaccelerator.shm_prune_period="0"\neaccelerator.shm_only="0"\neaccelerator.compress="1"\neaccelerator.compress_level="9"|' -i $1/etc/php.ini
    63.9 +	grep -q ^extension=msql.so "$1/etc/php.ini" || \
   63.10 +	    sed -e 's|;.*extension=msql.so|;   extension=msql.so\nextension=eaccelerator.so\neaccelerator.shm_size="48"\neaccelerator.cache_dir="/tmp/eaccelerator"\neaccelerator.enable="1"\neaccelerator.optimizer="1"\neaccelerator.check_mtime="1"\neaccelerator.debug="0"\neaccelerator.filter=""\neaccelerator.shm_max="0"\neaccelerator.shm_ttl="0"\neaccelerator.shm_prune_period="0"\neaccelerator.shm_only="0"\neaccelerator.compress="1"\neaccelerator.compress_level="9"|' -i "$1/etc/php.ini"
   63.11  
   63.12  	# Start Web server.
   63.13  	while read daemon file; do
    64.1 --- a/eggwm/receipt	Sat Dec 19 21:50:31 2015 +0100
    64.2 +++ b/eggwm/receipt	Sun Dec 20 15:13:45 2015 +0100
    64.3 @@ -46,7 +46,7 @@
    64.4  post_remove()
    64.5  {
    64.6  	# Remove WM from SLIM available sessions.
    64.7 -	if grep -q $PACKAGE $1/etc/slim.conf; then
    64.8 -		sed -i s/,$PACKAGE// $root/etc/slim.conf
    64.9 +	if grep -q $PACKAGE "$1/etc/slim.conf"; then
   64.10 +		sed -i s/,$PACKAGE// "$1/etc/slim.conf"
   64.11  	fi
   64.12  }
    65.1 --- a/elksemu/receipt	Sat Dec 19 21:50:31 2015 +0100
    65.2 +++ b/elksemu/receipt	Sun Dec 20 15:13:45 2015 +0100
    65.3 @@ -35,6 +35,6 @@
    65.4  # Pre remove command for Tazpkg.
    65.5  pre_remove()
    65.6  {
    65.7 -	echo -1 > $1/proc/sys/fs/binfmt_misc/i86-elks
    65.8 -	sed -i '/binfmt_misc/{N;/:i86-elks:M:/d}' $1/etc/init.d/local.sh
    65.9 +	echo -1 > "$1/proc/sys/fs/binfmt_misc/i86-elks"
   65.10 +	sed -i '/binfmt_misc/{N;/:i86-elks:M:/d}' "$1/etc/init.d/local.sh"
   65.11  }
    66.1 --- a/emacs/receipt	Sat Dec 19 21:50:31 2015 +0100
    66.2 +++ b/emacs/receipt	Sun Dec 20 15:13:45 2015 +0100
    66.3 @@ -184,7 +184,7 @@
    66.4  
    66.5  post_install()
    66.6  {
    66.7 -	cd $1/usr/share/$PACKAGE/$VERSION/site-lisp
    66.8 +	cd "$1/usr/share/$PACKAGE/$VERSION/site-lisp"
    66.9  	cat <<-EOF >site-start.el
   66.10  	;; site-start.el for SliTaz			-*- no-byte-compile: t -*-
   66.11  	;;
   66.12 @@ -200,13 +200,13 @@
   66.13  	    cat site-start.d/$file >> site-start.el
   66.14  	done
   66.15  	# linking /usr/bin/emacs to new version
   66.16 -	[ -h $1/usr/bin/emacs ] && rm -f $1/usr/bin/emacs
   66.17 -	ln -s /usr/bin/emacs-$VERSION $1/usr/bin/emacs
   66.18 +	[ -h "$1/usr/bin/emacs" ] && rm -f "$1/usr/bin/emacs"
   66.19 +	ln -s /usr/bin/emacs-$VERSION "$1/usr/bin/emacs"
   66.20  }
   66.21  
   66.22  post_remove()
   66.23  {
   66.24 -	rm -rf $1/usr/share/emacs
   66.25 -	rm -rf $1/usr/lib/emacs
   66.26 -	rm -f $1/usr/bin/emacs
   66.27 +	rm -rf "$1/usr/share/emacs"
   66.28 +	rm -rf "$1/usr/lib/emacs"
   66.29 +	rm -f "$1/usr/bin/emacs"
   66.30  }
   66.31 \ No newline at end of file
    67.1 --- a/enlightenment-pam/receipt	Sat Dec 19 21:50:31 2015 +0100
    67.2 +++ b/enlightenment-pam/receipt	Sun Dec 20 15:13:45 2015 +0100
    67.3 @@ -64,7 +64,7 @@
    67.4  
    67.5  post_install()
    67.6  {
    67.7 -	res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \
    67.8 +	res=$(grep ^session < "$1/etc/slim.conf" | sed s/"sessions. *"// \
    67.9  		| sed s/,e17//)
   67.10  	# Adding WM to SLIM available sessions.
   67.11  	if ! echo "$res" | grep -q enlightenment; then
   67.12 @@ -78,7 +78,7 @@
   67.13  post_remove()
   67.14  {
   67.15  	# Remove WM from SLIM available sessions.
   67.16 -	if grep -q enlightenment $1/etc/slim.conf; then
   67.17 -		sed -i s/enlightenement,// $1/etc/slim.conf
   67.18 +	if grep -q enlightenment "$1/etc/slim.conf"; then
   67.19 +		sed -i s/enlightenement,// "$1/etc/slim.conf"
   67.20  	fi
   67.21  }
    68.1 --- a/enlightenment/receipt	Sat Dec 19 21:50:31 2015 +0100
    68.2 +++ b/enlightenment/receipt	Sun Dec 20 15:13:45 2015 +0100
    68.3 @@ -64,7 +64,7 @@
    68.4  
    68.5  post_install()
    68.6  {
    68.7 -	res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \
    68.8 +	res=$(grep ^session < "$1/etc/slim.conf" | sed s/"sessions. *"// \
    68.9  		| sed s/,e17//)
   68.10  	# Adding WM to SLIM available sessions.
   68.11  	if ! echo "$res" | grep -q enlightenment; then
   68.12 @@ -78,7 +78,7 @@
   68.13  post_remove()
   68.14  {
   68.15  	# Remove WM from SLIM available sessions.
   68.16 -	if grep -q enlightenment $1/etc/slim.conf; then
   68.17 -		sed -i s/enlightenment,// $1/etc/slim.conf
   68.18 +	if grep -q enlightenment "$1/etc/slim.conf"; then
   68.19 +		sed -i s/enlightenment,// "$1/etc/slim.conf"
   68.20  	fi
   68.21  }
    69.1 --- a/enna/receipt	Sat Dec 19 21:50:31 2015 +0100
    69.2 +++ b/enna/receipt	Sun Dec 20 15:13:45 2015 +0100
    69.3 @@ -90,7 +90,7 @@
    69.4  
    69.5  post_install()
    69.6  {
    69.7 -	for f in $(cd $1/ ; find usr/lib/ -name "*ver-svn-05*" ! -path */enlightenment/*); do 
    69.8 -		ln -s /$f /$(echo $f|sed s/-05/-03/); 
    69.9 +	for f in $(cd "$1/" ; find usr/lib/ -name "*ver-svn-05*" ! -path */enlightenment/*); do 
   69.10 +		ln -s /$f "$1/$(echo $f|sed s/-05/-03/)"; 
   69.11  	done	
   69.12  }
    70.1 --- a/eom/receipt	Sat Dec 19 21:50:31 2015 +0100
    70.2 +++ b/eom/receipt	Sun Dec 20 15:13:45 2015 +0100
    70.3 @@ -42,11 +42,11 @@
    70.4  post_install()
    70.5  {
    70.6  	echo "Processing post-install commands..."
    70.7 -	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
    70.8 +	chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
    70.9  }
   70.10  
   70.11  post_remove()
   70.12  {
   70.13  	echo "Processing post-remove commands..."
   70.14 -	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
   70.15 +	chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
   70.16  }
    71.1 --- a/epdfview-cups/receipt	Sat Dec 19 21:50:31 2015 +0100
    71.2 +++ b/epdfview-cups/receipt	Sun Dec 20 15:13:45 2015 +0100
    71.3 @@ -47,5 +47,5 @@
    71.4  # Pre install commands for Tazpkg.
    71.5  pre_install()
    71.6  {
    71.7 -	[ -x $1/usr/bin/epdfview ] && yes y | tazpkg remove epdfview
    71.8 +	[ -x "$1/usr/bin/epdfview" ] && yes y | tazpkg remove epdfview
    71.9  }
    72.1 --- a/eudev/receipt	Sat Dec 19 21:50:31 2015 +0100
    72.2 +++ b/eudev/receipt	Sun Dec 20 15:13:45 2015 +0100
    72.3 @@ -63,7 +63,7 @@
    72.4  {
    72.5  	object=$2
    72.6  	[ -n "$object" ] || object=GROUP
    72.7 -	grep $object $1/etc/udev/rules.d/* | \
    72.8 +	grep $object "$1"/etc/udev/rules.d/* | \
    72.9  		sed 's/.*GROUP="\([a-zA-Z0-9]*\)".*/\1/' | sort | uniq
   72.10  }
   72.11  
    73.1 --- a/ffmpeg-compat/receipt	Sat Dec 19 21:50:31 2015 +0100
    73.2 +++ b/ffmpeg-compat/receipt	Sun Dec 20 15:13:45 2015 +0100
    73.3 @@ -70,10 +70,10 @@
    73.4  
    73.5  post_install() 
    73.6  {
    73.7 -	echo "/usr/lib/ffmpeg-compat" >> $1/etc/ld.so.conf
    73.8 +	echo "/usr/lib/ffmpeg-compat" >> "$1/etc/ld.so.conf"
    73.9  }
   73.10  
   73.11  post_remove() 
   73.12  {
   73.13 -	 sed -i '#/usr/lib/ffmpeg-compat#'d $1/etc/ld.so.conf
   73.14 +	 sed -i '#/usr/lib/ffmpeg-compat#'d "$1/etc/ld.so.conf"
   73.15  }
    74.1 --- a/findutils/receipt	Sat Dec 19 21:50:31 2015 +0100
    74.2 +++ b/findutils/receipt	Sun Dec 20 15:13:45 2015 +0100
    74.3 @@ -38,8 +38,8 @@
    74.4  # Remove Busybox symlink before installing
    74.5  pre_install()
    74.6  {
    74.7 -	rm -f $1/usr/bin/find
    74.8 -	rm -f $1/usr/bin/xargs
    74.9 +	rm -f "$1/usr/bin/find"
   74.10 +	rm -f "$1/usr/bin/xargs"
   74.11  }
   74.12  
   74.13  post_remove()
    75.1 --- a/firefox-dev/receipt	Sat Dec 19 21:50:31 2015 +0100
    75.2 +++ b/firefox-dev/receipt	Sun Dec 20 15:13:45 2015 +0100
    75.3 @@ -58,9 +58,9 @@
    75.4  {
    75.5  	for i in usr/share/idl/firefox- usr/include/firefox- \
    75.6  		usr/lib/firefox-devel- ; do
    75.7 -		for j in $(ls -d $1/$i* 2>/dev/null); do
    75.8 +		for j in $(ls -d "$1"/$i* 2>/dev/null); do
    75.9  			[ "${j##*-}" = "$VERSION" ] && continue
   75.10 -			[ ! -d $j ] || rm -rf $j
   75.11 +			[ ! -d "$j" ] || rm -rf "$j"
   75.12  		done
   75.13  	done
   75.14  }
    76.1 --- a/fluxbox/receipt	Sat Dec 19 21:50:31 2015 +0100
    76.2 +++ b/fluxbox/receipt	Sun Dec 20 15:13:45 2015 +0100
    76.3 @@ -61,11 +61,11 @@
    76.4  
    76.5  post_install()
    76.6  {
    76.7 -	res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
    76.8 +	res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
    76.9  	# Adding WM to SLIM available sessions.
   76.10  	if ! echo "$res" | grep -q $PACKAGE; then
   76.11  		echo -n "Adding $PACKAGE to /etc/slim.conf..."
   76.12 -		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" $1/etc/slim.conf
   76.13 +		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" "$1/etc/slim.conf"
   76.14  		status
   76.15  	fi
   76.16  }
   76.17 @@ -73,8 +73,8 @@
   76.18  post_remove()
   76.19  {
   76.20  	# Remove WM from SLIM available sessions.
   76.21 -	if grep -q $PACKAGE $1/etc/slim.conf; then
   76.22 -		sed -i s/,$PACKAGE// $1/etc/slim.conf
   76.23 +	if grep -q $PACKAGE "$1/etc/slim.conf"; then
   76.24 +		sed -i s/,$PACKAGE// "$1/etc/slim.conf"
   76.25  	fi
   76.26  }
   76.27  
    77.1 --- a/foomatic-db-engine/receipt	Sat Dec 19 21:50:31 2015 +0100
    77.2 +++ b/foomatic-db-engine/receipt	Sun Dec 20 15:13:45 2015 +0100
    77.3 @@ -46,5 +46,5 @@
    77.4  
    77.5  pre_install()
    77.6  {
    77.7 -	rm -rf $1/usr/lib/perl5/site_perl/current
    77.8 +	rm -rf "$1/usr/lib/perl5/site_perl/current"
    77.9  }
    78.1 --- a/foomatic-db-nonfree/receipt	Sat Dec 19 21:50:31 2015 +0100
    78.2 +++ b/foomatic-db-nonfree/receipt	Sun Dec 20 15:13:45 2015 +0100
    78.3 @@ -62,7 +62,7 @@
    78.4      echo "The license is stored in /usr/share/licenses/$PACKAGE "    
    78.5      echo -n "Would you like to read the license (y/N) : "; read anser
    78.6      if [ "$anser" = "y" ]; then
    78.7 -		cat $1/usr/share/licenses/"$PACKAGE"/COPYING | more	
    78.8 +		more < "$1/usr/share/licenses/$PACKAGE/COPYING"
    78.9  		echo "" 		
   78.10  	fi
   78.11  	echo "================================================================================"
    79.1 --- a/fpc/receipt	Sat Dec 19 21:50:31 2015 +0100
    79.2 +++ b/fpc/receipt	Sun Dec 20 15:13:45 2015 +0100
    79.3 @@ -66,13 +66,13 @@
    79.4  post_install()
    79.5  {
    79.6  	echo"Processing postinstall commands..."
    79.7 -	if [ ! -f $1/etc/fpc.cfg ]; then
    79.8 -		chroot $1/ fpcmkcfg > /etc/fpc.cfg 
    79.9 +	if [ ! -f "$1/etc/fpc.cfg" ]; then
   79.10 +		chroot "$1/" fpcmkcfg > /etc/fpc.cfg 
   79.11  	fi
   79.12  	
   79.13  	# Fix units search path
   79.14 -	sed -i -e 's!^-Fu/units/$fpctarget!-Fu/usr/lib/fpc/2.6.4/units/$fpctarget!' \
   79.15 -	-e 's!^-Fu/units/$fpctarget/*!-Fu/usr/lib/fpc/2.6.4/units/$fpctarget/*!' \
   79.16 -	-e 's!^-Fu/units/$fpctarget/rtl!-Fu/usr/lib/fpc/2.6.4/units/$fpctarget/rtl!' $1/etc/fpc.cfg
   79.17 +	sed -i -e 's!^-Fu/units/$fpctarget!-Fu/usr/lib/fpc/'$VERSION'/units/$fpctarget!' \
   79.18 +	-e 's!^-Fu/units/$fpctarget/*!-Fu/usr/lib/fpc/'$VERSION'/units/$fpctarget/*!' \
   79.19 +	-e 's!^-Fu/units/$fpctarget/rtl!-Fu/usr/lib/fpc/'$VERSION'/units/$fpctarget/rtl!' "$1/etc/fpc.cfg"
   79.20  
   79.21  }
    80.1 --- a/freepats/receipt	Sat Dec 19 21:50:31 2015 +0100
    80.2 +++ b/freepats/receipt	Sun Dec 20 15:13:45 2015 +0100
    80.3 @@ -24,7 +24,7 @@
    80.4  post_install()
    80.5  {
    80.6  	# Update timidity.cfg
    80.7 -		cat >> $1/usr/share/timidity/timidity.cfg <<EOF
    80.8 +		cat >> "$1/usr/share/timidity/timidity.cfg" <<EOF
    80.9  # freepats 
   80.10  dir /usr/share/timidity/freepats
   80.11  source /usr/share/timidity/freepats/freepats.cfg
   80.12 @@ -33,5 +33,5 @@
   80.13  
   80.14  post_remove()
   80.15  {
   80.16 -	sed -i '/freepats/d' $1/usr/share/timidity/timidity.cfg
   80.17 +	sed -i '/freepats/d' "$1/usr/share/timidity/timidity.cfg"
   80.18  }
    81.1 --- a/freeradius-dialupadmin/receipt	Sat Dec 19 21:50:31 2015 +0100
    81.2 +++ b/freeradius-dialupadmin/receipt	Sun Dec 20 15:13:45 2015 +0100
    81.3 @@ -26,9 +26,9 @@
    81.4  post_install()
    81.5  {
    81.6  	# Configure lighttpd server
    81.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
    81.8 -		if ! grep -q /usr/share/dialup_admin/ $1/etc/lighttpd/lighttpd.conf; then
    81.9 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/dialupadmin/" => "/usr/share/dialup_admin/htdocs/",|g' -i $1/etc/lighttpd/lighttpd.conf
   81.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
   81.11 +		if ! grep -q /usr/share/dialup_admin/ "$1/etc/lighttpd/lighttpd.conf"; then
   81.12 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/dialupadmin/" => "/usr/share/dialup_admin/htdocs/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
   81.13  			if [ -z "$1" ]; then
   81.14  				# Start Web server.
   81.15  				/etc/init.d/lighttpd stop
   81.16 @@ -37,9 +37,9 @@
   81.17  		fi
   81.18  	fi
   81.19  	# Configure apache server
   81.20 -	if [ -f $1/etc/apache/httpd.conf ]; then
   81.21 -		if [ ! -f $1/etc/apache/conf.d/dialupadmin ]; then
   81.22 -			cat > $1/etc/apache/conf.d/dialupadmin <<EOT
   81.23 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
   81.24 +		if [ ! -f "$1/etc/apache/conf.d/dialupadmin" ]; then
   81.25 +			cat > "$1/etc/apache/conf.d/dialupadmin" <<EOT
   81.26  <IfModule mod_alias.c>
   81.27      Alias /dialupadmin /usr/share/dialup_admin/htdocs
   81.28  </IfModule>
    82.1 --- a/freetype-infinality/receipt	Sat Dec 19 21:50:31 2015 +0100
    82.2 +++ b/freetype-infinality/receipt	Sun Dec 20 15:13:45 2015 +0100
    82.3 @@ -50,21 +50,21 @@
    82.4  post_install()
    82.5  {
    82.6  	# SliTaz not support /etc/profile.d/ by default, but use /etc/profile file
    82.7 -	cat >> $1/etc/profile << EOT
    82.8 +	cat >> "$1/etc/profile" << EOT
    82.9  
   82.10  # freetype-infinality profile settings
   82.11  . /etc/profile.d/infinality-settings.sh
   82.12  EOT
   82.13  
   82.14  	# add patched libs to loader config
   82.15 -	echo '/usr/lib/freetype-infinality' >> $1/etc/ld.so.conf
   82.16 +	echo '/usr/lib/freetype-infinality' >> "$1/etc/ld.so.conf"
   82.17  	chroot "$1/" ldconfig
   82.18  	echo 'Now you can log out/in to take effect on all your apps'
   82.19  }
   82.20  
   82.21  post_remove()
   82.22  {
   82.23 -	sed -i '/infinality/d' $1/etc/profile
   82.24 -	sed -i '/freetype-infinality/d' $1/etc/ld.so.conf
   82.25 +	sed -i '/infinality/d' "$1/etc/profile"
   82.26 +	sed -i '/freetype-infinality/d' "$1/etc/ld.so.conf"
   82.27  	chroot "$1/" ldconfig
   82.28  }
    83.1 --- a/gawk/receipt	Sat Dec 19 21:50:31 2015 +0100
    83.2 +++ b/gawk/receipt	Sun Dec 20 15:13:45 2015 +0100
    83.3 @@ -43,12 +43,10 @@
    83.4  # We must remove all Busybox symlink before installing.
    83.5  pre_install()
    83.6  {
    83.7 -	local root
    83.8 -	root=$1
    83.9 -	rm -f $root/usr/bin/awk
   83.10 +	rm -f "$1/usr/bin/awk"
   83.11  }
   83.12  
   83.13  post_remove()
   83.14  {
   83.15 -	ln -s /bin/busybox $1/usr/bin/awk
   83.16 +	ln -s /bin/busybox "$1/usr/bin/awk"
   83.17  }
    84.1 --- a/gcc+gcj/receipt	Sat Dec 19 21:50:31 2015 +0100
    84.2 +++ b/gcc+gcj/receipt	Sun Dec 20 15:13:45 2015 +0100
    84.3 @@ -96,13 +96,11 @@
    84.4  # Post install commands for Tazpkg.
    84.5  post_install()
    84.6  {
    84.7 -	local root
    84.8 -	root=$1
    84.9  	echo "Processing post-install commands..."
   84.10 -	if [ ! -f "$root/lib/cpp" ] ; then
   84.11 -		ln -s ../usr/bin/cpp $root/lib
   84.12 +	if [ ! -f "$1/lib/cpp" ] ; then
   84.13 +		ln -s ../usr/bin/cpp "$1/lib"
   84.14  	fi
   84.15 -	if [ ! -f "$root/usr/bin/cc" ] ; then
   84.16 -		ln -s gcc $root/usr/bin/cc
   84.17 +	if [ ! -f "$1/usr/bin/cc" ] ; then
   84.18 +		ln -s gcc "$1/usr/bin/cc"
   84.19  	fi
   84.20  }
    85.1 --- a/gcc/receipt	Sat Dec 19 21:50:31 2015 +0100
    85.2 +++ b/gcc/receipt	Sun Dec 20 15:13:45 2015 +0100
    85.3 @@ -118,11 +118,9 @@
    85.4  # Post install commands for Tazpkg.
    85.5  post_install()
    85.6  {
    85.7 -	local root
    85.8 -	root=$1
    85.9  	echo "Processing post-install commands..."
   85.10 -	[ -f "$root/lib/cpp" ] ||
   85.11 -		ln -s ../usr/bin/cpp $root/lib
   85.12 -	[ -f "$root/usr/bin/cc" ] ||
   85.13 -		ln -s gcc $root/usr/bin/cc
   85.14 +	[ -f "$1/lib/cpp" ] ||
   85.15 +		ln -s ../usr/bin/cpp "$1/lib"
   85.16 +	[ -f "$1/usr/bin/cc" ] ||
   85.17 +		ln -s gcc "$1/usr/bin/cc"
   85.18  }
    86.1 --- a/gcc49-lib-base/receipt	Sat Dec 19 21:50:31 2015 +0100
    86.2 +++ b/gcc49-lib-base/receipt	Sun Dec 20 15:13:45 2015 +0100
    86.3 @@ -21,7 +21,7 @@
    86.4  
    86.5  post_remove()
    86.6  {
    86.7 -	cd $1/usr/lib
    86.8 +	cd "$1/usr/lib"
    86.9  	ln -s libstdc++.so.6.*.* libstdc++.so.6
   86.10  	ln -s libstdc++.so.6.*.* libstdc++.so
   86.11  	cd - >/dev/null
    87.1 --- a/gecko-mediaplayer/receipt	Sat Dec 19 21:50:31 2015 +0100
    87.2 +++ b/gecko-mediaplayer/receipt	Sun Dec 20 15:13:45 2015 +0100
    87.3 @@ -44,10 +44,8 @@
    87.4  post_install()
    87.5  {
    87.6  	echo -n "Processing post install commands..."
    87.7 -	local root
    87.8 -	root=$1
    87.9 -	for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
   87.10 -		ln -s $i $root/usr/lib/firefox*/plugins
   87.11 +	for i in "$1"/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
   87.12 +		ln -s "$i" "$1"/usr/lib/firefox*/plugins
   87.13  	done 
   87.14  	status
   87.15  }
    88.1 --- a/get-wifi-firmware/receipt	Sat Dec 19 21:50:31 2015 +0100
    88.2 +++ b/get-wifi-firmware/receipt	Sun Dec 20 15:13:45 2015 +0100
    88.3 @@ -19,9 +19,9 @@
    88.4  post_install()
    88.5  {
    88.6  	install_resolver=false
    88.7 -	[ -s /etc/resolv.conf -a ! -s $1/etc/resolv.conf ] && install_resolver=true
    88.8 -	$install_resolver && cp /etc/resolv.conf $1/etc/resolv.conf
    88.9 +	[ -s /etc/resolv.conf -a ! -s "$1/etc/resolv.conf" ] && install_resolver=true
   88.10 +	$install_resolver && cp /etc/resolv.conf "$1/etc/resolv.conf"
   88.11  	# directly support some freely distributable firmware drivers 
   88.12 -	chroot $1/ /usr/bin/get-wifi-firmware --get-free-firmware
   88.13 -	$install_resolver && rm -f $1/etc/resolv.conf
   88.14 +	chroot "$1/" /usr/bin/get-wifi-firmware --get-free-firmware
   88.15 +	$install_resolver && rm -f "$1/etc/resolv.conf"
   88.16  }
    89.1 --- a/git/receipt	Sat Dec 19 21:50:31 2015 +0100
    89.2 +++ b/git/receipt	Sun Dec 20 15:13:45 2015 +0100
    89.3 @@ -43,13 +43,11 @@
    89.4  # edit daemons.conf.
    89.5  post_install()
    89.6  {
    89.7 -	local root
    89.8 -	root=$1
    89.9 -	if ! grep -q 'GIT_OPTIONS' $root/etc/daemons.conf; then
   89.10 -		mkdir -p $root/var/www/git
   89.11 -		echo '# Git daemon options.' >> $root/etc/daemons.conf
   89.12 -		echo 'GIT_REPO="/var/www/git/"' >> $root/etc/daemons.conf
   89.13 -		echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> $root/etc/daemons.conf
   89.14 -		echo '' >> $root/etc/daemons.conf
   89.15 +	if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"; then
   89.16 +		mkdir -p "$1/var/www/git"
   89.17 +		echo '# Git daemon options.' >> "$1/etc/daemons.conf"
   89.18 +		echo 'GIT_REPO="/var/www/git/"' >> "$1/etc/daemons.conf"
   89.19 +		echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> "$1/etc/daemons.conf"
   89.20 +		echo '' >> "$1/etc/daemons.conf"
   89.21  	fi
   89.22  }
    90.1 --- a/glib-dev/receipt	Sat Dec 19 21:50:31 2015 +0100
    90.2 +++ b/glib-dev/receipt	Sun Dec 20 15:13:45 2015 +0100
    90.3 @@ -42,6 +42,6 @@
    90.4  }
    90.5  post_install()
    90.6  {
    90.7 -	cd $1/usr/share/gdb/auto-load
    90.8 +	cd "$1/usr/share/gdb/auto-load"
    90.9  	for i in $(ls *.-py);do mv -f $i ${i//-.-/.};done
   90.10  }
    91.1 --- a/glpi/receipt	Sat Dec 19 21:50:31 2015 +0100
    91.2 +++ b/glpi/receipt	Sun Dec 20 15:13:45 2015 +0100
    91.3 @@ -62,9 +62,9 @@
    91.4  post_install()
    91.5  {
    91.6  	# Configure apache server
    91.7 -	if [ -f $1/etc/apache/httpd.conf ]; then
    91.8 -		if [ ! -f $1/etc/apache/conf.d/glpi ]; then
    91.9 -			cat > $1/etc/apache/conf.d/glpi <<EOT
   91.10 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
   91.11 +		if [ ! -f "$1/etc/apache/conf.d/glpi" ]; then
   91.12 +			cat > "$1/etc/apache/conf.d/glpi" <<EOT
   91.13  <IfModule mod_alias.c>
   91.14      Alias /glpi /usr/share/glpi/
   91.15  </IfModule>
   91.16 @@ -109,7 +109,7 @@
   91.17  	fi
   91.18  
   91.19  	# Configure every thing for glpi.
   91.20 -	if [ -z $1 ]; then
   91.21 +	if [ -z "$1" ]; then
   91.22  		if ( ! mysqladmin -s ping > /dev/null ); then
   91.23  			echo "Starting MySQL server"
   91.24  			( /etc/init.d/mysql start ; status  ) || exit 
   91.25 @@ -157,4 +157,3 @@
   91.26  		esac
   91.27  	
   91.28  }
   91.29 -
    92.1 --- a/gnome-calculator/receipt	Sat Dec 19 21:50:31 2015 +0100
    92.2 +++ b/gnome-calculator/receipt	Sun Dec 20 15:13:45 2015 +0100
    92.3 @@ -41,11 +41,11 @@
    92.4  post_install()
    92.5  {
    92.6  	echo "Processing post-install commands..."
    92.7 -	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
    92.8 +	chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
    92.9  }
   92.10  
   92.11  post_remove()
   92.12  {
   92.13  	echo "Processing post-remove commands..."
   92.14 -	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
   92.15 +	chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
   92.16  }
    93.1 --- a/gnu-netcat/receipt	Sat Dec 19 21:50:31 2015 +0100
    93.2 +++ b/gnu-netcat/receipt	Sun Dec 20 15:13:45 2015 +0100
    93.3 @@ -35,15 +35,13 @@
    93.4  #
    93.5  pre_install()
    93.6  {
    93.7 -	local root
    93.8 -	root=$1
    93.9  	echo "Processing pre-install commands..."
   93.10  	echo -n "Removing all Busybox replaced utils... "
   93.11 -	rm -f $root/usr/bin/nc
   93.12 +	rm -f "$1/usr/bin/nc"
   93.13  	status
   93.14  }
   93.15  
   93.16  post_remove()
   93.17  {
   93.18 -	ln -s /bin/busybox $1/usr/bin/nc
   93.19 +	ln -s /bin/busybox "$1/usr/bin/nc"
   93.20  }
   93.21 \ No newline at end of file
    94.1 --- a/grep/receipt	Sat Dec 19 21:50:31 2015 +0100
    94.2 +++ b/grep/receipt	Sun Dec 20 15:13:45 2015 +0100
    94.3 @@ -32,16 +32,14 @@
    94.4  #
    94.5  post_install()
    94.6  {
    94.7 -	local root
    94.8 -	root=$1
    94.9  	echo "Processing pre-install commands..."
   94.10  	echo -n "Removing all Busybox replaced utils... "
   94.11  	for i in grep egrep fgrep ; do
   94.12 -		bb=$root$(busybox grep bin/$i$ \
   94.13 -		   $root/var/lib/tazpkg/installed/busybox*/files.list | sed q)
   94.14 -		readlink $bb 2> /dev/null | grep -q busybox || continue
   94.15 -		rm -f $bb
   94.16 -		ln -s /usr/bin/$i $bb
   94.17 +		bb="$1$(busybox grep bin/$i$ \
   94.18 +		   "$1"/var/lib/tazpkg/installed/busybox*/files.list | sed q)"
   94.19 +		readlink "$bb" 2> /dev/null | grep -q busybox || continue
   94.20 +		rm -f "$bb"
   94.21 +		ln -s /usr/bin/$i "$bb"
   94.22  	done
   94.23  	status
   94.24  }
   94.25 @@ -49,10 +47,10 @@
   94.26  post_remove()
   94.27  {
   94.28  	for i in grep egrep fgrep ; do
   94.29 -		bb=$root$(busybox grep bin/$i$ \
   94.30 -		   $root/var/lib/tazpkg/installed/busybox*/files.list | sed q)
   94.31 -		rm -f $bb
   94.32 -		ln -s /bin/busybox $bb
   94.33 +		bb="$1$(busybox grep bin/$i$ \
   94.34 +		   "$1"/var/lib/tazpkg/installed/busybox*/files.list | sed q)"
   94.35 +		rm -f "$bb"
   94.36 +		ln -s /bin/busybox "$bb"
   94.37  	done
   94.38  }
   94.39  
    95.1 --- a/grooms/receipt	Sat Dec 19 21:50:31 2015 +0100
    95.2 +++ b/grooms/receipt	Sun Dec 20 15:13:45 2015 +0100
    95.3 @@ -29,9 +29,9 @@
    95.4  post_install()
    95.5  {
    95.6  	# Configure lighttpd server
    95.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
    95.8 -		if ! grep -q /var/lib/grooms $1/etc/lighttpd/lighttpd.conf; then
    95.9 -			sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/grooms/" => "/var/lib/grooms/",|g' -i $1/etc/lighttpd/lighttpd.conf
   95.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
   95.11 +		if ! grep -q /var/lib/grooms "$1/etc/lighttpd/lighttpd.conf"; then
   95.12 +			sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/grooms/" => "/var/lib/grooms/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
   95.13  			if [ -z "$1" ]; then
   95.14  				# Start Web server.
   95.15  				/etc/init.d/lighttpd stop
   95.16 @@ -40,9 +40,9 @@
   95.17  		fi
   95.18  	fi
   95.19  	# Configure apache server
   95.20 -	if [ -f $1/etc/apache/httpd.conf ]; then
   95.21 -		if [ ! -f $1/etc/apache/conf.d/grooms ]; then
   95.22 -			cat > $1/etc/apache/conf.d/grooms <<EOT
   95.23 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
   95.24 +		if [ ! -f "$1/etc/apache/conf.d/grooms" ]; then
   95.25 +			cat > "$1/etc/apache/conf.d/grooms" <<EOT
   95.26  <IfModule mod_alias.c>
   95.27  	Alias /grooms /var/lib/grooms
   95.28  </IfModule>
    96.1 --- a/gtk-clearlooks/receipt	Sat Dec 19 21:50:31 2015 +0100
    96.2 +++ b/gtk-clearlooks/receipt	Sun Dec 20 15:13:45 2015 +0100
    96.3 @@ -30,6 +30,6 @@
    96.4  {
    96.5  	for t in listviewitemstyle menuitemstyle progressbarstyle sunkenmenubar
    96.6  	do
    96.7 -		sed "s/$t/#$t/" -i $1/usr/share/themes/SliTaz*/gtk-2.0/gtkrc
    96.8 +		sed "s/$t/#$t/" -i "$1"/usr/share/themes/SliTaz*/gtk-2.0/gtkrc
    96.9  	done
   96.10  }
    97.1 --- a/gvfs-smb/receipt	Sat Dec 19 21:50:31 2015 +0100
    97.2 +++ b/gvfs-smb/receipt	Sun Dec 20 15:13:45 2015 +0100
    97.3 @@ -21,11 +21,11 @@
    97.4  post_install()
    97.5  {
    97.6  	echo "Processing post-install commands..."
    97.7 -	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
    97.8 +	chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
    97.9  }
   97.10  
   97.11  post_remove()
   97.12  {
   97.13  	echo "Processing post-remove commands..."
   97.14 -	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
   97.15 +	chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
   97.16  }
    98.1 --- a/gvim/receipt	Sat Dec 19 21:50:31 2015 +0100
    98.2 +++ b/gvim/receipt	Sun Dec 20 15:13:45 2015 +0100
    98.3 @@ -60,10 +60,7 @@
    98.4  
    98.5  post_install()
    98.6  {
    98.7 -	local root
    98.8 -	root=$1
    98.9 -
   98.10 -	cmd=$(readlink $root/bin/vi)
   98.11 +	cmd=$(readlink "$1/bin/vi")
   98.12  	if [ ! "$cmd" == '/usr/bin/vim' ]; then
   98.13  		echo ""
   98.14  		echo "**** Actual VI link : $cmd"
   98.15 @@ -72,7 +69,7 @@
   98.16  		if [ "$answer" == 'y' ]; then
   98.17  			echo ""
   98.18  			echo -n "Removing vi link to make a new one pointing on /usr/bin/vim..."
   98.19 -			rm $root/bin/vi && ln -sf $root/usr/bin/vim $root/bin/vi
   98.20 +			rm "$1/bin/vi" && ln -sf /usr/bin/vim "$1/bin/vi"
   98.21  			status
   98.22  		else
   98.23  			echo ""
   98.24 @@ -84,5 +81,5 @@
   98.25  post_remove()
   98.26  {
   98.27  	# restore previous symlink
   98.28 -	ln -sf busybox $1/bin/vi
   98.29 +	ln -sf busybox "$1/bin/vi"
   98.30  }
    99.1 --- a/gzip-full/receipt	Sat Dec 19 21:50:31 2015 +0100
    99.2 +++ b/gzip-full/receipt	Sun Dec 20 15:13:45 2015 +0100
    99.3 @@ -25,14 +25,14 @@
    99.4  pre_install()
    99.5  {
    99.6  	echo -n "Removing Busybox uncompress and zcat utilities... "
    99.7 -	rm -f $1/bin/uncompress $1/bin/zcat
    99.8 +	rm -f "$1/bin/uncompress" "$1/bin/zcat"
    99.9  	status
   99.10  }
   99.11  
   99.12  post_remove()
   99.13  {
   99.14  	echo -n "Restoring Busybox uncompress and zcat utilities... "
   99.15 -	ln -s busybox $1/bin/uncompress
   99.16 -	ln -s busybox $1/bin/zcat
   99.17 +	ln -s busybox "$1/bin/uncompress"
   99.18 +	ln -s busybox "$1/bin/zcat"
   99.19  	status
   99.20  }
   100.1 --- a/gzip/receipt	Sat Dec 19 21:50:31 2015 +0100
   100.2 +++ b/gzip/receipt	Sun Dec 20 15:13:45 2015 +0100
   100.3 @@ -38,14 +38,14 @@
   100.4  pre_install()
   100.5  {
   100.6  	echo -n "Removing Busybox gzip and gunzip utilities... "
   100.7 -	rm -f $1/bin/gzip $1/bin/gunzip
   100.8 +	rm -f "$1/bin/gzip" "$1/bin/gunzip"
   100.9  	status
  100.10  }
  100.11  
  100.12  post_remove()
  100.13  {
  100.14  	echo -n "Restoring Busybox gzip and gunzip utilities... "
  100.15 -	ln -s busybox $1/bin/gzip
  100.16 -	ln -s busybox $1/bin/gunzip
  100.17 +	ln -s busybox "$1/bin/gzip"
  100.18 +	ln -s busybox "$1/bin/gunzip"
  100.19  	status
  100.20  }
   101.1 --- a/hal/receipt	Sat Dec 19 21:50:31 2015 +0100
   101.2 +++ b/hal/receipt	Sun Dec 20 15:13:45 2015 +0100
   101.3 @@ -96,21 +96,19 @@
   101.4  
   101.5  pre_install()
   101.6  {
   101.7 -	local root
   101.8 -	root=$1
   101.9  	# Go for echoing on configuration files if any haldeamon user
  101.10  	# was found.
  101.11 -	if ! grep -q 'haldaemon' $root/etc/passwd; then
  101.12 +	if ! grep -q 'haldaemon' "$1/etc/passwd"; then
  101.13  		echo -n "Adding user: messagebus..."
  101.14 -		echo 'haldaemon:x:26:26:HAL Daemon User:/dev/null:/bin/false' >> $root/etc/passwd
  101.15 -		echo 'haldaemon:!:14013:0:99999:7:::' >> $root/etc/shadow
  101.16 -		echo 'haldaemon:x:26:' >> $root/etc/group
  101.17 -		echo 'haldaemon:!::' >> $root/etc/gshadow
  101.18 +		echo 'haldaemon:x:26:26:HAL Daemon User:/dev/null:/bin/false' >> "$1/etc/passwd"
  101.19 +		echo 'haldaemon:!:14013:0:99999:7:::' >> "$1/etc/shadow"
  101.20 +		echo 'haldaemon:x:26:' >> "$1/etc/group"
  101.21 +		echo 'haldaemon:!::' >> "$1/etc/gshadow"
  101.22  		status
  101.23  	fi
  101.24 -	if ! grep -q ^HALD_OPTIONS $root/etc/daemons.conf; then
  101.25 -		echo -n "Configuring $root/etc/daemons.conf..."
  101.26 -		cat >> $root/etc/daemons.conf << "EOT"
  101.27 +	if ! grep -q ^HALD_OPTIONS "$1/etc/daemons.conf"; then
  101.28 +		echo -n "Configuring /etc/daemons.conf..."
  101.29 +		cat >> "$1/etc/daemons.conf" << "EOT"
  101.30  # HAL daemon options.
  101.31  HALD_OPTIONS="--daemon=yes"
  101.32  
   102.1 --- a/hardware-ibm-6272/receipt	Sat Dec 19 21:50:31 2015 +0100
   102.2 +++ b/hardware-ibm-6272/receipt	Sun Dec 20 15:13:45 2015 +0100
   102.3 @@ -43,11 +43,11 @@
   102.4  # Pre and post install commands for Tazpkg.
   102.5  pre_remove()
   102.6  {
   102.7 -	sed -i 's/pnp.sh //' $1/etc/rcS.conf
   102.8 +	sed -i 's/pnp.sh //' "$1/etc/rcS.conf"
   102.9  }
  102.10  
  102.11  post_install()
  102.12  {
  102.13 -	grep pnp.sh $1/etc/rcS.conf ||
  102.14 -	sed -i 's/RUN_SCRIPTS="/&pnp.sh /' $1/etc/rcS.conf
  102.15 +	grep pnp.sh "$1/etc/rcS.conf" ||
  102.16 +	sed -i 's/RUN_SCRIPTS="/&pnp.sh /' "$1/etc/rcS.conf"
  102.17  }
   103.1 --- a/hardware-thinkpad-600e/receipt	Sat Dec 19 21:50:31 2015 +0100
   103.2 +++ b/hardware-thinkpad-600e/receipt	Sun Dec 20 15:13:45 2015 +0100
   103.3 @@ -20,8 +20,8 @@
   103.4  post_install()
   103.5  {
   103.6  	for i in thinkpad_acpi snd_cs46xx yenta_socket ; do
   103.7 -		grep -q $i $1/etc/rcS.conf ||
   103.8 -		sed -i "s/LOAD_MODULES=\"/&$i /" $i $1/etc/rcS.conf
   103.9 +		grep -q $i "$1/etc/rcS.conf" ||
  103.10 +		sed -i "s/LOAD_MODULES=\"/&$i /" $i "$1/etc/rcS.conf"
  103.11  		[ -n "$1" ] || modprobe $i
  103.12  	done
  103.13  	# FIXME update /etc/modprobe.d/ ?
  103.14 @@ -29,9 +29,9 @@
  103.15  	# modprobe snd-cs4232 port=0x530 cport=0x120 irq=5 dma1=1 dma2=0 isapnp=0
  103.16  	
  103.17  	# Video: remove 24bits (use 1024x768x16), neomagic driver
  103.18 -	sed -i 's/vesa/neomagic/;/Display/{NNN/24$/d}' $1/etc/X11/xorg.conf
  103.19 -	sed -i '/Display/{NNNN/24$/d}' $1/etc/X11/xorg.conf.d/70-Screen.conf
  103.20 -	sed -i 's/vesa/neomagic/'  $1/etc/X11/xorg.conf.d/60-Device.conf
  103.21 +	sed -i 's/vesa/neomagic/;/Display/{NNN/24$/d}' "$1/etc/X11/xorg.conf"
  103.22 +	sed -i '/Display/{NNNN/24$/d}' "$1/etc/X11/xorg.conf.d/70-Screen.conf"
  103.23 +	sed -i 's/vesa/neomagic/'  "$1/etc/X11/xorg.conf.d/60-Device.conf"
  103.24  	cat <<EOT
  103.25  Please turn off quickboot in the bios to activate sound card...
  103.26  EOT
   104.1 --- a/hd2u/receipt	Sat Dec 19 21:50:31 2015 +0100
   104.2 +++ b/hd2u/receipt	Sun Dec 20 15:13:45 2015 +0100
   104.3 @@ -37,15 +37,13 @@
   104.4  #
   104.5  pre_install()
   104.6  {
   104.7 -	local root
   104.8 -	root=$1
   104.9  	echo "Processing pre-install commands..."
  104.10  	echo -n "Removing all Busybox replaced utils... "
  104.11 -	rm -f $root/usr/bin/dos2unix
  104.12 +	rm -f "$1/usr/bin/dos2unix"
  104.13  	status
  104.14  }
  104.15  
  104.16  post_remove()
  104.17  {
  104.18 -	ln -s /bin/busybox /usr/bin/dos2unix
  104.19 +	ln -s /bin/busybox "$1/usr/bin/dos2unix"
  104.20  }
  104.21 \ No newline at end of file
   105.1 --- a/hplip/receipt	Sat Dec 19 21:50:31 2015 +0100
   105.2 +++ b/hplip/receipt	Sun Dec 20 15:13:45 2015 +0100
   105.3 @@ -68,5 +68,5 @@
   105.4  
   105.5  post_install()
   105.6  {
   105.7 -	tazpkg reconfigure udev --root=$1
   105.8 +	tazpkg reconfigure udev --root="$1"
   105.9  }
   106.1 --- a/iaxmodem/receipt	Sat Dec 19 21:50:31 2015 +0100
   106.2 +++ b/iaxmodem/receipt	Sun Dec 20 15:13:45 2015 +0100
   106.3 @@ -46,21 +46,21 @@
   106.4  
   106.5  pre_remove()
   106.6  {
   106.7 -	sed -i '/iaxmodem/d' $1/etc/inittab
   106.8 +	sed -i '/iaxmodem/d' "$1/etc/inittab"
   106.9  }
  106.10  
  106.11  # Pre and post install commands for Tazpkg.
  106.12  post_install()
  106.13  {
  106.14 -	grep -q ^uucp: $1/etc/passwd || {
  106.15 -		chroot $1/ adduser -s /bin/false -S -D -H uucp
  106.16 -		sed -i 's/^uucp:x:[0-9]*:[0-9]*:/uucp:x:0:0:/' $1/etc/passwd 
  106.17 +	grep -q ^uucp: "$1/etc/passwd" || {
  106.18 +		chroot "$1/" adduser -s /bin/false -S -D -H uucp
  106.19 +		sed -i 's/^uucp:x:[0-9]*:[0-9]*:/uucp:x:0:0:/' "$1/etc/passwd"
  106.20  	}
  106.21 -	grep -q ^uucp: $1/etc/group  || chroot $1/ addgroup uucp
  106.22 -	touch $1/var/log/iaxmodem/ttyIAX0 $1/var/log/iaxmodem/iaxmodem
  106.23 -	grep iaxmodem $1/etc/inittab || cat >> $1/etc/inittab << EOT
  106.24 +	grep -q ^uucp: "$1/etc/group"  || chroot "$1/" addgroup uucp
  106.25 +	touch "$1/var/log/iaxmodem/ttyIAX0" "$1/var/log/iaxmodem/iaxmodem"
  106.26 +	grep iaxmodem "$1/etc/inittab" || cat >> "$1/etc/inittab" << EOT
  106.27  ::respawn:/usr/bin/iaxmodem ttyIAX0 > /var/log/iaxmodem.log 2>&1
  106.28  ::respawn:/usr/sbin/faxgetty ttyIAX0
  106.29  EOT
  106.30 -	[ -n "$1" ] || kill -1 1
  106.31 +	[ "$1" ] || kill -1 1
  106.32  }
   107.1 --- a/icedtea6-jre/receipt	Sat Dec 19 21:50:31 2015 +0100
   107.2 +++ b/icedtea6-jre/receipt	Sun Dec 20 15:13:45 2015 +0100
   107.3 @@ -25,10 +25,10 @@
   107.4  # Post install/remove commands for Tazpkg.
   107.5  post_install()
   107.6  {
   107.7 -	ln -sf /usr/lib/jvm/java-icedtea/bin/java /usr/bin/java
   107.8 +	ln -sf /usr/lib/jvm/java-icedtea/bin/java "$1/usr/bin/java"
   107.9  }
  107.10  
  107.11  post_remove()
  107.12  {
  107.13 -	rm -f $1/usr/bin/java
  107.14 +	rm -f "$1/usr/bin/java"
  107.15  }
   108.1 --- a/iron-linux/receipt	Sat Dec 19 21:50:31 2015 +0100
   108.2 +++ b/iron-linux/receipt	Sun Dec 20 15:13:45 2015 +0100
   108.3 @@ -32,12 +32,12 @@
   108.4  # Create a link to /usr/bin/iron.
   108.5  post_install()
   108.6  {
   108.7 -	ln -s $1/usr/lib/iron-linux/iron $1/usr/bin/iron
   108.8 +	ln -s /usr/lib/iron-linux/iron "$1/usr/bin/iron"
   108.9  }
  108.10  
  108.11  # Remove link.
  108.12  post_remove()
  108.13  {
  108.14 -	rm $1/usr/bin/iron
  108.15 +	rm "$1/usr/bin/iron"
  108.16  }
  108.17  	
   109.1 --- a/jwm/receipt	Sat Dec 19 21:50:31 2015 +0100
   109.2 +++ b/jwm/receipt	Sun Dec 20 15:13:45 2015 +0100
   109.3 @@ -62,14 +62,14 @@
   109.4  post_install()
   109.5  {
   109.6  	if [ -d "$1/etc/jwm" ]; then
   109.7 -		echo "Removing old system wide configs: $1/etc/jwm"
   109.8 -		rm -rf $1/etc/jwm
   109.9 +		echo "Removing old system wide configs: /etc/jwm"
  109.10 +		rm -rf "$1/etc/jwm"
  109.11  	fi
  109.12 -	res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
  109.13 +	res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
  109.14  	# Adding WM to SLIM available sessions.
  109.15  	if ! echo "$res" | grep -q $PACKAGE; then
  109.16  		echo -n "Adding $PACKAGE to /etc/slim.conf..."
  109.17 -		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" $1/etc/slim.conf
  109.18 +		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" "$1/etc/slim.conf"
  109.19  		status
  109.20  	fi
  109.21  	true
  109.22 @@ -78,7 +78,7 @@
  109.23  post_remove()
  109.24  {
  109.25  	# Remove WM from SLIM available sessions.
  109.26 -	if grep -q $PACKAGE $1/etc/slim.conf; then
  109.27 -		sed -i s/,$PACKAGE// $1/etc/slim.conf
  109.28 +	if grep -q $PACKAGE "$1/etc/slim.conf"; then
  109.29 +		sed -i s/,$PACKAGE// "$1/etc/slim.conf"
  109.30  	fi
  109.31  }
   110.1 --- a/karmen/receipt	Sat Dec 19 21:50:31 2015 +0100
   110.2 +++ b/karmen/receipt	Sun Dec 20 15:13:45 2015 +0100
   110.3 @@ -38,11 +38,11 @@
   110.4  
   110.5  post_install()
   110.6  {
   110.7 -	res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
   110.8 +	res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
   110.9  	# Adding WM to SLIM available sessions.
  110.10  	if ! echo "$res" | grep -q $PACKAGE; then
  110.11  		echo -n "Adding $PACKAGE to /etc/slim.conf..."
  110.12 -		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" $1/etc/slim.conf
  110.13 +		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" "$1/etc/slim.conf"
  110.14  		status
  110.15  	fi
  110.16  }
  110.17 @@ -50,7 +50,7 @@
  110.18  post_remove()
  110.19  {
  110.20  	# Remove WM from SLIM available sessions.
  110.21 -	if grep -q $PACKAGE $1/etc/slim.conf; then
  110.22 -		sed -i s/,$PACKAGE// $1/etc/slim.conf
  110.23 +	if grep -q $PACKAGE "$1/etc/slim.conf"; then
  110.24 +		sed -i s/,$PACKAGE// "$1/etc/slim.conf"
  110.25  	fi
  110.26  }
   111.1 --- a/kismet/receipt	Sat Dec 19 21:50:31 2015 +0100
   111.2 +++ b/kismet/receipt	Sun Dec 20 15:13:45 2015 +0100
   111.3 @@ -43,23 +43,23 @@
   111.4  post_install()
   111.5  {
   111.6      # addgroup kismet if needed                                                                                                                
   111.7 -    if ! grep -q kismet $1/etc/group; then
   111.8 +    if ! grep -q kismet "$1/etc/group"; then
   111.9          echo -n "Adding group kismet..."
  111.10 -        chroot $1/ addgroup -g 315 kismet
  111.11 +        chroot "$1/" addgroup -g 315 kismet
  111.12          status
  111.13  	fi
  111.14  	# Add tux to kismet group
  111.15 -	chroot $1/ addgroup tux kismet
  111.16 +	chroot "$1/" addgroup tux kismet
  111.17  	# set Kismet as suid-root
  111.18  	echo -n "Set Kismet as suid-root.."
  111.19 -	chroot $1/ chown root:kismet /usr/bin/kismet_capture && \
  111.20 -	chroot $1/ chmod 4550 /usr/bin/kismet_capture
  111.21 +	chroot "$1/" chown root:kismet /usr/bin/kismet_capture && \
  111.22 +	chroot "$1/" chmod 4550 /usr/bin/kismet_capture
  111.23  	status
  111.24  	# configuration files update
  111.25  	create=1
  111.26  	overwrite=2
  111.27  	keep=3
  111.28 -	cd $1/etc/kismet
  111.29 +	cd "$1/etc/kismet"
  111.30  	# kismet_ui.conf doesn't exists anymore
  111.31  	if [ -e kismet_ui.conf ]; then
  111.32  		mv kismet_ui.conf kismet_ui.oldpkg
   112.1 --- a/kriss_feed/receipt	Sat Dec 19 21:50:31 2015 +0100
   112.2 +++ b/kriss_feed/receipt	Sun Dec 20 15:13:45 2015 +0100
   112.3 @@ -23,5 +23,5 @@
   112.4  
   112.5  post_install()
   112.6  {
   112.7 -	chown -R www $1/var/www/$PACKAGE
   112.8 +	chown -R www "$1/var/www/$PACKAGE"
   112.9  }
   113.1 --- a/less/receipt	Sat Dec 19 21:50:31 2015 +0100
   113.2 +++ b/less/receipt	Sun Dec 20 15:13:45 2015 +0100
   113.3 @@ -38,15 +38,13 @@
   113.4  #
   113.5  pre_install()
   113.6  {
   113.7 -	local root
   113.8 -	root=$1
   113.9  	echo "Processing pre-install commands..."
  113.10  	echo -n "Removing all Busybox replaced utils... "
  113.11 -	rm -f $root/usr/bin/less
  113.12 +	rm -f "$1/usr/bin/less"
  113.13  	status
  113.14  }
  113.15  
  113.16  post_remove()
  113.17  {
  113.18 -	ln -s /bin/busybox $1/usr/bin/less
  113.19 +	ln -s /bin/busybox "$1/usr/bin/less"
  113.20  }
   114.1 --- a/libQtGui/receipt	Sat Dec 19 21:50:31 2015 +0100
   114.2 +++ b/libQtGui/receipt	Sun Dec 20 15:13:45 2015 +0100
   114.3 @@ -29,9 +29,9 @@
   114.4  
   114.5  post_install()
   114.6  {
   114.7 -        for i in $(ls $1/home 2> /dev/null); do
   114.8 -                [ -f /home/$i/.config/Trolltech.conf ] && continue
   114.9 -                cp $1/etc/skel/.config/Trolltech.conf $1/home/$i/.config
  114.10 -                chroot $1/ chown -R $(stat -c "%u.%g" $1/home/$i) /home/$i/.config
  114.11 +        for i in $(ls "$1/home" 2> /dev/null); do
  114.12 +                [ -f "/home/$i/.config/Trolltech.conf" ] && continue
  114.13 +                cp "$1/etc/skel/.config/Trolltech.conf" "$1/home/$i/.config"
  114.14 +                chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.config"
  114.15          done
  114.16  }
   115.1 --- a/libdevmapper/receipt	Sat Dec 19 21:50:31 2015 +0100
   115.2 +++ b/libdevmapper/receipt	Sun Dec 20 15:13:45 2015 +0100
   115.3 @@ -22,5 +22,5 @@
   115.4  
   115.5  post_install()
   115.6  {
   115.7 -	tazpkg reconfigure udev --root=$1
   115.8 +	tazpkg reconfigure udev --root="$1"
   115.9  }
   116.1 --- a/libgphoto2/receipt	Sat Dec 19 21:50:31 2015 +0100
   116.2 +++ b/libgphoto2/receipt	Sun Dec 20 15:13:45 2015 +0100
   116.3 @@ -54,16 +54,14 @@
   116.4  
   116.5  post_install()
   116.6  {
   116.7 -	local root=$1
   116.8 -
   116.9 -	HAL_FDI="$root/usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi"
  116.10 -	UDEV_RULE="$root/etc/udev/rules.d/70-libgphoto2.rules"
  116.11 -	CAM_LIST="$root/usr/lib/libgphoto2/print-camera-list"
  116.12 +	HAL_FDI="$1/usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi"
  116.13 +	UDEV_RULE="$1/etc/udev/rules.d/70-libgphoto2.rules"
  116.14 +	CAM_LIST="$1/usr/lib/libgphoto2/print-camera-list"
  116.15  
  116.16  	# Let print-camera-list find libgphoto2.so
  116.17 -	export LD_LIBRARY_PATH="$root/usr/lib"
  116.18 +	export LD_LIBRARY_PATH="$1/usr/lib"
  116.19  	# Let libgphoto2 find its camera-modules before running print-camera-list
  116.20 -	export CAMLIBS="$root/usr/lib/libgphoto2/$VERSION"
  116.21 +	export CAMLIBS="$1/usr/lib/libgphoto2/$VERSION"
  116.22  
  116.23  	# HAL file
  116.24  	"$CAM_LIST" hal-fdi > "$HAL_FDI" || return 1
  116.25 @@ -71,10 +69,10 @@
  116.26  	#udev rule
  116.27  	"$CAM_LIST" udev-rules version 0.98 group camera mode 0660 > "$UDEV_RULE" || return 1
  116.28  
  116.29 -	tazpkg reconfigure udev --root=$root
  116.30 +	tazpkg reconfigure udev --root="$1"
  116.31  
  116.32  	# add group camera
  116.33 -	if ! grep -q camera $root/etc/group; then
  116.34 +	if ! grep -q camera "$1/etc/group"; then
  116.35  		chroot "$1/" addgroup -g 97 camera
  116.36  	fi
  116.37  
   117.1 --- a/librsvg/receipt	Sat Dec 19 21:50:31 2015 +0100
   117.2 +++ b/librsvg/receipt	Sun Dec 20 15:13:45 2015 +0100
   117.3 @@ -50,6 +50,6 @@
   117.4  post_install()
   117.5  {
   117.6  	echo -n "Updating gdk pixbuf loaders cache file..."
   117.7 -	chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache
   117.8 +	chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
   117.9  	status
  117.10  }
   118.1 --- a/lightdm-gtk2-greeter/receipt	Sat Dec 19 21:50:31 2015 +0100
   118.2 +++ b/lightdm-gtk2-greeter/receipt	Sun Dec 20 15:13:45 2015 +0100
   118.3 @@ -48,12 +48,12 @@
   118.4  {
   118.5  	echo 'make lightdm-gtk2-greeter default greeter'
   118.6  	sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk2-greeter #|' \
   118.7 -		$1/etc/lightdm/lightdm.conf
   118.8 +		"$1/etc/lightdm/lightdm.conf"
   118.9  }
  118.10  
  118.11  post_remove()
  118.12  {
  118.13  	echo 'back to default greeter'
  118.14  	sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \
  118.15 -		$1/etc/lightdm/lightdm.conf
  118.16 +		"$1/etc/lightdm/lightdm.conf"
  118.17  }
   119.1 --- a/lightdm-gtk3-greeter/receipt	Sat Dec 19 21:50:31 2015 +0100
   119.2 +++ b/lightdm-gtk3-greeter/receipt	Sun Dec 20 15:13:45 2015 +0100
   119.3 @@ -47,12 +47,12 @@
   119.4  {
   119.5  	echo 'make lightdm-gtk3-greeter default greeter'
   119.6  	sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk3-greeter #|' \
   119.7 -		$1/etc/lightdm/lightdm.conf
   119.8 +		"$1/etc/lightdm/lightdm.conf"
   119.9  }
  119.10  
  119.11  post_remove()
  119.12  {
  119.13  	echo 'back to default greeter'
  119.14  	sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \
  119.15 -		$1/etc/lightdm/lightdm.conf
  119.16 +		"$1/etc/lightdm/lightdm.conf"
  119.17  }
   120.1 --- a/lighttpd-ssl/receipt	Sat Dec 19 21:50:31 2015 +0100
   120.2 +++ b/lighttpd-ssl/receipt	Sun Dec 20 15:13:45 2015 +0100
   120.3 @@ -102,22 +102,22 @@
   120.4  post_install()
   120.5  {
   120.6  	echo "Processing post-install commands..."
   120.7 -	if [ ! -f $1/etc/ssl/lighttpd/lighttpd.pem ]; then
   120.8 +	if [ ! -f "$1/etc/ssl/lighttpd/lighttpd.pem" ]; then
   120.9  		openssl req -new -x509 \
  120.10 -			-keyout $1/etc/ssl/lighttpd/lighttpd.pem \
  120.11 -			-out $1/etc/ssl/lighttpd/lighttpd.pem \
  120.12 +			-keyout "$1/etc/ssl/lighttpd/lighttpd.pem" \
  120.13 +			-out "$1/etc/ssl/lighttpd/lighttpd.pem" \
  120.14  			-days 3650 -nodes <<EOT
  120.15 -$(. /etc/locale.conf ; echo ${LANG#*_})
  120.16 -$(cat /etc/TZ)
  120.17 +$(. "$1/etc/locale.conf" ; echo ${LANG#*_})
  120.18 +$(cat "$1/etc/TZ")
  120.19  
  120.20 -$(cat /etc/hostname)
  120.21 +$(cat "$1/etc/hostname")
  120.22  
  120.23  
  120.24  
  120.25  EOT
  120.26  	fi
  120.27  	# Just in case.
  120.28 -	chown www.www $1/var/log/lighttpd
  120.29 +	chown www.www "$1/var/log/lighttpd"
  120.30  	if [ -z "$1" ]; then
  120.31  		for i in apache ; do
  120.32  			[ -f /etc/init.d/$i ] && /etc/init.d/$i stop
   121.1 --- a/lighttpd/receipt	Sat Dec 19 21:50:31 2015 +0100
   121.2 +++ b/lighttpd/receipt	Sun Dec 20 15:13:45 2015 +0100
   121.3 @@ -83,20 +83,20 @@
   121.4  	echo "Processing pre-install commands..."
   121.5  	[ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
   121.6  	# Backup config file.
   121.7 -	if [ -d $1/etc/lighttpd ]; then
   121.8 -		cp -a $1/etc/lighttpd $1/etc/lighttpd.bak
   121.9 +	if [ -d "$1/etc/lighttpd" ]; then
  121.10 +		cp -a "$1/etc/lighttpd" "$1/etc/lighttpd.bak"
  121.11  	fi
  121.12  }
  121.13  post_install()
  121.14  {
  121.15  	echo "Processing post-install commands..."
  121.16  	# Restore original config.
  121.17 -	if [ -d $1/etc/lighttpd.bak ]; then
  121.18 -		rm -rf $1/etc/lighttpd
  121.19 -		mv $1/etc/lighttpd.bak $1/etc/lighttpd
  121.20 +	if [ -d "$1/etc/lighttpd.bak" ]; then
  121.21 +		rm -rf "$1/etc/lighttpd"
  121.22 +		mv "$1/etc/lighttpd.bak" "$1/etc/lighttpd"
  121.23  	fi
  121.24  	# Just in case.
  121.25 -	chown www.www $1/var/log/$PACKAGE
  121.26 +	chown www.www "$1/var/log/$PACKAGE"
  121.27  	[ "$1" ] || netstat -ltn 2> /dev/null | grep -q :80 ||
  121.28  	/etc/init.d/$PACKAGE start
  121.29  }
   122.1 --- a/linux-autofs/receipt	Sat Dec 19 21:50:31 2015 +0100
   122.2 +++ b/linux-autofs/receipt	Sun Dec 20 15:13:45 2015 +0100
   122.3 @@ -29,14 +29,13 @@
   122.4  # Post install/remove commands for Tazpkg.
   122.5  post_install()
   122.6  {
   122.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   122.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   122.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  122.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  122.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  122.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  122.13  }
  122.14  
  122.15  post_remove()
  122.16  {
  122.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  122.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  122.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  122.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  122.21  }
  122.22 -
   123.1 --- a/linux-cifs/receipt	Sat Dec 19 21:50:31 2015 +0100
   123.2 +++ b/linux-cifs/receipt	Sun Dec 20 15:13:45 2015 +0100
   123.3 @@ -29,14 +29,13 @@
   123.4  # Post install/remove commands for Tazpkg.
   123.5  post_install()
   123.6  {
   123.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   123.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   123.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  123.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  123.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  123.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  123.13  }
  123.14  
  123.15  post_remove()
  123.16  {
  123.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  123.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  123.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  123.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  123.21  }
  123.22 -
   124.1 --- a/linux-coda/receipt	Sat Dec 19 21:50:31 2015 +0100
   124.2 +++ b/linux-coda/receipt	Sun Dec 20 15:13:45 2015 +0100
   124.3 @@ -29,14 +29,13 @@
   124.4  # Post install/remove commands for Tazpkg.
   124.5  post_install()
   124.6  {
   124.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   124.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   124.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  124.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  124.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  124.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  124.13  }
  124.14  
  124.15  post_remove()
  124.16  {
  124.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  124.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  124.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  124.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  124.21  }
  124.22 -
   125.1 --- a/linux-configfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   125.2 +++ b/linux-configfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   125.3 @@ -29,14 +29,13 @@
   125.4  # Post install/remove commands for Tazpkg.
   125.5  post_install()
   125.6  {
   125.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   125.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   125.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  125.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  125.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  125.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  125.13  }
  125.14  
  125.15  post_remove()
  125.16  {
  125.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  125.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  125.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  125.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  125.21  }
  125.22 -
   126.1 --- a/linux-cramfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   126.2 +++ b/linux-cramfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   126.3 @@ -29,14 +29,13 @@
   126.4  # Post install/remove commands for Tazpkg.
   126.5  post_install()
   126.6  {
   126.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   126.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   126.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  126.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  126.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  126.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  126.13  }
  126.14  
  126.15  post_remove()
  126.16  {
  126.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  126.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  126.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  126.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  126.21  }
  126.22 -
   127.1 --- a/linux-dlm/receipt	Sat Dec 19 21:50:31 2015 +0100
   127.2 +++ b/linux-dlm/receipt	Sun Dec 20 15:13:45 2015 +0100
   127.3 @@ -31,14 +31,13 @@
   127.4  # Post install/remove commands for Tazpkg.
   127.5  post_install()
   127.6  {
   127.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   127.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   127.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  127.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  127.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  127.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  127.13  }
  127.14  
  127.15  post_remove()
  127.16  {
  127.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  127.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  127.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  127.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  127.21  }
  127.22 -
   128.1 --- a/linux-exofs/receipt	Sat Dec 19 21:50:31 2015 +0100
   128.2 +++ b/linux-exofs/receipt	Sun Dec 20 15:13:45 2015 +0100
   128.3 @@ -29,14 +29,13 @@
   128.4  # Post install/remove commands for Tazpkg.
   128.5  post_install()
   128.6  {
   128.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   128.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   128.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  128.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  128.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  128.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  128.13  }
  128.14  
  128.15  post_remove()
  128.16  {
  128.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  128.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  128.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  128.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  128.21  }
  128.22 -
   129.1 --- a/linux-gfs2/receipt	Sat Dec 19 21:50:31 2015 +0100
   129.2 +++ b/linux-gfs2/receipt	Sun Dec 20 15:13:45 2015 +0100
   129.3 @@ -29,14 +29,13 @@
   129.4  # Post install/remove commands for Tazpkg.
   129.5  post_install()
   129.6  {
   129.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   129.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   129.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  129.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  129.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  129.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  129.13  }
  129.14  
  129.15  post_remove()
  129.16  {
  129.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  129.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  129.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  129.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  129.21  }
  129.22 -
   130.1 --- a/linux-hfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   130.2 +++ b/linux-hfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   130.3 @@ -29,14 +29,13 @@
   130.4  # Post install/remove commands for Tazpkg.
   130.5  post_install()
   130.6  {
   130.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   130.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   130.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  130.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  130.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  130.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  130.13  }
  130.14  
  130.15  post_remove()
  130.16  {
  130.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  130.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  130.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  130.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  130.21  }
  130.22 -
   131.1 --- a/linux-hfsplus/receipt	Sat Dec 19 21:50:31 2015 +0100
   131.2 +++ b/linux-hfsplus/receipt	Sun Dec 20 15:13:45 2015 +0100
   131.3 @@ -29,13 +29,13 @@
   131.4  # Post install/remove commands for Tazpkg.
   131.5  post_install()
   131.6  {
   131.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   131.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   131.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  131.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  131.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  131.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  131.13  }
  131.14  
  131.15  post_remove()
  131.16  {
  131.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  131.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  131.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  131.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  131.21  }
   132.1 --- a/linux-jfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   132.2 +++ b/linux-jfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   132.3 @@ -29,13 +29,13 @@
   132.4  # Post install/remove commands for Tazpkg.
   132.5  post_install()
   132.6  {
   132.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   132.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   132.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  132.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  132.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  132.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  132.13  }
  132.14  
  132.15  post_remove()
  132.16  {
  132.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  132.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  132.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  132.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  132.21  }
   133.1 --- a/linux-libre-api-headers/receipt	Sat Dec 19 21:50:31 2015 +0100
   133.2 +++ b/linux-libre-api-headers/receipt	Sun Dec 20 15:13:45 2015 +0100
   133.3 @@ -43,6 +43,6 @@
   133.4  post_install()
   133.5  {
   133.6  	# Removed old linux-libre-headers
   133.7 -	[ ! -d $1/var/lib/tazpkg/installed/linux-libre-headers ] ||
   133.8 -	rm -rf $1/var/lib/tazpkg/installed/linux-libre-headers
   133.9 +	[ ! -d "$1/var/lib/tazpkg/installed/linux-libre-headers" ] ||
  133.10 +	rm -rf "$1/var/lib/tazpkg/installed/linux-libre-headers"
  133.11  }
   134.1 --- a/linux-libre-autofs/receipt	Sat Dec 19 21:50:31 2015 +0100
   134.2 +++ b/linux-libre-autofs/receipt	Sun Dec 20 15:13:45 2015 +0100
   134.3 @@ -31,14 +31,13 @@
   134.4  # Post install/remove commands for Tazpkg.
   134.5  post_install()
   134.6  {
   134.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   134.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   134.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  134.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  134.11  	chroot "$1/" depmod -a $VERSION-slitaz
  134.12  }
  134.13  
  134.14  post_remove()
  134.15  {
  134.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  134.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  134.18  	chroot "$1/" depmod -a $VERSION-slitaz
  134.19  }
  134.20 -
   135.1 --- a/linux-libre-btrfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   135.2 +++ b/linux-libre-btrfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   135.3 @@ -37,14 +37,13 @@
   135.4  # Post install/remove commands for Tazpkg.
   135.5  post_install()
   135.6  {
   135.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   135.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   135.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  135.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  135.11  	chroot "$1/" depmod -a $VERSION-slitaz
  135.12  }
  135.13  
  135.14  post_remove()
  135.15  {
  135.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  135.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  135.18  	chroot "$1/" depmod -a $VERSION-slitaz
  135.19  }
  135.20 -
   136.1 --- a/linux-libre-cifs/receipt	Sat Dec 19 21:50:31 2015 +0100
   136.2 +++ b/linux-libre-cifs/receipt	Sun Dec 20 15:13:45 2015 +0100
   136.3 @@ -31,14 +31,13 @@
   136.4  # Post install/remove commands for Tazpkg.
   136.5  post_install()
   136.6  {
   136.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   136.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   136.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  136.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  136.11  	chroot "$1/" depmod -a $VERSION-slitaz
  136.12  }
  136.13  
  136.14  post_remove()
  136.15  {
  136.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  136.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  136.18  	chroot "$1/" depmod -a $VERSION-slitaz
  136.19  }
  136.20 -
   137.1 --- a/linux-libre-coda/receipt	Sat Dec 19 21:50:31 2015 +0100
   137.2 +++ b/linux-libre-coda/receipt	Sun Dec 20 15:13:45 2015 +0100
   137.3 @@ -31,14 +31,13 @@
   137.4  # Post install/remove commands for Tazpkg.
   137.5  post_install()
   137.6  {
   137.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   137.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   137.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  137.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  137.11  	chroot "$1/" depmod -a $VERSION-slitaz
  137.12  }
  137.13  
  137.14  post_remove()
  137.15  {
  137.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  137.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  137.18  	chroot "$1/" depmod -a $VERSION-slitaz
  137.19  }
  137.20 -
   138.1 --- a/linux-libre-configfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   138.2 +++ b/linux-libre-configfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   138.3 @@ -31,14 +31,13 @@
   138.4  # Post install/remove commands for Tazpkg.
   138.5  post_install()
   138.6  {
   138.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   138.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   138.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  138.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  138.11  	chroot "$1/" depmod -a $VERSION-slitaz
  138.12  }
  138.13  
  138.14  post_remove()
  138.15  {
  138.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  138.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  138.18  	chroot "$1/" depmod -a $VERSION-slitaz
  138.19  }
  138.20 -
   139.1 --- a/linux-libre-cramfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   139.2 +++ b/linux-libre-cramfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   139.3 @@ -31,14 +31,13 @@
   139.4  # Post install/remove commands for Tazpkg.
   139.5  post_install()
   139.6  {
   139.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   139.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   139.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  139.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  139.11  	chroot "$1/" depmod -a $VERSION-slitaz
  139.12  }
  139.13  
  139.14  post_remove()
  139.15  {
  139.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  139.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  139.18  	chroot "$1/" depmod -a $VERSION-slitaz
  139.19  }
  139.20 -
   140.1 --- a/linux-libre-dlm/receipt	Sat Dec 19 21:50:31 2015 +0100
   140.2 +++ b/linux-libre-dlm/receipt	Sun Dec 20 15:13:45 2015 +0100
   140.3 @@ -32,14 +32,13 @@
   140.4  # Post install/remove commands for Tazpkg.
   140.5  post_install()
   140.6  {
   140.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   140.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   140.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  140.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  140.11  	chroot "$1/" depmod -a $VERSION-slitaz
  140.12  }
  140.13  
  140.14  post_remove()
  140.15  {
  140.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  140.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  140.18  	chroot "$1/" depmod -a $VERSION-slitaz
  140.19  }
  140.20 -
   141.1 --- a/linux-libre-gfs2/receipt	Sat Dec 19 21:50:31 2015 +0100
   141.2 +++ b/linux-libre-gfs2/receipt	Sun Dec 20 15:13:45 2015 +0100
   141.3 @@ -31,14 +31,13 @@
   141.4  # Post install/remove commands for Tazpkg.
   141.5  post_install()
   141.6  {
   141.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   141.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   141.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  141.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  141.11  	chroot "$1/" depmod -a $VERSION-slitaz
  141.12  }
  141.13  
  141.14  post_remove()
  141.15  {
  141.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  141.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  141.18  	chroot "$1/" depmod -a $VERSION-slitaz
  141.19  }
  141.20 -
   142.1 --- a/linux-libre-hfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   142.2 +++ b/linux-libre-hfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   142.3 @@ -31,14 +31,13 @@
   142.4  # Post install/remove commands for Tazpkg.
   142.5  post_install()
   142.6  {
   142.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   142.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   142.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  142.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  142.11  	chroot "$1/" depmod -a $VERSION-slitaz
  142.12  }
  142.13  
  142.14  post_remove()
  142.15  {
  142.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  142.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  142.18  	chroot "$1/" depmod -a $VERSION-slitaz
  142.19  }
  142.20 -
   143.1 --- a/linux-libre-hfsplus/receipt	Sat Dec 19 21:50:31 2015 +0100
   143.2 +++ b/linux-libre-hfsplus/receipt	Sun Dec 20 15:13:45 2015 +0100
   143.3 @@ -31,13 +31,13 @@
   143.4  # Post install/remove commands for Tazpkg.
   143.5  post_install()
   143.6  {
   143.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   143.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   143.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  143.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  143.11  	chroot "$1/" depmod -a $VERSION-slitaz
  143.12  }
  143.13  
  143.14  post_remove()
  143.15  {
  143.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  143.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  143.18  	chroot "$1/" depmod -a $VERSION-slitaz
  143.19  }
   144.1 --- a/linux-libre-jfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   144.2 +++ b/linux-libre-jfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   144.3 @@ -31,13 +31,13 @@
   144.4  # Post install/remove commands for Tazpkg.
   144.5  post_install()
   144.6  {
   144.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   144.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   144.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  144.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  144.11  	chroot "$1/" depmod -a $VERSION-slitaz
  144.12  }
  144.13  
  144.14  post_remove()
  144.15  {
  144.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  144.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  144.18  	chroot "$1/" depmod -a $VERSION-slitaz
  144.19  }
   145.1 --- a/linux-libre-logfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   145.2 +++ b/linux-libre-logfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   145.3 @@ -31,14 +31,13 @@
   145.4  # Post install/remove commands for Tazpkg.
   145.5  post_install()
   145.6  {
   145.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   145.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   145.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  145.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  145.11  	chroot "$1/" depmod -a $VERSION-slitaz
  145.12  }
  145.13  
  145.14  post_remove()
  145.15  {
  145.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  145.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  145.18  	chroot "$1/" depmod -a $VERSION-slitaz
  145.19  }
  145.20 -
   146.1 --- a/linux-libre-minix/receipt	Sat Dec 19 21:50:31 2015 +0100
   146.2 +++ b/linux-libre-minix/receipt	Sun Dec 20 15:13:45 2015 +0100
   146.3 @@ -31,14 +31,13 @@
   146.4  # Post install/remove commands for Tazpkg.
   146.5  post_install()
   146.6  {
   146.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   146.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   146.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  146.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  146.11  	chroot "$1/" depmod -a $VERSION-slitaz
  146.12  }
  146.13  
  146.14  post_remove()
  146.15  {
  146.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  146.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  146.18  	chroot "$1/" depmod -a $VERSION-slitaz
  146.19  }
  146.20 -
   147.1 --- a/linux-libre-module-headers/receipt	Sat Dec 19 21:50:31 2015 +0100
   147.2 +++ b/linux-libre-module-headers/receipt	Sun Dec 20 15:13:45 2015 +0100
   147.3 @@ -137,13 +137,13 @@
   147.4  }	
   147.5  
   147.6  pre_remove() {
   147.7 -	if [ -e $1/usr/src/linux ]; then
   147.8 -		rm -rf $1/usr/src/linux
   147.9 +	if [ -e "$1/usr/src/linux" ]; then
  147.10 +		rm -rf "$1/usr/src/linux"
  147.11  	fi
  147.12  }
  147.13  
  147.14  post_install() {
  147.15  	# Added soft link to make it easier to point to kernel folder
  147.16 -	[ -L $1/usr/src/linux ] && rm -f $1/usr/src/linux 
  147.17 -	ln -sf /usr/src/linux-$KVERSION $1/usr/src/linux
  147.18 +	[ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux"
  147.19 +	ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux"
  147.20  }
   148.1 --- a/linux-libre-ncpfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   148.2 +++ b/linux-libre-ncpfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   148.3 @@ -31,14 +31,13 @@
   148.4  # Post install/remove commands for Tazpkg.
   148.5  post_install()
   148.6  {
   148.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   148.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   148.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  148.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  148.11  	chroot "$1/" depmod -a $VERSION-slitaz
  148.12  }
  148.13  
  148.14  post_remove()
  148.15  {
  148.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  148.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  148.18  	chroot "$1/" depmod -a $VERSION-slitaz
  148.19  }
  148.20 -
   149.1 --- a/linux-libre-nfsd/receipt	Sat Dec 19 21:50:31 2015 +0100
   149.2 +++ b/linux-libre-nfsd/receipt	Sun Dec 20 15:13:45 2015 +0100
   149.3 @@ -31,14 +31,13 @@
   149.4  # Post install/remove commands for Tazpkg.
   149.5  post_install()
   149.6  {
   149.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   149.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   149.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  149.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  149.11  	chroot "$1/" depmod -a $VERSION-slitaz
  149.12  }
  149.13  
  149.14  post_remove()
  149.15  {
  149.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  149.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  149.18  	chroot "$1/" depmod -a $VERSION-slitaz
  149.19  }
  149.20 -
   150.1 --- a/linux-libre-reiserfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   150.2 +++ b/linux-libre-reiserfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   150.3 @@ -31,14 +31,13 @@
   150.4  # Post install/remove commands for Tazpkg.
   150.5  post_install()
   150.6  {
   150.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   150.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   150.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  150.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  150.11  	chroot "$1/" depmod -a $VERSION-slitaz
  150.12  }
  150.13  
  150.14  post_remove()
  150.15  {
  150.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  150.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  150.18  	chroot "$1/" depmod -a $VERSION-slitaz
  150.19  }
  150.20 -
   151.1 --- a/linux-libre-squashfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   151.2 +++ b/linux-libre-squashfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   151.3 @@ -32,14 +32,13 @@
   151.4  # Post install/remove commands for Tazpkg.
   151.5  post_install()
   151.6  {
   151.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   151.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   151.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  151.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  151.11  	chroot "$1/" depmod -a $VERSION-slitaz
  151.12  }
  151.13  
  151.14  post_remove()
  151.15  {
  151.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  151.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  151.18  	chroot "$1/" depmod -a $VERSION-slitaz
  151.19  }
  151.20 -
   152.1 --- a/linux-libre-udf/receipt	Sat Dec 19 21:50:31 2015 +0100
   152.2 +++ b/linux-libre-udf/receipt	Sun Dec 20 15:13:45 2015 +0100
   152.3 @@ -37,14 +37,13 @@
   152.4  # Post install/remove commands for Tazpkg.
   152.5  post_install()
   152.6  {
   152.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   152.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   152.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  152.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  152.11  	chroot "$1/" depmod -a $VERSION-slitaz
  152.12  }
  152.13  
  152.14  post_remove()
  152.15  {
  152.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  152.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  152.18  	chroot "$1/" depmod -a $VERSION-slitaz
  152.19  }
  152.20 -
   153.1 --- a/linux-libre-usbip/receipt	Sat Dec 19 21:50:31 2015 +0100
   153.2 +++ b/linux-libre-usbip/receipt	Sun Dec 20 15:13:45 2015 +0100
   153.3 @@ -30,14 +30,13 @@
   153.4  # Post install/remove commands for Tazpkg.
   153.5  post_install()
   153.6  {
   153.7 -	grep -qs ^${PACKAGE##*-}$ $1/etc/filesystems || \
   153.8 -		echo "${PACKAGE##*-}" >> $1/etc/filesystems
   153.9 +	grep -qs ^${PACKAGE##*-}$ "$1/etc/filesystems" || \
  153.10 +		echo "${PACKAGE##*-}" >> "$1/etc/filesystems"
  153.11  	chroot "$1/" depmod -a $VERSION-slitaz
  153.12  }
  153.13  
  153.14  post_remove()
  153.15  {
  153.16 -	sed -i "/^${PACKAGE##*-}\$/d" $1/etc/filesystems
  153.17 +	sed -i "/^${PACKAGE##*-}\$/d" "$1/etc/filesystems"
  153.18  	chroot "$1/" depmod -a $VERSION-slitaz
  153.19  }
  153.20 -
   154.1 --- a/linux-libre/receipt	Sat Dec 19 21:50:31 2015 +0100
   154.2 +++ b/linux-libre/receipt	Sun Dec 20 15:13:45 2015 +0100
   154.3 @@ -173,11 +173,11 @@
   154.4      chroot "$1/" depmod -a $VERSION-slitaz
   154.5      # GRUB stuff.
   154.6      if [ -f "$1/boot/grub/menu.lst" ]; then
   154.7 -    	root_dev=`cat $1/boot/grub/menu.lst | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1`
   154.8 -		grub_dev=`cat $1/boot/grub/menu.lst | grep "root (" | head -n 1`
   154.9 +    	root_dev=`cat "$1/boot/grub/menu.lst" | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1`
  154.10 +		grub_dev=`cat "$1/boot/grub/menu.lst" | grep "root (" | head -n 1`
  154.11  		# Add new kernel entry in case of upgrade for installed system.
  154.12 -		if ! grep -q $PACKAGE-$VERSION-slitaz $1/boot/grub/menu.lst; then
  154.13 -    		cat >> $1/boot/grub/menu.lst << EOT
  154.14 +		if ! grep -q $PACKAGE-$VERSION-slitaz "$1/boot/grub/menu.lst"; then
  154.15 +    		cat >> "$1/boot/grub/menu.lst" << EOT
  154.16  
  154.17  title SliTaz GNU/Linux (Kernel $VERSION-slitaz)
  154.18  $grub_dev
   155.1 --- a/linux-logfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   155.2 +++ b/linux-logfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   155.3 @@ -29,14 +29,13 @@
   155.4  # Post install/remove commands for Tazpkg.
   155.5  post_install()
   155.6  {
   155.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   155.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   155.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  155.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  155.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  155.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  155.13  }
  155.14  
  155.15  post_remove()
  155.16  {
  155.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  155.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  155.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  155.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  155.21  }
  155.22 -
   156.1 --- a/linux-minix/receipt	Sat Dec 19 21:50:31 2015 +0100
   156.2 +++ b/linux-minix/receipt	Sun Dec 20 15:13:45 2015 +0100
   156.3 @@ -29,14 +29,13 @@
   156.4  # Post install/remove commands for Tazpkg.
   156.5  post_install()
   156.6  {
   156.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   156.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   156.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  156.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  156.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  156.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  156.13  }
  156.14  
  156.15  post_remove()
  156.16  {
  156.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  156.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  156.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  156.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  156.21  }
  156.22 -
   157.1 --- a/linux-module-headers/receipt	Sat Dec 19 21:50:31 2015 +0100
   157.2 +++ b/linux-module-headers/receipt	Sun Dec 20 15:13:45 2015 +0100
   157.3 @@ -20,13 +20,13 @@
   157.4  }	
   157.5  
   157.6  pre_remove() {
   157.7 -	if [ -e $1/usr/src/linux ]; then
   157.8 -		rm -rf $1/usr/src/linux
   157.9 +	if [ -e "$1/usr/src/linux" ]; then
  157.10 +		rm -rf "$1/usr/src/linux"
  157.11  	fi
  157.12  }
  157.13  
  157.14  post_install() {
  157.15  	# Added soft link to make it easier to point to kernel folder
  157.16 -	[ -L $1/usr/src/linux ] && rm -f $1/usr/src/linux 
  157.17 -	ln -sf /usr/src/linux-$KVERSION $1/usr/src/linux
  157.18 +	[ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux"
  157.19 +	ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux"
  157.20  }
   158.1 --- a/linux-ncpfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   158.2 +++ b/linux-ncpfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   158.3 @@ -29,14 +29,13 @@
   158.4  # Post install/remove commands for Tazpkg.
   158.5  post_install()
   158.6  {
   158.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   158.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   158.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  158.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  158.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  158.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  158.13  }
  158.14  
  158.15  post_remove()
  158.16  {
  158.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  158.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  158.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  158.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  158.21  }
  158.22 -
   159.1 --- a/linux-nfsd/receipt	Sat Dec 19 21:50:31 2015 +0100
   159.2 +++ b/linux-nfsd/receipt	Sun Dec 20 15:13:45 2015 +0100
   159.3 @@ -29,14 +29,13 @@
   159.4  # Post install/remove commands for Tazpkg.
   159.5  post_install()
   159.6  {
   159.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   159.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   159.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  159.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  159.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  159.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  159.13  }
  159.14  
  159.15  post_remove()
  159.16  {
  159.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  159.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  159.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  159.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  159.21  }
  159.22 -
   160.1 --- a/linux-reiserfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   160.2 +++ b/linux-reiserfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   160.3 @@ -29,14 +29,13 @@
   160.4  # Post install/remove commands for Tazpkg.
   160.5  post_install()
   160.6  {
   160.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   160.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   160.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  160.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  160.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  160.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  160.13  }
  160.14  
  160.15  post_remove()
  160.16  {
  160.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  160.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  160.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  160.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  160.21  }
  160.22 -
   161.1 --- a/linux-romfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   161.2 +++ b/linux-romfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   161.3 @@ -29,14 +29,13 @@
   161.4  # Post install/remove commands for Tazpkg.
   161.5  post_install()
   161.6  {
   161.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   161.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   161.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  161.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  161.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  161.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  161.13  }
  161.14  
  161.15  post_remove()
  161.16  {
  161.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  161.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  161.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  161.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  161.21  }
  161.22 -
   162.1 --- a/linux-squashfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   162.2 +++ b/linux-squashfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   162.3 @@ -30,14 +30,13 @@
   162.4  # Post install/remove commands for Tazpkg.
   162.5  post_install()
   162.6  {
   162.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   162.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   162.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  162.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  162.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  162.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  162.13  }
  162.14  
  162.15  post_remove()
  162.16  {
  162.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  162.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  162.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  162.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  162.21  }
  162.22 -
   163.1 --- a/linux-usbip/receipt	Sat Dec 19 21:50:31 2015 +0100
   163.2 +++ b/linux-usbip/receipt	Sun Dec 20 15:13:45 2015 +0100
   163.3 @@ -28,14 +28,13 @@
   163.4  # Post install/remove commands for Tazpkg.
   163.5  post_install()
   163.6  {
   163.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   163.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   163.9 -	chroot "$root/" depmod -a $VERSION-slitaz
  163.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  163.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  163.12 +	chroot "$1/" depmod -a $VERSION-slitaz
  163.13  }
  163.14  
  163.15  post_remove()
  163.16  {
  163.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  163.18 -	chroot "$root/" depmod -a $VERSION-slitaz
  163.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  163.20 +	chroot "$1/" depmod -a $VERSION-slitaz
  163.21  }
  163.22 -
   164.1 --- a/linux/receipt	Sat Dec 19 21:50:31 2015 +0100
   164.2 +++ b/linux/receipt	Sun Dec 20 15:13:45 2015 +0100
   164.3 @@ -412,25 +412,25 @@
   164.4  		grub_part="$(( $(echo $root_dev | grep -o '[0-9]*$')-1 ))"
   164.5  		# Use device.map to find grub device number
   164.6  		grub_dev="$(grep $(echo $root_dev | grep -o  '^/dev/.d.' ) \
   164.7 -			$1/boot/grub/device.map | cut -f1 | sed "s/)$/.$grub_part)/g")" 
   164.8 +			"$1/boot/grub/device.map" | cut -f1 | sed "s/)$/.$grub_part)/g")" 
   164.9      	
  164.10  		# Add and clean kernel entries in case of upgrade for installed system.
  164.11 -		if ! grep -q vmlinuz-$VERSION-slitaz $1/boot/grub/menu.lst; then
  164.12 +		if ! grep -q vmlinuz-$VERSION-slitaz "$1/boot/grub/menu.lst"; then
  164.13  		
  164.14  			# Clean the old entry
  164.15  			# TODO: old vmlinuz file is removed but the entry is still there.
  164.16  			# So grub error:15 when selected: http://bugs.slitaz.org/?id=74
  164.17  
  164.18  			# Add the new entry
  164.19 -			cat >> $1/boot/grub/menu.lst << EOT
  164.20 +			cat >> "$1/boot/grub/menu.lst" << EOT
  164.21  
  164.22  title SliTaz GNU/Linux (Kernel $VERSION-slitaz)
  164.23  $grub_dev 
  164.24  kernel /boot/vmlinuz-$VERSION-slitaz root=$root_dev quiet
  164.25  EOT
  164.26  			# Make it the default entry
  164.27 -			last_entry=$(( $(grep -c '^title' $1/boot/grub/menu.lst)-1 ))
  164.28 -			sed -e "s/^default.*/default $last_entry/g" -i $1/boot/grub/menu.lst
  164.29 +			last_entry=$(( $(grep -c '^title' "$1/boot/grub/menu.lst")-1 ))
  164.30 +			sed -e "s/^default.*/default $last_entry/g" -i "$1/boot/grub/menu.lst"
  164.31  		fi
  164.32  		
  164.33  		# Display information message.
   165.1 --- a/linux64-autofs/receipt	Sat Dec 19 21:50:31 2015 +0100
   165.2 +++ b/linux64-autofs/receipt	Sun Dec 20 15:13:45 2015 +0100
   165.3 @@ -33,14 +33,14 @@
   165.4  # Post install/remove commands for Tazpkg.
   165.5  post_install()
   165.6  {
   165.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   165.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   165.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  165.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  165.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  165.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  165.13  }
  165.14  
  165.15  post_remove()
  165.16  {
  165.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  165.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  165.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  165.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  165.21  }
  165.22  
   166.1 --- a/linux64-btrfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   166.2 +++ b/linux64-btrfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   166.3 @@ -39,14 +39,14 @@
   166.4  # Post install/remove commands for Tazpkg.
   166.5  post_install()
   166.6  {
   166.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   166.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   166.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  166.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  166.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  166.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  166.13  }
  166.14  
  166.15  post_remove()
  166.16  {
  166.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  166.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  166.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  166.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  166.21  }
  166.22  
   167.1 --- a/linux64-cifs/receipt	Sat Dec 19 21:50:31 2015 +0100
   167.2 +++ b/linux64-cifs/receipt	Sun Dec 20 15:13:45 2015 +0100
   167.3 @@ -33,14 +33,13 @@
   167.4  # Post install/remove commands for Tazpkg.
   167.5  post_install()
   167.6  {
   167.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   167.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   167.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  167.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  167.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  167.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  167.13  }
  167.14  
  167.15  post_remove()
  167.16  {
  167.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  167.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  167.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  167.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  167.21  }
  167.22 -
   168.1 --- a/linux64-coda/receipt	Sat Dec 19 21:50:31 2015 +0100
   168.2 +++ b/linux64-coda/receipt	Sun Dec 20 15:13:45 2015 +0100
   168.3 @@ -33,14 +33,14 @@
   168.4  # Post install/remove commands for Tazpkg.
   168.5  post_install()
   168.6  {
   168.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   168.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   168.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  168.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  168.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  168.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  168.13  }
  168.14  
  168.15  post_remove()
  168.16  {
  168.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  168.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  168.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  168.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  168.21  }
  168.22  
   169.1 --- a/linux64-configfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   169.2 +++ b/linux64-configfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   169.3 @@ -33,14 +33,14 @@
   169.4  # Post install/remove commands for Tazpkg.
   169.5  post_install()
   169.6  {
   169.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   169.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   169.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  169.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  169.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  169.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  169.13  }
  169.14  
  169.15  post_remove()
  169.16  {
  169.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  169.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  169.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  169.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  169.21  }
  169.22  
   170.1 --- a/linux64-cramfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   170.2 +++ b/linux64-cramfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   170.3 @@ -33,14 +33,14 @@
   170.4  # Post install/remove commands for Tazpkg.
   170.5  post_install()
   170.6  {
   170.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   170.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   170.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  170.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  170.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  170.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  170.13  }
  170.14  
  170.15  post_remove()
  170.16  {
  170.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  170.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  170.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  170.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  170.21  }
  170.22  
   171.1 --- a/linux64-dlm/receipt	Sat Dec 19 21:50:31 2015 +0100
   171.2 +++ b/linux64-dlm/receipt	Sun Dec 20 15:13:45 2015 +0100
   171.3 @@ -34,14 +34,14 @@
   171.4  # Post install/remove commands for Tazpkg.
   171.5  post_install()
   171.6  {
   171.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   171.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   171.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  171.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  171.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  171.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  171.13  }
  171.14  
  171.15  post_remove()
  171.16  {
  171.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  171.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  171.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  171.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  171.21  }
  171.22  
   172.1 --- a/linux64-exofs/receipt	Sat Dec 19 21:50:31 2015 +0100
   172.2 +++ b/linux64-exofs/receipt	Sun Dec 20 15:13:45 2015 +0100
   172.3 @@ -33,14 +33,13 @@
   172.4  # Post install/remove commands for Tazpkg.
   172.5  post_install()
   172.6  {
   172.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   172.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   172.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  172.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  172.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  172.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  172.13  }
  172.14  
  172.15  post_remove()
  172.16  {
  172.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  172.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  172.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  172.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  172.21  }
  172.22 -
   173.1 --- a/linux64-gfs2/receipt	Sat Dec 19 21:50:31 2015 +0100
   173.2 +++ b/linux64-gfs2/receipt	Sun Dec 20 15:13:45 2015 +0100
   173.3 @@ -33,14 +33,13 @@
   173.4  # Post install/remove commands for Tazpkg.
   173.5  post_install()
   173.6  {
   173.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   173.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   173.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  173.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  173.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  173.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  173.13  }
  173.14  
  173.15  post_remove()
  173.16  {
  173.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  173.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  173.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  173.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  173.21  }
  173.22 -
   174.1 --- a/linux64-hfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   174.2 +++ b/linux64-hfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   174.3 @@ -33,14 +33,13 @@
   174.4  # Post install/remove commands for Tazpkg.
   174.5  post_install()
   174.6  {
   174.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   174.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   174.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  174.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  174.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  174.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  174.13  }
  174.14  
  174.15  post_remove()
  174.16  {
  174.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  174.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  174.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  174.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  174.21  }
  174.22 -
   175.1 --- a/linux64-hfsplus/receipt	Sat Dec 19 21:50:31 2015 +0100
   175.2 +++ b/linux64-hfsplus/receipt	Sun Dec 20 15:13:45 2015 +0100
   175.3 @@ -33,13 +33,13 @@
   175.4  # Post install/remove commands for Tazpkg.
   175.5  post_install()
   175.6  {
   175.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   175.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   175.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  175.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  175.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  175.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  175.13  }
  175.14  
  175.15  post_remove()
  175.16  {
  175.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  175.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  175.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  175.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  175.21  }
   176.1 --- a/linux64-jfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   176.2 +++ b/linux64-jfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   176.3 @@ -33,13 +33,13 @@
   176.4  # Post install/remove commands for Tazpkg.
   176.5  post_install()
   176.6  {
   176.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   176.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   176.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  176.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  176.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  176.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  176.13  }
  176.14  
  176.15  post_remove()
  176.16  {
  176.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  176.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  176.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  176.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  176.21  }
   177.1 --- a/linux64-logfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   177.2 +++ b/linux64-logfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   177.3 @@ -33,14 +33,13 @@
   177.4  # Post install/remove commands for Tazpkg.
   177.5  post_install()
   177.6  {
   177.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   177.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   177.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  177.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  177.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  177.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  177.13  }
  177.14  
  177.15  post_remove()
  177.16  {
  177.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  177.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  177.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  177.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  177.21  }
  177.22 -
   178.1 --- a/linux64-minix/receipt	Sat Dec 19 21:50:31 2015 +0100
   178.2 +++ b/linux64-minix/receipt	Sun Dec 20 15:13:45 2015 +0100
   178.3 @@ -33,14 +33,13 @@
   178.4  # Post install/remove commands for Tazpkg.
   178.5  post_install()
   178.6  {
   178.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   178.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   178.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  178.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  178.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  178.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  178.13  }
  178.14  
  178.15  post_remove()
  178.16  {
  178.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  178.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  178.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  178.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  178.21  }
  178.22 -
   179.1 --- a/linux64-module-headers/receipt	Sat Dec 19 21:50:31 2015 +0100
   179.2 +++ b/linux64-module-headers/receipt	Sun Dec 20 15:13:45 2015 +0100
   179.3 @@ -20,13 +20,13 @@
   179.4  }	
   179.5  
   179.6  pre_remove() {
   179.7 -	if [ -e $1/usr/src/linux ]; then
   179.8 -		rm -rf $1/usr/src/linux
   179.9 +	if [ -e "$1/usr/src/linux" ]; then
  179.10 +		rm -rf "$1/usr/src/linux"
  179.11  	fi
  179.12  }
  179.13  
  179.14  post_install() {
  179.15  	# Added soft link to make it easier to point to kernel folder
  179.16 -	[ -L $1/usr/src/linux ] && rm -f $1/usr/src/linux 
  179.17 -	ln -sf /usr/src/linux-$KVERSION $1/usr/src/linux
  179.18 +	[ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux"
  179.19 +	ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux"
  179.20  }
   180.1 --- a/linux64-ncpfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   180.2 +++ b/linux64-ncpfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   180.3 @@ -33,14 +33,13 @@
   180.4  # Post install/remove commands for Tazpkg.
   180.5  post_install()
   180.6  {
   180.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   180.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   180.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  180.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  180.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  180.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  180.13  }
  180.14  
  180.15  post_remove()
  180.16  {
  180.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  180.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  180.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  180.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  180.21  }
  180.22 -
   181.1 --- a/linux64-nfsd/receipt	Sat Dec 19 21:50:31 2015 +0100
   181.2 +++ b/linux64-nfsd/receipt	Sun Dec 20 15:13:45 2015 +0100
   181.3 @@ -33,14 +33,13 @@
   181.4  # Post install/remove commands for Tazpkg.
   181.5  post_install()
   181.6  {
   181.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   181.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   181.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  181.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  181.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  181.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  181.13  }
  181.14  
  181.15  post_remove()
  181.16  {
  181.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  181.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  181.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  181.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  181.21  }
  181.22 -
   182.1 --- a/linux64-reiserfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   182.2 +++ b/linux64-reiserfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   182.3 @@ -33,14 +33,13 @@
   182.4  # Post install/remove commands for Tazpkg.
   182.5  post_install()
   182.6  {
   182.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   182.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   182.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  182.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  182.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  182.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  182.13  }
  182.14  
  182.15  post_remove()
  182.16  {
  182.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  182.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  182.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  182.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  182.21  }
  182.22 -
   183.1 --- a/linux64-romfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   183.2 +++ b/linux64-romfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   183.3 @@ -33,14 +33,13 @@
   183.4  # Post install/remove commands for Tazpkg.
   183.5  post_install()
   183.6  {
   183.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   183.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   183.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  183.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  183.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  183.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  183.13  }
  183.14  
  183.15  post_remove()
  183.16  {
  183.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  183.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  183.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  183.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  183.21  }
  183.22 -
   184.1 --- a/linux64-squashfs/receipt	Sat Dec 19 21:50:31 2015 +0100
   184.2 +++ b/linux64-squashfs/receipt	Sun Dec 20 15:13:45 2015 +0100
   184.3 @@ -33,14 +33,13 @@
   184.4  # Post install/remove commands for Tazpkg.
   184.5  post_install()
   184.6  {
   184.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   184.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   184.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  184.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  184.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  184.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  184.13  }
  184.14  
  184.15  post_remove()
  184.16  {
  184.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  184.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  184.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  184.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  184.21  }
  184.22 -
   185.1 --- a/linux64-usbip/receipt	Sat Dec 19 21:50:31 2015 +0100
   185.2 +++ b/linux64-usbip/receipt	Sun Dec 20 15:13:45 2015 +0100
   185.3 @@ -31,14 +31,13 @@
   185.4  # Post install/remove commands for Tazpkg.
   185.5  post_install()
   185.6  {
   185.7 -	grep -qs ^${PACKAGE#*-}$ $1/etc/filesystems || \
   185.8 -		echo "${PACKAGE#*-}" >> $1/etc/filesystems
   185.9 -	chroot "$root/" depmod -a $VERSION-slitaz64
  185.10 +	grep -qs ^${PACKAGE#*-}$ "$1/etc/filesystems" || \
  185.11 +		echo "${PACKAGE#*-}" >> "$1/etc/filesystems"
  185.12 +	chroot "$1/" depmod -a $VERSION-slitaz64
  185.13  }
  185.14  
  185.15  post_remove()
  185.16  {
  185.17 -	sed -i "/^${PACKAGE#*-}\$/d" $1/etc/filesystems
  185.18 -	chroot "$root/" depmod -a $VERSION-slitaz64
  185.19 +	sed -i "/^${PACKAGE#*-}\$/d" "$1/etc/filesystems"
  185.20 +	chroot "$1/" depmod -a $VERSION-slitaz64
  185.21  }
  185.22 -
   186.1 --- a/linux64/receipt	Sat Dec 19 21:50:31 2015 +0100
   186.2 +++ b/linux64/receipt	Sun Dec 20 15:13:45 2015 +0100
   186.3 @@ -65,8 +65,8 @@
   186.4      	root_dev=$(cat $root/boot/grub/menu.lst | grep root= | sed 's/.*root=\([^ ]*\).*/\1/' | head -n 1)
   186.5  		grub_dev=$(cat $root/boot/grub/menu.lst | grep "root (" | head -n 1)
   186.6  		# Add new kernel entry in case of upgrade for installed system.
   186.7 -		if ! grep -q $PACKAGE-$VERSION-slitaz64 $1/boot/grub/menu.lst; then
   186.8 -    		cat >> $1/boot/grub/menu.lst << EOT
   186.9 +		if ! grep -q $PACKAGE-$VERSION-slitaz64 "$1/boot/grub/menu.lst"; then
  186.10 +    		cat >> "$1/boot/grub/menu.lst" << EOT
  186.11  
  186.12  title SliTaz GNU/Linux (Kernel $VERSION-slitaz64)
  186.13  $grub_dev
   187.1 --- a/logrotate/receipt	Sat Dec 19 21:50:31 2015 +0100
   187.2 +++ b/logrotate/receipt	Sun Dec 20 15:13:45 2015 +0100
   187.3 @@ -32,19 +32,19 @@
   187.4  
   187.5  post_install()
   187.6  {
   187.7 -	if [ -f $1/var/spool/cron/crontabs/root ]; then
   187.8 +	if [ -f "$1/var/spool/cron/crontabs/root" ]; then
   187.9  		echo "Runing post install command..."
  187.10  		echo -e "#Run log rotation\n25 6 * * * /usr/sbin/logrotate /etc/logrotate.conf " \
  187.11 -	   		>> $1/var/spool/cron/crontabs/root
  187.12 +	   		>> "$1/var/spool/cron/crontabs/root"
  187.13  	fi
  187.14  }
  187.15  
  187.16  
  187.17  post_remove()
  187.18  {
  187.19 -	if [ -f $1/var/spool/cron/crontabs/root ]; then
  187.20 +	if [ -f "$1/var/spool/cron/crontabs/root" ]; then
  187.21  		echo "Runing post install command..."
  187.22 -		sed -i s!.*logrotate.*!!  $1/var/spool/cron/crontabs/root
  187.23 +		sed -i s!.*logrotate.*!!  "$1/var/spool/cron/crontabs/root"
  187.24  	fi
  187.25  }
  187.26  		
   188.1 --- a/lxde/receipt	Sat Dec 19 21:50:31 2015 +0100
   188.2 +++ b/lxde/receipt	Sun Dec 20 15:13:45 2015 +0100
   188.3 @@ -29,12 +29,10 @@
   188.4  # Add WM to SLIM available sessions.
   188.5  post_install()
   188.6  {
   188.7 -	local root
   188.8 -	root=$1
   188.9 -	res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
  188.10 +	res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
  188.11  	if ! echo "$res" | grep -q $PACKAGE; then
  188.12  		echo -n "Adding $PACKAGE to /etc/slim.conf..."
  188.13 -		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" $root/etc/slim.conf
  188.14 +		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" "$1/etc/slim.conf"
  188.15  		status
  188.16  	fi
  188.17  }
  188.18 @@ -42,9 +40,7 @@
  188.19  # Remove WM from SLIM available sessions.
  188.20  post_remove()
  188.21  {
  188.22 -	local root
  188.23 -	root=$1
  188.24  	if grep -q $PACKAGE $root/etc/slim.conf; then
  188.25 -		sed -i s/,$PACKAGE// $root/etc/slim.conf
  188.26 +		sed -i s/,$PACKAGE// "$1/etc/slim.conf"
  188.27  	fi
  188.28  }
   189.1 --- a/lxqt-common/receipt	Sat Dec 19 21:50:31 2015 +0100
   189.2 +++ b/lxqt-common/receipt	Sun Dec 20 15:13:45 2015 +0100
   189.3 @@ -39,11 +39,11 @@
   189.4  
   189.5  post_install()
   189.6  {
   189.7 -        res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
   189.8 +        res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
   189.9          # Adding WM to SLIM available sessions.
  189.10          if ! echo "$res" | grep -q $PACKAGE; then
  189.11                  echo -n "Adding lxqt to /etc/slim.conf..."
  189.12 -                sed -i "s/^sessions.*/sessions            ${res},lxqt/" $1/etc/slim.conf
  189.13 +                sed -i "s/^sessions.*/sessions            ${res},lxqt/" "$1/etc/slim.conf"
  189.14                  status
  189.15          fi
  189.16  }
  189.17 @@ -51,8 +51,8 @@
  189.18  post_remove()
  189.19  {
  189.20          # Remove WM from SLIM available sessions.
  189.21 -        if grep -q lxqt $1/etc/slim.conf; then
  189.22 -                sed -i s/,lxqt// $1/etc/slim.conf
  189.23 +        if grep -q lxqt "$1/etc/slim.conf"; then
  189.24 +                sed -i s/,lxqt// "$1/etc/slim.conf"
  189.25          fi
  189.26  }
  189.27  
   190.1 --- a/lxqt/receipt	Sat Dec 19 21:50:31 2015 +0100
   190.2 +++ b/lxqt/receipt	Sun Dec 20 15:13:45 2015 +0100
   190.3 @@ -25,25 +25,25 @@
   190.4  
   190.5  post_install()
   190.6  {
   190.7 -	for i in $(ls -d $1/home/* 2> /dev/null);
   190.8 -	do [ -d $i ] && \
   190.9 -	sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"startlxqt"|' -i \
  190.10 -	$i/.config/slitaz/applications.conf \
  190.11 -	$1/etc/slitaz/applications.conf
  190.12 +	for i in $(ls -d "$1"/home/* 2> /dev/null);
  190.13 +	do	[ -d "$i" ] && \
  190.14 +		sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"startlxqt"|' -i \
  190.15 +		"$i/.config/slitaz/applications.conf" \
  190.16 +		"$1/etc/slitaz/applications.conf"
  190.17  	done
  190.18  	
  190.19  	for a in lxpanel pcmanfm tazpkg-notify xcompmgr; do
  190.20 -	grep -q LXQt $1/etc/xdg/autostart/$a.desktop || \
  190.21 -	sed '/NotShowIn=/s|;$|&LXQt;|' -i $1/etc/xdg/autostart/$a.desktop
  190.22 +		grep -q LXQt "$1/etc/xdg/autostart/$a.desktop" || \
  190.23 +		sed '/NotShowIn=/s|;$|&LXQt;|' -i "$1/etc/xdg/autostart/$a.desktop"
  190.24  	done
  190.25  }
  190.26  
  190.27  post_remove()
  190.28  {
  190.29 -	for i in $(ls -d $1/home/* 2> /dev/null);
  190.30 -	do [ -d $i ] && \
  190.31 -	sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \
  190.32 -	$i/.config/slitaz/applications.conf \
  190.33 -	$1/etc/slitaz/applications.conf
  190.34 +	for i in $(ls -d "$1"/home/* 2> /dev/null);
  190.35 +	do [ -d "$i" ] && \
  190.36 +		sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \
  190.37 +		"$i/.config/slitaz/applications.conf" \
  190.38 +		"$1/etc/slitaz/applications.conf"
  190.39  	done
  190.40  }
   191.1 --- a/lzma/receipt	Sat Dec 19 21:50:31 2015 +0100
   191.2 +++ b/lzma/receipt	Sun Dec 20 15:13:45 2015 +0100
   191.3 @@ -55,17 +55,15 @@
   191.4  #
   191.5  pre_install()
   191.6  {
   191.7 -	local root
   191.8 -	root=$1
   191.9  	echo "Processing pre-install commands..."
  191.10  	echo -n "Removing all Busybox replaced utils... "
  191.11 -	rm -f $root/usr/bin/unlzma
  191.12 -	rm -f $root/usr/bin/lzcat
  191.13 +	rm -f "$1/usr/bin/unlzma"
  191.14 +	rm -f "$1/usr/bin/lzcat"
  191.15  	status
  191.16  }
  191.17  
  191.18  post_remove()
  191.19  {
  191.20 -	ln -s /bin/busybox $1/usr/bin/unlzma
  191.21 -	ln -s /bin/busybox $1/usr/bin/lzcat
  191.22 +	ln -s /bin/busybox "$1/usr/bin/unlzma"
  191.23 +	ln -s /bin/busybox "$1/usr/bin/lzcat"
  191.24  }
   192.1 --- a/marco/receipt	Sat Dec 19 21:50:31 2015 +0100
   192.2 +++ b/marco/receipt	Sun Dec 20 15:13:45 2015 +0100
   192.3 @@ -44,11 +44,11 @@
   192.4  post_install()
   192.5  {
   192.6  	echo "Processing post-install commands..."
   192.7 -	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
   192.8 +	chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
   192.9  }
  192.10  
  192.11  post_remove()
  192.12  {
  192.13  	echo "Processing post-remove commands..."
  192.14 -	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
  192.15 +	chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
  192.16  }
   193.1 --- a/mariadb/receipt	Sat Dec 19 21:50:31 2015 +0100
   193.2 +++ b/mariadb/receipt	Sun Dec 20 15:13:45 2015 +0100
   193.3 @@ -83,10 +83,10 @@
   193.4  	user=mysql
   193.5  	group=mysql
   193.6  	
   193.7 -	if ! grep -q $user $1/etc/passwd; then
   193.8 +	if ! grep -q $user "$1/etc/passwd"; then
   193.9  		echo -n "Adding user/group $user..."
  193.10 -		chroot $1/ addgroup -S $group
  193.11 -		chroot $1/ adduser -s /bin/false -S -D -H -G $group $user
  193.12 +		chroot "$1/" addgroup -S $group
  193.13 +		chroot "$1/" adduser -s /bin/false -S -D -H -G $group $user
  193.14  		status
  193.15  	fi
  193.16  
  193.17 @@ -104,9 +104,9 @@
  193.18  pre_install()
  193.19  {
  193.20  	# Cleanup old files
  193.21 -	rm -f $1/usr/libexec/mysql*
  193.22 +	rm -f "$1/usr/libexec/mysql"*
  193.23  	# Mv config
  193.24 -	[ -f $1/etc/my.cnf ] && mv -f $1/etc/my.cnf $1/etc/mysql/my.cnf
  193.25 +	[ -f "$1/etc/my.cnf" ] && mv -f "$1/etc/my.cnf" "$1/etc/mysql/my.cnf"
  193.26  }
  193.27  
  193.28  post_remove()
   194.1 --- a/mate-control-center/receipt	Sat Dec 19 21:50:31 2015 +0100
   194.2 +++ b/mate-control-center/receipt	Sun Dec 20 15:13:45 2015 +0100
   194.3 @@ -47,16 +47,16 @@
   194.4  post_install()
   194.5  {
   194.6  	echo "Processing post-install commands..."
   194.7 -	[ -x $1/usr/bin/gtk-update-icon-cache ] &&
   194.8 +	[ -x "$1/usr/bin/gtk-update-icon-cache" ] &&
   194.9  	  chroot "$1/" gtk-update-icon-cache -f -t /usr/share/icons/hicolor
  194.10 -	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
  194.11 -	chroot $1/ /usr/bin/update-mime-database /usr/share/mime
  194.12 +	chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
  194.13 +	chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
  194.14  }
  194.15  
  194.16  post_remove()
  194.17  {
  194.18  	echo "Processing post-remove commands..."
  194.19 -	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
  194.20 -	chroot $1/ /usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor
  194.21 -	chroot $1/ /usr/bin/update-mime-database /usr/share/mime
  194.22 +	chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
  194.23 +	chroot "$1/" /usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor
  194.24 +	chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
  194.25  }
   195.1 --- a/mate-panel/receipt	Sat Dec 19 21:50:31 2015 +0100
   195.2 +++ b/mate-panel/receipt	Sun Dec 20 15:13:45 2015 +0100
   195.3 @@ -49,11 +49,11 @@
   195.4  post_install()
   195.5  {
   195.6  	echo "Processing post-install commands..."
   195.7 -	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
   195.8 +	chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
   195.9  }
  195.10  
  195.11  post_remove()
  195.12  {
  195.13  	echo "Processing post-remove commands..."
  195.14 -	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
  195.15 +	chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
  195.16  }
   196.1 --- a/mate-session-manager/receipt	Sat Dec 19 21:50:31 2015 +0100
   196.2 +++ b/mate-session-manager/receipt	Sun Dec 20 15:13:45 2015 +0100
   196.3 @@ -44,11 +44,11 @@
   196.4  post_install()
   196.5  {
   196.6  	echo "Processing post-install commands..."
   196.7 -	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
   196.8 +	chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
   196.9  }
  196.10  
  196.11  post_remove()
  196.12  {
  196.13  	echo "Processing post-remove commands..."
  196.14 -	chroot $1/ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
  196.15 +	chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
  196.16  }
   197.1 --- a/mgetty/receipt	Sat Dec 19 21:50:31 2015 +0100
   197.2 +++ b/mgetty/receipt	Sun Dec 20 15:13:45 2015 +0100
   197.3 @@ -51,15 +51,15 @@
   197.4  post_install()
   197.5  {
   197.6          # adduser fax if needed
   197.7 -	if ! grep -q fax $1/etc/passwd; then
   197.8 +	if ! grep -q fax "$1/etc/passwd"; then
   197.9  		echo -n "Adding user fax..."
  197.10 -		chroot $1/ adduser fax -D -H -S
  197.11 +		chroot "$1/" adduser fax -D -H -S
  197.12  		status
  197.13  	fi
  197.14 -	chroot $1/ chown fax /var/spool/fax
  197.15 +	chroot "$1/" chown fax /var/spool/fax
  197.16  }
  197.17  
  197.18  post_remove()
  197.19  {
  197.20 -	chroot $1/ deluser fax
  197.21 +	chroot "$1/" deluser fax
  197.22  }
   198.1 --- a/mingw32-gcc-c/receipt	Sat Dec 19 21:50:31 2015 +0100
   198.2 +++ b/mingw32-gcc-c/receipt	Sun Dec 20 15:13:45 2015 +0100
   198.3 @@ -66,9 +66,7 @@
   198.4  post_install()
   198.5  {
   198.6  	# Archives get stripped during packaging; need to run ranlib
   198.7 -	local root
   198.8 -	root=$1
   198.9 -	find $root/usr/lib/gcc/$MINGW32_ID/ -name *.a -exec $MINGW32_ID-ranlib {} \;
  198.10 +	find "$1/usr/lib/gcc/$MINGW32_ID/" -name *.a -exec $MINGW32_ID-ranlib {} \;
  198.11  }
  198.12  
  198.13  # Rules to clean the package
   199.1 --- a/mingw32-gcc/receipt	Sat Dec 19 21:50:31 2015 +0100
   199.2 +++ b/mingw32-gcc/receipt	Sun Dec 20 15:13:45 2015 +0100
   199.3 @@ -84,10 +84,8 @@
   199.4  post_install()
   199.5  {
   199.6  	# Archives get stripped during packaging; need to run ranlib
   199.7 -	local root
   199.8 -	root=$1
   199.9 -	find $root/usr/lib/gcc/$MINGW32_ID/ -name *.a -exec $MINGW32_ID-ranlib {} \;
  199.10 -	find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \;
  199.11 +	find "$1/usr/lib/gcc/$MINGW32_ID/" -name *.a -exec $MINGW32_ID-ranlib {} \;
  199.12 +	find "$1/usr/$MINGW32_ID/lib/" -name *.a -exec $MINGW32_ID-ranlib {} \;
  199.13  }
  199.14  
  199.15  # Rules to clean the package
   200.1 --- a/mingw32-runtime/receipt	Sat Dec 19 21:50:31 2015 +0100
   200.2 +++ b/mingw32-runtime/receipt	Sun Dec 20 15:13:45 2015 +0100
   200.3 @@ -54,9 +54,7 @@
   200.4  post_install()
   200.5  {
   200.6  	# Archives get stripped during packaging; need to run ranlib
   200.7 -	local root
   200.8 -	root=$1
   200.9 -	find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \;
  200.10 +	find "$1/usr/$MINGW32_ID/lib/" -name *.a -exec $MINGW32_ID-ranlib {} \;
  200.11  }
  200.12  
  200.13  # Rules to clean the package
   201.1 --- a/mingw32-w32api/receipt	Sat Dec 19 21:50:31 2015 +0100
   201.2 +++ b/mingw32-w32api/receipt	Sun Dec 20 15:13:45 2015 +0100
   201.3 @@ -54,9 +54,7 @@
   201.4  post_install()
   201.5  {
   201.6  	# Archives get stripped during packaging; need to run ranlib
   201.7 -	local root
   201.8 -	root=$1
   201.9 -	find $root/usr/$MINGW32_ID/lib/ -name *.a -exec $MINGW32_ID-ranlib {} \;
  201.10 +	find "$1/usr/$MINGW32_ID/lib/" -name *.a -exec $MINGW32_ID-ranlib {} \;
  201.11  }
  201.12  
  201.13  # Rules to clean the package
   202.1 --- a/mist-icon-theme/receipt	Sat Dec 19 21:50:31 2015 +0100
   202.2 +++ b/mist-icon-theme/receipt	Sun Dec 20 15:13:45 2015 +0100
   202.3 @@ -26,10 +26,10 @@
   202.4  
   202.5  post_install()
   202.6  {
   202.7 -	sed '/Inherits=/s|=.*$|=mist|' -i $1/$qtfix
   202.8 +	sed '/Inherits=/s|=.*$|=mist|' -i "$1/$qtfix"
   202.9  }
  202.10  
  202.11  pre_remove()
  202.12  {
  202.13 -	sed '/Inherits=/s|=.*$|=SliTaz|' -i $1/$qtfix
  202.14 +	sed '/Inherits=/s|=.*$|=SliTaz|' -i "$1/$qtfix"
  202.15  }
   203.1 --- a/mk-livestatus/receipt	Sat Dec 19 21:50:31 2015 +0100
   203.2 +++ b/mk-livestatus/receipt	Sun Dec 20 15:13:45 2015 +0100
   203.3 @@ -33,7 +33,7 @@
   203.4  {
   203.5  	echo "Processing post-install commands..."
   203.6  	# Modify nagios config
   203.7 -	cat <<EOT>> $1/etc/nagios/nagios.cfg
   203.8 +	cat <<EOT>> "$1/etc/nagios/nagios.cfg"
   203.9  broker_module=/usr/lib/mk-livestatus/livestatus.o /var/lib/nagios/rw/live
  203.10  event_broker_options=-1
  203.11  EOT
   204.1 --- a/module-init-tools/receipt	Sat Dec 19 21:50:31 2015 +0100
   204.2 +++ b/module-init-tools/receipt	Sun Dec 20 15:13:45 2015 +0100
   204.3 @@ -52,20 +52,20 @@
   204.4  # Remove Busybox symlink before installing
   204.5  pre_install()
   204.6  {
   204.7 -	rm -f $1/sbin/insmod
   204.8 -	rm -f $1/sbin/modinfo
   204.9 -	rm -f $1/sbin/modprobe
  204.10 -	rm -f $1/sbin/rmmod
  204.11 +	rm -f "$1/sbin/insmod"
  204.12 +	rm -f "$1/sbin/modinfo"
  204.13 +	rm -f "$1/sbin/modprobe"
  204.14 +	rm -f "$1/sbin/rmmod"
  204.15  	# BusyBox puts lsmod in /sbin, not /bin
  204.16 -	rm -f $1/sbin/lsmod
  204.17 +	rm -f "$1/sbin/lsmod"
  204.18  }
  204.19  
  204.20  post_remove()
  204.21  {
  204.22 -	ln -s /bin/busybox $1/sbin/insmod
  204.23 -	ln -s /bin/busybox $1/sbin/modinfo
  204.24 -	ln -s /bin/busybox $1/sbin/modprobe
  204.25 -	ln -s /bin/busybox $1/sbin/rmmod
  204.26 +	ln -s /bin/busybox "$1/sbin/insmod"
  204.27 +	ln -s /bin/busybox "$1/sbin/modinfo"
  204.28 +	ln -s /bin/busybox "$1/sbin/modprobe"
  204.29 +	ln -s /bin/busybox "$1/sbin/rmmod"
  204.30  	# BusyBox puts lsmod in /sbin, not /bin
  204.31 -	ln -s /bin/busybox $1/sbin/lsmod
  204.32 +	ln -s /bin/busybox "$1/sbin/lsmod"
  204.33  }
   205.1 --- a/monitorix/receipt	Sat Dec 19 21:50:31 2015 +0100
   205.2 +++ b/monitorix/receipt	Sun Dec 20 15:13:45 2015 +0100
   205.3 @@ -38,9 +38,9 @@
   205.4  post_install()
   205.5  {
   205.6  	# Configure lighttpd server
   205.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
   205.8 -		if ! grep -q /usr/share/monitorix/ $1/etc/lighttpd/lighttpd.conf; then
   205.9 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/monitorix/" => "/usr/share/monitorix/",\n    "/monitorix-cgi/" => "/usr/share/monitorix/cgi/",|g' -i $1/etc/lighttpd/lighttpd.conf
  205.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  205.11 +		if ! grep -q /usr/share/monitorix/ "$1/etc/lighttpd/lighttpd.conf"; then
  205.12 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/monitorix/" => "/usr/share/monitorix/",\n    "/monitorix-cgi/" => "/usr/share/monitorix/cgi/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  205.13  			if [ -z "$1" ]; then
  205.14  				# Start Web server.
  205.15  				/etc/init.d/lighttpd stop
  205.16 @@ -49,9 +49,9 @@
  205.17  		fi
  205.18  	fi
  205.19  	# Configure apache server
  205.20 -	if [ -f $1/etc/apache/httpd.conf ]; then
  205.21 -		if [ ! -f $1/etc/apache/conf.d/monitorix ]; then
  205.22 -			cat > $1/etc/apache/conf.d/monitorix <<EOT
  205.23 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  205.24 +		if [ ! -f "$1/etc/apache/conf.d/monitorix" ]; then
  205.25 +			cat > "$1/etc/apache/conf.d/monitorix" <<EOT
  205.26  Alias /monitorix /usr/share/monitorix
  205.27  ScriptAlias /monitorix-cgi /usr/share/monitorix/cgi
  205.28  
   206.1 --- a/mosh/receipt	Sat Dec 19 21:50:31 2015 +0100
   206.2 +++ b/mosh/receipt	Sun Dec 20 15:13:45 2015 +0100
   206.3 @@ -39,7 +39,7 @@
   206.4  
   206.5  post_install()
   206.6  {
   206.7 -	if ! grep ^DROPBEAR_OPTIONS $1/etc/daemons.conf | grep -q -- -a; then
   206.8 +	if ! grep ^DROPBEAR_OPTIONS "$1/etc/daemons.conf" | grep -q -- -a; then
   206.9  		cat <<EOT
  206.10  The mosh server needs dropbear to allow connections to forwarded ports
  206.11  from any host. Nothing to do if you are using OpenSSH or you plan
  206.12 @@ -48,7 +48,7 @@
  206.13  		echo -n "Add -a for DROPBEAR_OPTIONS in /etc/daemons.conf now ?"
  206.14  		read -t 30 answer
  206.15  		[ "$answer" == "y" ] && 
  206.16 -		sed -i 's/^DROPBEAR_OPTIONS="/&-a /' $1/etc/daemons.conf &&
  206.17 +		sed -i 's/^DROPBEAR_OPTIONS="/&-a /' "$1/etc/daemons.conf" &&
  206.18  		[ -z "$1" ] && /etc/init.d/dropbear restart
  206.19  	fi
  206.20  	true
   207.1 --- a/mplayerplug-in/receipt	Sat Dec 19 21:50:31 2015 +0100
   207.2 +++ b/mplayerplug-in/receipt	Sun Dec 20 15:13:45 2015 +0100
   207.3 @@ -17,8 +17,8 @@
   207.4  
   207.5  get_firefox_version()
   207.6  {
   207.7 -	FIREFOX_VER=`cat $1/var/lib/tazpkg/installed/firefox/receipt | \
   207.8 -			grep VERSION= | cut -d \" -f 2`
   207.9 +	FIREFOX_VER=$(cat "$1/var/lib/tazpkg/installed/firefox/receipt" | \
  207.10 +			grep VERSION= | cut -d \" -f 2)
  207.11  }
  207.12  
  207.13  # Rules to configure and make the package.
  207.14 @@ -71,11 +71,9 @@
  207.15  post_install()
  207.16  {
  207.17  	echo -n "Processing post install commands..."
  207.18 -	local root
  207.19 -	root=$1
  207.20 -	get_firefox_version $1
  207.21 -	for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
  207.22 -		ln -s $i $root/usr/lib/firefox-$FIREFOX_VER/plugins
  207.23 +	get_firefox_version "$1"
  207.24 +	for i in "$1"/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
  207.25 +		ln -s "$i" "$2/usr/lib/firefox-$FIREFOX_VER/plugins"
  207.26  	done 
  207.27  	status
  207.28  }
  207.29 @@ -86,4 +84,3 @@
  207.30  	rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
  207.31  	status
  207.32  }
  207.33 -
   208.1 --- a/muninlite/receipt	Sat Dec 19 21:50:31 2015 +0100
   208.2 +++ b/muninlite/receipt	Sun Dec 20 15:13:45 2015 +0100
   208.3 @@ -29,9 +29,9 @@
   208.4  # Pre and post install commands for Tazpkg.
   208.5  post_install()
   208.6  {
   208.7 -	grep -q 4949 $1/etc/services ||
   208.8 -	echo "munin		4949/tcp" >> $1/etc/services
   208.9 -	grep -q ^munin $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
  208.10 +	grep -q 4949 "$1/etc/services" ||
  208.11 +	echo "munin		4949/tcp" >> "$1/etc/services"
  208.12 +	grep -q ^munin "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
  208.13  munin   stream  tcp     nowait  root    /usr/bin/munin-node
  208.14  EOT
  208.15  	echo "/etc/inetd.conf is up to date"
   209.1 --- a/mutt/receipt	Sat Dec 19 21:50:31 2015 +0100
   209.2 +++ b/mutt/receipt	Sun Dec 20 15:13:45 2015 +0100
   209.3 @@ -47,10 +47,10 @@
   209.4  
   209.5  post_install()
   209.6  {
   209.7 -	chroot $1/ addgroup mail
   209.8 +	chroot "$1/" addgroup mail
   209.9  }
  209.10  
  209.11  post_remove()
  209.12  {
  209.13 -	chroot $1/ delgroup mail
  209.14 +	chroot "$1/" delgroup mail
  209.15  }
   210.1 --- a/mysql/receipt	Sat Dec 19 21:50:31 2015 +0100
   210.2 +++ b/mysql/receipt	Sun Dec 20 15:13:45 2015 +0100
   210.3 @@ -101,20 +101,20 @@
   210.4  	user=mysql
   210.5  	group=mysql
   210.6  	
   210.7 -	if ! grep -q $user $1/etc/passwd; then
   210.8 +	if ! grep -q $user "$1/etc/passwd"; then
   210.9  		echo -n "Adding user/group $user..."
  210.10 -		chroot $1/ addgroup -S $group
  210.11 -		chroot $1/ adduser -s /bin/false -S -D -H -G $group $user
  210.12 +		chroot "$1/" addgroup -S $group
  210.13 +		chroot "$1/" adduser -s /bin/false -S -D -H -G $group $user
  210.14  		status
  210.15  	fi
  210.16  	# adduser mysql if needed
  210.17 -	if ! grep -q ${user} $1/etc/passwd; then
  210.18 +	if ! grep -q ${user} "$1/etc/passwd"; then
  210.19  		echo -n "Adding user MySQL..."
  210.20 -		chroot $1/ /bin/adduser -s /bin/false -h /dev/null \
  210.21 +		chroot "$1/" /bin/adduser -s /bin/false -h /dev/null \
  210.22  			-g "MySQL Daemon user" -u 27 -H -D -S -G ${group} ${user}
  210.23  		status
  210.24  	fi
  210.25 -	#chroot $1/ /bin/chown ${user}.${group} $(cat $1/$INSTALLED/$PACKAGE/files.list)
  210.26 +	#chroot "$1/" /bin/chown ${user}.${group} $(cat $1/$INSTALLED/$PACKAGE/files.list)
  210.27  	chroot "$1/" /bin/chown -R ${user}.${group} /var/lib/mysql
  210.28  	chroot "$1/" mysql_install_db --user=${user} --basedir=/usr
  210.29  	cat <<EOF
  210.30 @@ -131,9 +131,9 @@
  210.31  pre_install()
  210.32  {
  210.33  	# Cleanup old files
  210.34 -	rm -f $1/usr/libexec/mysql*
  210.35 +	rm -f "$1/usr/libexec/mysql"*
  210.36  	# Mv config
  210.37 -	[ -f $1/etc/my.cnf ] && mv -f $1/etc/my.cnf $1/etc/mysql/my.cnf
  210.38 +	[ -f "$1/etc/my.cnf" ] && mv -f "$1/etc/my.cnf" "$1/etc/mysql/my.cnf"
  210.39  }
  210.40  
  210.41  post_remove()
   211.1 --- a/nagios-nrpe/receipt	Sat Dec 19 21:50:31 2015 +0100
   211.2 +++ b/nagios-nrpe/receipt	Sun Dec 20 15:13:45 2015 +0100
   211.3 @@ -59,21 +59,21 @@
   211.4  
   211.5  post_install()
   211.6  {
   211.7 -	if ! grep -q nagios $1/etc/passwd; then
   211.8 +	if ! grep -q nagios "$1/etc/passwd"; then
   211.9  		echo -n "Adding user nagios..."
  211.10 -		chroot $1/ adduser -S -D -H nagios
  211.11 +		chroot "$1/" adduser -S -D -H nagios
  211.12  		status
  211.13  	fi
  211.14  	
  211.15  	# Set perms for files and directories
  211.16 -	chroot $1/ chown -R nagios.nagios /usr/lib/nagios/plugins
  211.17 -	chroot $1/ chown  nagios.nagios /etc/nagios/* 
  211.18 +	chroot "$1/" chown -R nagios.nagios /usr/lib/nagios/plugins
  211.19 +	chroot "$1/" chown  nagios.nagios /etc/nagios/* 
  211.20  	
  211.21  	# Add check_nrpe in nagios config file
  211.22 -	echo "cfg_file=/etc/nagios/objects/nrpe.cfg" >> $1/etc/nagios/nagios.cfg
  211.23 +	echo "cfg_file=/etc/nagios/objects/nrpe.cfg" >> "$1/etc/nagios/nagios.cfg"
  211.24  }
  211.25  
  211.26  post_remove()
  211.27  {
  211.28 -	[ -f $1/etc/nagios/nagios.cfg ] && sed -i 's/.*nrpe.cfg//' $1/etc/nagios/nagios.cfg
  211.29 +	[ -f "$1/etc/nagios/nagios.cfg" ] && sed -i 's/.*nrpe.cfg//' "$1/etc/nagios/nagios.cfg"
  211.30  }
   212.1 --- a/nagios-plugins/receipt	Sat Dec 19 21:50:31 2015 +0100
   212.2 +++ b/nagios-plugins/receipt	Sun Dec 20 15:13:45 2015 +0100
   212.3 @@ -48,18 +48,18 @@
   212.4  
   212.5  post_install()
   212.6  {
   212.7 -	if ! grep -q nagios $1/etc/passwd; then
   212.8 +	if ! grep -q nagios "$1/etc/passwd"; then
   212.9  		echo -n "Adding user/group nagios..."
  212.10 -		chroot $1/ addgroup -S nagios
  212.11 -		chroot $1/ adduser -S -D -H -G nagios nagios
  212.12 +		chroot "$1/" addgroup -S nagios
  212.13 +		chroot "$1/" adduser -S -D -H -G nagios nagios
  212.14  		status
  212.15  	fi
  212.16  	
  212.17 -	if [ -f $1/etc/nagios/resource.cfg ]; then
  212.18 +	if [ -f "$1/etc/nagios/resource.cfg" ]; then
  212.19  		sed -i 's|/usr/lib/nagios|/usr/lib/nagios/plugins|' \
  212.20 -		   $1/etc/nagios/resource.cfg
  212.21 +		   "$1/etc/nagios/resource.cfg"
  212.22  	fi
  212.23  	# Set perms for files and directories
  212.24 -	chroot $1/ chown -R nagios.nagios /usr/lib/nagios/plugins 
  212.25 -	chroot $1/ chown -R nagios.nagios /etc/nagios/objects
  212.26 +	chroot "$1/" chown -R nagios.nagios /usr/lib/nagios/plugins 
  212.27 +	chroot "$1/" chown -R nagios.nagios /etc/nagios/objects
  212.28  }
   213.1 --- a/nagios/receipt	Sat Dec 19 21:50:31 2015 +0100
   213.2 +++ b/nagios/receipt	Sun Dec 20 15:13:45 2015 +0100
   213.3 @@ -84,26 +84,26 @@
   213.4  
   213.5  post_install()
   213.6  {
   213.7 -	if ! grep -q nagios $1/etc/passwd; then
   213.8 +	if ! grep -q nagios "$1/etc/passwd"; then
   213.9  		echo -n "Adding user/group nagios..."
  213.10 -		chroot $1/ addgroup -S nagios
  213.11 -		chroot $1/ adduser -S -D -H -G nagios nagios
  213.12 +		chroot "$1/" addgroup -S nagios
  213.13 +		chroot "$1/" adduser -S -D -H -G nagios nagios
  213.14  		status
  213.15  	fi
  213.16  	
  213.17  	# Fix perms for files and directories
  213.18 -	chroot $1/ chown -R nagios.nagios /var/log/nagios \
  213.19 +	chroot "$1/" chown -R nagios.nagios /var/log/nagios \
  213.20  	  /var/spool/nagios \
  213.21  	  /var/lib/nagios \
  213.22  	  /usr/share/nagios \
  213.23  	  /etc/nagios/*
  213.24  	  
  213.25  	
  213.26 -	chmod 2775 $1/var/lib/nagios/rw
  213.27 -	chroot $1/ addgroup www nagios
  213.28 +	chmod 2775 "$1/var/lib/nagios/rw"
  213.29 +	chroot "$1/" addgroup www nagios
  213.30  	
  213.31  	# Start Nagios daemon if we are  on running system
  213.32 -	[ -z $1 ] && /etc/init.d/nagios start
  213.33 +	[ "$1" ] || /etc/init.d/nagios start
  213.34  	
  213.35  	# post_install messges
  213.36  	echo -e "\nTo starts $PACKAGE server you can run :\n"
  213.37 @@ -114,5 +114,5 @@
  213.38  
  213.39  pre_remove()
  213.40  {
  213.41 -	[ -z $1 ] && /etc/init.d/nagios stop
  213.42 +	[ "$1" ] || /etc/init.d/nagios stop
  213.43  }
   214.1 --- a/nagisk/receipt	Sat Dec 19 21:50:31 2015 +0100
   214.2 +++ b/nagisk/receipt	Sun Dec 20 15:13:45 2015 +0100
   214.3 @@ -24,8 +24,8 @@
   214.4  # Pre and post install commands for Tazpkg.
   214.5  post_install()
   214.6  {
   214.7 -	grep -qs check_asterisk_version $1/etc/nagios/nrpe.cfg ||
   214.8 -	cat >> $1/etc/nagios/nrpe.cfg <<EOT
   214.9 +	grep -qs check_asterisk_version "$1/etc/nagios/nrpe.cfg" ||
  214.10 +	cat >> "$1/etc/nagios/nrpe.cfg" <<EOT
  214.11  command[check_asterisk_version]=/usr/share/nagios/libexec/nagisk.pl -c version
  214.12  command[check_asterisk_peers]=/usr/share/nagios/libexec/nagisk.pl -c peers -w \$ARG1\$ -x \$ARG2\$
  214.13  command[check_asterisk_peer]=/usr/share/nagios/libexec/nagisk.pl -c peer -p \$ARG1\$ -w \$ARG2\$ -x \$ARG3\$
  214.14 @@ -40,9 +40,9 @@
  214.15  #command[check_asterisk_pri_spans]=/usr/share/nagios/libexec/nagisk.pl -c pri_spans
  214.16  command[check_asterisk_registry]=/usr/share/nagios/libexec/nagisk.pl -c registry
  214.17  EOT
  214.18 -	grep '^nagios ALL=NOPASSWD' $1/etc/sudoers | grep -q asterisk ||
  214.19 -	cat >> $1/etc/sudoers <<EOT
  214.20 +	grep '^nagios ALL=NOPASSWD' "$1/etc/sudoers" | grep -q asterisk ||
  214.21 +	cat >> "$1/etc/sudoers" <<EOT
  214.22  nagios ALL=NOPASSWD: /usr/sbin/asterisk
  214.23  EOT
  214.24 -	chroot $1/ chown nagios:nagios /usr/share/nagios/libexec/nagisk.pl
  214.25 +	chroot "$1/" chown nagios:nagios /usr/share/nagios/libexec/nagisk.pl
  214.26  }
   215.1 --- a/nail/receipt	Sat Dec 19 21:50:31 2015 +0100
   215.2 +++ b/nail/receipt	Sun Dec 20 15:13:45 2015 +0100
   215.3 @@ -46,9 +46,9 @@
   215.4  # Check mailx
   215.5  post_install()
   215.6  {
   215.7 -	. $1/etc/init.d/rc.functions
   215.8 +	. "$1/etc/init.d/rc.functions"
   215.9  
  215.10 -	if [ -e $1/usr/bin/mailx ]; then
  215.11 +	if [ -e "$1/usr/bin/mailx" ]; then
  215.12  		echo ""
  215.13  		echo "/usr/bin/mailx exists"
  215.14  		echo -n "Do you want /usr/bin/nail for /usr/bin/mailx (y/N) ? : "
  215.15 @@ -56,8 +56,8 @@
  215.16  		if [ "$anser" == "y" ]; then
  215.17  			echo ""
  215.18  			echo -n "linking /usr/bin/mailx to /usr/bin/nail"
  215.19 -			rm $1/usr/bin/mailx
  215.20 -			ln -s /usr/bin/nail $1/usr/bin/mailx
  215.21 +			rm "$1/usr/bin/mailx"
  215.22 +			ln -s /usr/bin/nail "$1/usr/bin/mailx"
  215.23  			status
  215.24  		else
  215.25  			echo ""
  215.26 @@ -66,7 +66,7 @@
  215.27  		fi
  215.28  	else
  215.29  		echo -n "linking /usr/bin/mailx to /usr/bin/nail"
  215.30 -		ln -s /usr/bin/nail $1/usr/bin/mailx
  215.31 +		ln -s /usr/bin/nail "$1/usr/bin/mailx"
  215.32  		status
  215.33  	fi
  215.34  }
   216.1 --- a/nareto/receipt	Sat Dec 19 21:50:31 2015 +0100
   216.2 +++ b/nareto/receipt	Sun Dec 20 15:13:45 2015 +0100
   216.3 @@ -86,12 +86,12 @@
   216.4  
   216.5  post_install()
   216.6  {
   216.7 -	[ -s $1/usr/share/nagios/.htaccess ] &&
   216.8 -	cp $1/usr/share/nagios/.htaccess $1/usr/share/nareto/
   216.9 +	[ -s "$1/usr/share/nagios/.htaccess" ] &&
  216.10 +	cp "$1/usr/share/nagios/.htaccess" "$1/usr/share/nareto/"
  216.11  	# Configure lighttpd server
  216.12 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
  216.13 -		if ! grep -q /usr/share/nareto/ $1/etc/lighttpd/lighttpd.conf; then
  216.14 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/nareto/" => "/usr/share/nareto",|g' -i $1/etc/lighttpd/lighttpd.conf
  216.15 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  216.16 +		if ! grep -q /usr/share/nareto/ "$1/etc/lighttpd/lighttpd.conf"; then
  216.17 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/nareto/" => "/usr/share/nareto",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  216.18  			if [ -z "$1" ]; then
  216.19  				# Start Web server.
  216.20  				/etc/init.d/lighttpd stop
  216.21 @@ -101,10 +101,10 @@
  216.22  	fi
  216.23  	
  216.24  	# Configure apache server
  216.25 -	if [ -f $1/etc/apache/httpd.conf ]; then
  216.26 -		sed -i 's/lighttpd/apache/' $1/etc/rcS.conf
  216.27 -		if [ ! -f $1/etc/apache/conf.d/nareto ]; then
  216.28 -			cat > $1/etc/apache/conf.d/nareto <<EOT
  216.29 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  216.30 +		sed -i 's/lighttpd/apache/' "$1/etc/rcS.conf"
  216.31 +		if [ ! -f "$1/etc/apache/conf.d/nareto" ]; then
  216.32 +			cat > "$1/etc/apache/conf.d/nareto" <<EOT
  216.33  Alias /nareto/ /usr/share/nareto/
  216.34  <Directory "/usr/share/nareto/">
  216.35  Options None
   217.1 --- a/ncmpcpp/receipt	Sat Dec 19 21:50:31 2015 +0100
   217.2 +++ b/ncmpcpp/receipt	Sun Dec 20 15:13:45 2015 +0100
   217.3 @@ -40,13 +40,13 @@
   217.4  
   217.5  post_install()
   217.6  {
   217.7 -	for i in $(ls $1/home 2> /dev/null); do
   217.8 -		[ -d $1/home/$i/.ncmpcpp ] && continue
   217.9 +	for i in $(ls "$1/home" 2> /dev/null); do
  217.10 +		[ -d "$1/home/$i/.ncmpcpp" ] && continue
  217.11  		echo -n "Enabling configuration files for $i ..."
  217.12 -		cp -a $1/etc/skel/.ncmpcpp $1/home/$i/
  217.13 -		sed -i 's|#mpd_music_dir = ""|mpd_music_dir = "/home/'$i'/music"|' /home/$i/.ncmpcpp/config
  217.14 +		cp -a "$1/etc/skel/.ncmpcpp" "$1/home/$i/"
  217.15 +		sed -i 's|#mpd_music_dir = ""|mpd_music_dir = "/home/'$i'/music"|' "/home/$i/.ncmpcpp/config"
  217.16  		# Change permissions also
  217.17 -		chroot $1/ chown -R $(stat -c "%u.%g" $1/home/$i) /home/$i/.ncmpcpp
  217.18 +		chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.ncmpcpp"
  217.19  	done
  217.20  	status
  217.21  }
   218.1 --- a/nconf/receipt	Sat Dec 19 21:50:31 2015 +0100
   218.2 +++ b/nconf/receipt	Sun Dec 20 15:13:45 2015 +0100
   218.3 @@ -68,7 +68,7 @@
   218.4  	local sql_script='/var/lib/nconf/INSTALL/create_database.sql'
   218.5  	
   218.6  	# Minimal config for NConf.
   218.7 -	if [ -z $1 ]; then
   218.8 +	if [ -z "$1" ]; then
   218.9  		if ( ! mysqladmin -s ping > /dev/null ); then
  218.10  			echo "Starting MySQL server"
  218.11  			( /etc/init.d/mysql start ; status  ) || exit 
  218.12 @@ -92,7 +92,7 @@
  218.13  
  218.14  post_remove()
  218.15  {
  218.16 -	if [ -z $1 ]; then
  218.17 +	if [ -z "$1" ]; then
  218.18  		local db=nconf
  218.19  		local db_user=nconf
  218.20  		local db_password=nconf
   219.1 --- a/ndoutils/receipt	Sat Dec 19 21:50:31 2015 +0100
   219.2 +++ b/ndoutils/receipt	Sun Dec 20 15:13:45 2015 +0100
   219.3 @@ -72,22 +72,22 @@
   219.4  
   219.5  post_install()
   219.6  {
   219.7 -	if ! grep -q nagios $1/etc/passwd; then
   219.8 +	if ! grep -q nagios "$1/etc/passwd"; then
   219.9  		echo -n "Adding user nagios..."
  219.10 -		chroot $1/ adduser -S -D -H nagios
  219.11 +		chroot "$1/" adduser -S -D -H nagios
  219.12  		status
  219.13  	fi
  219.14  		
  219.15 -	if ! grep -q ndomod.cfg $1/etc/nagios/nagios.cfg; then
  219.16 -		sed -i '/LOG ROTATION METHOD/i\broker_module=/usr/lib/ndoutils/ndomod.o config_file=/etc/nagios/ndomod.cfg' $1/etc/nagios/nagios.cfg
  219.17 -		chroot $1/ chown nagios.nagios $1/etc/nagios/nagios.cfg
  219.18 +	if ! grep -q ndomod.cfg "$1/etc/nagios/nagios.cfg"; then
  219.19 +		sed -i '/LOG ROTATION METHOD/i\broker_module=/usr/lib/ndoutils/ndomod.o config_file=/etc/nagios/ndomod.cfg' "$1/etc/nagios/nagios.cfg"
  219.20 +		chroot "$1/" chown nagios.nagios /etc/nagios/nagios.cfg
  219.21  	fi
  219.22  	
  219.23 -	chroot $1/ chown nagios.nagios $fs/usr/lib/ndoutils/ndomod.o \
  219.24 -	 $fs/etc/nagios/ndo2db.cfg $fs/etc/nagios/ndomod.cfg \
  219.25 -	 $fs/etc/nagios
  219.26 +	chroot "$1/" chown nagios.nagios /usr/lib/ndoutils/ndomod.o \
  219.27 +	 /etc/nagios/ndo2db.cfg /etc/nagios/ndomod.cfg \
  219.28 +	 /etc/nagios
  219.29  
  219.30 -	sed -i "s/nagios/ndo2db nagios/" $1/etc/rcS.conf 
  219.31 +	sed -i "s/nagios/ndo2db nagios/" "$1/etc/rcS.conf"
  219.32  	
  219.33  	if [ -z "$1" ]; then	
  219.34  		[ -f /var/run/mysqld/mysql.pid ] || /etc/init.d/mysql start
  219.35 @@ -107,7 +107,7 @@
  219.36  
  219.37  post_remove()
  219.38  {
  219.39 -		sed -i "s/ndo2db//" $1/etc/rcS.conf 
  219.40 +		sed -i "s/ndo2db//" "$1/etc/rcS.conf"
  219.41  		/etc/init.d/nagios restart
  219.42 -		sed -i 's|broker_module=/usr/lib/ndoutils/ndomod.o config_file=/etc/nagios/ndomod.cfg||' $1/etc/nagios/nagios.cfg
  219.43 +		sed -i 's|broker_module=/usr/lib/ndoutils/ndomod.o config_file=/etc/nagios/ndomod.cfg||' "$1/etc/nagios/nagios.cfg"
  219.44  }
   220.1 --- a/netatalk-pam/receipt	Sat Dec 19 21:50:31 2015 +0100
   220.2 +++ b/netatalk-pam/receipt	Sun Dec 20 15:13:45 2015 +0100
   220.3 @@ -57,10 +57,10 @@
   220.4  # Overlap busybox
   220.5  pre_install()
   220.6  {
   220.7 -	rm -f $1/usr/bin/timeout
   220.8 +	rm -f "$1/usr/bin/timeout"
   220.9  }
  220.10  
  220.11  post_remove()
  220.12  {
  220.13 -	ln -s /bin/busybox /usr/bin/timeout
  220.14 +	ln -s /bin/busybox "$1/usr/bin/timeout"
  220.15  }
   221.1 --- a/nfs-utils/receipt	Sat Dec 19 21:50:31 2015 +0100
   221.2 +++ b/nfs-utils/receipt	Sun Dec 20 15:13:45 2015 +0100
   221.3 @@ -52,9 +52,9 @@
   221.4  
   221.5  post_install()
   221.6  {
   221.7 -	grep ^nfs $1/etc/services ||
   221.8 -	sed -i 's|.*	2401/tcp.*|nfs	2049/tcp\nnfs	2049/udp\n&|' $1/etc/services
   221.9 -	[ -s $1/etc/exports ] || cat >  $1/etc/exports <<EOT
  221.10 +	grep ^nfs "$1/etc/services" ||
  221.11 +	sed -i 's|.*	2401/tcp.*|nfs	2049/tcp\nnfs	2049/udp\n&|' "$1/etc/services"
  221.12 +	[ -s "$1/etc/exports" ] || cat >  "$1/etc/exports" <<EOT
  221.13  #/home	192.168.0.0/255.255.255.0(rw,subtree_check)
  221.14  EOT
  221.15  }
   222.1 --- a/nginx-extras/receipt	Sat Dec 19 21:50:31 2015 +0100
   222.2 +++ b/nginx-extras/receipt	Sun Dec 20 15:13:45 2015 +0100
   222.3 @@ -81,8 +81,8 @@
   222.4          echo "Processing pre-install commands..."
   222.5          [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
   222.6          # Backup config file.
   222.7 -        if [ -d $1/$CONFIG_FILES ]; then
   222.8 -		cp -a $1/$CONFIG_FILES $1/$CONFIG_FILES.bak
   222.9 +        if [ -d "$1/$CONFIG_FILES" ]; then
  222.10 +		cp -a "$1/$CONFIG_FILES" "$1/$CONFIG_FILES.bak"
  222.11          fi
  222.12  }
  222.13  post_install()
  222.14 @@ -90,12 +90,12 @@
  222.15          echo "Processing post-install commands..."
  222.16          mkdir -p /var/spool/nginx
  222.17          # Restore original config.
  222.18 -        if [ -d $1/$CONFIG_FILES.bak ]; then
  222.19 -		rm -rf $1/$CONFIG_FILES
  222.20 -		mv $1/$CONFIG_FILES.bak $1/$CONFIG_FILES
  222.21 +        if [ -d "$1/$CONFIG_FILES.bak" ]; then
  222.22 +		rm -rf "$1/$CONFIG_FILES"
  222.23 +		mv "$1/$CONFIG_FILES.bak" "$1/$CONFIG_FILES"
  222.24          fi
  222.25          # Just in case.
  222.26 -        chown www.www $1/var/log/$PACKAGE
  222.27 +        chown www.www "$1/var/log/$PACKAGE"
  222.28          if [ -z "$1" ]; then
  222.29  		for i in apache lighttpd ; do
  222.30  			[ -f /etc/init.d/$i ] && /etc/init.d/$i stop
   223.1 --- a/nginx/receipt	Sat Dec 19 21:50:31 2015 +0100
   223.2 +++ b/nginx/receipt	Sun Dec 20 15:13:45 2015 +0100
   223.3 @@ -72,8 +72,8 @@
   223.4          echo "Processing pre-install commands..."
   223.5          [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop
   223.6          # Backup config file.
   223.7 -        if [ -d $1/$CONFIG_FILES ]; then
   223.8 -		cp -a $1/$CONFIG_FILES $1/$CONFIG_FILES.bak
   223.9 +        if [ -d "$1/$CONFIG_FILES" ]; then
  223.10 +		cp -a "$1/$CONFIG_FILES" "$1/$CONFIG_FILES.bak"
  223.11          fi
  223.12  }
  223.13  post_install()
  223.14 @@ -81,12 +81,12 @@
  223.15          echo "Processing post-install commands..."
  223.16          mkdir -p /var/spool/nginx
  223.17          # Restore original config.
  223.18 -        if [ -d $1/$CONFIG_FILES.bak ]; then
  223.19 -		rm -rf $1/$CONFIG_FILES
  223.20 -		mv $1/$CONFIG_FILES.bak $1/$CONFIG_FILES
  223.21 +        if [ -d "$1/$CONFIG_FILES.bak" ]; then
  223.22 +		rm -rf "$1/$CONFIG_FILES"
  223.23 +		mv "$1/$CONFIG_FILES.bak" "$1/$CONFIG_FILES"
  223.24          fi
  223.25          # Just in case.
  223.26 -        chown www.www $1/var/log/$PACKAGE
  223.27 +        chown www.www "$1/var/log/$PACKAGE"
  223.28          if [ -z "$1" ]; then
  223.29  		for i in apache lighttpd ; do
  223.30  			[ -f /etc/init.d/$i ] && /etc/init.d/$i stop
   224.1 --- a/novnc/receipt	Sat Dec 19 21:50:31 2015 +0100
   224.2 +++ b/novnc/receipt	Sun Dec 20 15:13:45 2015 +0100
   224.3 @@ -37,12 +37,12 @@
   224.4  post_install()
   224.5  {
   224.6  	which openssl > /dev/null &&
   224.7 -	openssl req -new -x509 -keyout $1/usr/share/novnc/self.pem \
   224.8 -		-out $1/usr/share/novnc/self.pem -days 3650 -nodes <<EOT
   224.9 -$(. /etc/locale.conf ; echo ${LANG#*_})
  224.10 -$(cat /etc/TZ)
  224.11 +	openssl req -new -x509 -keyout "$1/usr/share/novnc/self.pem" \
  224.12 +		-out "$1/usr/share/novnc/self.pem" -days 3650 -nodes <<EOT
  224.13 +$(. "$1/etc/locale.conf" ; echo ${LANG#*_})
  224.14 +$(cat "$1/etc/TZ")
  224.15  
  224.16 -$(cat /etc/hostname)
  224.17 +$(cat "$1/etc/hostname")
  224.18  
  224.19  
  224.20  
   225.1 --- a/nss_ldap/receipt	Sat Dec 19 21:50:31 2015 +0100
   225.2 +++ b/nss_ldap/receipt	Sun Dec 20 15:13:45 2015 +0100
   225.3 @@ -35,13 +35,13 @@
   225.4  
   225.5  post_install()
   225.6  {
   225.7 -	if [ -s $1/etc/openldap/slapd.conf ]; then
   225.8 -		suffix=$(awk '/^suffix/ { print $2 }' < $1/etc/openldap/slapd.conf | sed 's/"//g')
   225.9 -		rootdn=$(awk '/^rootdn/ { print $2 }' < $1/etc/openldap/slapd.conf | sed 's/"//g')
  225.10 -		rootpw=$(awk '/^rootpw/ { print $2 }' < $1/etc/openldap/slapd.conf)
  225.11 +	if [ -s "$1/etc/openldap/slapd.conf" ]; then
  225.12 +		suffix=$(awk '/^suffix/ { print $2 }' < "$1/etc/openldap/slapd.conf" | sed 's/"//g')
  225.13 +		rootdn=$(awk '/^rootdn/ { print $2 }' < "$1/etc/openldap/slapd.conf" | sed 's/"//g')
  225.14 +		rootpw=$(awk '/^rootpw/ { print $2 }' < "$1/etc/openldap/slapd.conf")
  225.15  		sed -i -e "s|binddn .*|binddn $rootdn|" \
  225.16  		       -e "s|bindpw .*|bindpw $rootpw|" \
  225.17 -		       -e "s|dc=padl,dc=com|$suffix|g" $1/etc/ldap.conf
  225.18 +		       -e "s|dc=padl,dc=com|$suffix|g" "$1/etc/ldap.conf"
  225.19  		cat <<EOT
  225.20  ------
  225.21  Suffix login DN and password are found in /etc/openldap/slapd.conf with suffix, rootdn and rootpw keywords:
   226.1 --- a/ntfs-3g/receipt	Sat Dec 19 21:50:31 2015 +0100
   226.2 +++ b/ntfs-3g/receipt	Sun Dec 20 15:13:45 2015 +0100
   226.3 @@ -45,11 +45,11 @@
   226.4  # Pre remove and post install commands for Tazpkg.
   226.5  pre_remove()
   226.6  {
   226.7 -	sed -i '/^$PACKAGE$/d' $1/etc/filesystems
   226.8 +	sed -i '/^$PACKAGE$/d' "$1/etc/filesystems"
   226.9  }
  226.10  
  226.11  post_install()
  226.12  {
  226.13 -	grep -qs ^$PACKAGE$ $1/etc/filesystems || \
  226.14 -		echo "$PACKAGE" >> $1/etc/filesystems
  226.15 +	grep -qs ^$PACKAGE$ "$1/etc/filesystems" || \
  226.16 +		echo "$PACKAGE" >> "$1/etc/filesystems"
  226.17  }
   227.1 --- a/ntop/receipt	Sat Dec 19 21:50:31 2015 +0100
   227.2 +++ b/ntop/receipt	Sun Dec 20 15:13:45 2015 +0100
   227.3 @@ -56,18 +56,18 @@
   227.4  	user=ntop
   227.5  	group=ntop
   227.6  
   227.7 -	if ! grep -q $user: $1/etc/passwd; then
   227.8 +	if ! grep -q $user: "$1/etc/passwd"; then
   227.9  		echo -n "Adding user/group $user..."
  227.10 -		chroot $1/ addgroup -S $user
  227.11 -		chroot $1/ adduser -S -D -H -G $group $user
  227.12 +		chroot "$1/" addgroup -S $user
  227.13 +		chroot "$1/" adduser -S -D -H -G $group $user
  227.14  		status
  227.15  	fi
  227.16  
  227.17  	# Fix perms for files and directories
  227.18 -	chroot $1/ chown -R ${user}.${group} /var/lib/ntop /var/log/ntop
  227.19 +	chroot "$1/" chown -R ${user}.${group} /var/lib/ntop /var/log/ntop
  227.20  
  227.21  	# Start package daemon if we are  on running system
  227.22 -	[ -z $1 ] && /etc/init.d/$PACKAGE start
  227.23 +	[ "$1" ] || /etc/init.d/$PACKAGE start
  227.24  
  227.25  	# post_install messges
  227.26  	echo -e "\nTo starts $PACKAGE server you can run :\n"
  227.27 @@ -77,7 +77,7 @@
  227.28  
  227.29  pre_remove()
  227.30  {
  227.31 -	[ -z $1 ] && /etc/init.d/$PACKAGE stop
  227.32 +	[ "$1" ] || /etc/init.d/$PACKAGE stop
  227.33  }
  227.34  
  227.35  post_remove()
  227.36 @@ -85,10 +85,10 @@
  227.37          user=ntop
  227.38          group=ntop
  227.39  
  227.40 -	if ! grep -q $user: $1/etc/passwd; then
  227.41 +	if ! grep -q $user: "$1/etc/passwd"; then
  227.42          	echo -n "Removing user/group $user..."
  227.43 -                chroot $1/ delgroup $user
  227.44 -                chroot $1/ deluser  $user
  227.45 +                chroot "$1/" delgroup $user
  227.46 +                chroot "$1/" deluser  $user
  227.47                  status
  227.48         	fi
  227.49  }
   228.1 --- a/nvidia-173xx/receipt	Sat Dec 19 21:50:31 2015 +0100
   228.2 +++ b/nvidia-173xx/receipt	Sun Dec 20 15:13:45 2015 +0100
   228.3 @@ -90,8 +90,8 @@
   228.4  	chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
   228.5  	
   228.6  	# correct .desktop file file
   228.7 -	sed -i 's:__UTILS_PATH__/::' $1/usr/share/applications/nvidia-settings.desktop
   228.8 -	sed -i 's:__PIXMAP_PATH__/::' $1/usr/share/applications/nvidia-settings.desktop
   228.9 +	sed -i 's:__UTILS_PATH__/::' "$1/usr/share/applications/nvidia-settings.desktop"
  228.10 +	sed -i 's:__PIXMAP_PATH__/::' "$1/usr/share/applications/nvidia-settings.desktop"
  228.11  	
  228.12  	echo ""
  228.13  	echo -e "\033[1m NVIDIA LICENSE INFORMATION:\033[0m $2"
   229.1 --- a/nvidia-96xx/receipt	Sat Dec 19 21:50:31 2015 +0100
   229.2 +++ b/nvidia-96xx/receipt	Sun Dec 20 15:13:45 2015 +0100
   229.3 @@ -76,8 +76,8 @@
   229.4  	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
   229.5  
   229.6  	# correct .desktop file file
   229.7 -	sed -i 's:__UTILS_PATH__/::' $1/usr/share/applications/nvidia-settings.desktop
   229.8 -	sed -i 's:__PIXMAP_PATH__/::' $1/usr/share/applications/nvidia-settings.desktop
   229.9 +	sed -i 's:__UTILS_PATH__/::' "$1/usr/share/applications/nvidia-settings.desktop"
  229.10 +	sed -i 's:__PIXMAP_PATH__/::' "$1/usr/share/applications/nvidia-settings.desktop"
  229.11  
  229.12  	echo ""
  229.13  	echo -e "\033[1m NVIDIA LICENSE INFORMATION:\033[0m $2"
   230.1 --- a/nzbget-webui/receipt	Sat Dec 19 21:50:31 2015 +0100
   230.2 +++ b/nzbget-webui/receipt	Sun Dec 20 15:13:45 2015 +0100
   230.3 @@ -21,9 +21,9 @@
   230.4  post_install()
   230.5  {
   230.6  	# Configure lighttpd server
   230.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
   230.8 -		if ! grep -q /usr/share/nzbget/ $1/etc/lighttpd/lighttpd.conf; then
   230.9 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/nzbget/" => "/usr/share/nzbget/webui/",|g' -i $1/etc/lighttpd/lighttpd.conf
  230.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  230.11 +		if ! grep -q /usr/share/nzbget/ "$1/etc/lighttpd/lighttpd.conf"; then
  230.12 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/nzbget/" => "/usr/share/nzbget/webui/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  230.13  			if [ -z "$1" ]; then
  230.14  				# Start Web server.
  230.15  				/etc/init.d/lighttpd stop
  230.16 @@ -32,9 +32,9 @@
  230.17  		fi
  230.18  	fi
  230.19  	# Configure apache server
  230.20 -	if [ -f $1/etc/apache/httpd.conf ]; then
  230.21 -		if [ ! -f $1/etc/apache/conf.d/nzbget ]; then
  230.22 -			cat > $1/etc/apache/conf.d/nzbget <<EOT
  230.23 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  230.24 +		if [ ! -f "$1/etc/apache/conf.d/nzbget" ]; then
  230.25 +			cat > "$1/etc/apache/conf.d/nzbget" <<EOT
  230.26  <IfModule mod_alias.c>
  230.27      Alias /nzbget /usr/share/nzbget/webui
  230.28  </IfModule>
   231.1 --- a/obmenu/receipt	Sat Dec 19 21:50:31 2015 +0100
   231.2 +++ b/obmenu/receipt	Sun Dec 20 15:13:45 2015 +0100
   231.3 @@ -32,13 +32,13 @@
   231.4  post_install()
   231.5  {
   231.6  	echo -n "Enabling configuration file..."
   231.7 -	cp $1/home/tux/.config/openbox/menu.xml $1/root/.config/openbox
   231.8 +	cp "$1/home/tux/.config/openbox/menu.xml" "$1/root/.config/openbox"
   231.9  	status
  231.10  }
  231.11  
  231.12  post_remove()
  231.13  {
  231.14  	echo -n "Removing configuration files..."
  231.15 -	rm $1/root/.config/openbox/menu.xml
  231.16 +	rm "$1/root/.config/openbox/menu.xml"
  231.17  	status
  231.18  }
   232.1 --- a/ocsinventory-agent/receipt	Sat Dec 19 21:50:31 2015 +0100
   232.2 +++ b/ocsinventory-agent/receipt	Sun Dec 20 15:13:45 2015 +0100
   232.3 @@ -49,15 +49,15 @@
   232.4  
   232.5  post_install(){
   232.6  	echo "Processing post-install commands..."
   232.7 -	cat > $1/etc/ocsinventory-agent/ocsinventory-agent.cfg <<EOT
   232.8 +	cat > "$1/etc/ocsinventory-agent/ocsinventory-agent.cfg" <<EOT
   232.9  basevardir=/var/lib/ocsinventory-agent
  232.10  server=http://localhost/ocsinventory
  232.11  EOT
  232.12  	# We need fix missing status for dpkg
  232.13  	# So we can Ocs agent can run Tazpkg.pm
  232.14 -	if [ ! -d $1/var/lib/dpkg ]; then
  232.15 -		install -o root -g root -m 0755 -d $1/var/lib/dpkg
  232.16 -		touch $1/var/lib/dpkg/status
  232.17 +	if [ ! -d "$1/var/lib/dpkg" ]; then
  232.18 +		install -o root -g root -m 0755 -d "$1/var/lib/dpkg"
  232.19 +		touch "$1/var/lib/dpkg/status"
  232.20  	fi
  232.21  }
  232.22  
   233.1 --- a/ocsinventory-server/receipt	Sat Dec 19 21:50:31 2015 +0100
   233.2 +++ b/ocsinventory-server/receipt	Sun Dec 20 15:13:45 2015 +0100
   233.3 @@ -57,7 +57,7 @@
   233.4  
   233.5  post_install()
   233.6  {
   233.7 -	if [ -z $1 ]; then
   233.8 +	if [ -z "$1" ]; then
   233.9  		echo "Now you can connect to http://$(hostname)/ocsreports"
  233.10  		# Restart Apache if is running
  233.11  		[ -f /var/run/apache/httpd.pid ] && /etc/init.d/apache reload
   234.1 --- a/ocsreports/receipt	Sat Dec 19 21:50:31 2015 +0100
   234.2 +++ b/ocsreports/receipt	Sun Dec 20 15:13:45 2015 +0100
   234.3 @@ -43,9 +43,9 @@
   234.4  post_install()
   234.5  {
   234.6  	# Configure apache server
   234.7 -	if [ -f $1/etc/apache/httpd.conf ]; then
   234.8 -		if [ ! -f $1/etc/apache/conf.d/$PACKAGE ]; then
   234.9 -			cat > $1/etc/apache/conf.d/$PACKAGE <<EOT
  234.10 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  234.11 +		if [ ! -f "$1/etc/apache/conf.d/$PACKAGE" ]; then
  234.12 +			cat > "$1/etc/apache/conf.d/$PACKAGE" <<EOT
  234.13  <IfModule mod_alias.c>
  234.14      Alias /$PACKAGE /usr/share/$PACKAGE/
  234.15  </IfModule>
  234.16 @@ -66,7 +66,7 @@
  234.17  	fi
  234.18  
  234.19  	# Configure every thing for ocsweb.
  234.20 -	if [ -z $1 ]; then
  234.21 +	if [ -z "$1" ]; then
  234.22  		if ( ! mysqladmin -s ping > /dev/null ); then
  234.23  			echo "Starting MySQL server"
  234.24  			( /etc/init.d/mysql start ; status  ) || exit 
  234.25 @@ -90,7 +90,7 @@
  234.26  post_remove()
  234.27  {
  234.28  
  234.29 -	if [ -z $1 ]; then
  234.30 +	if [ -z "$1" ]; then
  234.31  		echo -n "Would you like to remove data and database files.(y/n) "
  234.32  		read answer
  234.33  
   235.1 --- a/open-iscsi/receipt	Sat Dec 19 21:50:31 2015 +0100
   235.2 +++ b/open-iscsi/receipt	Sun Dec 20 15:13:45 2015 +0100
   235.3 @@ -34,7 +34,7 @@
   235.4  post_install()
   235.5  {
   235.6  	echo "Processing post-install commands..."
   235.7 -	if  [ ! -f $1/etc/iscsi/initiatorname.iscsi ]; then
   235.8 -			echo "InitiatorName=$($1/sbin/iscsi-iname)" > $1/etc/iscsi/initiatorname.iscsi
   235.9 +	if  [ ! -f "$1/etc/iscsi/initiatorname.iscsi" ]; then
  235.10 +			echo "InitiatorName=$($1/sbin/iscsi-iname)" > "$1/etc/iscsi/initiatorname.iscsi"
  235.11  	fi
  235.12  }
   236.1 --- a/openerp-server/receipt	Sat Dec 19 21:50:31 2015 +0100
   236.2 +++ b/openerp-server/receipt	Sun Dec 20 15:13:45 2015 +0100
   236.3 @@ -36,8 +36,8 @@
   236.4  # Pre and post install commands for Tazpkg.
   236.5  post_install()
   236.6  {
   236.7 -	#chroot $1/ adduser -H -D -S -s /bin/false -h /dev/null -g "OpenERP Daemon user" openerp
   236.8 -	[ -z "$1" ] && /etc/init.d/$PACKAGE start
   236.9 +	#chroot "$1/" adduser -H -D -S -s /bin/false -h /dev/null -g "OpenERP Daemon user" openerp
  236.10 +	[ "$1" ] || /etc/init.d/$PACKAGE start
  236.11  	cat <<EOF
  236.12  ----
  236.13  To start $PACKAGE server you can run :
   237.1 --- a/openerp-web/receipt	Sat Dec 19 21:50:31 2015 +0100
   237.2 +++ b/openerp-web/receipt	Sun Dec 20 15:13:45 2015 +0100
   237.3 @@ -35,7 +35,7 @@
   237.4  # Pre and post install commands for Tazpkg.
   237.5  post_install()
   237.6  {
   237.7 -	#sed -i "s/^RUN_DAEMONS=\"/RUN_DAEMONS=\"openerp-web /" $1/etc/rcS.conf 
   237.8 +	#sed -i "s/^RUN_DAEMONS=\"/RUN_DAEMONS=\"openerp-web /" "$1/etc/rcS.conf"
   237.9  	[ -z "$1" ] && /etc/init.d/openerp-web start
  237.10  	cat <<EOF
  237.11  ----
   238.1 --- a/openldap/receipt	Sat Dec 19 21:50:31 2015 +0100
   238.2 +++ b/openldap/receipt	Sun Dec 20 15:13:45 2015 +0100
   238.3 @@ -52,11 +52,11 @@
   238.4  # Pre and post install commands for Tazpkg.
   238.5  post_install()
   238.6  {
   238.7 -	( cd $1/$INSTALLED/ ; grep -l /etc/openldap/slapd.conf */receipt ) | \
   238.8 +	( cd "$1/$INSTALLED/" ; grep -l /etc/openldap/slapd.conf */receipt ) | \
   238.9  	while read file; do
  238.10  		pkg=$(dirname $file)
  238.11  		[ "$pkg" = "$PACKAGE" ] && continue
  238.12  		echo "Reconfiguring $pkg for $PACKAGE..."
  238.13 -		chroot $1/ tazpkg reconfigure $pkg
  238.14 +		chroot "$1/" tazpkg reconfigure $pkg
  238.15  	done
  238.16  }
   239.1 --- a/openssh-pam/receipt	Sat Dec 19 21:50:31 2015 +0100
   239.2 +++ b/openssh-pam/receipt	Sun Dec 20 15:13:45 2015 +0100
   239.3 @@ -57,9 +57,9 @@
   239.4  EOT
   239.5  	while read dropbear openssh ; do
   239.6  		[ -s "$1$dropbear" ] || continue
   239.7 -		dropbearconvert dropbear openssh "$1$dropbear" "$1$openssh"
   239.8 -		dropbearkey -y -f "$1$dropbear" | grep ssh > "$1$openssh.pub"
   239.9 -		dropbearkey -y -f "$1$dropbear" | grep Fingerprint
  239.10 +		chroot "$1/" dropbearconvert dropbear openssh $dropbear $openssh
  239.11 +		chroot "$1/" dropbearkey -y -f $dropbear | grep ssh > "$1$openssh.pub"
  239.12 +		chroot "$1/" dropbearkey -y -f $dropbear | grep Fingerprint
  239.13  	done <<EOT
  239.14  /etc/dropbear/dropbear_rsa_host_key	/etc/ssh/ssh_host_rsa_key
  239.15  /etc/dropbear/dropbear_dss_host_key	/etc/ssh/ssh_host_dsa_key
   240.1 --- a/openssh/receipt	Sat Dec 19 21:50:31 2015 +0100
   240.2 +++ b/openssh/receipt	Sun Dec 20 15:13:45 2015 +0100
   240.3 @@ -56,9 +56,9 @@
   240.4  EOT
   240.5  	while read dropbear openssh ; do
   240.6  		[ -s "$1$dropbear" ] || continue
   240.7 -		dropbearconvert dropbear openssh "$1$dropbear" "$1$openssh"
   240.8 -		dropbearkey -y -f "$1$dropbear" | grep ssh > "$1$openssh.pub"
   240.9 -		dropbearkey -y -f "$1$dropbear" | grep Fingerprint
  240.10 +		chroot "$1/" dropbearconvert dropbear openssh $dropbear $openssh
  240.11 +		chroot "$1/" dropbearkey -y -f $dropbear | grep ssh > "$1$openssh.pub"
  240.12 +		chroot "$1/" dropbearkey -y -f $dropbear | grep Fingerprint
  240.13  	done <<EOT
  240.14  /etc/dropbear/dropbear_rsa_host_key	/etc/ssh/ssh_host_rsa_key
  240.15  /etc/dropbear/dropbear_dss_host_key	/etc/ssh/ssh_host_dsa_key
   241.1 --- a/openvas-scanner/receipt	Sat Dec 19 21:50:31 2015 +0100
   241.2 +++ b/openvas-scanner/receipt	Sun Dec 20 15:13:45 2015 +0100
   241.3 @@ -39,8 +39,8 @@
   241.4  
   241.5  post_install()
   241.6  {
   241.7 -	[ -s $1/var/lib/openvas/CA/cacert.pem ] || 
   241.8 -	chroot $1/ /usr/sbin/openvas-mkcert <<EOT
   241.9 +	[ -s "$1/var/lib/openvas/CA/cacert.pem" ] || 
  241.10 +	chroot "$1/" /usr/sbin/openvas-mkcert <<EOT
  241.11  
  241.12  
  241.13  $(. /etc/locale.conf ; echo ${LANG#*_})
   242.1 --- a/oxygen-icons/receipt	Sat Dec 19 21:50:31 2015 +0100
   242.2 +++ b/oxygen-icons/receipt	Sun Dec 20 15:13:45 2015 +0100
   242.3 @@ -24,10 +24,10 @@
   242.4  
   242.5  post_install()
   242.6  {
   242.7 -	sed '/Inherits=/s|=.*$|=oxygen|' -i $1/$qtfix
   242.8 +	sed '/Inherits=/s|=.*$|=oxygen|' -i "$1/$qtfix"
   242.9  }
  242.10  
  242.11  pre_remove()
  242.12  {
  242.13 -	sed '/Inherits=/s|=.*$|=SliTaz|' -i $1/$qtfix
  242.14 +	sed '/Inherits=/s|=.*$|=SliTaz|' -i "$1/$qtfix"
  242.15  }
   243.1 --- a/partimage-pam/receipt	Sat Dec 19 21:50:31 2015 +0100
   243.2 +++ b/partimage-pam/receipt	Sun Dec 20 15:13:45 2015 +0100
   243.3 @@ -42,14 +42,14 @@
   243.4  {
   243.5  	echo "Processing post install commands..."
   243.6  	echo "Adding user/group partimag..."
   243.7 -	chroot $1/ adduser -S -H -D partimag
   243.8 +	chroot "$1/" adduser -S -H -D partimag
   243.9  
  243.10  	echo "Setting permissions for config files"
  243.11 -	chmod 0600 $1/etc/partimaged/*
  243.12 -	chroot $1/ chown partimag.partimag $1/etc/partimaged/*	
  243.13 +	chmod 0600 "$1"/etc/partimaged/*
  243.14 +	chroot "$1/" chown partimag.partimag "$1"/etc/partimaged/*	
  243.15  	
  243.16  	echo " Creating image files directory"
  243.17 -	chroot $1/ install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged
  243.18 +	chroot "$1/" install -g partimag -o partimag -m 0755 -d "$1/var/lib/partimaged"
  243.19  	
  243.20  	echo ""
  243.21  	echo -e "\nTo starts $SOURCE server you can run :\n"
  243.22 @@ -59,10 +59,10 @@
  243.23  
  243.24  post_remove()
  243.25  {
  243.26 -	chroot $1/ deluser partimag
  243.27 -	chroot $1/ delgroup partimag
  243.28 +	chroot "$1/" deluser partimag
  243.29 +	chroot "$1/" delgroup partimag
  243.30  	
  243.31 -	if [ -f $1/etc/paritimaged ]; then
  243.32 -		rm -rf $1/etc/partimaged
  243.33 +	if [ -f "$1/etc/paritimaged" ]; then
  243.34 +		rm -rf "$1/etc/partimaged"
  243.35  	fi
  243.36  }
   244.1 --- a/partimage/receipt	Sat Dec 19 21:50:31 2015 +0100
   244.2 +++ b/partimage/receipt	Sun Dec 20 15:13:45 2015 +0100
   244.3 @@ -40,14 +40,14 @@
   244.4  {
   244.5  	echo "Processing post install commands..."
   244.6  	echo "Adding user/group partimag..."
   244.7 -	chroot $1/ adduser -S -H -D partimag
   244.8 +	chroot "$1/" adduser -S -H -D partimag
   244.9  
  244.10  	echo "Setting permissions for config files"
  244.11 -	chmod 0600 $1/etc/partimaged/*
  244.12 -	chroot $1/ chown partimag.partimag $1/etc/partimaged/*	
  244.13 +	chmod 0600 "$1"/etc/partimaged/*
  244.14 +	chroot "$1/" chown partimag.partimag "$1"/etc/partimaged/*	
  244.15  	
  244.16  	echo " Creating image files directory"
  244.17 -	chroot $1/ install -g partimag -o partimag -m 0755 -d $1/var/lib/partimaged
  244.18 +	chroot "$1/" install -g partimag -o partimag -m 0755 -d "$1/var/lib/partimaged"
  244.19  	
  244.20  	echo ""
  244.21  	echo -e "\nTo starts $PACKAGE server you can run :\n"
  244.22 @@ -57,10 +57,10 @@
  244.23  
  244.24  post_remove()
  244.25  {
  244.26 -	chroot $1/ deluser partimag
  244.27 -	chroot $1/ delgroup partimag
  244.28 +	chroot "$1/" deluser partimag
  244.29 +	chroot "$1/" delgroup partimag
  244.30  	
  244.31 -	if [ -f $1/etc/paritimaged ]; then
  244.32 -		rm -rf $1/etc/partimaged
  244.33 +	if [ -f "$1/etc/paritimaged" ]; then
  244.34 +		rm -rf "$1/etc/partimaged"
  244.35  	fi
  244.36  }
   245.1 --- a/patch/receipt	Sat Dec 19 21:50:31 2015 +0100
   245.2 +++ b/patch/receipt	Sun Dec 20 15:13:45 2015 +0100
   245.3 @@ -28,12 +28,10 @@
   245.4  # Prevent erasing busybox...
   245.5  pre_install()
   245.6  {
   245.7 -	local root
   245.8 -	root=$1
   245.9 -	rm -f $root/usr/bin/patch
  245.10 +	rm -f "$1/usr/bin/patch"
  245.11  }
  245.12  
  245.13  post_remove()
  245.14  {
  245.15 -	ln -s /bin/busybox /usr/bin/patch
  245.16 +	ln -s /bin/busybox "$1/usr/bin/patch"
  245.17  }
   246.1 --- a/pciutils/receipt	Sat Dec 19 21:50:31 2015 +0100
   246.2 +++ b/pciutils/receipt	Sun Dec 20 15:13:45 2015 +0100
   246.3 @@ -36,10 +36,10 @@
   246.4  # Overlap busybox
   246.5  pre_install()
   246.6  {
   246.7 -	rm -f $1/usr/bin/lspci
   246.8 +	rm -f "$1/usr/bin/lspci"
   246.9  }
  246.10  
  246.11  post_remove()
  246.12  {
  246.13 -	ln -s /bin/busybox $1/usr/bin/lspci
  246.14 +	ln -s /bin/busybox "$1/usr/bin/lspci"
  246.15  }
   247.1 --- a/pcmciautils/receipt	Sat Dec 19 21:50:31 2015 +0100
   247.2 +++ b/pcmciautils/receipt	Sun Dec 20 15:13:45 2015 +0100
   247.3 @@ -40,5 +40,5 @@
   247.4  
   247.5  post_install()
   247.6  {
   247.7 -	tazpkg reconfigure udev --root=$1
   247.8 +	tazpkg reconfigure udev --root="$1"
   247.9  }
   248.1 --- a/pcsc-lite/receipt	Sat Dec 19 21:50:31 2015 +0100
   248.2 +++ b/pcsc-lite/receipt	Sun Dec 20 15:13:45 2015 +0100
   248.3 @@ -40,11 +40,9 @@
   248.4  # Daemon options in: daemons.conf
   248.5  post_install()
   248.6  {
   248.7 -	local root
   248.8 -	root=$1
   248.9 -	if ! grep -q 'PCSCD_OPTIONS' $root/etc/daemons.conf; then
  248.10 -		echo '# PC/SC smart card daemon options.' >> $root/etc/daemons.conf
  248.11 -		echo 'PCSCD_OPTIONS=""' >> $root/etc/daemons.conf
  248.12 -		echo '' >> $root/etc/daemons.conf
  248.13 +	if ! grep -q 'PCSCD_OPTIONS' "$1/etc/daemons.conf"; then
  248.14 +		echo '# PC/SC smart card daemon options.' >> "$1/etc/daemons.conf"
  248.15 +		echo 'PCSCD_OPTIONS=""' >> "$1/etc/daemons.conf"
  248.16 +		echo '' >> "$1/etc/daemons.conf"
  248.17  	fi
  248.18  }
   249.1 --- a/pdnsd/receipt	Sat Dec 19 21:50:31 2015 +0100
   249.2 +++ b/pdnsd/receipt	Sun Dec 20 15:13:45 2015 +0100
   249.3 @@ -33,19 +33,19 @@
   249.4  # Pre and post install commands for Tazpkg.
   249.5  pre_remove()
   249.6  {
   249.7 -	sed -i 's/pdnsd//' $1/etc/rcS.conf
   249.8 -	rm -f $1/etc/init.d/pdnsd
   249.9 +	sed -i 's/pdnsd//' "$1/etc/rcS.conf"
  249.10 +	rm -f "$1/etc/init.d/pdnsd"
  249.11  }
  249.12  
  249.13  post_install()
  249.14  {
  249.15  	local tmp
  249.16  	tmp=$(route -n | awk '/^0.0.0.0/ { print $8; }')
  249.17 -	[ -n "$tmp" ] && sed -i "s/eth0/$tmp/" $1/etc/pdnsd.conf
  249.18 +	[ -n "$tmp" ] && sed -i "s/eth0/$tmp/" "$1/etc/pdnsd.conf"
  249.19  	tmp=$(sed '/nameserver/!d;s/nameserver //;q' < /etc/resolv.conf)
  249.20 -	[ -n "$tmp" ] && sed -i "s/192\.168\.0\.1/$tmp/" $1/etc/pdnsd.conf
  249.21 +	[ -n "$tmp" ] && sed -i "s/192\.168\.0\.1/$tmp/" "$1/etc/pdnsd.conf"
  249.22  	tmp=
  249.23 -	[ -s $1/etc/init.d/daemon ] && ln -s daemon $1/etc/init.d/pdnsd &&
  249.24 +	[ -s "$1/etc/init.d/daemon" ] && ln -s daemon "$1/etc/init.d/pdnsd" &&
  249.25  		tmp=" and add pdnsd to RUN_DAEMONS in /etc/rcS.conf"
  249.26  	cat <<EOT
  249.27  Now you can check /etc/pdnsd.conf$tmp.
   250.1 --- a/pekwm/receipt	Sat Dec 19 21:50:31 2015 +0100
   250.2 +++ b/pekwm/receipt	Sun Dec 20 15:13:45 2015 +0100
   250.3 @@ -46,17 +46,17 @@
   250.4  	# Pekwm searches for default font path (100dpi folder) for xsever to render 
   250.5  	# menus; either manually set it in .xinitrc or fake 100dpi folder fonts 
   250.6  	# by linking to ttf-dejavu
   250.7 -	if [ ! -d $1/usr/share/fonts/X11/100dpi/ ]; then
   250.8 -		mkdir -p $1/usr/share/fonts/X11/100dpi
   250.9 -		cd $1/usr/share/fonts/X11/100dpi
  250.10 +	if [ ! -d "$1/usr/share/fonts/X11/100dpi/" ]; then
  250.11 +		mkdir -p "$1/usr/share/fonts/X11/100dpi"
  250.12 +		cd "$1/usr/share/fonts/X11/100dpi"
  250.13  		ln -s ../../truetype/ttf-dejavu/* .
  250.14  	fi
  250.15  	
  250.16 -	res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
  250.17 +	res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
  250.18  	# Adding WM to SLIM available sessions.
  250.19  	if ! echo "$res" | grep -q $PACKAGE; then
  250.20  		echo -n "Adding $PACKAGE to /etc/slim.conf..."
  250.21 -		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" /etc/slim.conf
  250.22 +		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" "$1/etc/slim.conf"
  250.23  		status
  250.24  	fi
  250.25  }
  250.26 @@ -64,7 +64,7 @@
  250.27  post_remove()
  250.28  {
  250.29  	# Remove WM from SLIM available sessions.
  250.30 -	if grep -q $PACKAGE $1/etc/slim.conf; then
  250.31 -		sed -i s/,$PACKAGE// $1/etc/slim.conf
  250.32 +	if grep -q $PACKAGE "$1/etc/slim.conf"; then
  250.33 +		sed -i s/,$PACKAGE// "$1/etc/slim.conf"
  250.34  	fi
  250.35  }
   251.1 --- a/perdition-pam/receipt	Sat Dec 19 21:50:31 2015 +0100
   251.2 +++ b/perdition-pam/receipt	Sun Dec 20 15:13:45 2015 +0100
   251.3 @@ -49,7 +49,7 @@
   251.4  post_install()
   251.5  {
   251.6  	for i in pop3 pop3s imap4 imap4s imaps; do
   251.7 -		chown nobody.nogroup $1/var/run/perdition.$i
   251.8 +		chown nobody.nogroup "$1/var/run/perdition.$i"
   251.9  	done
  251.10  	cat <<EOF
  251.11  ----
   252.1 --- a/perdition/receipt	Sat Dec 19 21:50:31 2015 +0100
   252.2 +++ b/perdition/receipt	Sun Dec 20 15:13:45 2015 +0100
   252.3 @@ -50,7 +50,7 @@
   252.4  post_install()
   252.5  {
   252.6  	for i in pop3 pop3s imap4 imap4s imaps; do
   252.7 -		chown nobody.nogroup $1/var/run/perdition.$i
   252.8 +		chown nobody.nogroup "$1/var/run/perdition.$i"
   252.9  	done
  252.10  	cat <<EOF
  252.11  ----
   253.1 --- a/perl-core/receipt	Sat Dec 19 21:50:31 2015 +0100
   253.2 +++ b/perl-core/receipt	Sun Dec 20 15:13:45 2015 +0100
   253.3 @@ -26,5 +26,5 @@
   253.4  pre_install()
   253.5  {
   253.6  	echo "Processing pre-install commands..."
   253.7 -	rm -f $1/usr/bin/perl
   253.8 +	rm -f "$1/usr/bin/perl"
   253.9  }
   254.1 --- a/perl-thread/receipt	Sat Dec 19 21:50:31 2015 +0100
   254.2 +++ b/perl-thread/receipt	Sun Dec 20 15:13:45 2015 +0100
   254.3 @@ -37,5 +37,5 @@
   254.4  pre_install()
   254.5  {
   254.6  	echo "Processing pre-install commands..."
   254.7 -	rm -f $1/usr/bin/perl
   254.8 +	rm -f "$1/usr/bin/perl"
   254.9  }
   255.1 --- a/perl/receipt	Sat Dec 19 21:50:31 2015 +0100
   255.2 +++ b/perl/receipt	Sun Dec 20 15:13:45 2015 +0100
   255.3 @@ -67,5 +67,5 @@
   255.4  pre_install()
   255.5  {
   255.6  	echo "Processing pre-install commands..."
   255.7 -	rm -f $1/usr/bin/perl
   255.8 +	rm -f "$1/usr/bin/perl"
   255.9  }
   256.1 --- a/php-apache/receipt	Sat Dec 19 21:50:31 2015 +0100
   256.2 +++ b/php-apache/receipt	Sun Dec 20 15:13:45 2015 +0100
   256.3 @@ -30,14 +30,14 @@
   256.4  
   256.5  post_install()
   256.6  {
   256.7 -	grep -q php5_module $1/etc/apache/httpd.conf || {
   256.8 +	grep -q php5_module "$1/etc/apache/httpd.conf" || {
   256.9  	    sed -e 's|mod_rewrite.so|mod_rewrite.so\nLoadModule php5_module share/apache/modules/libphp5.so|' \
  256.10  	    	-e 's|DirectoryIndex index.html|DirectoryIndex index.html index.php|' \
  256.11  		-e 's|mime.types|mime.types\n    AddType application/x-httpd-php .php .php3 .php4 .php5\n    AddType application/x-httpd-php-source .phps|' \
  256.12 -	        -i $1/etc/apache/httpd.conf
  256.13 +	        -i "$1/etc/apache/httpd.conf"
  256.14  	}
  256.15 -	[ -f $1/etc/apache/conf.d/phpinfo ] || \
  256.16 -		cat > $1/etc/apache/conf.d/phpinfo <<EOT
  256.17 +	[ -f "$1/etc/apache/conf.d/phpinfo" ] || \
  256.18 +		cat > "$1/etc/apache/conf.d/phpinfo" <<EOT
  256.19  <IfModule mod_alias.c>
  256.20      Alias /phpinfo /usr/share/phpinfo
  256.21  </IfModule>
   257.1 --- a/php-auth-pam/receipt	Sat Dec 19 21:50:31 2015 +0100
   257.2 +++ b/php-auth-pam/receipt	Sun Dec 20 15:13:45 2015 +0100
   257.3 @@ -38,8 +38,8 @@
   257.4  
   257.5  post_install()
   257.6  {
   257.7 -	grep -q ^extension=pam_auth.so $1/etc/php.ini || \
   257.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=pam_auth.so|' -i $1/etc/php.ini
   257.9 +	grep -q ^extension=pam_auth.so "$1/etc/php.ini" || \
  257.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=pam_auth.so|' -i "$1/etc/php.ini"
  257.11  	# Start Web server.
  257.12  	while read daemon file; do
  257.13  		[ -z "$1" ] || continue
   258.1 --- a/php-cherokee/receipt	Sat Dec 19 21:50:31 2015 +0100
   258.2 +++ b/php-cherokee/receipt	Sun Dec 20 15:13:45 2015 +0100
   258.3 @@ -31,19 +31,19 @@
   258.4  post_install()
   258.5  {
   258.6  	# Enable php
   258.7 -#	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
   258.8 -#	  [ -f $1/usr/lib/lighttpd/mod_fastcgi.so ] || \
   258.9 -#	  	tazpkg get-install lighttpd-modules --root=$1/
  258.10 +#	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  258.11 +#	  [ -f "$1/usr/lib/lighttpd/mod_fastcgi.so" ] || \
  258.12 +#	  	tazpkg get-install lighttpd-modules --root="$1/"
  258.13  #	  sed -e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \
  258.14  #	    -e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \
  258.15  #	    -e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n  )))|' \
  258.16 -#	    -i $1/etc/lighttpd/lighttpd.conf
  258.17 -#	  grep -q mod_fastcgi $1/etc/lighttpd/lighttpd.conf || \
  258.18 +#	    -i "$1/etc/lighttpd/lighttpd.conf"
  258.19 +#	  grep -q mod_fastcgi "$1/etc/lighttpd/lighttpd.conf" || \
  258.20  #	  	sed -e 's|server.modules = (|server.modules = (\n  "mod_fastcgi",|' \
  258.21 -#	  	    -i $1/etc/lighttpd/lighttpd.conf
  258.22 -#	  grep -q php3 $1/etc/lighttpd/lighttpd.conf || \
  258.23 +#	  	    -i "$1/etc/lighttpd/lighttpd.conf"
  258.24 +#	  grep -q php3 "$1/etc/lighttpd/lighttpd.conf" || \
  258.25  #	  	sed -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \
  258.26 -#	  	    -i $1/etc/lighttpd/lighttpd.conf
  258.27 +#	  	    -i "$1/etc/lighttpd/lighttpd.conf"
  258.28  #	fi
  258.29  
  258.30  
   259.1 --- a/php-common/receipt	Sat Dec 19 21:50:31 2015 +0100
   259.2 +++ b/php-common/receipt	Sun Dec 20 15:13:45 2015 +0100
   259.3 @@ -28,7 +28,7 @@
   259.4  	# Backup existing php.ini
   259.5  	if [ -f "$1/etc/php.ini" ]; then
   259.6  		echo -n "Creating php.ini backup..."
   259.7 -		cp $1/etc/php.ini $1/etc/php.ini.bak
   259.8 +		cp "$1/etc/php.ini" "$1/etc/php.ini.bak"
   259.9  		status
  259.10  	fi
  259.11  }
  259.12 @@ -37,7 +37,7 @@
  259.13  	# Restore original php.ini
  259.14  	if [ -f "$1/etc/php.ini.bak" ]; then
  259.15  		echo -n "Restoring php.ini backup..."
  259.16 -		mv -f $1/etc/php.ini.bak $1/etc/php.ini 
  259.17 +		mv -f "$1/etc/php.ini.bak" "$1/etc/php.ini"
  259.18  		status
  259.19  	fi
  259.20  }
   260.1 --- a/php-curl/receipt	Sat Dec 19 21:50:31 2015 +0100
   260.2 +++ b/php-curl/receipt	Sun Dec 20 15:13:45 2015 +0100
   260.3 @@ -34,8 +34,8 @@
   260.4  
   260.5  post_install()
   260.6  {
   260.7 -	grep -q ^extension=curl.so $1/etc/php.ini || \
   260.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=curl.so|' -i $1/etc/php.ini
   260.9 +	grep -q ^extension=curl.so "$1/etc/php.ini" || \
  260.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=curl.so|' -i "$1/etc/php.ini"
  260.11  	# Start Web server.
  260.12  	while read daemon file; do
  260.13  		[ -z "$1" ] || continue
   261.1 --- a/php-dba/receipt	Sat Dec 19 21:50:31 2015 +0100
   261.2 +++ b/php-dba/receipt	Sun Dec 20 15:13:45 2015 +0100
   261.3 @@ -32,8 +32,8 @@
   261.4  
   261.5  post_install()
   261.6  {
   261.7 -	grep -q ^extension=dba.so $1/etc/php.ini || \
   261.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=dba.so|' -i $1/etc/php.ini
   261.9 +	grep -q ^extension=dba.so "$1/etc/php.ini" || \
  261.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=dba.so|' -i "$1/etc/php.ini"
  261.11  	# Start Web server.
  261.12  	while read daemon file; do
  261.13  		[ -z "$1" ] || continue
   262.1 --- a/php-gd/receipt	Sat Dec 19 21:50:31 2015 +0100
   262.2 +++ b/php-gd/receipt	Sun Dec 20 15:13:45 2015 +0100
   262.3 @@ -34,8 +34,8 @@
   262.4  
   262.5  post_install()
   262.6  {
   262.7 -	grep -q ^extension=gd.so $1/etc/php.ini || \
   262.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=gd.so|' -i $1/etc/php.ini
   262.9 +	grep -q ^extension=gd.so "$1/etc/php.ini" || \
  262.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=gd.so|' -i "$1/etc/php.ini"
  262.11  	# Start Web server.
  262.12  	while read daemon file; do
  262.13  		[ -z "$1" ] || continue
  262.14 @@ -55,7 +55,7 @@
  262.15  # Pre and post remove commands for Tazpkg.
  262.16  pre_remove()
  262.17  {
  262.18 -	sed -i '/.*=gd.so.*/d' $1/etc/php.ini
  262.19 +	sed -i '/.*=gd.so.*/d' "$1/etc/php.ini"
  262.20  
  262.21  	# Start Web server.
  262.22  	while read daemon file; do
   263.1 --- a/php-imap/receipt	Sat Dec 19 21:50:31 2015 +0100
   263.2 +++ b/php-imap/receipt	Sun Dec 20 15:13:45 2015 +0100
   263.3 @@ -34,8 +34,8 @@
   263.4  
   263.5  post_install()
   263.6  {
   263.7 -	grep -q ^extension=imap.so $1/etc/php.ini || \
   263.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=imap.so|' -i $1/etc/php.ini
   263.9 +	grep -q ^extension=imap.so "$1/etc/php.ini" || \
  263.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=imap.so|' -i "$1/etc/php.ini"
  263.11  	# Start Web server.
  263.12  	while read daemon file; do
  263.13  		[ -z "$1" ] || continue
   264.1 --- a/php-ldap/receipt	Sat Dec 19 21:50:31 2015 +0100
   264.2 +++ b/php-ldap/receipt	Sun Dec 20 15:13:45 2015 +0100
   264.3 @@ -34,8 +34,8 @@
   264.4  
   264.5  post_install()
   264.6  {
   264.7 -	grep -q ^extension=ldap.so $1/etc/php.ini || \
   264.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=ldap.so|' -i $1/etc/php.ini
   264.9 +	grep -q ^extension=ldap.so "$1/etc/php.ini" || \
  264.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=ldap.so|' -i "$1/etc/php.ini"
  264.11  	# Start Web server.
  264.12  	while read daemon file; do
  264.13  		[ -z "$1" ] || continue
   265.1 --- a/php-mcrypt/receipt	Sat Dec 19 21:50:31 2015 +0100
   265.2 +++ b/php-mcrypt/receipt	Sun Dec 20 15:13:45 2015 +0100
   265.3 @@ -34,8 +34,8 @@
   265.4  
   265.5  post_install()
   265.6  {
   265.7 -	grep -q ^extension=mcrypt.so $1/etc/php.ini || \
   265.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=mcrypt.so|' -i $1/etc/php.ini
   265.9 +	grep -q ^extension=mcrypt.so "$1/etc/php.ini" || \
  265.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=mcrypt.so|' -i "$1/etc/php.ini"
  265.11  	# Start Web server.
  265.12  	while read daemon file; do
  265.13  		[ -z "$1" ] || continue
   266.1 --- a/php-mysql/receipt	Sat Dec 19 21:50:31 2015 +0100
   266.2 +++ b/php-mysql/receipt	Sun Dec 20 15:13:45 2015 +0100
   266.3 @@ -34,8 +34,8 @@
   266.4  
   266.5  post_install()
   266.6  {
   266.7 -	grep -q ^extension=mysql.so $1/etc/php.ini || \
   266.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=mysql.so|' -i $1/etc/php.ini
   266.9 +	grep -q ^extension=mysql.so "$1/etc/php.ini" || \
  266.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=mysql.so|' -i "$1/etc/php.ini"
  266.11  	# Start Web server.
  266.12  	while read daemon file; do
  266.13  		[ -z "$1" ] || continue
   267.1 --- a/php-mysqli/receipt	Sat Dec 19 21:50:31 2015 +0100
   267.2 +++ b/php-mysqli/receipt	Sun Dec 20 15:13:45 2015 +0100
   267.3 @@ -34,8 +34,8 @@
   267.4  
   267.5  post_install()
   267.6  {
   267.7 -	grep -q ^extension=mysqli.so $1/etc/php.ini || \
   267.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=mysqli.so|' -i $1/etc/php.ini
   267.9 +	grep -q ^extension=mysqli.so "$1/etc/php.ini" || \
  267.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=mysqli.so|' -i "$1/etc/php.ini"
  267.11  	# Start Web server.
  267.12  	while read daemon file; do
  267.13  		[ -z "$1" ] || continue
   268.1 --- a/php-odbc/receipt	Sat Dec 19 21:50:31 2015 +0100
   268.2 +++ b/php-odbc/receipt	Sun Dec 20 15:13:45 2015 +0100
   268.3 @@ -34,8 +34,8 @@
   268.4  
   268.5  post_install()
   268.6  {
   268.7 -	grep -q ^extension=odbc.so $1/etc/php.ini || \
   268.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=odbc.so|' -i $1/etc/php.ini
   268.9 +	grep -q ^extension=odbc.so "$1/etc/php.ini" || \
  268.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=odbc.so|' -i "$1/etc/php.ini"
  268.11  	# Start Web server.
  268.12  	while read daemon file; do
  268.13  		[ -z "$1" ] || continue
   269.1 --- a/php-openssl/receipt	Sat Dec 19 21:50:31 2015 +0100
   269.2 +++ b/php-openssl/receipt	Sun Dec 20 15:13:45 2015 +0100
   269.3 @@ -34,8 +34,8 @@
   269.4  
   269.5  post_install()
   269.6  {
   269.7 -	grep -q ^extension=openssl.so $1/etc/php.ini || \
   269.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=openssl.so|' -i $1/etc/php.ini
   269.9 +	grep -q ^extension=openssl.so "$1/etc/php.ini" || \
  269.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=openssl.so|' -i "$1/etc/php.ini"
  269.11  	# Start Web server.
  269.12  	while read daemon file; do
  269.13  		[ -z "$1" ] || continue
   270.1 --- a/php-pdo-mysql/receipt	Sat Dec 19 21:50:31 2015 +0100
   270.2 +++ b/php-pdo-mysql/receipt	Sun Dec 20 15:13:45 2015 +0100
   270.3 @@ -34,8 +34,8 @@
   270.4  
   270.5  post_install()
   270.6  {
   270.7 -	grep -q ^extension=pdo_mysql.so $1/etc/php.ini || \
   270.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=pdo_mysql.so|' -i $1/etc/php.ini
   270.9 +	grep -q ^extension=pdo_mysql.so "$1/etc/php.ini" || \
  270.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=pdo_mysql.so|' -i "$1/etc/php.ini"
  270.11  	# Start Web server.
  270.12  	while read daemon file; do
  270.13  		[ -z "$1" ] || continue
   271.1 --- a/php-pdo-pgsql/receipt	Sat Dec 19 21:50:31 2015 +0100
   271.2 +++ b/php-pdo-pgsql/receipt	Sun Dec 20 15:13:45 2015 +0100
   271.3 @@ -34,8 +34,8 @@
   271.4  
   271.5  post_install()
   271.6  {
   271.7 -	grep -q ^extension=pdo_pgsql.so $1/etc/php.ini || \
   271.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=pdo_pgsql.so|' -i $1/etc/php.ini
   271.9 +	grep -q ^extension=pdo_pgsql.so "$1/etc/php.ini" || \
  271.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=pdo_pgsql.so|' -i "$1/etc/php.ini"
  271.11  	# Start Web server.
  271.12  	while read daemon file; do
  271.13  		[ -z "$1" ] || continue
   272.1 --- a/php-pear/receipt	Sat Dec 19 21:50:31 2015 +0100
   272.2 +++ b/php-pear/receipt	Sun Dec 20 15:13:45 2015 +0100
   272.3 @@ -35,8 +35,8 @@
   272.4  
   272.5  post_install()
   272.6  {
   272.7 -	grep ^include_path $1/etc/php.ini
   272.8 -	sed -i 's|/php/includes"|/php/includes"\ninclude_path = ".:/usr/share/php"|' $1/etc/php.ini
   272.9 +	grep ^include_path "$1/etc/php.ini"
  272.10 +	sed -i 's|/php/includes"|/php/includes"\ninclude_path = ".:/usr/share/php"|' "$1/etc/php.ini"
  272.11  	# Restart Web server.
  272.12  	while read daemon file; do
  272.13  		[ -z "$1" ] || continue
   273.1 --- a/php-pgsql/receipt	Sat Dec 19 21:50:31 2015 +0100
   273.2 +++ b/php-pgsql/receipt	Sun Dec 20 15:13:45 2015 +0100
   273.3 @@ -34,8 +34,8 @@
   273.4  
   273.5  post_install()
   273.6  {
   273.7 -	grep -q ^extension=pgsql.so $1/etc/php.ini || \
   273.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=pgsql.so|' -i $1/etc/php.ini
   273.9 +	grep -q ^extension=pgsql.so "$1/etc/php.ini" || \
  273.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=pgsql.so|' -i "$1/etc/php.ini"
  273.11  	# Start Web server.
  273.12  	while read daemon file; do
  273.13  		[ -z "$1" ] || continue
   274.1 --- a/php-snmp/receipt	Sat Dec 19 21:50:31 2015 +0100
   274.2 +++ b/php-snmp/receipt	Sun Dec 20 15:13:45 2015 +0100
   274.3 @@ -34,8 +34,8 @@
   274.4  
   274.5  post_install()
   274.6  {
   274.7 -	grep -q ^extension=snmp.so $1/etc/php.ini || \
   274.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=snmp.so|' -i $1/etc/php.ini
   274.9 +	grep -q ^extension=snmp.so "$1/etc/php.ini" || \
  274.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=snmp.so|' -i "$1/etc/php.ini"
  274.11  	# Start Web server.
  274.12  	while read daemon file; do
  274.13  		[ -z "$1" ] || continue
   275.1 --- a/php-soap/receipt	Sat Dec 19 21:50:31 2015 +0100
   275.2 +++ b/php-soap/receipt	Sun Dec 20 15:13:45 2015 +0100
   275.3 @@ -34,8 +34,8 @@
   275.4  
   275.5  post_install()
   275.6  {
   275.7 -	grep -q ^extension=soap.so $1/etc/php.ini || \
   275.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=soap.so|' -i $1/etc/php.ini
   275.9 +	grep -q ^extension=soap.so "$1/etc/php.ini" || \
  275.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=soap.so|' -i "$1/etc/php.ini"
  275.11  	# Start Web server.
  275.12  	while read daemon file; do
  275.13  		[ -z "$1" ] || continue
   276.1 --- a/php-sqlite/receipt	Sat Dec 19 21:50:31 2015 +0100
   276.2 +++ b/php-sqlite/receipt	Sun Dec 20 15:13:45 2015 +0100
   276.3 @@ -22,8 +22,8 @@
   276.4  
   276.5  post_install()
   276.6  {
   276.7 -	grep -q ^extension=sqlite3.so $1/etc/php.ini || \
   276.8 -	    sed -e 's|extension=msql.so|extension=msql.so\nextension=sqlite3.so|' -i $1/etc/php.ini
   276.9 +	grep -q ^extension=sqlite3.so "$1/etc/php.ini" || \
  276.10 +	    sed -e 's|extension=msql.so|extension=msql.so\nextension=sqlite3.so|' -i "$1/etc/php.ini"
  276.11  	# Start Web server.
  276.12  	while read daemon file; do
  276.13  		[ -z "$1" ] || continue
   277.1 --- a/php/receipt	Sat Dec 19 21:50:31 2015 +0100
   277.2 +++ b/php/receipt	Sun Dec 20 15:13:45 2015 +0100
   277.3 @@ -127,19 +127,19 @@
   277.4  post_install()
   277.5  {
   277.6  	# Enable php
   277.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
   277.8 -	  [ -f $1/usr/lib/lighttpd/mod_fastcgi.so ] || \
   277.9 -	  	tazpkg get-install lighttpd-modules --root=$1/
  277.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  277.11 +	  [ -f "$1/usr/lib/lighttpd/mod_fastcgi.so" ] || \
  277.12 +	  	tazpkg get-install lighttpd-modules --root="$1/"
  277.13  	  sed -e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \
  277.14  	    -e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \
  277.15  	    -e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n  )))|' \
  277.16 -	    -i $1/etc/lighttpd/lighttpd.conf
  277.17 -	  grep -q mod_fastcgi $1/etc/lighttpd/lighttpd.conf || \
  277.18 +	    -i "$1/etc/lighttpd/lighttpd.conf"
  277.19 +	  grep -q mod_fastcgi "$1/etc/lighttpd/lighttpd.conf" || \
  277.20  	  	sed -e 's|server.modules = (|server.modules = (\n  "mod_fastcgi",|' \
  277.21 -	  	    -i $1/etc/lighttpd/lighttpd.conf
  277.22 -	  grep -q php3 $1/etc/lighttpd/lighttpd.conf || \
  277.23 +	  	    -i "$1/etc/lighttpd/lighttpd.conf"
  277.24 +	  grep -q php3 "$1/etc/lighttpd/lighttpd.conf" || \
  277.25  	  	sed -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \
  277.26 -	  	    -i $1/etc/lighttpd/lighttpd.conf
  277.27 +	  	    -i "$1/etc/lighttpd/lighttpd.conf"
  277.28  	fi
  277.29  	# Start Web server.
  277.30  	if [ -z "$1" -a ! -f /var/run/lighttpd.pid \
   278.1 --- a/phpeasyvcs/receipt	Sat Dec 19 21:50:31 2015 +0100
   278.2 +++ b/phpeasyvcs/receipt	Sun Dec 20 15:13:45 2015 +0100
   278.3 @@ -29,9 +29,9 @@
   278.4  post_install()
   278.5  {
   278.6  	# Configure lighttpd server
   278.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
   278.8 -		if ! grep -q /usr/share/phpeasyvcs/ $1/etc/lighttpd/lighttpd.conf; then
   278.9 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phpeasyvcs/" => "/usr/share/phpeasyvcs/",|g' -i $1/etc/lighttpd/lighttpd.conf
  278.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  278.11 +		if ! grep -q /usr/share/phpeasyvcs/ "$1/etc/lighttpd/lighttpd.conf"; then
  278.12 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phpeasyvcs/" => "/usr/share/phpeasyvcs/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  278.13  			if [ -z "$1" ]; then
  278.14  				# Start Web server.
  278.15  				/etc/init.d/lighttpd stop
  278.16 @@ -40,9 +40,9 @@
  278.17  		fi
  278.18  	fi
  278.19  	# Configure apache server
  278.20 -	if [ -f $1/etc/apache/httpd.conf ]; then
  278.21 -		if [ ! -f $1/etc/apache/conf.d/phpeasyvcs ]; then
  278.22 -			cat > $1/etc/apache/conf.d/phpeasyvcs <<EOT
  278.23 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  278.24 +		if [ ! -f "$1/etc/apache/conf.d/phpeasyvcs" ]; then
  278.25 +			cat > "$1/etc/apache/conf.d/phpeasyvcs" <<EOT
  278.26  <IfModule mod_alias.c>
  278.27      Alias /phpeasyvcs /usr/share/phpeasyvcs
  278.28  </IfModule>
   279.1 --- a/phpldapadmin/receipt	Sat Dec 19 21:50:31 2015 +0100
   279.2 +++ b/phpldapadmin/receipt	Sun Dec 20 15:13:45 2015 +0100
   279.3 @@ -30,15 +30,15 @@
   279.4  
   279.5  post_install()
   279.6  {
   279.7 -	if [ -s $1/etc/openldap/slapd.conf ]; then
   279.8 -		rootdn=$(awk '/^rootdn/ { print $2 }' < $1/etc/openldap/slapd.conf | sed 's/"//g')
   279.9 -		sed -i "s|'login','dn','');|'login','dn','');\\n\$ldapservers->SetValue(\$i,'login','dn','$rootdn');|" $1/etc/phpldapadmin/config.php
  279.10 -		chown 80.80 $1/etc/phpldapadmin/config.php
  279.11 +	if [ -s "$1/etc/openldap/slapd.conf" ]; then
  279.12 +		rootdn=$(awk '/^rootdn/ { print $2 }' < "$1/etc/openldap/slapd.conf" | sed 's/"//g')
  279.13 +		sed -i "s|'login','dn','');|'login','dn','');\\n\$ldapservers->SetValue(\$i,'login','dn','$rootdn');|" "$1/etc/phpldapadmin/config.php"
  279.14 +		chown 80.80 "$1/etc/phpldapadmin/config.php"
  279.15  	fi
  279.16  	# Configure lighttpd server
  279.17 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
  279.18 -		if ! grep -q /usr/share/phpldapadmin/ $1/etc/lighttpd/lighttpd.conf; then
  279.19 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phpldapadmin/" => "/usr/share/phpldapadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf
  279.20 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  279.21 +		if ! grep -q /usr/share/phpldapadmin/ "$1/etc/lighttpd/lighttpd.conf"; then
  279.22 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phpldapadmin/" => "/usr/share/phpldapadmin/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  279.23  			if [ -z "$1" ]; then
  279.24  				# Start Web server.
  279.25  				/etc/init.d/lighttpd stop
  279.26 @@ -47,9 +47,9 @@
  279.27  		fi
  279.28  	fi
  279.29  	# Configure apache server
  279.30 -	if [ -f $1/etc/apache/httpd.conf ]; then
  279.31 -		if [ ! -f $1/etc/apache/conf.d/phpldapadmin ]; then
  279.32 -			cat > $1/etc/apache/conf.d/phpldapadmin <<EOT
  279.33 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  279.34 +		if [ ! -f "$1/etc/apache/conf.d/phpldapadmin" ]; then
  279.35 +			cat > "$1/etc/apache/conf.d/phpldapadmin" <<EOT
  279.36  <IfModule mod_alias.c>
  279.37      Alias /phpldapadmin /usr/share/phpldapadmin
  279.38  </IfModule>
  279.39 @@ -71,8 +71,8 @@
  279.40  	cat <<EOT
  279.41  ------
  279.42  Login DN and password are found in /etc/openldap/slapd.conf with rootdn and rootpw keywords:
  279.43 -$(grep ^rootdn $1/etc/openldap/slapd.conf)
  279.44 -$(grep ^rootpw $1/etc/openldap/slapd.conf)
  279.45 +$(grep ^rootdn "$1/etc/openldap/slapd.conf")
  279.46 +$(grep ^rootpw "$1/etc/openldap/slapd.conf")
  279.47  ------
  279.48  EOT
  279.49  }
   280.1 --- a/phpmyadmin/receipt	Sat Dec 19 21:50:31 2015 +0100
   280.2 +++ b/phpmyadmin/receipt	Sun Dec 20 15:13:45 2015 +0100
   280.3 @@ -47,11 +47,11 @@
   280.4  {
   280.5  	secret=$(dd if=/dev/urandom count=1 2> /dev/null | md5sum | sed 's/ .*//')
   280.6  	sed -i "s/^\(.*blowfish_secret'] = '\)'/\1$secret'/" \
   280.7 -		$1/etc/phpmyadmin/config.inc.php
   280.8 +		"$1/etc/phpmyadmin/config.inc.php"
   280.9  	# Configure lighttpd server
  280.10 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
  280.11 -		if ! grep -q /usr/share/phpmyadmin/ $1/etc/lighttpd/lighttpd.conf; then
  280.12 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phpmyadmin/" => "/usr/share/phpmyadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf
  280.13 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  280.14 +		if ! grep -q /usr/share/phpmyadmin/ "$1/etc/lighttpd/lighttpd.conf"; then
  280.15 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phpmyadmin/" => "/usr/share/phpmyadmin/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  280.16  			if [ -z "$1" ]; then
  280.17  				# Start Web server.
  280.18  				/etc/init.d/lighttpd stop
  280.19 @@ -60,9 +60,9 @@
  280.20  		fi
  280.21  	fi
  280.22  	# Configure apache server
  280.23 -	if [ -f $1/etc/apache/httpd.conf ]; then
  280.24 -		if [ ! -f $1/etc/apache/conf.d/phpmyadmin ]; then
  280.25 -			cat > $1/etc/apache/conf.d/phpmyadmin <<EOT
  280.26 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  280.27 +		if [ ! -f "$1/etc/apache/conf.d/phpmyadmin" ]; then
  280.28 +			cat > "$1/etc/apache/conf.d/phpmyadmin" <<EOT
  280.29  <IfModule mod_alias.c>
  280.30      Alias /phpmyadmin /usr/share/phpmyadmin
  280.31  </IfModule>
   281.1 --- a/phppgadmin/receipt	Sat Dec 19 21:50:31 2015 +0100
   281.2 +++ b/phppgadmin/receipt	Sun Dec 20 15:13:45 2015 +0100
   281.3 @@ -33,9 +33,9 @@
   281.4  post_install()
   281.5  {
   281.6  	# Configure lighttpd server
   281.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
   281.8 -		if ! grep -q /usr/share/phppgadmin/ $1/etc/lighttpd/lighttpd.conf; then
   281.9 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phppgadmin/" => "/usr/share/phppgadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf
  281.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  281.11 +		if ! grep -q /usr/share/phppgadmin/ "$1/etc/lighttpd/lighttpd.conf"; then
  281.12 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phppgadmin/" => "/usr/share/phppgadmin/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  281.13  			if [ -z "$1" ]; then
  281.14  				# Start Web server.
  281.15  				/etc/init.d/lighttpd stop
  281.16 @@ -44,9 +44,9 @@
  281.17  		fi
  281.18  	fi
  281.19  	# Configure apache server
  281.20 -	if [ -f $1/etc/apache/httpd.conf ]; then
  281.21 -		if [ ! -f $1/etc/apache/conf.d/phppgadmin ]; then
  281.22 -			cat > $1/etc/apache/conf.d/phppgadmin <<EOT
  281.23 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  281.24 +		if [ ! -f "$1/etc/apache/conf.d/phppgadmin" ]; then
  281.25 +			cat > "$1/etc/apache/conf.d/phppgadmin" <<EOT
  281.26  <IfModule mod_alias.c>
  281.27      Alias /phppgadmin /usr/share/phppgadmin
  281.28  </IfModule>
   282.1 --- a/phproxy/receipt	Sat Dec 19 21:50:31 2015 +0100
   282.2 +++ b/phproxy/receipt	Sun Dec 20 15:13:45 2015 +0100
   282.3 @@ -35,9 +35,9 @@
   282.4  post_install()
   282.5  {
   282.6  	# Configure lighttpd server
   282.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
   282.8 -		if ! grep -q /usr/share/phproxy/ $1/etc/lighttpd/lighttpd.conf; then
   282.9 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phproxy/" => "/usr/share/phproxy/",|g' -i $1/etc/lighttpd/lighttpd.conf
  282.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  282.11 +		if ! grep -q /usr/share/phproxy/ "$1/etc/lighttpd/lighttpd.conf"; then
  282.12 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phproxy/" => "/usr/share/phproxy/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  282.13  			if [ -z "$1" ]; then
  282.14  				# Start Web server.
  282.15  				/etc/init.d/lighttpd stop
  282.16 @@ -46,9 +46,9 @@
  282.17  		fi
  282.18  	fi
  282.19  	# Configure apache server
  282.20 -	if [ -f $1/etc/apache/httpd.conf ]; then
  282.21 -		if [ ! -f $1/etc/apache/conf.d/phproxy ]; then
  282.22 -			cat > $1/etc/apache/conf.d/phproxy <<EOT
  282.23 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  282.24 +		if [ ! -f "$1/etc/apache/conf.d/phproxy" ]; then
  282.25 +			cat > "$1/etc/apache/conf.d/phproxy" <<EOT
  282.26  <IfModule mod_alias.c>
  282.27      Alias /phproxy /usr/share/phproxy
  282.28  </IfModule>
   283.1 --- a/phpsysinfo/receipt	Sat Dec 19 21:50:31 2015 +0100
   283.2 +++ b/phpsysinfo/receipt	Sun Dec 20 15:13:45 2015 +0100
   283.3 @@ -44,9 +44,9 @@
   283.4  post_install()
   283.5  {
   283.6  	# Configure lighttpd server
   283.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
   283.8 -		if ! grep -q /usr/share/phpsysinfo/ $1/etc/lighttpd/lighttpd.conf; then
   283.9 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phpsysinfo/" => "/usr/share/phpsysinfo/",|g' -i $1/etc/lighttpd/lighttpd.conf
  283.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  283.11 +		if ! grep -q /usr/share/phpsysinfo/ "$1/etc/lighttpd/lighttpd.conf"; then
  283.12 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phpsysinfo/" => "/usr/share/phpsysinfo/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  283.13  			if [ -z "$1" ]; then
  283.14  				# Start Web server.
  283.15  				/etc/init.d/lighttpd stop
  283.16 @@ -55,9 +55,9 @@
  283.17  		fi
  283.18  	fi
  283.19  	# Configure apache server
  283.20 -	if [ -f $1/etc/apache/httpd.conf ]; then
  283.21 -		if [ ! -f $1/etc/apache/conf.d/phpsysinfo ]; then
  283.22 -			cat > $1/etc/apache/conf.d/phpsysinfo <<EOT
  283.23 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  283.24 +		if [ ! -f "$1/etc/apache/conf.d/phpsysinfo" ]; then
  283.25 +			cat > "$1/etc/apache/conf.d/phpsysinfo" <<EOT
  283.26  <IfModule mod_alias.c>
  283.27      Alias /phpsysinfo /usr/share/phpsysinfo
  283.28  </IfModule>
   284.1 --- a/phpvirtualbox/receipt	Sat Dec 19 21:50:31 2015 +0100
   284.2 +++ b/phpvirtualbox/receipt	Sun Dec 20 15:13:45 2015 +0100
   284.3 @@ -26,13 +26,13 @@
   284.4  post_install()
   284.5  {
   284.6  	# Virtualbox OSE needs to disable authenication for vboxwebsrv
   284.7 -	[ -d $1/var/lib/tazpkg/installed/virtualbox ] ||
   284.8 -	chroot $1/ VBoxManage setproperty websrvauthlibrary null 
   284.9 +	[ -d "$1/var/lib/tazpkg/installed/virtualbox" ] ||
  284.10 +	chroot "$1/" VBoxManage setproperty websrvauthlibrary null 
  284.11  
  284.12  	# Configure lighttpd server
  284.13 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
  284.14 -		if ! grep -q /usr/share/phpvirtualbox/ $1/etc/lighttpd/lighttpd.conf; then
  284.15 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phpvirtualbox/" => "/usr/share/phpvirtualbox/",|g' -i $1/etc/lighttpd/lighttpd.conf
  284.16 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  284.17 +		if ! grep -q /usr/share/phpvirtualbox/ "$1/etc/lighttpd/lighttpd.conf"; then
  284.18 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phpvirtualbox/" => "/usr/share/phpvirtualbox/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  284.19  			if [ -z "$1" ]; then
  284.20  				# Start Web server.
  284.21  				/etc/init.d/lighttpd stop
  284.22 @@ -41,9 +41,9 @@
  284.23  		fi
  284.24  	fi
  284.25  	# Configure apache server
  284.26 -	if [ -f $1/etc/apache/httpd.conf ]; then
  284.27 -		if [ ! -f $1/etc/apache/conf.d/phpvirtualbox ]; then
  284.28 -			cat > $1/etc/apache/conf.d/phpvirtualbox <<EOT
  284.29 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  284.30 +		if [ ! -f "$1/etc/apache/conf.d/phpvirtualbox" ]; then
  284.31 +			cat > "$1/etc/apache/conf.d/phpvirtualbox" <<EOT
  284.32  <IfModule mod_alias.c>
  284.33      Alias /phpvirtualbox /usr/share/phpvirtualbox
  284.34  </IfModule>
   285.1 --- a/pm-utils/receipt	Sat Dec 19 21:50:31 2015 +0100
   285.2 +++ b/pm-utils/receipt	Sun Dec 20 15:13:45 2015 +0100
   285.3 @@ -67,13 +67,13 @@
   285.4  
   285.5  pre_remove()
   285.6  {
   285.7 -	[ -s $1/etc/slim.conf ] &&
   285.8 -	sed -i 's|.*/usr/sbin/pm-suspend|#&|' $1/etc/slim.conf
   285.9 +	[ -s "$1/etc/slim.conf" ] &&
  285.10 +	sed -i 's|.*/usr/sbin/pm-suspend|#&|' "$1/etc/slim.conf"
  285.11  }
  285.12  
  285.13  post_install()
  285.14  {
  285.15 -	[ -s $1/etc/slim.conf ] &&
  285.16 +	[ -s "$1/etc/slim.conf" ] &&
  285.17  	sed -i 's|^#suspend_cmd.*|suspend_cmd         /usr/sbin/pm-suspend|' \
  285.18 -		$1/etc/slim.conf
  285.19 +		"$1/etc/slim.conf"
  285.20  }
   286.1 --- a/polipo/receipt	Sat Dec 19 21:50:31 2015 +0100
   286.2 +++ b/polipo/receipt	Sun Dec 20 15:13:45 2015 +0100
   286.3 @@ -35,8 +35,8 @@
   286.4  post_install()                          
   286.5  {  
   286.6  	echo -n "Creating disk cache..."                                    
   286.7 -	mkdir $1/var/cache/polipo          
   286.8 -	chown tux.tux $1/var/cache/polipo  
   286.9 +	mkdir "$1/var/cache/polipo"
  286.10 +	chown tux.tux "$1/var/cache/polipo"
  286.11  	status
  286.12  }  
  286.13  
  286.14 @@ -44,7 +44,7 @@
  286.15  post_remove()
  286.16  {
  286.17  	echo -n "Removing disk cache..."
  286.18 -	rm -rf $1/var/cache/polipo
  286.19 +	rm -rf "$1/var/cache/polipo"
  286.20  	status
  286.21  }                                    
  286.22  
   287.1 --- a/postfix/receipt	Sat Dec 19 21:50:31 2015 +0100
   287.2 +++ b/postfix/receipt	Sun Dec 20 15:13:45 2015 +0100
   287.3 @@ -84,28 +84,28 @@
   287.4  	user=postfix
   287.5  	group=postdrop
   287.6  	
   287.7 -	if ! grep -q $user $1/etc/passwd; then
   287.8 +	if ! grep -q $user "$1/etc/passwd"; then
   287.9  		echo -n "Adding user/group $user..."
  287.10 -		chroot $1/ addgroup -S $user
  287.11 -		chroot $1/ adduser -S -D -H -G $user $user
  287.12 -		chroot $1/ addgroup -S $group
  287.13 +		chroot "$1/" addgroup -S $user
  287.14 +		chroot "$1/" adduser -S -D -H -G $user $user
  287.15 +		chroot "$1/" addgroup -S $group
  287.16  		status
  287.17  	fi
  287.18  
  287.19  	# addgroup postdrop if needed
  287.20 -	if ! grep -q postdrop $1/etc/group; then
  287.21 +	if ! grep -q postdrop "$1/etc/group"; then
  287.22  		echo -n "Adding group ${group}..."
  287.23 -		chroot $1/ addgroup -S $group
  287.24 +		chroot "$1/" addgroup -S $group
  287.25  		status
  287.26  	fi
  287.27  
  287.28 -	chroot $1/ chown ${user} /var/spool/postfix/* /var/lib/postfix
  287.29 -	chroot $1/ chgrp ${group} /var/spool/postfix/maildrop \
  287.30 +	chroot "$1/" chown ${user} /var/spool/postfix/* /var/lib/postfix
  287.31 +	chroot "$1/" chgrp ${group} /var/spool/postfix/maildrop \
  287.32  		/var/spool/postfix/public /usr/sbin/postdrop /usr/sbin/postqueue
  287.33 -	chmod 2755 $1/usr/sbin/postdrop $1/usr/sbin/postqueue
  287.34 -	chmod 2710 $1/var/spool/postfix/public
  287.35 -	chmod 1730 $1/var/spool/postfix/maildrop
  287.36 -	chroot $1/ postalias /etc/postfix/aliases
  287.37 +	chmod 2755 "$1/usr/sbin/postdrop" "$1/usr/sbin/postqueue"
  287.38 +	chmod 2710 "$1/var/spool/postfix/public"
  287.39 +	chmod 1730 "$1/var/spool/postfix/maildrop"
  287.40 +	chroot "$1/" postalias /etc/postfix/aliases
  287.41  	cat <<EOF
  287.42  	
  287.43  ----
  287.44 @@ -125,7 +125,7 @@
  287.45  # Overlap busybox
  287.46  pre_install()
  287.47  {
  287.48 -	rm -f $1/usr/sbin/sendmail
  287.49 +	rm -f "$1/usr/sbin/sendmail"
  287.50  }
  287.51  
  287.52  post_remove()
   288.1 --- a/postfixadmin/receipt	Sat Dec 19 21:50:31 2015 +0100
   288.2 +++ b/postfixadmin/receipt	Sun Dec 20 15:13:45 2015 +0100
   288.3 @@ -49,9 +49,9 @@
   288.4  post_install()
   288.5  {
   288.6  	# Configure lighttpd server
   288.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
   288.8 -		if ! grep -q /usr/share/postfixadmin/ $1/etc/lighttpd/lighttpd.conf; then
   288.9 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/postfixadmin/" => "/usr/share/postfixadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf
  288.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  288.11 +		if ! grep -q /usr/share/postfixadmin/ "$1/etc/lighttpd/lighttpd.conf"; then
  288.12 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/postfixadmin/" => "/usr/share/postfixadmin/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  288.13  			if [ -z "$1" ]; then
  288.14  				# Start Web server.
  288.15  				/etc/init.d/lighttpd stop
  288.16 @@ -60,9 +60,9 @@
  288.17  		fi
  288.18  	fi
  288.19  	# Configure apache server
  288.20 -	if [ -f $1/etc/apache/httpd.conf ]; then
  288.21 -		if [ ! -f $1/etc/apache/conf.d/postfixadmin ]; then
  288.22 -			cat > $1/etc/apache/conf.d/postfixadmin <<EOT
  288.23 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  288.24 +		if [ ! -f "$1/etc/apache/conf.d/postfixadmin" ]; then
  288.25 +			cat > "$1/etc/apache/conf.d/postfixadmin" <<EOT
  288.26  <IfModule mod_alias.c>
  288.27      Alias /postfixadmin /usr/share/postfixadmin
  288.28  </IfModule>
  288.29 @@ -82,6 +82,3 @@
  288.30  		fi
  288.31  	fi
  288.32  }
  288.33 -
  288.34 -
  288.35 -
   289.1 --- a/postgresql/receipt	Sat Dec 19 21:50:31 2015 +0100
   289.2 +++ b/postgresql/receipt	Sun Dec 20 15:13:45 2015 +0100
   289.3 @@ -56,20 +56,20 @@
   289.4  post_install()
   289.5  {
   289.6          # adduser postgres if needed
   289.7 -	if ! grep -q postgres: $1/etc/passwd; then
   289.8 +	if ! grep -q postgres: "$1/etc/passwd"; then
   289.9  		echo -n "Adding user postgres..."
  289.10 -		chroot $1/ adduser postgres -D -H -u 88 -h /var/lib/pgsql
  289.11 -		#[ -d $1/var/lib/pgsql ] && rm -f $1/var/lib/pgsql/.* $1/var/lib/pgsql/*
  289.12 +		chroot "$1/" adduser postgres -D -H -u 88 -h /var/lib/pgsql
  289.13 +		#[ -d "$1/var/lib/pgsql" ] && rm -f "$1/var/lib/pgsql"/.* "$1/var/lib/pgsql"/*
  289.14  		status
  289.15  	fi
  289.16  	# addgroup postgres if needed
  289.17 -	if ! grep -q postgres: $1/etc/group; then
  289.18 +	if ! grep -q postgres: "$1/etc/group"; then
  289.19  		echo -n "Adding group postgres..."
  289.20 -		chroot $1/ sh -c 'addgroup -g 88 postgres'
  289.21 +		chroot "$1/" sh -c 'addgroup -g 88 postgres'
  289.22  		status
  289.23  	fi
  289.24 -	[ ! -d $1/var/lib/pgsql ] && mkdir -p $1/var/lib/pgsql
  289.25 -	chroot $1/ chown -R postgres.postgres /var/lib/pgsql /var/log/postgresql
  289.26 +	[ ! -d "$1/var/lib/pgsql" ] && mkdir -p "$1/var/lib/pgsql"
  289.27 +	chroot "$1/" chown -R postgres.postgres /var/lib/pgsql /var/log/postgresql
  289.28  	cat <<EOF
  289.29  ----
  289.30  postgres has superuser access.
  289.31 @@ -87,5 +87,5 @@
  289.32  {
  289.33  	# when both user and group have the same id# and name
  289.34  	# both group and user will get removed with either delusr/delgroup
  289.35 -	chroot $1/ deluser postgres
  289.36 +	chroot "$1/" deluser postgres
  289.37  }
   290.1 --- a/postgrey/receipt	Sat Dec 19 21:50:31 2015 +0100
   290.2 +++ b/postgrey/receipt	Sun Dec 20 15:13:45 2015 +0100
   290.3 @@ -26,7 +26,7 @@
   290.4  # Pre and post install commands for Tazpkg.
   290.5  post_install()
   290.6  {
   290.7 -	chroot $1/ chown postfix /var/spool/postfix/postgrey
   290.8 +	chroot "$1/" chown postfix /var/spool/postfix/postgrey
   290.9  	cat <<EOF
  290.10  ----
  290.11  To use $PACKAGE with postfix, add check_policy_service inet:127.0.0.1:60000 in
   291.1 --- a/privoxy/receipt	Sat Dec 19 21:50:31 2015 +0100
   291.2 +++ b/privoxy/receipt	Sun Dec 20 15:13:45 2015 +0100
   291.3 @@ -51,24 +51,24 @@
   291.4  post_install()
   291.5  {
   291.6  	# adduser privoxy if needed
   291.7 -	if ! grep -q privoxy $1/etc/passwd; then
   291.8 +	if ! grep -q privoxy "$1/etc/passwd"; then
   291.9  		echo -n "Adding user privoxy..."
  291.10 -		chroot $1/ adduser -s /bin/false -H -D -u 42 privoxy
  291.11 +		chroot "$1/" adduser -s /bin/false -H -D -u 42 privoxy
  291.12  		status
  291.13  	fi
  291.14  
  291.15 -	if ! grep -q privoxy $1/etc/group; then
  291.16 +	if ! grep -q privoxy "$1/etc/group"; then
  291.17  		echo -n "Adding group privoxy..."
  291.18 -		chroot $1/ addgroup -g 42 privoxy
  291.19 +		chroot "$1/" addgroup -g 42 privoxy
  291.20  		status
  291.21  	fi
  291.22  
  291.23  	# and change file permissions
  291.24  	echo -n "Changing file permissions..."
  291.25 -	chroot $1/ chown -R privoxy.privoxy /etc/privoxy
  291.26 -	chown -R root.root $1/etc/privoxy/templates
  291.27 -	chown root.root $1/etc/privoxy
  291.28 -	chroot $1/ chown privoxy.privoxy /var/log/privoxy/logfile
  291.29 +	chroot "$1/" chown -R privoxy.privoxy /etc/privoxy
  291.30 +	chown -R root.root "$1/etc/privoxy/templates"
  291.31 +	chown root.root "$1/etc/privoxy"
  291.32 +	chroot "$1/" chown privoxy.privoxy /var/log/privoxy/logfile
  291.33  	status
  291.34  }
  291.35  
   292.1 --- a/procps/receipt	Sat Dec 19 21:50:31 2015 +0100
   292.2 +++ b/procps/receipt	Sun Dec 20 15:13:45 2015 +0100
   292.3 @@ -34,16 +34,16 @@
   292.4  # Overlap busybox
   292.5  pre_install()
   292.6  {
   292.7 -	rm -f $1/bin/kill
   292.8 -	rm -f $1/bin/ps
   292.9 -	rm -f $1/bin/watch
  292.10 -	rm -f $1/sbin/sysctl
  292.11 -	rm -f $1/usr/bin/pkill
  292.12 -	rm -f $1/usr/bin/pmap
  292.13 -	rm -f $1/usr/bin/pgrep
  292.14 -	rm -f $1/usr/bin/top
  292.15 -	rm -f $1/usr/bin/free
  292.16 -	rm -f $1/usr/bin/uptime
  292.17 +	rm -f "$1/bin/kill"
  292.18 +	rm -f "$1/bin/ps"
  292.19 +	rm -f "$1/bin/watch"
  292.20 +	rm -f "$1/sbin/sysctl"
  292.21 +	rm -f "$1/usr/bin/pkill"
  292.22 +	rm -f "$1/usr/bin/pmap"
  292.23 +	rm -f "$1/usr/bin/pgrep"
  292.24 +	rm -f "$1/usr/bin/top"
  292.25 +	rm -f "$1/usr/bin/free"
  292.26 +	rm -f "$1/usr/bin/uptime"
  292.27  }
  292.28  
  292.29  post_remove()
   293.1 --- a/ptxdist/receipt	Sat Dec 19 21:50:31 2015 +0100
   293.2 +++ b/ptxdist/receipt	Sun Dec 20 15:13:45 2015 +0100
   293.3 @@ -23,7 +23,7 @@
   293.4  # Pre and post install commands for Tazpkg.
   293.5  post_install()
   293.6  {
   293.7 -	[ -L $1/usr/bin/wget ] && tazpkg get-install wget --forced --root=${1:-/}
   293.8 +	[ -L "$1/usr/bin/wget" ] && tazpkg get-install wget --forced --root="${1:-/}"
   293.9  	cat <<EOT
  293.10  Now you can do:
  293.11  $ cd /usr/lib/buildroot
   294.1 --- a/pwsafe/receipt	Sat Dec 19 21:50:31 2015 +0100
   294.2 +++ b/pwsafe/receipt	Sun Dec 20 15:13:45 2015 +0100
   294.3 @@ -35,7 +35,5 @@
   294.4  
   294.5  post_install() 
   294.6  {
   294.7 -    local root
   294.8 -    root=$1
   294.9 -    chmod u+s $root/usr/bin/pwsafe
  294.10 +    chmod u+s "$1/usr/bin/pwsafe"
  294.11  }
   295.1 --- a/pxe-kexec/receipt	Sat Dec 19 21:50:31 2015 +0100
   295.2 +++ b/pxe-kexec/receipt	Sun Dec 20 15:13:45 2015 +0100
   295.3 @@ -33,8 +33,8 @@
   295.4  # Pre and post install commands for Tazpkg.
   295.5  post_install()
   295.6  {
   295.7 -	grep -q kexec $1/etc/init.d/rc.shutdown &&
   295.8 -	cat >> $1/etc/init.d/rc.shutdown <<EOT
   295.9 +	grep -q kexec "$1/etc/init.d/rc.shutdown" &&
  295.10 +	cat >> "$1/etc/init.d/rc.shutdown" <<EOT
  295.11  # pxe-kexec want kexec in shutdown script.
  295.12  kexec -e 2>&1 > /dev/null
  295.13  EOT
  295.14 @@ -42,5 +42,5 @@
  295.15  
  295.16  post_remove()
  295.17  {
  295.18 -	sed -i '/kexec/d' $1/etc/init.d/rc.shutdown
  295.19 +	sed -i '/kexec/d' "$1/etc/init.d/rc.shutdown"
  295.20  }
   296.1 --- a/pybootchartgui/receipt	Sat Dec 19 21:50:31 2015 +0100
   296.2 +++ b/pybootchartgui/receipt	Sun Dec 20 15:13:45 2015 +0100
   296.3 @@ -25,22 +25,18 @@
   296.4  
   296.5  post_install()
   296.6  {
   296.7 -	local root
   296.8 -	root=$1
   296.9 -	PY_VERSION=`cat /var/lib/tazpkg/installed/python/receipt | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2`
  296.10 -	if [ -f  $root/usr/bin/pybootchartgui ] ; then rm $root/usr/bin/pybootchartgui ; fi
  296.11 -	ln -s $root/usr/lib/python$PY_VERSION/pybootchartgui.py $root/usr/bin/pybootchartgui
  296.12 -	if [ -f $root/etc/bootchartd.conf ] ; then
  296.13 -		sed -i s/'AUTO_RENDER="no"'/'AUTO_RENDER="yes"'/ $root/etc/bootchartd.conf
  296.14 +	PY_VERSION=$(cat "$1/var/lib/tazpkg/installed/python/receipt" | grep "VERSION="|cut -d \" -f 2 | cut -d . -f 1,2)
  296.15 +	if [ -f  "$1/usr/bin/pybootchartgui" ] ; then rm "$1/usr/bin/pybootchartgui" ; fi
  296.16 +	ln -s "$1/usr/lib/python$PY_VERSION/pybootchartgui.py" "$1/usr/bin/pybootchartgui"
  296.17 +	if [ -f "$1/etc/bootchartd.conf" ] ; then
  296.18 +		sed -i s/'AUTO_RENDER="no"'/'AUTO_RENDER="yes"'/ "$1/etc/bootchartd.conf"
  296.19  	fi
  296.20  }
  296.21  
  296.22  post_remove()
  296.23  {
  296.24 -	local root
  296.25 -	root=$1
  296.26 -    rm $root/usr/bin/pybootchartgui
  296.27 -    if [ -f $root/etc/bootchartd.conf ] ; then 
  296.28 -    	sed -i s/'AUTO_RENDER="yes"'/'AUTO_RENDER="no"'/ $root/etc/bootchartd.conf
  296.29 -    fi
  296.30 +  	rm "$1/usr/bin/pybootchartgui"
  296.31 + 	if [ -f "$1/etc/bootchartd.conf" ] ; then 
  296.32 + 		sed -i s/'AUTO_RENDER="yes"'/'AUTO_RENDER="no"'/ "$1/etc/bootchartd.conf"
  296.33 + 	fi
  296.34  }
   297.1 --- a/pyradio/receipt	Sat Dec 19 21:50:31 2015 +0100
   297.2 +++ b/pyradio/receipt	Sun Dec 20 15:13:45 2015 +0100
   297.3 @@ -27,6 +27,6 @@
   297.4  post_install()
   297.5  {
   297.6  	# hack for path to stations file
   297.7 -	sed -i 's|__file__|"/usr/share/pyradio/"|g' $1/usr/bin/pyradio 
   297.8 +	sed -i 's|__file__|"/usr/share/pyradio/"|g' "$1/usr/bin/pyradio"
   297.9  }
  297.10  
   298.1 --- a/python-django/receipt	Sat Dec 19 21:50:31 2015 +0100
   298.2 +++ b/python-django/receipt	Sun Dec 20 15:13:45 2015 +0100
   298.3 @@ -31,7 +31,7 @@
   298.4  # Remove old package.
   298.5  post_install()
   298.6  {
   298.7 -	[ ! -d $1/var/lib/tazpkg/installed/django ] ||
   298.8 -	rm -rf $1/var/lib/tazpkg/installed/django
   298.9 +	[ ! -d "$1/var/lib/tazpkg/installed/django" ] ||
  298.10 +	rm -rf "$1/var/lib/tazpkg/installed/django"
  298.11  }
  298.12  
   299.1 --- a/python-docutils/receipt	Sat Dec 19 21:50:31 2015 +0100
   299.2 +++ b/python-docutils/receipt	Sun Dec 20 15:13:45 2015 +0100
   299.3 @@ -29,6 +29,6 @@
   299.4  # Remove old package.
   299.5  post_install()
   299.6  {
   299.7 -	[ ! -d $1/var/lib/tazpkg/installed/docutils ] ||
   299.8 -	rm -rf $1/var/lib/tazpkg/installed/docutils
   299.9 +	[ ! -d "$1/var/lib/tazpkg/installed/docutils" ] ||
  299.10 +	rm -rf "$1/var/lib/tazpkg/installed/docutils"
  299.11  }
   300.1 --- a/python-jinja2/receipt	Sat Dec 19 21:50:31 2015 +0100
   300.2 +++ b/python-jinja2/receipt	Sun Dec 20 15:13:45 2015 +0100
   300.3 @@ -29,6 +29,6 @@
   300.4  # Remove old package.
   300.5  post_install()
   300.6  {
   300.7 -	[ ! -d $1/var/lib/tazpkg/installed/jinja2 ] ||
   300.8 -	rm -rf $1/var/lib/tazpkg/installed/jinja2
   300.9 +	[ ! -d "$1/var/lib/tazpkg/installed/jinja2" ] ||
  300.10 +	rm -rf "$1/var/lib/tazpkg/installed/jinja2"
  300.11  }
   301.1 --- a/python-mysql/receipt	Sat Dec 19 21:50:31 2015 +0100
   301.2 +++ b/python-mysql/receipt	Sun Dec 20 15:13:45 2015 +0100
   301.3 @@ -32,7 +32,7 @@
   301.4  # Remove old package.
   301.5  post_install()
   301.6  {
   301.7 -	[ ! -d $1/var/lib/tazpkg/installed/mysql-python ] ||
   301.8 -		rm -rf $1/var/lib/tazpkg/installed/mysql-python
   301.9 +	[ ! -d "$1/var/lib/tazpkg/installed/mysql-python" ] ||
  301.10 +		rm -rf "$1/var/lib/tazpkg/installed/mysql-python"
  301.11  }
  301.12  
   302.1 --- a/python-numpy/receipt	Sat Dec 19 21:50:31 2015 +0100
   302.2 +++ b/python-numpy/receipt	Sun Dec 20 15:13:45 2015 +0100
   302.3 @@ -32,6 +32,6 @@
   302.4  # Remove old package.
   302.5  post_install()
   302.6  {
   302.7 -	[ ! -d $1/var/lib/tazpkg/installed/numpy ] ||
   302.8 -	rm -rf $1/var/lib/tazpkg/installed/numpy
   302.9 +	[ ! -d "$1/var/lib/tazpkg/installed/numpy" ] ||
  302.10 +	rm -rf "$1/var/lib/tazpkg/installed/numpy"
  302.11  }
   303.1 --- a/python-pil/receipt	Sat Dec 19 21:50:31 2015 +0100
   303.2 +++ b/python-pil/receipt	Sun Dec 20 15:13:45 2015 +0100
   303.3 @@ -31,6 +31,6 @@
   303.4  # Remove old package.
   303.5  post_install()
   303.6  {
   303.7 -	[ ! -d $1/var/lib/tazpkg/installed/pil ] ||
   303.8 -	rm -rf $1/var/lib/tazpkg/installed/pil
   303.9 +	[ ! -d "$1/var/lib/tazpkg/installed/pil" ] ||
  303.10 +	rm -rf "$1/var/lib/tazpkg/installed/pil"
  303.11  }
   304.1 --- a/python-pychart/receipt	Sat Dec 19 21:50:31 2015 +0100
   304.2 +++ b/python-pychart/receipt	Sun Dec 20 15:13:45 2015 +0100
   304.3 @@ -31,7 +31,7 @@
   304.4  # Remove old package.
   304.5  post_install()
   304.6  {
   304.7 -	[ ! -d $1/var/lib/tazpkg/installed/pychart ] ||
   304.8 -	rm -rf $1/var/lib/tazpkg/installed/pychart
   304.9 +	[ ! -d "$1/var/lib/tazpkg/installed/pychart" ] ||
  304.10 +	rm -rf "$1/var/lib/tazpkg/installed/pychart"
  304.11  }
  304.12  
   305.1 --- a/python-pydot/receipt	Sat Dec 19 21:50:31 2015 +0100
   305.2 +++ b/python-pydot/receipt	Sun Dec 20 15:13:45 2015 +0100
   305.3 @@ -31,7 +31,7 @@
   305.4  # Remove old package.
   305.5  post_install()
   305.6  {
   305.7 -	[ ! -d $1/var/lib/tazpkg/installed/pydot ] ||
   305.8 -	rm -rf $1/var/lib/tazpkg/installed/pydot
   305.9 +	[ ! -d "$1/var/lib/tazpkg/installed/pydot" ] ||
  305.10 +	rm -rf "$1/var/lib/tazpkg/installed/pydot"
  305.11  }
  305.12  
   306.1 --- a/python-pygame/receipt	Sat Dec 19 21:50:31 2015 +0100
   306.2 +++ b/python-pygame/receipt	Sun Dec 20 15:13:45 2015 +0100
   306.3 @@ -40,6 +40,6 @@
   306.4  # Remove old package.
   306.5  post_install()
   306.6  {
   306.7 -	[ ! -d $1/var/lib/tazpkg/installed/pygame/examples ] ||
   306.8 -	rm -rf $1/var/lib/tazpkg/installed/pygame/examples
   306.9 +	[ ! -d "$1/var/lib/tazpkg/installed/pygame/examples" ] ||
  306.10 +	rm -rf "$1/var/lib/tazpkg/installed/pygame/examples"
  306.11  }
   307.1 --- a/python-pypdf/receipt	Sat Dec 19 21:50:31 2015 +0100
   307.2 +++ b/python-pypdf/receipt	Sun Dec 20 15:13:45 2015 +0100
   307.3 @@ -29,6 +29,6 @@
   307.4  # Remove old package.
   307.5  post_install()
   307.6  {
   307.7 -	[ ! -d $1/var/lib/tazpkg/installed/pypdf ] ||
   307.8 -	rm -rf $1/var/lib/tazpkg/installed/pypdf
   307.9 +	[ ! -d "$1/var/lib/tazpkg/installed/pypdf" ] ||
  307.10 +	rm -rf "$1/var/lib/tazpkg/installed/pypdf"
  307.11  }
   308.1 --- a/python-pytz/receipt	Sat Dec 19 21:50:31 2015 +0100
   308.2 +++ b/python-pytz/receipt	Sun Dec 20 15:13:45 2015 +0100
   308.3 @@ -31,6 +31,6 @@
   308.4  # Remove old package.
   308.5  post_install()
   308.6  {
   308.7 -	[ ! -d $1/var/lib/tazpkg/installed/pytz ] ||
   308.8 -	rm -rf $1/var/lib/tazpkg/installed/pytz
   308.9 +	[ ! -d "$1/var/lib/tazpkg/installed/pytz" ] ||
  308.10 +	rm -rf "$1/var/lib/tazpkg/installed/pytz"
  308.11  }
   309.1 --- a/python-pyxml/receipt	Sat Dec 19 21:50:31 2015 +0100
   309.2 +++ b/python-pyxml/receipt	Sun Dec 20 15:13:45 2015 +0100
   309.3 @@ -31,6 +31,6 @@
   309.4  # Remove old package.
   309.5  post_install()
   309.6  {
   309.7 -	[ ! -d $1/var/lib/tazpkg/installed/pyxml ] ||
   309.8 -	rm -rf $1/var/lib/tazpkg/installed/pyxml
   309.9 +	[ ! -d "$1/var/lib/tazpkg/installed/pyxml" ] ||
  309.10 +	rm -rf "$1/var/lib/tazpkg/installed/pyxml"
  309.11  }
   310.1 --- a/python-reportlab/receipt	Sat Dec 19 21:50:31 2015 +0100
   310.2 +++ b/python-reportlab/receipt	Sun Dec 20 15:13:45 2015 +0100
   310.3 @@ -37,7 +37,7 @@
   310.4  # Remove old package.
   310.5  post_install()
   310.6  {
   310.7 -	[ ! -d $1/var/lib/tazpkg/installed/reportlab ] ||
   310.8 -	rm -rf $1/var/lib/tazpkg/installed/reportlab
   310.9 +	[ ! -d "$1/var/lib/tazpkg/installed/reportlab" ] ||
  310.10 +	rm -rf "$1/var/lib/tazpkg/installed/reportlab"
  310.11  }
  310.12  
   311.1 --- a/python-simplejson/receipt	Sat Dec 19 21:50:31 2015 +0100
   311.2 +++ b/python-simplejson/receipt	Sun Dec 20 15:13:45 2015 +0100
   311.3 @@ -45,6 +45,6 @@
   311.4  # Remove old package.
   311.5  post_install()
   311.6  {
   311.7 -	[ ! -d $1/var/lib/tazpkg/installed/simplejson ] ||
   311.8 -	rm -rf $1/var/lib/tazpkg/installed/simplejson
   311.9 +	[ ! -d "$1/var/lib/tazpkg/installed/simplejson" ] ||
  311.10 +	rm -rf "$1/var/lib/tazpkg/installed/simplejson"
  311.11  }
   312.1 --- a/python-sphinx/receipt	Sat Dec 19 21:50:31 2015 +0100
   312.2 +++ b/python-sphinx/receipt	Sun Dec 20 15:13:45 2015 +0100
   312.3 @@ -31,6 +31,6 @@
   312.4  # Remove old package.
   312.5  post_install()
   312.6  {
   312.7 -	[ ! -d $1/var/lib/tazpkg/installed/sphinx ] ||
   312.8 -	rm -rf $1/var/lib/tazpkg/installed/sphinx
   312.9 +	[ ! -d "$1/var/lib/tazpkg/installed/sphinx" ] ||
  312.10 +	rm -rf "$1/var/lib/tazpkg/installed/sphinx"
  312.11  }
   313.1 --- a/qcad/receipt	Sat Dec 19 21:50:31 2015 +0100
   313.2 +++ b/qcad/receipt	Sun Dec 20 15:13:45 2015 +0100
   313.3 @@ -51,7 +51,7 @@
   313.4  
   313.5  post_install()
   313.6  {
   313.7 -        cd $1/usr/lib/qcad
   313.8 +        cd "$1/usr/lib/qcad"
   313.9  	mv -f lib-freetype-.-so-.-6 libfreetype.so.6
  313.10  }
  313.11  
   314.1 --- a/razorqt/receipt	Sat Dec 19 21:50:31 2015 +0100
   314.2 +++ b/razorqt/receipt	Sun Dec 20 15:13:45 2015 +0100
   314.3 @@ -96,11 +96,11 @@
   314.4  
   314.5  post_install()
   314.6  {
   314.7 -	res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
   314.8 +	res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
   314.9  	# Adding WM to SLIM available sessions.
  314.10  	if ! echo "$res" | grep -q $PACKAGE; then
  314.11  		echo -n "Adding $PACKAGE to /etc/slim.conf..."
  314.12 -		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" $1/etc/slim.conf
  314.13 +		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" "$1/etc/slim.conf"
  314.14  		status
  314.15  	fi
  314.16  	true
  314.17 @@ -109,7 +109,7 @@
  314.18  post_remove()
  314.19  {
  314.20  	# Remove WM from SLIM available sessions.
  314.21 -	if grep -q $PACKAGE $1/etc/slim.conf; then
  314.22 -		sed -i s/,$PACKAGE// $1/etc/slim.conf
  314.23 +	if grep -q $PACKAGE "$1/etc/slim.conf"; then
  314.24 +		sed -i s/,$PACKAGE// "$1/etc/slim.conf"
  314.25  	fi
  314.26  }
   315.1 --- a/remind/receipt	Sat Dec 19 21:50:31 2015 +0100
   315.2 +++ b/remind/receipt	Sun Dec 20 15:13:45 2015 +0100
   315.3 @@ -36,16 +36,16 @@
   315.4  post_install()
   315.5  {
   315.6  	# Check for ~/.reminders file - needed for wyrd
   315.7 -	for i in $(ls $1/home 2> /dev/null); do
   315.8 -		[ -f $1/home/$i/.reminders ] && continue
   315.9 +	for i in $(ls "$1/home" 2> /dev/null); do
  315.10 +		[ -f "$1/home/$i/.reminders" ] && continue
  315.11  		echo -n "Creating config file for $i ..."
  315.12 -		touch $1/home/$i/.reminders 
  315.13 -		chroot $1/ chown $(stat -c "%u.%g" $1/home/$i) /home/$i/.reminders
  315.14 +		touch "$1/home/$i/.reminders" 
  315.15 +		chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.reminders"
  315.16  		status
  315.17  	done
  315.18  }
  315.19  
  315.20  post_remove()
  315.21  {
  315.22 -	rm -f $1/home/*/.reminders
  315.23 +	rm -f "$1"/home/*/.reminders
  315.24  }
   316.1 --- a/rox-filer/receipt	Sat Dec 19 21:50:31 2015 +0100
   316.2 +++ b/rox-filer/receipt	Sun Dec 20 15:13:45 2015 +0100
   316.3 @@ -70,14 +70,14 @@
   316.4  # Check /usr/share/icons/ROX
   316.5  post_install()
   316.6  { 
   316.7 -	if [ -e $1/usr/share/icons/ROX ]; then
   316.8 +	if [ -e "$1/usr/share/icons/ROX" ]; then
   316.9  		echo ""
  316.10  		echo "/usr/share/icons/ROX exists"
  316.11  	else
  316.12  		echo ""
  316.13  		echo "/usr/share/icons/ROX doesn't exists"
  316.14  		echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango"
  316.15 -		ln -s /usr/share/icons/Tango $1/usr/share/icons/ROX
  316.16 +		ln -s /usr/share/icons/Tango "$1/usr/share/icons/ROX"
  316.17  		status
  316.18  	fi
  316.19  }
   317.1 --- a/rpm4/receipt	Sat Dec 19 21:50:31 2015 +0100
   317.2 +++ b/rpm4/receipt	Sun Dec 20 15:13:45 2015 +0100
   317.3 @@ -78,19 +78,19 @@
   317.4  
   317.5  pre_remove()
   317.6  {
   317.7 -	if [ -d $1/var/lib/rpm ]; then
   317.8 -		rm -f $1/var/lib/rpm/*
   317.9 +	if [ -d "$1/var/lib/rpm" ]; then
  317.10 +		rm -f "$1"/var/lib/rpm/*
  317.11  	fi
  317.12  }
  317.13  
  317.14  post_remove()
  317.15  {
  317.16  	echo "Processing post remove commands..."
  317.17 -	cmd=`readlink $root/bin/rpm`
  317.18 +	cmd=$(readlink "$1/bin/rpm")
  317.19      	if [ ! "$cmd" = "/bin/rpm" ]; then
  317.20  		echo -n "Restore applets from busybox..."
  317.21 -		ln -sf $root/bin/busybox $root/bin/rpm
  317.22 -		ln -sf $root/bin/busybox $root/usr/bin/rpm2cpio
  317.23 +		ln -sf /bin/busybox "$1/bin/rpm"
  317.24 +		ln -sf /bin/busybox "$1/usr/bin/rpm2cpio"
  317.25  		status
  317.26  	fi
  317.27  }
   318.1 --- a/rsync/receipt	Sat Dec 19 21:50:31 2015 +0100
   318.2 +++ b/rsync/receipt	Sun Dec 20 15:13:45 2015 +0100
   318.3 @@ -47,12 +47,12 @@
   318.4  	cp -a $stuff/usr $fs
   318.5  	chown root.root $fs/etc/init.d/*
   318.6  	chmod 0644 $fs/etc/rsyncd.conf
   318.7 -	grep -q rsync $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
   318.8 +	grep -q rsync "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
   318.9  #rsync	stream	tcp	nowait	root	rsync	rsync	-daemon
  318.10  EOT
  318.11  }
  318.12  
  318.13  post_remove()
  318.14  {
  318.15 -	grep -q rsync $1/etc/inetd.conf && sed -i '/rsync/d' $1/etc/inetd.conf
  318.16 +	grep -q rsync "$1/etc/inetd.conf" && sed -i '/rsync/d' "$1/etc/inetd.conf"
  318.17  }
   319.1 --- a/runcom/receipt	Sat Dec 19 21:50:31 2015 +0100
   319.2 +++ b/runcom/receipt	Sun Dec 20 15:13:45 2015 +0100
   319.3 @@ -53,7 +53,7 @@
   319.4  # Pre remove command for Tazpkg.
   319.5  pre_remove()
   319.6  {
   319.7 -	echo -1 > $1/proc/sys/fs/binfmt_misc/BOOTBIN
   319.8 -	echo -1 > $1/proc/sys/fs/binfmt_misc/DOSCOM
   319.9 -	sed -i '/binfmt_misc/{NN;/DOSCOM:E::com/d}' $1/etc/init.d/local.sh
  319.10 +	echo -1 > "$1/proc/sys/fs/binfmt_misc/BOOTBIN"
  319.11 +	echo -1 > "$1/proc/sys/fs/binfmt_misc/DOSCOM"
  319.12 +	sed -i '/binfmt_misc/{NN;/DOSCOM:E::com/d}' "$1/etc/init.d/local.sh"
  319.13  }
   320.1 --- a/sane-backends/receipt	Sat Dec 19 21:50:31 2015 +0100
   320.2 +++ b/sane-backends/receipt	Sun Dec 20 15:13:45 2015 +0100
   320.3 @@ -64,20 +64,17 @@
   320.4  
   320.5  post_install()
   320.6  {
   320.7 -	local root
   320.8 -	root=$1
   320.9 -	
  320.10 -	tazpkg reconfigure udev --root=$root
  320.11 +	tazpkg reconfigure udev --root="$1"
  320.12  	
  320.13  	# add group scanner
  320.14 -	if ! grep -q scanner $root/etc/group ; then
  320.15 -		chroot "$root/" addgroup -g 96 scanner
  320.16 +	if ! grep -q scanner "$1/etc/group" ; then
  320.17 +		chroot "$1/" addgroup -g 96 scanner
  320.18  	fi
  320.19  	
  320.20  	echo " ADD yourself to group scanner to use sane: addgroup tux scanner"
  320.21  	
  320.22 -	[ -e $root/var/www/tazpanel/tmp ] ||
  320.23 -	ln -s /tmp $root/var/www/tazpanel/tmp
  320.24 +	[ -e "$1/var/www/tazpanel/tmp" ] ||
  320.25 +	ln -s /tmp "$1/var/www/tazpanel/tmp"
  320.26  }
  320.27  
  320.28  post_remove()
   321.1 --- a/shaarli/receipt	Sat Dec 19 21:50:31 2015 +0100
   321.2 +++ b/shaarli/receipt	Sun Dec 20 15:13:45 2015 +0100
   321.3 @@ -25,5 +25,5 @@
   321.4  
   321.5  post_install()
   321.6  {
   321.7 -	chown -R www $1/var/www/$PACKAGE
   321.8 +	chown -R www "$1/var/www/$PACKAGE"
   321.9  }
   322.1 --- a/shaarlo/receipt	Sat Dec 19 21:50:31 2015 +0100
   322.2 +++ b/shaarlo/receipt	Sun Dec 20 15:13:45 2015 +0100
   322.3 @@ -28,7 +28,7 @@
   322.4  
   322.5  post_install()
   322.6  {
   322.7 -	chown -R www $1/var/www/$PACKAGE
   322.8 +	chown -R www "$1/var/www/$PACKAGE"
   322.9  	cat <<EOT
  322.10  Configure /etc/shaarlo.php and put /var/www/$PACKAGE/refresh.php in crontab
  322.11  EOT
   323.1 --- a/shell-detector/receipt	Sat Dec 19 21:50:31 2015 +0100
   323.2 +++ b/shell-detector/receipt	Sun Dec 20 15:13:45 2015 +0100
   323.3 @@ -32,9 +32,9 @@
   323.4  post_install()
   323.5  {
   323.6  	# Configure lighttpd server
   323.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
   323.8 -		if ! grep -q /usr/share/phpsysinfo/ $1/etc/lighttpd/lighttpd.conf; then
   323.9 -	    		sed -e "s|.*\"/examples/\" => \"/usr/share/examples/\",|    \"/examples/\" => \"/usr/share/examples/\",\\n    \"/$PACKAGE/\" => \"/usr/share/$PACKAGE/\",|g" -i $1/etc/lighttpd/lighttpd.conf
  323.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  323.11 +		if ! grep -q /usr/share/phpsysinfo/ "$1/etc/lighttpd/lighttpd.conf"; then
  323.12 +	    		sed -e "s|.*\"/examples/\" => \"/usr/share/examples/\",|    \"/examples/\" => \"/usr/share/examples/\",\\n    \"/$PACKAGE/\" => \"/usr/share/$PACKAGE/\",|g" -i "$1/etc/lighttpd/lighttpd.conf"
  323.13  			if [ -z "$1" ]; then
  323.14  				# Start Web server.
  323.15  				/etc/init.d/lighttpd stop
  323.16 @@ -43,9 +43,9 @@
  323.17  		fi
  323.18  	fi
  323.19  	# Configure apache server
  323.20 -	if [ -f $1/etc/apache/httpd.conf ]; then
  323.21 -		if [ ! -f $1/etc/apache/conf.d/$PACKAGE ]; then
  323.22 -			cat > $1/etc/apache/conf.d/$PACKAGE <<EOT
  323.23 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  323.24 +		if [ ! -f "$1/etc/apache/conf.d/$PACKAGE" ]; then
  323.25 +			cat > "$1/etc/apache/conf.d/$PACKAGE" <<EOT
  323.26  <IfModule mod_alias.c>
  323.27      Alias /$PACKAGE /usr/share/$PACKAGE
  323.28  </IfModule>
   324.1 --- a/silc-server/receipt	Sat Dec 19 21:50:31 2015 +0100
   324.2 +++ b/silc-server/receipt	Sun Dec 20 15:13:45 2015 +0100
   324.3 @@ -36,5 +36,5 @@
   324.4  # Pre and post install commands for Tazpkg.
   324.5  post_install()
   324.6  {
   324.7 -	[ -s $1/etc/silcd.pub ] || chroot $1/ /usr/sbin/silcd -C /etc
   324.8 +	[ -s "$1/etc/silcd.pub" ] || chroot "$1/" /usr/sbin/silcd -C /etc
   324.9  }
   325.1 --- a/slib/receipt	Sat Dec 19 21:50:31 2015 +0100
   325.2 +++ b/slib/receipt	Sun Dec 20 15:13:45 2015 +0100
   325.3 @@ -39,7 +39,7 @@
   325.4  {
   325.5  	# add path to initialization file
   325.6  	sed -i s'#(load-from.*#(load-from-path "/usr/share/slib/guile.init")#' \
   325.7 -		$1/usr/share/guile/1.8/ice-9/slib.scm
   325.8 +		"$1/usr/share/guile/1.8/ice-9/slib.scm"
   325.9  	printf "Creating catalog"
  325.10  	chroot "$1/" guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))"
  325.11  	status
  325.12 @@ -47,5 +47,5 @@
  325.13  
  325.14  post_remove()
  325.15  {
  325.16 -	rm -f $1/usr/share/guile/1.8/slibcat
  325.17 +	rm -f "$1/usr/share/guile/1.8/slibcat"
  325.18  }
   326.1 --- a/slim-pam/receipt	Sat Dec 19 21:50:31 2015 +0100
   326.2 +++ b/slim-pam/receipt	Sun Dec 20 15:13:45 2015 +0100
   326.3 @@ -52,9 +52,9 @@
   326.4  post_install()
   326.5  {
   326.6  	local USER
   326.7 -	USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
   326.8 +	USER=$(awk -F: '/:1000:1000:/ { print $1 }' < "$1/etc/passwd")
   326.9  	[ -n "$USER" ] &&
  326.10 -	sed -i s/"default_user .*"/"default_user        $USER"/ $1/etc/slim.conf
  326.11 +	sed -i s/"default_user .*"/"default_user        $USER"/ "$1/etc/slim.conf"
  326.12  
  326.13  	# In order to update the SLiM, we need to restart it.
  326.14  	# We can't just "/etc/init.d/slim restart" because it momentarily interrupts
   327.1 --- a/slim/receipt	Sat Dec 19 21:50:31 2015 +0100
   327.2 +++ b/slim/receipt	Sun Dec 20 15:13:45 2015 +0100
   327.3 @@ -63,8 +63,8 @@
   327.4  post_install()
   327.5  {
   327.6  	local USER
   327.7 -	USER=$(awk -F: '/:1000:1000:/ { print $1 }' < $1/etc/passwd)
   327.8 +	USER=$(awk -F: '/:1000:1000:/ { print $1 }' < "$1/etc/passwd")
   327.9  	[ -n "$USER" ] &&
  327.10 -	sed -i s/"default_user .*"/"default_user        $USER"/ $1/etc/slim.conf
  327.11 -	sed -i 's|>/tmp/X-output||' $1/etc/slim.conf
  327.12 +	sed -i s/"default_user .*"/"default_user        $USER"/ "$1/etc/slim.conf"
  327.13 +	sed -i 's|>/tmp/X-output||' "$1/etc/slim.conf"
  327.14  }
   328.1 --- a/slitaz-boot-scripts/receipt	Sat Dec 19 21:50:31 2015 +0100
   328.2 +++ b/slitaz-boot-scripts/receipt	Sun Dec 20 15:13:45 2015 +0100
   328.3 @@ -56,7 +56,7 @@
   328.4  	case "$SLITAZ_ARCH" in
   328.5  		i?86)
   328.6  			echo
   328.7 -			chroot $1/ /usr/bin/rcSconf up ;;
   328.8 +			chroot "$1/" /usr/bin/rcSconf up ;;
   328.9  		arm)
  328.10  			if [ ! -d "/var/lib/tazpkg/installed/slitaz-arm-configs" ]; then
  328.11  				spk-add slitaz-arm-configs
   329.1 --- a/slitaz-configs-base/receipt	Sat Dec 19 21:50:31 2015 +0100
   329.2 +++ b/slitaz-configs-base/receipt	Sun Dec 20 15:13:45 2015 +0100
   329.3 @@ -59,8 +59,8 @@
   329.4  post_install()
   329.5  {
   329.6  	echo; echo -n "Updating ~/.xinitrc"
   329.7 -	for i in $(ls -d $1/root $1/home/* 2> /dev/null); do
   329.8 -		[ -d $i ] && cp -f $1/etc/skel/.xinitrc $i
   329.9 +	for i in $(ls -d "$1/root" "$1"/home/* 2> /dev/null); do
  329.10 +		[ -d "$i" ] && cp -f "$1/etc/skel/.xinitrc" "$i"
  329.11  	done
  329.12 -	sed -i 's|$HOME/.config|/etc|' $1/root/.xinitrc
  329.13 +	sed -i 's|$HOME/.config|/etc|' "$1/root/.xinitrc"
  329.14  }
   330.1 --- a/slitaz-configs/receipt	Sat Dec 19 21:50:31 2015 +0100
   330.2 +++ b/slitaz-configs/receipt	Sun Dec 20 15:13:45 2015 +0100
   330.3 @@ -76,9 +76,9 @@
   330.4  			# By default slim provide a base theme and config file have both
   330.5  			# base and slitaz who will be choose randomly, so make sure we use
   330.6  			# only slitaz theme.
   330.7 -			if grep -q 'current_theme       slitaz,base' $1/etc/slim.conf; then
   330.8 +			if grep -q 'current_theme       slitaz,base' "$1/etc/slim.conf"; then
   330.9  				sed -i s/"current_theme .*"/"current_theme       slitaz"/ \
  330.10 -					$1/etc/slim.conf
  330.11 +					"$1/etc/slim.conf"
  330.12  			fi ;;
  330.13  	esac
  330.14  }
   331.1 --- a/slitaz-eeepc/receipt	Sat Dec 19 21:50:31 2015 +0100
   331.2 +++ b/slitaz-eeepc/receipt	Sun Dec 20 15:13:45 2015 +0100
   331.3 @@ -35,11 +35,11 @@
   331.4  
   331.5  pre_install()
   331.6  {
   331.7 -	. $1/etc/rcS.conf
   331.8 -	sed -i s/'RUN_SCRIPTS="'/'RUN_SCRIPTS="eeepc.sh '/ $1/etc/rcS.conf
   331.9 +	. "$1/etc/rcS.conf"
  331.10 +	sed -i s/'RUN_SCRIPTS="'/'RUN_SCRIPTS="eeepc.sh '/ "$1/etc/rcS.conf"
  331.11  	# Load module ac and battery
  331.12  	sed -i s/"LOAD_MODULES=\"$LOAD_MODULES\""/"LOAD_MODULES=\"$LOAD_MODULES ac battery\""/ \
  331.13 -		$1/etc/rcS.conf
  331.14 +		"$1/etc/rcS.conf"
  331.15  }
  331.16  
  331.17  pre_remove()
   332.1 --- a/slitaz-icon/receipt	Sat Dec 19 21:50:31 2015 +0100
   332.2 +++ b/slitaz-icon/receipt	Sun Dec 20 15:13:45 2015 +0100
   332.3 @@ -43,10 +43,10 @@
   332.4  post_install()
   332.5  {
   332.6  	# Default icon theme to SliTaz.
   332.7 -	if [ -f $1/etc/skel/.gtkrc-2.0 ]; then
   332.8 -		sed -i s/Tango/SliTaz/ $1/etc/skel/.gtkrc-2.0
   332.9 +	if [ -f "$1/etc/skel/.gtkrc-2.0" ]; then
  332.10 +		sed -i s/Tango/SliTaz/ "$1/etc/skel/.gtkrc-2.0"
  332.11  	fi
  332.12 -	if readlink $1/usr/share/icons/Tango; then
  332.13 -		rm $1/usr/share/icons/Tango
  332.14 +	if readlink "$1/usr/share/icons/Tango"; then
  332.15 +		rm "$1/usr/share/icons/Tango"
  332.16  	fi
  332.17  }
   333.1 --- a/slitaz-tango-icon/receipt	Sat Dec 19 21:50:31 2015 +0100
   333.2 +++ b/slitaz-tango-icon/receipt	Sun Dec 20 15:13:45 2015 +0100
   333.3 @@ -22,10 +22,10 @@
   333.4  
   333.5  post_install()
   333.6  {
   333.7 -	sed '/Inherits=/s|=.*$|=Tango|' -i $1/$qtfix
   333.8 +	sed '/Inherits=/s|=.*$|=Tango|' -i "$1/$qtfix"
   333.9  }
  333.10  
  333.11  pre_remove()
  333.12  {
  333.13 -	sed '/Inherits=/s|=.*$|=SliTaz|' -i $1/$qtfix
  333.14 +	sed '/Inherits=/s|=.*$|=SliTaz|' -i "$1/$qtfix"
  333.15  }
   334.1 --- a/smbwebclient/receipt	Sat Dec 19 21:50:31 2015 +0100
   334.2 +++ b/smbwebclient/receipt	Sun Dec 20 15:13:45 2015 +0100
   334.3 @@ -30,15 +30,15 @@
   334.4  
   334.5  post_install()
   334.6  {
   334.7 -	if [ -f $1/etc/locale.conf ]; then
   334.8 -		lang=$(. /etc/locale.conf; echo ${LANG%_*})
   334.9 +	if [ -f "$1/etc/locale.conf" ]; then
  334.10 +		lang=$(. "$1/etc/locale.conf"; echo ${LANG%_*})
  334.11  		sed -i "s/DefaultLanguage = 'us'/DefaultLanguage = '$lang'/" \
  334.12 -			$1/etc/samba/smbwebclient.conf
  334.13 +			"$1/etc/samba/smbwebclient.conf"
  334.14  	fi
  334.15  	
  334.16 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
  334.17 -		if ! grep -q /usr/share/samba/ $1/etc/lighttpd/lighttpd.conf; then
  334.18 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/smbwebclient/" => "/usr/share/samba/",|g' -i $1/etc/lighttpd/lighttpd.conf
  334.19 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  334.20 +		if ! grep -q /usr/share/samba/ "$1/etc/lighttpd/lighttpd.conf"; then
  334.21 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/smbwebclient/" => "/usr/share/samba/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  334.22  			if [ -z "$1" ]; then
  334.23  				# Start Web server.
  334.24  				/etc/init.d/lighttpd stop
  334.25 @@ -47,9 +47,9 @@
  334.26  		fi
  334.27  	fi
  334.28  	# Configure apache server
  334.29 -	if [ -f $1/etc/apache/httpd.conf ]; then
  334.30 -		if [ ! -f $1/etc/apache/conf.d/smbwebclient ]; then
  334.31 -			cat > $1/etc/apache/conf.d/smbwebclient <<EOT
  334.32 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  334.33 +		if [ ! -f "$1/etc/apache/conf.d/smbwebclient" ]; then
  334.34 +			cat > "$1/etc/apache/conf.d/smbwebclient" <<EOT
  334.35  <IfModule mod_alias.c>
  334.36      Alias /smbwebclient /usr/share/samba
  334.37  </IfModule>
   335.1 --- a/snort-mysql/receipt	Sat Dec 19 21:50:31 2015 +0100
   335.2 +++ b/snort-mysql/receipt	Sun Dec 20 15:13:45 2015 +0100
   335.3 @@ -57,22 +57,22 @@
   335.4  	echo "Processing post install commands..."
   335.5  
   335.6  	# addgroup snort if needed
   335.7 -    if ! grep -q snort $1/etc/group; then
   335.8 +    if ! grep -q snort "$1/etc/group"; then
   335.9          echo -n "Adding group Snort..."
  335.10 -        chroot $1/ /bin/addgroup snort
  335.11 +        chroot "$1/" /bin/addgroup snort
  335.12          status
  335.13      fi
  335.14      # adduser snort if needed
  335.15 -    if ! grep -q 'snort:' $1/etc/passwd; then
  335.16 +    if ! grep -q 'snort:' "$1/etc/passwd"; then
  335.17          echo -n "Adding user Snort..."
  335.18 -        chroot $1/ /bin/adduser -s /bin/false -h /dev/null \
  335.19 +        chroot "$1/" /bin/adduser -s /bin/false -h /dev/null \
  335.20              -g "Snort Daemon user" -H -D -S -G snort snort
  335.21          status
  335.22      fi
  335.23 -	chroot $1/ chown snort.snort /var/log/snort 
  335.24 +	chroot "$1/" chown snort.snort /var/log/snort 
  335.25  
  335.26  	# Create database
  335.27 -        if [ -z $1 ]; then
  335.28 +        if [ -z "$1" ]; then
  335.29                  if ( ! mysqladmin -s ping > /dev/null ); then
  335.30                          echo "Starting MySQL server"
  335.31                          ( /etc/init.d/mysql start ; status  ) || exit
  335.32 @@ -93,6 +93,4 @@
  335.33                  fi
  335.34  
  335.35          fi
  335.36 -
  335.37 -	
  335.38  }
   336.1 --- a/squid/receipt	Sat Dec 19 21:50:31 2015 +0100
   336.2 +++ b/squid/receipt	Sun Dec 20 15:13:45 2015 +0100
   336.3 @@ -100,23 +100,22 @@
   336.4  # Pre and post install commands for Tazpkg.
   336.5  post_install()
   336.6  {
   336.7 -	local root
   336.8  	local user
   336.9  	local group
  336.10  	
  336.11  	user=squid
  336.12  	group=squid
  336.13  	
  336.14 -	if ! grep -q $user $1/etc/passwd; then
  336.15 +	if ! grep -q $user "$1/etc/passwd"; then
  336.16  		echo -n "Adding user/group $user..."
  336.17 -		chroot $1/ addgroup -S $group
  336.18 -		chroot $1/ adduser -S -D -H -G $group $user
  336.19 +		chroot "$1/" addgroup -S $group
  336.20 +		chroot "$1/" adduser -S -D -H -G $group $user
  336.21  		status
  336.22  	fi
  336.23  	
  336.24  
  336.25  	# Set perms for files and directories
  336.26 -	chroot $1/ chown -R ${user}.${group} /var/log/squid \
  336.27 +	chroot "$1/" chown -R ${user}.${group} /var/log/squid \
  336.28  		/var/cache/squid 
  336.29  
  336.30  	cat <<EOF
   337.1 --- a/squidclamav/receipt	Sat Dec 19 21:50:31 2015 +0100
   337.2 +++ b/squidclamav/receipt	Sun Dec 20 15:13:45 2015 +0100
   337.3 @@ -52,8 +52,8 @@
   337.4  #Post install command
   337.5  post_install()
   337.6  {
   337.7 -	echo 'Service squidclamav squidclamav.so' >> $1/etc/c-icap/c-icap.conf
   337.8 -	if ( ps | grep -q squid ); then
   337.9 +	echo 'Service squidclamav squidclamav.so' >> "$1/etc/c-icap/c-icap.conf"
  337.10 +	[ "$1" ] || if ( ps | grep -q squid ); then
  337.11  		/etc/init.d/squid restart
  337.12  	fi
  337.13  }
  337.14 @@ -61,11 +61,11 @@
  337.15  #Post remove command
  337.16  post_remove()
  337.17  {
  337.18 -	sed -i -e "s/.*squidclamav.*//" $1/etc/c-icap/c-icap.conf
  337.19 -	if ( ps | grep -q squid ); then
  337.20 +	sed -i -e "s/.*squidclamav.*//" "$1/etc/c-icap/c-icap.conf"
  337.21 +	[ "$1" ] || if ( ps | grep -q squid ); then
  337.22  		/etc/init.d/squid restart
  337.23  	fi
  337.24 -	if ( ps | grep -q c-icap ); then
  337.25 +	[ "$1" ] || if ( ps | grep -q c-icap ); then
  337.26  		/etc/init.d/c-icapd restart
  337.27  	fi
  337.28  }
   338.1 --- a/squidguard/receipt	Sat Dec 19 21:50:31 2015 +0100
   338.2 +++ b/squidguard/receipt	Sun Dec 20 15:13:45 2015 +0100
   338.3 @@ -65,15 +65,15 @@
   338.4  # Pre and post install commands for Tazpkg.
   338.5  post_install()
   338.6  {
   338.7 -	chown -R nobody $1/var/lib/squidGuard/*
   338.8 +	chown -R nobody "$1"/var/lib/squidGuard/*
   338.9  	# Recharge squid config
  338.10 -	[ -x $(which squid) ] && $(which squid) -k reconfigure 2> /dev/null
  338.11 +	[ -z "$1" ] && [ -x $(which squid) ] && $(which squid) -k reconfigure 2> /dev/null
  338.12  }
  338.13  
  338.14  post_remove()
  338.15  {
  338.16  	# Recharge squid config
  338.17 -	[ -x $(which squid) ] && $(which squid) -k reconfigure 2> /dev/null
  338.18 +	[ -z "$1" ] && [ -x $(which squid) ] && $(which squid) -k reconfigure 2> /dev/null
  338.19  }
  338.20  
  338.21  check_config()
   339.1 --- a/squidguardmgr/receipt	Sat Dec 19 21:50:31 2015 +0100
   339.2 +++ b/squidguardmgr/receipt	Sun Dec 20 15:13:45 2015 +0100
   339.3 @@ -44,14 +44,14 @@
   339.4  post_install()
   339.5  {
   339.6  	# squidguardmgr config
   339.7 -	chown root.www $1/etc/squidGuard/squidGuard.conf
   339.8 -	chmod 664 $1/etc/squidGuard/squidGuard.conf
   339.9 -	chown nobody.nogroup $1/usr/share/squidguardmgr/lang/* \
  339.10 -		$1/usr/share/squidguardmgr/lang $1/usr/share/squidguardmgr
  339.11 +	chown root.www "$1/etc/squidGuard/squidGuard.conf"
  339.12 +	chmod 664 "$1/etc/squidGuard/squidGuard.conf"
  339.13 +	chown nobody.nogroup "$1"/usr/share/squidguardmgr/lang/* \
  339.14 +		"$1/usr/share/squidguardmgr/lang" "$1/usr/share/squidguardmgr"
  339.15  	# Configure lighttpd server
  339.16 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
  339.17 -		if ! grep -q /usr/share/squidguardmgr/ $1/etc/lighttpd/lighttpd.conf; then
  339.18 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/squidguardmgr/" => "/usr/share/squidguardmgr/",|g' -i $1/etc/lighttpd/lighttpd.conf
  339.19 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  339.20 +		if ! grep -q /usr/share/squidguardmgr/ "$1/etc/lighttpd/lighttpd.conf"; then
  339.21 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/squidguardmgr/" => "/usr/share/squidguardmgr/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  339.22  			if [ -z "$1" ]; then
  339.23  				# Start Web server.
  339.24  				/etc/init.d/lighttpd stop
  339.25 @@ -60,9 +60,9 @@
  339.26  		fi
  339.27  	fi
  339.28  	# Configure apache server
  339.29 -	if [ -f $1/etc/apache/httpd.conf ]; then
  339.30 -		if [ ! -f $1/etc/apache/conf.d/squidguardmgr ]; then
  339.31 -			cat > $1/etc/apache/conf.d/squidguardmgr <<EOT
  339.32 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  339.33 +		if [ ! -f "$1/etc/apache/conf.d/squidguardmgr" ]; then
  339.34 +			cat > "$1/etc/apache/conf.d/squidguardmgr" <<EOT
  339.35  <IfModule mod_alias.c>
  339.36      Alias /squidguardmgr /usr/share/squidguardmgr
  339.37  </IfModule>
   340.1 --- a/squirrelmail-ar/receipt	Sat Dec 19 21:50:31 2015 +0100
   340.2 +++ b/squirrelmail-ar/receipt	Sun Dec 20 15:13:45 2015 +0100
   340.3 @@ -23,5 +23,5 @@
   340.4  # Pre and post install commands for Tazpkg.
   340.5  post_install()
   340.6  {
   340.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   340.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   340.9  }
   341.1 --- a/squirrelmail-archive/receipt	Sat Dec 19 21:50:31 2015 +0100
   341.2 +++ b/squirrelmail-archive/receipt	Sun Dec 20 15:13:45 2015 +0100
   341.3 @@ -30,7 +30,7 @@
   341.4  
   341.5  post_install()
   341.6  {
   341.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   341.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   341.9  }
  341.10  
  341.11  pre_remove()
   342.1 --- a/squirrelmail-autocomplete/receipt	Sat Dec 19 21:50:31 2015 +0100
   342.2 +++ b/squirrelmail-autocomplete/receipt	Sun Dec 20 15:13:45 2015 +0100
   342.3 @@ -31,7 +31,7 @@
   342.4  
   342.5  post_install()
   342.6  {
   342.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   342.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   342.9  }
  342.10  
  342.11  pre_remove()
   343.1 --- a/squirrelmail-autorespond/receipt	Sat Dec 19 21:50:31 2015 +0100
   343.2 +++ b/squirrelmail-autorespond/receipt	Sun Dec 20 15:13:45 2015 +0100
   343.3 @@ -35,7 +35,7 @@
   343.4  
   343.5  post_install()
   343.6  {
   343.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   343.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   343.9  }
  343.10  
  343.11  pre_remove()
   344.1 --- a/squirrelmail-bg_BG/receipt	Sat Dec 19 21:50:31 2015 +0100
   344.2 +++ b/squirrelmail-bg_BG/receipt	Sun Dec 20 15:13:45 2015 +0100
   344.3 @@ -23,5 +23,5 @@
   344.4  # Pre and post install commands for Tazpkg.
   344.5  post_install()
   344.6  {
   344.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   344.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   344.9  }
   345.1 --- a/squirrelmail-bn_IN/receipt	Sat Dec 19 21:50:31 2015 +0100
   345.2 +++ b/squirrelmail-bn_IN/receipt	Sun Dec 20 15:13:45 2015 +0100
   345.3 @@ -23,5 +23,5 @@
   345.4  # Pre and post install commands for Tazpkg.
   345.5  post_install()
   345.6  {
   345.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   345.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   345.9  }
   346.1 --- a/squirrelmail-bookmarks/receipt	Sat Dec 19 21:50:31 2015 +0100
   346.2 +++ b/squirrelmail-bookmarks/receipt	Sun Dec 20 15:13:45 2015 +0100
   346.3 @@ -36,7 +36,7 @@
   346.4  
   346.5  post_install()
   346.6  {
   346.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   346.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   346.9  }
  346.10  
  346.11  pre_remove()
   347.1 --- a/squirrelmail-ca_ES/receipt	Sat Dec 19 21:50:31 2015 +0100
   347.2 +++ b/squirrelmail-ca_ES/receipt	Sun Dec 20 15:13:45 2015 +0100
   347.3 @@ -23,5 +23,5 @@
   347.4  # Pre and post install commands for Tazpkg.
   347.5  post_install()
   347.6  {
   347.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   347.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   347.9  }
   348.1 --- a/squirrelmail-calendard-file-backend/receipt	Sat Dec 19 21:50:31 2015 +0100
   348.2 +++ b/squirrelmail-calendard-file-backend/receipt	Sun Dec 20 15:13:45 2015 +0100
   348.3 @@ -31,7 +31,7 @@
   348.4  
   348.5  post_install()
   348.6  {
   348.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   348.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   348.9  }
  348.10  
  348.11  pre_remove()
   349.1 --- a/squirrelmail-calendard-sql-backend/receipt	Sat Dec 19 21:50:31 2015 +0100
   349.2 +++ b/squirrelmail-calendard-sql-backend/receipt	Sun Dec 20 15:13:45 2015 +0100
   349.3 @@ -36,7 +36,7 @@
   349.4  
   349.5  post_install()
   349.6  {
   349.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   349.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   349.9  }
  349.10  
  349.11  pre_remove()
   350.1 --- a/squirrelmail-compatibility-plugin/receipt	Sat Dec 19 21:50:31 2015 +0100
   350.2 +++ b/squirrelmail-compatibility-plugin/receipt	Sun Dec 20 15:13:45 2015 +0100
   350.3 @@ -32,7 +32,7 @@
   350.4  {
   350.5  	local file
   350.6  	local line
   350.7 -	file=$1/usr/share/squirrelmail/functions/strings.php
   350.8 +	file="$1/usr/share/squirrelmail/functions/strings.php"
   350.9  	line="include_once(SM_PATH . 'plugins/compatibility/functions.php');"
  350.10 -	grep -qs "$line" $file || sed -i "s|.*global.php.*|&\n$line|" $file
  350.11 +	grep -qs "$line" "$file" || sed -i "s|.*global.php.*|&\n$line|" "$file"
  350.12  }
   351.1 --- a/squirrelmail-cs_CZ/receipt	Sat Dec 19 21:50:31 2015 +0100
   351.2 +++ b/squirrelmail-cs_CZ/receipt	Sun Dec 20 15:13:45 2015 +0100
   351.3 @@ -23,5 +23,5 @@
   351.4  # Pre and post install commands for Tazpkg.
   351.5  post_install()
   351.6  {
   351.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   351.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   351.9  }
   352.1 --- a/squirrelmail-cy_GB/receipt	Sat Dec 19 21:50:31 2015 +0100
   352.2 +++ b/squirrelmail-cy_GB/receipt	Sun Dec 20 15:13:45 2015 +0100
   352.3 @@ -23,5 +23,5 @@
   352.4  # Pre and post install commands for Tazpkg.
   352.5  post_install()
   352.6  {
   352.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   352.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   352.9  }
   353.1 --- a/squirrelmail-da_DK/receipt	Sat Dec 19 21:50:31 2015 +0100
   353.2 +++ b/squirrelmail-da_DK/receipt	Sun Dec 20 15:13:45 2015 +0100
   353.3 @@ -23,5 +23,5 @@
   353.4  # Pre and post install commands for Tazpkg.
   353.5  post_install()
   353.6  {
   353.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   353.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   353.9  }
   354.1 --- a/squirrelmail-de_DE/receipt	Sat Dec 19 21:50:31 2015 +0100
   354.2 +++ b/squirrelmail-de_DE/receipt	Sun Dec 20 15:13:45 2015 +0100
   354.3 @@ -23,5 +23,5 @@
   354.4  # Pre and post install commands for Tazpkg.
   354.5  post_install()
   354.6  {
   354.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   354.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   354.9  }
   355.1 --- a/squirrelmail-el_GR/receipt	Sat Dec 19 21:50:31 2015 +0100
   355.2 +++ b/squirrelmail-el_GR/receipt	Sun Dec 20 15:13:45 2015 +0100
   355.3 @@ -23,5 +23,5 @@
   355.4  # Pre and post install commands for Tazpkg.
   355.5  post_install()
   355.6  {
   355.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   355.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   355.9  }
   356.1 --- a/squirrelmail-en_GB/receipt	Sat Dec 19 21:50:31 2015 +0100
   356.2 +++ b/squirrelmail-en_GB/receipt	Sun Dec 20 15:13:45 2015 +0100
   356.3 @@ -23,5 +23,5 @@
   356.4  # Pre and post install commands for Tazpkg.
   356.5  post_install()
   356.6  {
   356.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   356.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   356.9  }
   357.1 --- a/squirrelmail-es_ES/receipt	Sat Dec 19 21:50:31 2015 +0100
   357.2 +++ b/squirrelmail-es_ES/receipt	Sun Dec 20 15:13:45 2015 +0100
   357.3 @@ -23,5 +23,5 @@
   357.4  # Pre and post install commands for Tazpkg.
   357.5  post_install()
   357.6  {
   357.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   357.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   357.9  }
   358.1 --- a/squirrelmail-et_EE/receipt	Sat Dec 19 21:50:31 2015 +0100
   358.2 +++ b/squirrelmail-et_EE/receipt	Sun Dec 20 15:13:45 2015 +0100
   358.3 @@ -23,5 +23,5 @@
   358.4  # Pre and post install commands for Tazpkg.
   358.5  post_install()
   358.6  {
   358.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   358.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   358.9  }
   359.1 --- a/squirrelmail-eu_ES/receipt	Sat Dec 19 21:50:31 2015 +0100
   359.2 +++ b/squirrelmail-eu_ES/receipt	Sun Dec 20 15:13:45 2015 +0100
   359.3 @@ -23,5 +23,5 @@
   359.4  # Pre and post install commands for Tazpkg.
   359.5  post_install()
   359.6  {
   359.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   359.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   359.9  }
   360.1 --- a/squirrelmail-fa_IR/receipt	Sat Dec 19 21:50:31 2015 +0100
   360.2 +++ b/squirrelmail-fa_IR/receipt	Sun Dec 20 15:13:45 2015 +0100
   360.3 @@ -23,5 +23,5 @@
   360.4  # Pre and post install commands for Tazpkg.
   360.5  post_install()
   360.6  {
   360.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   360.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   360.9  }
   361.1 --- a/squirrelmail-fi_FI/receipt	Sat Dec 19 21:50:31 2015 +0100
   361.2 +++ b/squirrelmail-fi_FI/receipt	Sun Dec 20 15:13:45 2015 +0100
   361.3 @@ -23,5 +23,5 @@
   361.4  # Pre and post install commands for Tazpkg.
   361.5  post_install()
   361.6  {
   361.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   361.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   361.9  }
   362.1 --- a/squirrelmail-fo_FO/receipt	Sat Dec 19 21:50:31 2015 +0100
   362.2 +++ b/squirrelmail-fo_FO/receipt	Sun Dec 20 15:13:45 2015 +0100
   362.3 @@ -23,5 +23,5 @@
   362.4  # Pre and post install commands for Tazpkg.
   362.5  post_install()
   362.6  {
   362.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   362.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   362.9  }
   363.1 --- a/squirrelmail-fr_FR/receipt	Sat Dec 19 21:50:31 2015 +0100
   363.2 +++ b/squirrelmail-fr_FR/receipt	Sun Dec 20 15:13:45 2015 +0100
   363.3 @@ -23,5 +23,5 @@
   363.4  # Pre and post install commands for Tazpkg.
   363.5  post_install()
   363.6  {
   363.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   363.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   363.9  }
   364.1 --- a/squirrelmail-fy/receipt	Sat Dec 19 21:50:31 2015 +0100
   364.2 +++ b/squirrelmail-fy/receipt	Sun Dec 20 15:13:45 2015 +0100
   364.3 @@ -23,5 +23,5 @@
   364.4  # Pre and post install commands for Tazpkg.
   364.5  post_install()
   364.6  {
   364.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   364.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   364.9  }
   365.1 --- a/squirrelmail-he_IL/receipt	Sat Dec 19 21:50:31 2015 +0100
   365.2 +++ b/squirrelmail-he_IL/receipt	Sun Dec 20 15:13:45 2015 +0100
   365.3 @@ -23,5 +23,5 @@
   365.4  # Pre and post install commands for Tazpkg.
   365.5  post_install()
   365.6  {
   365.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   365.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   365.9  }
   366.1 --- a/squirrelmail-hr_HR/receipt	Sat Dec 19 21:50:31 2015 +0100
   366.2 +++ b/squirrelmail-hr_HR/receipt	Sun Dec 20 15:13:45 2015 +0100
   366.3 @@ -23,5 +23,5 @@
   366.4  # Pre and post install commands for Tazpkg.
   366.5  post_install()
   366.6  {
   366.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   366.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   366.9  }
   367.1 --- a/squirrelmail-html/receipt	Sat Dec 19 21:50:31 2015 +0100
   367.2 +++ b/squirrelmail-html/receipt	Sun Dec 20 15:13:45 2015 +0100
   367.3 @@ -31,7 +31,7 @@
   367.4  
   367.5  post_install()
   367.6  {
   367.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   367.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   367.9  }
  367.10  
  367.11  pre_remove()
   368.1 --- a/squirrelmail-html_mail/receipt	Sat Dec 19 21:50:31 2015 +0100
   368.2 +++ b/squirrelmail-html_mail/receipt	Sun Dec 20 15:13:45 2015 +0100
   368.3 @@ -42,7 +42,7 @@
   368.4  
   368.5  post_install()
   368.6  {
   368.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   368.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   368.9  }
  368.10  
  368.11  pre_remove()
   369.1 --- a/squirrelmail-hu_HU/receipt	Sat Dec 19 21:50:31 2015 +0100
   369.2 +++ b/squirrelmail-hu_HU/receipt	Sun Dec 20 15:13:45 2015 +0100
   369.3 @@ -23,5 +23,5 @@
   369.4  # Pre and post install commands for Tazpkg.
   369.5  post_install()
   369.6  {
   369.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   369.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   369.9  }
   370.1 --- a/squirrelmail-id_ID/receipt	Sat Dec 19 21:50:31 2015 +0100
   370.2 +++ b/squirrelmail-id_ID/receipt	Sun Dec 20 15:13:45 2015 +0100
   370.3 @@ -23,5 +23,5 @@
   370.4  # Pre and post install commands for Tazpkg.
   370.5  post_install()
   370.6  {
   370.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   370.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   370.9  }
   371.1 --- a/squirrelmail-is_IS/receipt	Sat Dec 19 21:50:31 2015 +0100
   371.2 +++ b/squirrelmail-is_IS/receipt	Sun Dec 20 15:13:45 2015 +0100
   371.3 @@ -23,5 +23,5 @@
   371.4  # Pre and post install commands for Tazpkg.
   371.5  post_install()
   371.6  {
   371.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   371.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   371.9  }
   372.1 --- a/squirrelmail-it_IT/receipt	Sat Dec 19 21:50:31 2015 +0100
   372.2 +++ b/squirrelmail-it_IT/receipt	Sun Dec 20 15:13:45 2015 +0100
   372.3 @@ -23,5 +23,5 @@
   372.4  # Pre and post install commands for Tazpkg.
   372.5  post_install()
   372.6  {
   372.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   372.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   372.9  }
   373.1 --- a/squirrelmail-ja_JP/receipt	Sat Dec 19 21:50:31 2015 +0100
   373.2 +++ b/squirrelmail-ja_JP/receipt	Sun Dec 20 15:13:45 2015 +0100
   373.3 @@ -23,5 +23,5 @@
   373.4  # Pre and post install commands for Tazpkg.
   373.5  post_install()
   373.6  {
   373.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   373.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   373.9  }
   374.1 --- a/squirrelmail-ka/receipt	Sat Dec 19 21:50:31 2015 +0100
   374.2 +++ b/squirrelmail-ka/receipt	Sun Dec 20 15:13:45 2015 +0100
   374.3 @@ -23,5 +23,5 @@
   374.4  # Pre and post install commands for Tazpkg.
   374.5  post_install()
   374.6  {
   374.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   374.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   374.9  }
   375.1 --- a/squirrelmail-ko_KR/receipt	Sat Dec 19 21:50:31 2015 +0100
   375.2 +++ b/squirrelmail-ko_KR/receipt	Sun Dec 20 15:13:45 2015 +0100
   375.3 @@ -23,5 +23,5 @@
   375.4  # Pre and post install commands for Tazpkg.
   375.5  post_install()
   375.6  {
   375.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   375.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   375.9  }
   376.1 --- a/squirrelmail-ldapuser/receipt	Sat Dec 19 21:50:31 2015 +0100
   376.2 +++ b/squirrelmail-ldapuser/receipt	Sun Dec 20 15:13:45 2015 +0100
   376.3 @@ -35,12 +35,12 @@
   376.4  
   376.5  post_install()
   376.6  {
   376.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   376.8 -	mv $1/usr/share/squirrelmail/functions/file_prefs.php \
   376.9 -	   $1/usr/share/squirrelmail/functions/file_prefs.php.original
  376.10 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
  376.11 +	mv "$1/usr/share/squirrelmail/functions/file_prefs.php" \
  376.12 +	   "$1/usr/share/squirrelmail/functions/file_prefs.php.original"
  376.13  	ln -s ../plugins/ldapuserdata/file_prefs.php \
  376.14 -		$1/usr/share/squirrelmail/functions/file_prefs.php
  376.15 -	cat >> $1/etc/openldap/slapd.conf <<EOT
  376.16 +		"$1/usr/share/squirrelmail/functions/file_prefs.php"
  376.17 +	cat >> "$1/etc/openldap/slapd.conf" <<EOT
  376.18  include /usr/share/squirrelmail/plugins/$SOURCE/doc/squirrelmail.schema
  376.19  EOT
  376.20  }
   377.1 --- a/squirrelmail-legend/receipt	Sat Dec 19 21:50:31 2015 +0100
   377.2 +++ b/squirrelmail-legend/receipt	Sun Dec 20 15:13:45 2015 +0100
   377.3 @@ -30,7 +30,7 @@
   377.4  
   377.5  post_install()
   377.6  {
   377.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   377.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   377.9  }
  377.10  
  377.11  pre_remove()
   378.1 --- a/squirrelmail-lt_LT/receipt	Sat Dec 19 21:50:31 2015 +0100
   378.2 +++ b/squirrelmail-lt_LT/receipt	Sun Dec 20 15:13:45 2015 +0100
   378.3 @@ -23,5 +23,5 @@
   378.4  # Pre and post install commands for Tazpkg.
   378.5  post_install()
   378.6  {
   378.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   378.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   378.9  }
   379.1 --- a/squirrelmail-ms_MY/receipt	Sat Dec 19 21:50:31 2015 +0100
   379.2 +++ b/squirrelmail-ms_MY/receipt	Sun Dec 20 15:13:45 2015 +0100
   379.3 @@ -23,5 +23,5 @@
   379.4  # Pre and post install commands for Tazpkg.
   379.5  post_install()
   379.6  {
   379.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   379.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   379.9  }
   380.1 --- a/squirrelmail-msg_flags/receipt	Sat Dec 19 21:50:31 2015 +0100
   380.2 +++ b/squirrelmail-msg_flags/receipt	Sun Dec 20 15:13:45 2015 +0100
   380.3 @@ -30,10 +30,10 @@
   380.4  
   380.5  post_install()
   380.6  {
   380.7 -	( cd $1/usr/share/squirrelmail/plugins/$SOURCE
   380.8 -	  patch -p0 < patches/$SOURCE-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
   380.9 -	echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers
  380.10 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
  380.11 +	( cd "$1/usr/share/squirrelmail/plugins/$SOURCE"
  380.12 +	  patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff )
  380.13 +	echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers"
  380.14 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
  380.15  }
  380.16  
  380.17  pre_remove()
   381.1 --- a/squirrelmail-multilogin/receipt	Sat Dec 19 21:50:31 2015 +0100
   381.2 +++ b/squirrelmail-multilogin/receipt	Sun Dec 20 15:13:45 2015 +0100
   381.3 @@ -37,11 +37,11 @@
   381.4  
   381.5  post_install()
   381.6  {
   381.7 -	chown www $1/var/lib/squirrelmail/slitaz.org/data
   381.8 -	( cd $1/usr/share/squirrelmail/plugins/$SOURCE
   381.9 -	  patch -p0 < patches/$SOURCE-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
  381.10 -	echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers
  381.11 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
  381.12 +	chown www "$1/var/lib/squirrelmail/slitaz.org/data"
  381.13 +	( cd "$1/usr/share/squirrelmail/plugins/$SOURCE"
  381.14 +	  patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff )
  381.15 +	echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers"
  381.16 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
  381.17  }
  381.18  
  381.19  pre_remove()
   382.1 --- a/squirrelmail-nb_NO/receipt	Sat Dec 19 21:50:31 2015 +0100
   382.2 +++ b/squirrelmail-nb_NO/receipt	Sun Dec 20 15:13:45 2015 +0100
   382.3 @@ -23,5 +23,5 @@
   382.4  # Pre and post install commands for Tazpkg.
   382.5  post_install()
   382.6  {
   382.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   382.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   382.9  }
   383.1 --- a/squirrelmail-nl_NL/receipt	Sat Dec 19 21:50:31 2015 +0100
   383.2 +++ b/squirrelmail-nl_NL/receipt	Sun Dec 20 15:13:45 2015 +0100
   383.3 @@ -23,5 +23,5 @@
   383.4  # Pre and post install commands for Tazpkg.
   383.5  post_install()
   383.6  {
   383.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   383.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   383.9  }
   384.1 --- a/squirrelmail-nn_NO/receipt	Sat Dec 19 21:50:31 2015 +0100
   384.2 +++ b/squirrelmail-nn_NO/receipt	Sun Dec 20 15:13:45 2015 +0100
   384.3 @@ -23,5 +23,5 @@
   384.4  # Pre and post install commands for Tazpkg.
   384.5  post_install()
   384.6  {
   384.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   384.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   384.9  }
   385.1 --- a/squirrelmail-notes/receipt	Sat Dec 19 21:50:31 2015 +0100
   385.2 +++ b/squirrelmail-notes/receipt	Sun Dec 20 15:13:45 2015 +0100
   385.3 @@ -35,7 +35,7 @@
   385.4  
   385.5  post_install()
   385.6  {
   385.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   385.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   385.9  }
  385.10  
  385.11  pre_remove()
   386.1 --- a/squirrelmail-pl_PL/receipt	Sat Dec 19 21:50:31 2015 +0100
   386.2 +++ b/squirrelmail-pl_PL/receipt	Sun Dec 20 15:13:45 2015 +0100
   386.3 @@ -23,5 +23,5 @@
   386.4  # Pre and post install commands for Tazpkg.
   386.5  post_install()
   386.6  {
   386.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   386.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   386.9  }
   387.1 --- a/squirrelmail-pt_BR/receipt	Sat Dec 19 21:50:31 2015 +0100
   387.2 +++ b/squirrelmail-pt_BR/receipt	Sun Dec 20 15:13:45 2015 +0100
   387.3 @@ -23,5 +23,5 @@
   387.4  # Pre and post install commands for Tazpkg.
   387.5  post_install()
   387.6  {
   387.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   387.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   387.9  }
   388.1 --- a/squirrelmail-pt_PT/receipt	Sat Dec 19 21:50:31 2015 +0100
   388.2 +++ b/squirrelmail-pt_PT/receipt	Sun Dec 20 15:13:45 2015 +0100
   388.3 @@ -23,5 +23,5 @@
   388.4  # Pre and post install commands for Tazpkg.
   388.5  post_install()
   388.6  {
   388.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   388.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   388.9  }
   389.1 --- a/squirrelmail-quota/receipt	Sat Dec 19 21:50:31 2015 +0100
   389.2 +++ b/squirrelmail-quota/receipt	Sun Dec 20 15:13:45 2015 +0100
   389.3 @@ -37,7 +37,7 @@
   389.4  
   389.5  post_install()
   389.6  {
   389.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   389.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   389.9  }
  389.10  
  389.11  pre_remove()
   390.1 --- a/squirrelmail-ro_RO/receipt	Sat Dec 19 21:50:31 2015 +0100
   390.2 +++ b/squirrelmail-ro_RO/receipt	Sun Dec 20 15:13:45 2015 +0100
   390.3 @@ -23,5 +23,5 @@
   390.4  # Pre and post install commands for Tazpkg.
   390.5  post_install()
   390.6  {
   390.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   390.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   390.9  }
   391.1 --- a/squirrelmail-ru_RU/receipt	Sat Dec 19 21:50:31 2015 +0100
   391.2 +++ b/squirrelmail-ru_RU/receipt	Sun Dec 20 15:13:45 2015 +0100
   391.3 @@ -23,5 +23,5 @@
   391.4  # Pre and post install commands for Tazpkg.
   391.5  post_install()
   391.6  {
   391.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   391.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   391.9  }
   392.1 --- a/squirrelmail-shared_calendars/receipt	Sat Dec 19 21:50:31 2015 +0100
   392.2 +++ b/squirrelmail-shared_calendars/receipt	Sun Dec 20 15:13:45 2015 +0100
   392.3 @@ -35,7 +35,7 @@
   392.4  
   392.5  post_install()
   392.6  {
   392.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   392.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   392.9  }
  392.10  
  392.11  pre_remove()
   393.1 --- a/squirrelmail-sieve/receipt	Sat Dec 19 21:50:31 2015 +0100
   393.2 +++ b/squirrelmail-sieve/receipt	Sun Dec 20 15:13:45 2015 +0100
   393.3 @@ -35,7 +35,7 @@
   393.4  
   393.5  post_install()
   393.6  {
   393.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   393.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   393.9  }
  393.10  
  393.11  pre_remove()
   394.1 --- a/squirrelmail-sizes/receipt	Sat Dec 19 21:50:31 2015 +0100
   394.2 +++ b/squirrelmail-sizes/receipt	Sun Dec 20 15:13:45 2015 +0100
   394.3 @@ -30,7 +30,7 @@
   394.4  
   394.5  post_install()
   394.6  {
   394.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   394.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   394.9  }
  394.10  
  394.11  pre_remove()
   395.1 --- a/squirrelmail-sk_SK/receipt	Sat Dec 19 21:50:31 2015 +0100
   395.2 +++ b/squirrelmail-sk_SK/receipt	Sun Dec 20 15:13:45 2015 +0100
   395.3 @@ -23,5 +23,5 @@
   395.4  # Pre and post install commands for Tazpkg.
   395.5  post_install()
   395.6  {
   395.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   395.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   395.9  }
   396.1 --- a/squirrelmail-sl_SI/receipt	Sat Dec 19 21:50:31 2015 +0100
   396.2 +++ b/squirrelmail-sl_SI/receipt	Sun Dec 20 15:13:45 2015 +0100
   396.3 @@ -23,5 +23,5 @@
   396.4  # Pre and post install commands for Tazpkg.
   396.5  post_install()
   396.6  {
   396.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   396.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   396.9  }
   397.1 --- a/squirrelmail-smallcal/receipt	Sat Dec 19 21:50:31 2015 +0100
   397.2 +++ b/squirrelmail-smallcal/receipt	Sun Dec 20 15:13:45 2015 +0100
   397.3 @@ -30,7 +30,7 @@
   397.4  
   397.5  post_install()
   397.6  {
   397.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   397.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   397.9  	cat <<EOF
  397.10  You can enable calendar display in Option -> Display Preferences
  397.11  EOF
   398.1 --- a/squirrelmail-spamassassin/receipt	Sat Dec 19 21:50:31 2015 +0100
   398.2 +++ b/squirrelmail-spamassassin/receipt	Sun Dec 20 15:13:45 2015 +0100
   398.3 @@ -31,7 +31,7 @@
   398.4  
   398.5  post_install()
   398.6  {
   398.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   398.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   398.9  }
  398.10  
  398.11  pre_remove()
   399.1 --- a/squirrelmail-sr_YU/receipt	Sat Dec 19 21:50:31 2015 +0100
   399.2 +++ b/squirrelmail-sr_YU/receipt	Sun Dec 20 15:13:45 2015 +0100
   399.3 @@ -23,5 +23,5 @@
   399.4  # Pre and post install commands for Tazpkg.
   399.5  post_install()
   399.6  {
   399.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   399.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   399.9  }
   400.1 --- a/squirrelmail-sv_SE/receipt	Sat Dec 19 21:50:31 2015 +0100
   400.2 +++ b/squirrelmail-sv_SE/receipt	Sun Dec 20 15:13:45 2015 +0100
   400.3 @@ -23,5 +23,5 @@
   400.4  # Pre and post install commands for Tazpkg.
   400.5  post_install()
   400.6  {
   400.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   400.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   400.9  }
   401.1 --- a/squirrelmail-tr_TR/receipt	Sat Dec 19 21:50:31 2015 +0100
   401.2 +++ b/squirrelmail-tr_TR/receipt	Sun Dec 20 15:13:45 2015 +0100
   401.3 @@ -23,5 +23,5 @@
   401.4  # Pre and post install commands for Tazpkg.
   401.5  post_install()
   401.6  {
   401.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   401.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   401.9  }
   402.1 --- a/squirrelmail-ug/receipt	Sat Dec 19 21:50:31 2015 +0100
   402.2 +++ b/squirrelmail-ug/receipt	Sun Dec 20 15:13:45 2015 +0100
   402.3 @@ -23,5 +23,5 @@
   402.4  # Pre and post install commands for Tazpkg.
   402.5  post_install()
   402.6  {
   402.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   402.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   402.9  }
   403.1 --- a/squirrelmail-uk_UA/receipt	Sat Dec 19 21:50:31 2015 +0100
   403.2 +++ b/squirrelmail-uk_UA/receipt	Sun Dec 20 15:13:45 2015 +0100
   403.3 @@ -23,5 +23,5 @@
   403.4  # Pre and post install commands for Tazpkg.
   403.5  post_install()
   403.6  {
   403.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   403.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   403.9  }
   404.1 --- a/squirrelmail-vkeyboard/receipt	Sat Dec 19 21:50:31 2015 +0100
   404.2 +++ b/squirrelmail-vkeyboard/receipt	Sun Dec 20 15:13:45 2015 +0100
   404.3 @@ -35,7 +35,7 @@
   404.4  
   404.5  post_install()
   404.6  {
   404.7 -	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
   404.8 +	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
   404.9  }
  404.10  
  404.11  pre_remove()
   405.1 --- a/squirrelmail-zh_CN/receipt	Sat Dec 19 21:50:31 2015 +0100
   405.2 +++ b/squirrelmail-zh_CN/receipt	Sun Dec 20 15:13:45 2015 +0100
   405.3 @@ -23,5 +23,5 @@
   405.4  # Pre and post install commands for Tazpkg.
   405.5  post_install()
   405.6  {
   405.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   405.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   405.9  }
   406.1 --- a/squirrelmail-zh_TW/receipt	Sat Dec 19 21:50:31 2015 +0100
   406.2 +++ b/squirrelmail-zh_TW/receipt	Sun Dec 20 15:13:45 2015 +0100
   406.3 @@ -23,5 +23,5 @@
   406.4  # Pre and post install commands for Tazpkg.
   406.5  post_install()
   406.6  {
   406.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
   406.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" "$1/etc/squirrelmail/config.php"
   406.9  }
   407.1 --- a/squirrelmail/receipt	Sat Dec 19 21:50:31 2015 +0100
   407.2 +++ b/squirrelmail/receipt	Sun Dec 20 15:13:45 2015 +0100
   407.3 @@ -51,9 +51,9 @@
   407.4  {
   407.5  	#echo "Update /short_open_tag in /etc/php.ini"
   407.6  	#sed -i 's/^short_open_tag.*/short_open_tag = On/' /etc/php.ini
   407.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
   407.8 -		if ! grep -q /usr/share/squirrelmail/ $1/etc/lighttpd/lighttpd.conf; then
   407.9 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/squirrelmail/" => "/usr/share/squirrelmail/",|g' -i $1/etc/lighttpd/lighttpd.conf
  407.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  407.11 +		if ! grep -q /usr/share/squirrelmail/ "$1/etc/lighttpd/lighttpd.conf"; then
  407.12 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/squirrelmail/" => "/usr/share/squirrelmail/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  407.13  			if [ -z "$1" ]; then
  407.14  				# Start Web server.
  407.15  				/etc/init.d/lighttpd stop
  407.16 @@ -62,9 +62,9 @@
  407.17  		fi
  407.18  	fi
  407.19  	# Configure apache server
  407.20 -	if [ -f $1/etc/apache/httpd.conf ]; then
  407.21 -		if [ ! -f $1/etc/apache/conf.d/squirrelmail ]; then
  407.22 -			cat > $1/etc/apache/conf.d/squirrelmail <<EOT
  407.23 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  407.24 +		if [ ! -f "$1/etc/apache/conf.d/squirrelmail" ]; then
  407.25 +			cat > "$1/etc/apache/conf.d/squirrelmail" <<EOT
  407.26  <IfModule mod_alias.c>
  407.27      Alias /squirrelmail /usr/share/squirrelmail
  407.28  </IfModule>
   408.1 --- a/ssmtp/receipt	Sat Dec 19 21:50:31 2015 +0100
   408.2 +++ b/ssmtp/receipt	Sun Dec 20 15:13:45 2015 +0100
   408.3 @@ -43,18 +43,16 @@
   408.4  
   408.5  post_install() 
   408.6  {
   408.7 -    local root
   408.8 -    root=$1
   408.9      echo "Processing post-install commands..."
  408.10 -    ln -sf /usr/sbin/ssmtp $root/usr/sbin/sendmail
  408.11 -    ln -sf /usr/sbin/ssmtp $root/usr/sbin/newaliases
  408.12 -    ln -sf /usr/sbin/ssmtp $root/usr/sbin/mailq
  408.13 +    ln -sf /usr/sbin/ssmtp "$1/usr/sbin/sendmail"
  408.14 +    ln -sf /usr/sbin/ssmtp "$1/usr/sbin/newaliases"
  408.15 +    ln -sf /usr/sbin/ssmtp "$1/usr/sbin/mailq"
  408.16  }
  408.17  
  408.18  post_remove() 
  408.19  {
  408.20      echo "Processing post-remove commands..."
  408.21 -    rm -f $1/usr/sbin/sendmail
  408.22 -    rm -f $1/usr/sbin/newaliases
  408.23 -    rm -f $1/usr/sbin/mailq
  408.24 +    rm -f "$1/usr/sbin/sendmail"
  408.25 +    rm -f "$1/usr/sbin/newaliases"
  408.26 +    rm -f "$1/usr/sbin/mailq"
  408.27  }
   409.1 --- a/st/receipt	Sat Dec 19 21:50:31 2015 +0100
   409.2 +++ b/st/receipt	Sun Dec 20 15:13:45 2015 +0100
   409.3 @@ -31,5 +31,5 @@
   409.4  
   409.5  post_install()
   409.6  {
   409.7 -	chroot $1/ tic -s /usr/share/${PACKAGE}/st.info
   409.8 +	chroot "$1/" tic -s /usr/share/${PACKAGE}/st.info
   409.9  }
   410.1 --- a/sudo-pam/receipt	Sat Dec 19 21:50:31 2015 +0100
   410.2 +++ b/sudo-pam/receipt	Sun Dec 20 15:13:45 2015 +0100
   410.3 @@ -42,25 +42,21 @@
   410.4  
   410.5  pre_install()
   410.6  {
   410.7 -	local root
   410.8 -	root=$1
   410.9  	echo "Processing pre-install commands..."
  410.10 -	if [ -f $root/etc/sudoers.bak ]; then
  410.11 -		cp $root/etc/sudoers $root/etc/sudoers.bak
  410.12 +	if [ -f "$1/etc/sudoers.bak" ]; then
  410.13 +		cp "$1/etc/sudoers" "$1/etc/sudoers.bak"
  410.14  	fi
  410.15  }
  410.16  
  410.17  post_install()
  410.18  {
  410.19 -	local root
  410.20 -	root=$1
  410.21  	echo "Processing post-install commands..."
  410.22 -	if [ -f $root/etc/sudoers.bak ]; then
  410.23 -		rm -f $root/etc/sudoers
  410.24 -		mv $root/etc/sudoers.bak $root/etc/sudoers
  410.25 +	if [ -f "$1/etc/sudoers.bak" ]; then
  410.26 +		rm -f "$1/etc/sudoers"
  410.27 +		mv "$1/etc/sudoers.bak" "$1/etc/sudoers"
  410.28  	else
  410.29 -		chown root.root $root/etc/sudoers
  410.30 -		chmod 0440 $root/etc/sudoers
  410.31 +		chown root.root "$1/etc/sudoers"
  410.32 +		chmod 0440 "$1/etc/sudoers"
  410.33  	fi
  410.34  }                        
  410.35  
   411.1 --- a/sudo/receipt	Sat Dec 19 21:50:31 2015 +0100
   411.2 +++ b/sudo/receipt	Sun Dec 20 15:13:45 2015 +0100
   411.3 @@ -39,21 +39,19 @@
   411.4  pre_install()
   411.5  {
   411.6  	echo "Processing pre-install commands..."
   411.7 -	if [ -f $root/etc/sudoers.bak ]; then
   411.8 -		cp $root/etc/sudoers $root/etc/sudoers.bak
   411.9 +	if [ -f "$1/etc/sudoers.bak" ]; then
  411.10 +		cp "$1/etc/sudoers" "$1/etc/sudoers.bak"
  411.11  	fi
  411.12  }
  411.13  
  411.14  post_install()
  411.15  {
  411.16 -	local root
  411.17 -	root=$1
  411.18  	echo "Processing post-install commands..."
  411.19 -	if [ -f $root/etc/sudoers.bak ]; then
  411.20 -		mv $root/etc/sudoers $root/etc/sudoers-dist
  411.21 -		mv $root/etc/sudoers.bak $root/etc/sudoers
  411.22 +	if [ -f "$1/etc/sudoers.bak" ]; then
  411.23 +		mv "$1/etc/sudoers" "$1/etc/sudoers-dist"
  411.24 +		mv "$1/etc/sudoers.bak" "$1/etc/sudoers"
  411.25  	else
  411.26 -		chown root.root $root/etc/sudoers
  411.27 -		chmod 0440 $root/etc/sudoers
  411.28 +		chown root.root "$1/etc/sudoers"
  411.29 +		chmod 0440 "$1/etc/sudoers"
  411.30  	fi
  411.31  }                        
   412.1 --- a/swat/receipt	Sat Dec 19 21:50:31 2015 +0100
   412.2 +++ b/swat/receipt	Sun Dec 20 15:13:45 2015 +0100
   412.3 @@ -20,9 +20,9 @@
   412.4  
   412.5  post_install()
   412.6  {
   412.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
   412.8 -		if ! grep -q /usr/share/samba/swat/ $1/etc/lighttpd/lighttpd.conf; then
   412.9 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/swat/" => "/usr/share/samba/swat/",|g' -i $1/etc/lighttpd/lighttpd.conf
  412.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  412.11 +		if ! grep -q /usr/share/samba/swat/ "$1/etc/lighttpd/lighttpd.conf"; then
  412.12 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/swat/" => "/usr/share/samba/swat/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  412.13  			if [ -z "$1" ]; then
  412.14  				# Start Web server.
  412.15  				/etc/init.d/lighttpd stop
   413.1 --- a/t2/receipt	Sat Dec 19 21:50:31 2015 +0100
   413.2 +++ b/t2/receipt	Sun Dec 20 15:13:45 2015 +0100
   413.3 @@ -22,7 +22,7 @@
   413.4  # Pre and post install commands for Tazpkg.
   413.5  post_install()
   413.6  {
   413.7 -	[ -L $1/usr/bin/wget ] && tazpkg get-install wget --forced --root=${1:-/}
   413.8 +	[ -L "$1/usr/bin/wget" ] && tazpkg get-install wget --forced --root="${1:-/}"
   413.9  	cat <<EOT
  413.10  Now you can do:
  413.11  # cd /usr/lib/t2
   414.1 --- a/tar/receipt	Sat Dec 19 21:50:31 2015 +0100
   414.2 +++ b/tar/receipt	Sun Dec 20 15:13:45 2015 +0100
   414.3 @@ -35,9 +35,7 @@
   414.4  # Prevent erasing busybox...
   414.5  pre_install()
   414.6  {
   414.7 -	local root
   414.8 -	root=$1
   414.9 -	rm -f $root/bin/tar
  414.10 +	rm -f "$1/bin/tar"
  414.11  }
  414.12  
  414.13  post_remove()
   415.1 --- a/tazpanel-extra/receipt	Sat Dec 19 21:50:31 2015 +0100
   415.2 +++ b/tazpanel-extra/receipt	Sun Dec 20 15:13:45 2015 +0100
   415.3 @@ -27,5 +27,5 @@
   415.4  
   415.5  post_install()
   415.6  {
   415.7 -	rm -f $1/var/cache/tazpanel/* 2> /dev/null || true
   415.8 +	rm -f "$1"/var/cache/tazpanel/* 2> /dev/null || true
   415.9  }
   416.1 --- a/tazpanel-theme-sandfive/receipt	Sat Dec 19 21:50:31 2015 +0100
   416.2 +++ b/tazpanel-theme-sandfive/receipt	Sun Dec 20 15:13:45 2015 +0100
   416.3 @@ -26,10 +26,10 @@
   416.4  # Pre and post install commands for Tazpkg.
   416.5  post_install()
   416.6  {
   416.7 -	sed -i 's|STYLE=".*"|STYLE="sandfive"|' $1/etc/slitaz/tazpanel.conf
   416.8 +	sed -i 's|STYLE=".*"|STYLE="sandfive"|' "$1/etc/slitaz/tazpanel.conf"
   416.9  }
  416.10  
  416.11  pre_remove()
  416.12  {
  416.13 -	sed -i 's|STYLE=".*"|STYLE="default"|' $1/etc/slitaz/tazpanel.conf
  416.14 +	sed -i 's|STYLE=".*"|STYLE="default"|' "$1/etc/slitaz/tazpanel.conf"
  416.15  }
   417.1 --- a/tazpanel/receipt	Sat Dec 19 21:50:31 2015 +0100
   417.2 +++ b/tazpanel/receipt	Sun Dec 20 15:13:45 2015 +0100
   417.3 @@ -34,9 +34,9 @@
   417.4  # Pre and post install commands for Tazpkg.
   417.5  post_install()
   417.6  {
   417.7 -	rm -f $1/var/cache/tazpanel/* 2> /dev/null
   417.8 -	grep -qs tazpanel $1/etc/hosts ||
   417.9 -		sed -i 's/^127.0.0.1.*/& tazpanel/' $1/etc/hosts
  417.10 +	rm -f "$1"/var/cache/tazpanel/* 2> /dev/null
  417.11 +	grep -qs tazpanel "$1"/etc/hosts ||
  417.12 +		sed -i 's/^127.0.0.1.*/& tazpanel/' "$1"/etc/hosts
  417.13  
  417.14  	# Do we need TazPanel restart? It freezes when updating using web interface.
  417.15  	#[ -z "$1" ] && tazpanel restart
   418.1 --- a/tazwikiss/receipt	Sat Dec 19 21:50:31 2015 +0100
   418.2 +++ b/tazwikiss/receipt	Sun Dec 20 15:13:45 2015 +0100
   418.3 @@ -33,15 +33,15 @@
   418.4  {
   418.5  	server=busybox
   418.6  	# Configure lighttpd server
   418.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
   418.8 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
   418.9  		server=lighttpd
  418.10 -		if ! grep -q '"/wiki/"'  $1/etc/lighttpd/lighttpd.conf; then
  418.11 +		if ! grep -q '"/wiki/"' "$1/etc/lighttpd/lighttpd.conf"; then
  418.12  	    		sed -e 's|# Fast CGI|$HTTP["url"] =~ "/wiki/" {\
  418.13    cgi.assign = (\
  418.14      ".sh" => "/bin/sh"\
  418.15    )\
  418.16    index-file.names = ( "index.sh" )\
  418.17 -}\n\n&|' -i $1/etc/lighttpd/lighttpd.conf
  418.18 +}\n\n&|' -i "$1/etc/lighttpd/lighttpd.conf"
  418.19  			if [ -z "$1" ]; then
  418.20  				# Start Web server.
  418.21  				/etc/init.d/lighttpd stop
  418.22 @@ -50,10 +50,10 @@
  418.23  		fi
  418.24  	fi
  418.25  	# Configure apache server
  418.26 -	if [ -f $1/etc/apache/httpd.conf ]; then
  418.27 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  418.28  		server=apache
  418.29 -		if [ ! -f $1/etc/apache/conf.d/tazwikiss ]; then
  418.30 -			cat > $1/etc/apache/conf.d/tazwikiss <<EOT
  418.31 +		if [ ! -f "$1/etc/apache/conf.d/tazwikiss" ]; then
  418.32 +			cat > "$1/etc/apache/conf.d/tazwikiss" <<EOT
  418.33  <DirectoryMatch /var/www/wiki/>
  418.34      Options +ExecCGI
  418.35      AddHandler cgi-script .sh
  418.36 @@ -73,9 +73,9 @@
  418.37  	fi
  418.38  	# Configure busybox/httpd server by default
  418.39  	if [ "$server" == "busybox" ]; then
  418.40 -		sed -i 's/lighttpd/httpd/' $1/etc/rcS.conf
  418.41 -		if [ ! -s $1/etc/httpd.conf ]; then
  418.42 -			cat > $1/etc/httpd.conf <<EOT
  418.43 +		sed -i 's/lighttpd/httpd/' "$1/etc/rcS.conf"
  418.44 +		if [ ! -s "$1/etc/httpd.conf" ]; then
  418.45 +			cat > "$1/etc/httpd.conf" <<EOT
  418.46  H:/var/www
  418.47  A:0.0.0.0/0
  418.48  .xml:text/xml
  418.49 @@ -85,13 +85,13 @@
  418.50  EOT
  418.51  		fi
  418.52  		while read line; do
  418.53 -			grep -q "$line" $1/etc/httpd.conf && continue
  418.54 -			echo "$line" >> $1/etc/httpd.conf
  418.55 +			grep -q "$line" "$1/etc/httpd.conf" && continue
  418.56 +			echo "$line" >> "$1/etc/httpd.conf"
  418.57  		done <<EOT
  418.58  *.sh:/bin/sh
  418.59  EOT
  418.60 -		grep -q ' httpd ' $1/etc/rcS.conf ||
  418.61 -		sed -i 's/ slim"/ httpd slim"/' $1/etc/rcS.conf
  418.62 +		grep -q ' httpd ' "$1/etc/rcS.conf" ||
  418.63 +		sed -i 's/ slim"/ httpd slim"/' "$1/etc/rcS.conf"
  418.64  		if [ -z "$1" ]; then
  418.65  			# Start Web server.
  418.66  			/etc/init.d/httpd stop
  418.67 @@ -99,7 +99,7 @@
  418.68  		fi
  418.69  	fi
  418.70  	while read line; do
  418.71 -		[ -x $1/$line ] && continue
  418.72 +		[ -x "$1/$line" ] && continue
  418.73  		echo "WARNING: $line not found, $PACKAGE will not work !"
  418.74  	done <<EOT
  418.75  /usr/sbin/httpd
   419.1 --- a/tiptop/receipt	Sat Dec 19 21:50:31 2015 +0100
   419.2 +++ b/tiptop/receipt	Sun Dec 20 15:13:45 2015 +0100
   419.3 @@ -31,14 +31,14 @@
   419.4  
   419.5  post_install()
   419.6  {
   419.7 -	for i in $(ls $1/home 2> /dev/null); do
   419.8 -		[ -f /home/$i/.tiptoprc ] && continue
   419.9 -		cp $1/etc/skel/.tiptoprc $1/home/$i
  419.10 -		chroot $1/ chown $(stat -c "%u.%g" $1/home/$i) /home/$i/.tiptoprc
  419.11 +	for i in $(ls "$1/home" 2> /dev/null); do
  419.12 +		[ -f "/home/$i/.tiptoprc" ] && continue
  419.13 +		cp "$1/etc/skel/.tiptoprc" "$1/home/$i"
  419.14 +		chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tiptoprc"
  419.15  	done
  419.16  }
  419.17  
  419.18  post_remove()
  419.19  {
  419.20 -	rm -f $1/home/*/.tiptoprc
  419.21 +	rm -f "$1"/home/*/.tiptoprc
  419.22  }
   420.1 --- a/tmux-mem-cpu-load/receipt	Sat Dec 19 21:50:31 2015 +0100
   420.2 +++ b/tmux-mem-cpu-load/receipt	Sun Dec 20 15:13:45 2015 +0100
   420.3 @@ -35,11 +35,11 @@
   420.4  
   420.5  post_install()
   420.6  {
   420.7 -	for i in $(ls $1/home 2> /dev/null); do
   420.8 -		grep -qs "tmux-mem-cpu-load" /home/$i/.tmux.conf && continue
   420.9 +	for i in $(ls "$1/home" 2> /dev/null); do
  420.10 +		grep -qs "tmux-mem-cpu-load" "/home/$i/.tmux.conf" && continue
  420.11  		echo -n "Checking for .tmux.conf for $i ..."
  420.12 -		cp -a $1/etc/skel/.tmux.conf /home/$i/
  420.13 -		chroot $1/ chown $(stat -c "%u.%g" $1/home/$i) /home/$i/.tmux.conf
  420.14 +		cp -a "$1/etc/skel/.tmux.conf" "/home/$i/"
  420.15 +		chroot "$1/" chown $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.tmux.conf"
  420.16  		status
  420.17  	done
  420.18  }
   421.1 --- a/transmission/receipt	Sat Dec 19 21:50:31 2015 +0100
   421.2 +++ b/transmission/receipt	Sun Dec 20 15:13:45 2015 +0100
   421.3 @@ -45,8 +45,8 @@
   421.4  # Remove old packages name
   421.5  post_install()
   421.6  {
   421.7 -	rm -f $1/usr/bin/transmission-gtk
   421.8 -	rm -f $1/usr/share/applications/${PACKAGE}-gtk.desktop
   421.9 +	rm -f "$1/usr/bin/transmission-gtk"
  421.10 +	rm -f "$1/usr/share/applications/${PACKAGE}-gtk.desktop"
  421.11  	chroot "$1/" /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
  421.12  }
  421.13  
   422.1 --- a/ttf-bitstream-vera/receipt	Sat Dec 19 21:50:31 2015 +0100
   422.2 +++ b/ttf-bitstream-vera/receipt	Sun Dec 20 15:13:45 2015 +0100
   422.3 @@ -24,8 +24,6 @@
   422.4  # Pre and post install commands for Tazpkg.
   422.5  post_install()
   422.6  {
   422.7 -  local root
   422.8 -  root=$1
   422.9    echo "Processing post-install commands..."
  422.10 -  chroot $root/ /usr/bin/fc-cache
  422.11 +  chroot "$1/" /usr/bin/fc-cache
  422.12  }
   423.1 --- a/udev/receipt	Sat Dec 19 21:50:31 2015 +0100
   423.2 +++ b/udev/receipt	Sun Dec 20 15:13:45 2015 +0100
   423.3 @@ -86,7 +86,7 @@
   423.4  list_udev_group()
   423.5  {
   423.6  	object=${2:-GROUP}
   423.7 -	grep $object $1/etc/udev/rules.d/* | \
   423.8 +	grep $object "$1/etc/udev/rules.d/"* | \
   423.9  	sed "s|.*$object=\"\([a-zA-Z0-9]*\)\".*|\1|" | sort | uniq
  423.10  }
  423.11  
  423.12 @@ -95,10 +95,10 @@
  423.13  	# Sanity check for udev+ldap boot
  423.14  	list_udev_group "$1" GROUP | \
  423.15  	while read x; do
  423.16 -		grep -q ^$x: $1/etc/group || chroot $1/ addgroup -S $x
  423.17 +		grep -q ^$x: "$1/etc/group" || chroot "$1/" addgroup -S $x
  423.18  	done
  423.19  	list_udev_group "$1" OWNER | \
  423.20  	while read x; do
  423.21 -		grep -q ^$x: $1/etc/passwd || chroot $1/ adduser -S -D -H $x
  423.22 +		grep -q ^$x: "$1/etc/passwd" || chroot "$1/" adduser -S -D -H $x
  423.23  	done
  423.24  }
   424.1 --- a/udhcpc6-fake/receipt	Sat Dec 19 21:50:31 2015 +0100
   424.2 +++ b/udhcpc6-fake/receipt	Sun Dec 20 15:13:45 2015 +0100
   424.3 @@ -19,7 +19,7 @@
   424.4  # Overlap busybox
   424.5  pre_install()
   424.6  {
   424.7 -	rm -f $1/sbin/udhcpc
   424.8 +	rm -f "$1/sbin/udhcpc"
   424.9  }
  424.10  
  424.11  post_remove()
   425.1 --- a/ufr2/receipt	Sat Dec 19 21:50:31 2015 +0100
   425.2 +++ b/ufr2/receipt	Sun Dec 20 15:13:45 2015 +0100
   425.3 @@ -91,7 +91,7 @@
   425.4      echo "The license is stored in /usr/share/licenses/$PACKAGE "    
   425.5      echo -n "Would you like to read the license (y/N) : "; read anser
   425.6      if [ "$anser" = "y" ]; then
   425.7 -		cat $1/usr/share/licenses/"$PACKAGE"/LICENSE | more	
   425.8 +		cat "$1/usr/share/licenses/$PACKAGE/LICENSE" | more	
   425.9  		echo "" 		
  425.10  	fi
  425.11  	echo "================================================================================"
   426.1 --- a/unzip/receipt	Sat Dec 19 21:50:31 2015 +0100
   426.2 +++ b/unzip/receipt	Sun Dec 20 15:13:45 2015 +0100
   426.3 @@ -30,7 +30,7 @@
   426.4  # Remove Busybox symlink before installing
   426.5  pre_install()
   426.6  {
   426.7 -	rm -f $1/usr/bin/unzip
   426.8 +	rm -f "$1/usr/bin/unzip"
   426.9  }
  426.10  
  426.11  post_remove()
   427.1 --- a/usbmuxd/receipt	Sat Dec 19 21:50:31 2015 +0100
   427.2 +++ b/usbmuxd/receipt	Sun Dec 20 15:13:45 2015 +0100
   427.3 @@ -38,15 +38,15 @@
   427.4  post_install()
   427.5  {
   427.6  	# adduser usbmuxd if needed
   427.7 -	if ! grep -q usbmuxd $1/etc/passwd; then
   427.8 +	if ! grep -q usbmuxd "$1/etc/passwd"; then
   427.9  		echo -n "Adding user privoxy..."
  427.10 -		chroot $1/ adduser -s /bin/false -H -D -u 140 usbmuxd
  427.11 +		chroot "$1/" adduser -s /bin/false -H -D -u 140 usbmuxd
  427.12  		status
  427.13  	fi
  427.14  
  427.15 -	if ! grep -q usbmuxd $1/etc/group; then
  427.16 +	if ! grep -q usbmuxd "$1/etc/group"; then
  427.17  		echo -n "Adding group privoxy..."
  427.18 -		chroot $1/ addgroup -g 140 usbmuxd
  427.19 +		chroot "$1/" addgroup -g 140 usbmuxd
  427.20  		status
  427.21  	fi
  427.22  }
  427.23 @@ -54,6 +54,6 @@
  427.24  # Del user usbmuxd when pkg is removed.
  427.25  post_remove()
  427.26  {
  427.27 -	chroot $1/ deluser usbmuxd
  427.28 -	chroot $1/ delgroup usbmuxd
  427.29 +	chroot "$1/" deluser usbmuxd
  427.30 +	chroot "$1/" delgroup usbmuxd
  427.31  }
   428.1 --- a/usbutils/receipt	Sat Dec 19 21:50:31 2015 +0100
   428.2 +++ b/usbutils/receipt	Sun Dec 20 15:13:45 2015 +0100
   428.3 @@ -45,11 +45,11 @@
   428.4  {
   428.5  	echo "Processing pre-install commands..."
   428.6  	echo -n "Removing Busybox lsusb... "
   428.7 -	rm -f $root/usr/bin/lsusb
   428.8 +	rm -f "$1/usr/bin/lsusb"
   428.9  	status
  428.10  }
  428.11  
  428.12  post_remove()
  428.13  {
  428.14 -	ln -s /bin/busybox $1/usr/bin/lsusb
  428.15 +	ln -s /bin/busybox "$1/usr/bin/lsusb"
  428.16  }
   429.1 --- a/util-linux-blockdev/receipt	Sat Dec 19 21:50:31 2015 +0100
   429.2 +++ b/util-linux-blockdev/receipt	Sun Dec 20 15:13:45 2015 +0100
   429.3 @@ -21,7 +21,7 @@
   429.4  # Overlap busybox
   429.5  pre_install()
   429.6  {
   429.7 -	rm -f $1/sbin/blockdev
   429.8 +	rm -f "$1/sbin/blockdev"
   429.9  }
  429.10  
  429.11  post_remove()
   430.1 --- a/util-linux-flock/receipt	Sat Dec 19 21:50:31 2015 +0100
   430.2 +++ b/util-linux-flock/receipt	Sun Dec 20 15:13:45 2015 +0100
   430.3 @@ -21,7 +21,7 @@
   430.4  # Overlap busybox
   430.5  pre_install()
   430.6  {
   430.7 -	rm -f $1/usr/bin/flock
   430.8 +	rm -f "$1/usr/bin/flock"
   430.9  }
  430.10  
  430.11  post_remove()
   431.1 --- a/util-linux-uuid/receipt	Sat Dec 19 21:50:31 2015 +0100
   431.2 +++ b/util-linux-uuid/receipt	Sun Dec 20 15:13:45 2015 +0100
   431.3 @@ -29,7 +29,7 @@
   431.4  {
   431.5  	if [ -d "$1$INSTALLED/util-linux-ng-uuid" ]; then
   431.6  		echo "Removing old: util-linux-ng-uuid"
   431.7 -		rm -rf $1$INSTALLED/util-linux-ng-uuid
   431.8 +		rm -rf "$1$INSTALLED/util-linux-ng-uuid"
   431.9  	fi
  431.10  	true
  431.11  }
   432.1 --- a/vim-tiny/receipt	Sat Dec 19 21:50:31 2015 +0100
   432.2 +++ b/vim-tiny/receipt	Sun Dec 20 15:13:45 2015 +0100
   432.3 @@ -57,10 +57,8 @@
   432.4  
   432.5  post_install()
   432.6  {
   432.7 -    local root
   432.8 -    root=$1
   432.9      echo "Processing post-install commands..."
  432.10 -    cmd=`readlink $root/bin/vi`
  432.11 +    cmd=$(readlink "$1/bin/vi")
  432.12      if [ ! "$cmd" = "/usr/bin/vim" ]; then
  432.13          echo ""
  432.14          echo "**** Actual VI link : $cmd"
  432.15 @@ -69,7 +67,7 @@
  432.16          if [ "$anser" == "y" ]; then
  432.17              echo ""
  432.18              echo -n "Removing vi link to make a new one pointing on /usr/bin/vim..."
  432.19 -            rm $root/bin/vi && ln -sf $root/usr/bin/vim-tiny $root/bin/vi
  432.20 +            rm "$1/bin/vi" && ln -sf /usr/bin/vim-tiny "$1/bin/vi"
  432.21              status
  432.22          else
  432.23              echo ""
  432.24 @@ -82,5 +80,5 @@
  432.25  {
  432.26  	# restore previous symlink
  432.27  	echo "Processing post-remove commands..."
  432.28 -	ln -sf /bin/busybox $1/bin/vi
  432.29 +	ln -sf /bin/busybox "$1/bin/vi"
  432.30  }
   433.1 --- a/vim/receipt	Sat Dec 19 21:50:31 2015 +0100
   433.2 +++ b/vim/receipt	Sun Dec 20 15:13:45 2015 +0100
   433.3 @@ -53,10 +53,8 @@
   433.4  
   433.5  post_install()
   433.6  {
   433.7 -    local root
   433.8 -    root=$1
   433.9      echo "Processing post-install commands..."
  433.10 -    cmd=`readlink $root/bin/vi`
  433.11 +    cmd=$(readlink "$1/bin/vi")
  433.12      if [ ! "$cmd" = "/usr/bin/vim" ]; then
  433.13          echo ""
  433.14          echo "**** Actual VI link : $cmd"
  433.15 @@ -65,7 +63,7 @@
  433.16          if [ "$anser" == "y" ]; then
  433.17              echo ""
  433.18              echo -n "Removing vi link to make a new one pointing on /usr/bin/vim..."
  433.19 -            rm $root/bin/vi && ln -sf $root/usr/bin/vim $root/bin/vi
  433.20 +            rm "$1/bin/vi" && ln -sf /usr/bin/vim "$1/bin/vi"
  433.21              status
  433.22          else
  433.23              echo ""
  433.24 @@ -78,5 +76,5 @@
  433.25  {
  433.26  	# restore previous symlink
  433.27  	echo "Processing post-remove commands..."
  433.28 -	ln -sf /bin/busybox $1/bin/vi
  433.29 +	ln -sf /bin/busybox "$1/bin/vi"
  433.30  }
   434.1 --- a/virtualbox-ose-guestutils/receipt	Sat Dec 19 21:50:31 2015 +0100
   434.2 +++ b/virtualbox-ose-guestutils/receipt	Sun Dec 20 15:13:45 2015 +0100
   434.3 @@ -65,39 +65,39 @@
   434.4  
   434.5  pre_remove()
   434.6  {
   434.7 -    if chroot $1/ lspci | grep -qi virtualbox; then
   434.8 -		sed -i "s/vboxguest vboxsf vboxvideo //" $1/etc/rcS.conf
   434.9 -		sed -i '/# VBoxService daemon options./{N;N;N;d}' $1/etc/daemons.conf
  434.10 -		sed -i 's/VBoxService //' $1/etc/rcS.conf
  434.11 -		chroot $1/ delgroup vboxsf
  434.12 -		sed -i 's/^\tDriver.*$/\tDriver      "vesa"/' $1/etc/X11/xorg.conf.d/60-Device.conf
  434.13 +    if chroot "$1/" lspci | grep -qi virtualbox; then
  434.14 +		sed -i "s/vboxguest vboxsf vboxvideo //" "$1/etc/rcS.conf"
  434.15 +		sed -i '/# VBoxService daemon options./{N;N;N;d}' "$1/etc/daemons.conf"
  434.16 +		sed -i 's/VBoxService //' "$1/etc/rcS.conf"
  434.17 +		chroot "$1/" delgroup vboxsf
  434.18 +		sed -i 's/^\tDriver.*$/\tDriver      "vesa"/' "$1/etc/X11/xorg.conf.d/60-Device.conf"
  434.19      fi
  434.20  }
  434.21  
  434.22  post_install()
  434.23  {
  434.24 -	if chroot $1/ lspci | grep -qi virtualbox; then
  434.25 -		#chroot $1/ udevadm control --reload
  434.26 -		grep -qs VBOXSERVICE_OPTIONS $1/etc/daemons.conf || 
  434.27 -			cat >> $1/etc/daemons.conf << "EOT"
  434.28 +	if chroot "$1/" lspci | grep -qi virtualbox; then
  434.29 +		#chroot "$1/" udevadm control --reload
  434.30 +		grep -qs VBOXSERVICE_OPTIONS "$1/etc/daemons.conf" || 
  434.31 +			cat >> "$1/etc/daemons.conf" << "EOT"
  434.32  # VBoxService daemon options.
  434.33  VBOXSERVICE_OPTIONS=""
  434.34  
  434.35  EOT
  434.36 -		KERNEL_VERSION=$( chroot $1/ uname -r) 
  434.37 -		chroot $1/ depmod -a $KERNEL_VERSION 
  434.38 -		#chroot $1/ modprobe -a vboxguest vboxsf vboxvideo
  434.39 -		sed -i 's/^\tDriver.*$/\tDriver      "vboxvideo"/' $1/etc/X11/xorg.conf.d/60-Device.conf
  434.40 -		grep -qs vboxguest $1/etc/rcS.conf || 	
  434.41 -			sed -i 's/LOAD_MODULES="/&vboxguest vboxsf vboxvideo /' $1/etc/rcS.conf
  434.42 -		grep -qs VBoxService $1/etc/rcS.conf ||
  434.43 -			sed -i 's/RUN_DAEMONS="/&VBoxService /' $1/etc/rcS.conf
  434.44 -		grep -qs vboxsf $1/etc/group || chroot $1/ addgroup -g 109 vboxsf
  434.45 +		KERNEL_VERSION=$( chroot "$1/" uname -r) 
  434.46 +		chroot "$1/" depmod -a $KERNEL_VERSION 
  434.47 +		#chroot "$1/" modprobe -a vboxguest vboxsf vboxvideo
  434.48 +		sed -i 's/^\tDriver.*$/\tDriver      "vboxvideo"/' "$1/etc/X11/xorg.conf.d/60-Device.conf"
  434.49 +		grep -qs vboxguest "$1/etc/rcS.conf" || 	
  434.50 +			sed -i 's/LOAD_MODULES="/&vboxguest vboxsf vboxvideo /' "$1/etc/rcS.conf"
  434.51 +		grep -qs VBoxService "$1/etc/rcS.conf" ||
  434.52 +			sed -i 's/RUN_DAEMONS="/&VBoxService /' "$1/etc/rcS.conf"
  434.53 +		grep -qs vboxsf "$1/etc/group" || chroot "$1/" addgroup -g 109 vboxsf
  434.54  		echo "add yourself to vboxsf group if you want to access"
  434.55  		echo "host shared folder: addgroup $USER vboxsf"
  434.56  		#i can't get udev to do its work
  434.57  		#echo "then logout and login again"
  434.58 -		#chroot $1/ /etc/init.d/VBoxService start &> /dev/null
  434.59 +		#chroot "$1/" /etc/init.d/VBoxService start &> /dev/null
  434.60  		echo "then reboot"
  434.61  	else
  434.62  		echo "this is not a virtual machine," 
   435.1 --- a/virtualbox-ose/receipt	Sat Dec 19 21:50:31 2015 +0100
   435.2 +++ b/virtualbox-ose/receipt	Sun Dec 20 15:13:45 2015 +0100
   435.3 @@ -124,19 +124,19 @@
   435.4  
   435.5  pre_remove()
   435.6  {
   435.7 -	sed -i "s/vboxdrv vboxnetadp vboxnetflt //" $1/etc/rcS.conf
   435.8 -	chroot $1/ delgroup vboxusers
   435.9 +	sed -i "s/vboxdrv vboxnetadp vboxnetflt //" "$1/etc/rcS.conf"
  435.10 +	chroot "$1/" delgroup vboxusers
  435.11  }
  435.12  
  435.13  post_install()
  435.14  {
  435.15 -	#chroot $1/ udevadm control --reload
  435.16 -	KERNEL_VERSION=$( chroot $1/ uname -r)
  435.17 -	chroot $1/ depmod -a $KERNEL_VERSION
  435.18 -	chroot $1/ modprobe -a vboxdrv vboxnetadp vboxnetflt
  435.19 -	grep -qs vboxdrv $1/etc/rcS.conf ||
  435.20 -		sed -i 's/LOAD_MODULES="/&vboxdrv vboxnetadp vboxnetflt /' $1/etc/rcS.conf
  435.21 -	grep -qs vboxuser $1/etc/group || chroot $1/ addgroup -g 199 vboxusers
  435.22 +	#chroot "$1/" udevadm control --reload
  435.23 +	KERNEL_VERSION=$( chroot "$1/" uname -r)
  435.24 +	chroot "$1/" depmod -a $KERNEL_VERSION
  435.25 +	chroot "$1/" modprobe -a vboxdrv vboxnetadp vboxnetflt
  435.26 +	grep -qs vboxdrv "$1/etc/rcS.conf" ||
  435.27 +		sed -i 's/LOAD_MODULES="/&vboxdrv vboxnetadp vboxnetflt /' "$1/etc/rcS.conf"
  435.28 +	grep -qs vboxuser "$1/etc/group" || chroot "$1/" addgroup -g 199 vboxusers
  435.29  	echo "add yourself to vboxusers group if you want to access"
  435.30  	echo "host usb devices: addgroup $USER vboxusers"
  435.31  	#i can't get udev to do its work
   436.1 --- a/watchdog/receipt	Sat Dec 19 21:50:31 2015 +0100
   436.2 +++ b/watchdog/receipt	Sun Dec 20 15:13:45 2015 +0100
   436.3 @@ -33,5 +33,5 @@
   436.4  # Pre and post install commands for Tazpkg.
   436.5  post_install()
   436.6  {
   436.7 -	[ -c $1/dev/watchdog ] || mknod -m 660  $1/dev/watchdog c 10 130
   436.8 +	[ -c "$1/dev/watchdog" ] || mknod -m 660  "$1/dev/watchdog" c 10 130
   436.9  }
   437.1 --- a/wbar/receipt	Sat Dec 19 21:50:31 2015 +0100
   437.2 +++ b/wbar/receipt	Sun Dec 20 15:13:45 2015 +0100
   437.3 @@ -38,14 +38,14 @@
   437.4  # Post install/remove commands for Tazpkg.
   437.5  post_install()
   437.6  {
   437.7 -	rm -f $1/etc/dot.wbar
   437.8 -	[ -s $1/etc/wbar/dot.wbar ] || rm -f $1/etc/wbar/dot.wbar
   437.9 -	mv $1/etc/wbar/dot.wbar $1/etc/wbar/dot.wbar.old 2> /dev/null && cat <<EOT
  437.10 +	rm -f "$1/etc/dot.wbar"
  437.11 +	[ -s "$1/etc/wbar/dot.wbar" ] || rm -f "$1/etc/wbar/dot.wbar"
  437.12 +	mv "$1/etc/wbar/dot.wbar" "$1/etc/wbar/dot.wbar.old" 2> /dev/null && cat <<EOT
  437.13  --------
  437.14  Your old wbar configuration is saved into /etc/wbar/dot.wbar.old
  437.15  --------
  437.16  EOT
  437.17 -	cat > $1/etc/wbar/dot.wbar << EOT
  437.18 +	cat > "$1/etc/wbar/dot.wbar" << EOT
  437.19  # The Bar && Font
  437.20  i: /usr/share/wbar/iconpack/osxbarback.png
  437.21  t: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans/12
  437.22 @@ -54,7 +54,7 @@
  437.23  EOT
  437.24  	while read icon exe text; do
  437.25  		[ -x $exe ] || continue
  437.26 -		cat >> $1/etc/wbar/dot.wbar << EOT
  437.27 +		cat >> "$1/etc/wbar/dot.wbar" << EOT
  437.28  i: $icon
  437.29  c: $exe
  437.30  t: $text
  437.31 @@ -68,8 +68,8 @@
  437.32  /usr/share/pixmaps/xterm.png /usr/bin/xterm xterm
  437.33  /usr/share/pixmaps/leafpad.png /usr/bin/leafpad leafpad
  437.34  EOT
  437.35 -	grep -q 'wbar' $1/etc/xdg/openbox/autostart.sh ||
  437.36 -	cat >> $1/etc/xdg/openbox/autostart.sh << EOT
  437.37 +	grep -q 'wbar' "$1/etc/xdg/openbox/autostart.sh" ||
  437.38 +	cat >> "$1/etc/xdg/openbox/autostart.sh" << EOT
  437.39  
  437.40  # Wbar icons panel.
  437.41  (sleep 2 && wbar -above-desk -pos top center -jumpf 0 -zoomf 1.5 -bpress -balfa 0) &
  437.42 @@ -78,6 +78,6 @@
  437.43  
  437.44  post_remove()
  437.45  {
  437.46 -	sed -i '/Wbar/ d' $1/etc/xdg/openbox/autostart.sh
  437.47 -	sed -i '/wbar/ d' $1/etc/xdg/openbox/autostart.sh
  437.48 +	sed -i '/Wbar/ d' "$1/etc/xdg/openbox/autostart.sh"
  437.49 +	sed -i '/wbar/ d' "$1/etc/xdg/openbox/autostart.sh"
  437.50  }
   438.1 --- a/webalizer/receipt	Sat Dec 19 21:50:31 2015 +0100
   438.2 +++ b/webalizer/receipt	Sun Dec 20 15:13:45 2015 +0100
   438.3 @@ -44,8 +44,8 @@
   438.4  # Pre and post install commands for Tazpkg.
   438.5  post_install()
   438.6  {
   438.7 -	grep -q webalizer $1/etc/init.d/local.sh || \
   438.8 -	cat >> $1/etc/init.d/local.sh <<EOT
   438.9 +	grep -q webalizer "$1/etc/init.d/local.sh" || \
  438.10 +	cat >> "$1/etc/init.d/local.sh" <<EOT
  438.11  [ -f /var/www/webalizer/index.html ] || /usr/bin/webalizer -o /var/www/webalizer /var/log/apache/access_log
  438.12  EOT
  438.13  	if [ -z "$1" ]; then
   439.1 --- a/which/receipt	Sat Dec 19 21:50:31 2015 +0100
   439.2 +++ b/which/receipt	Sun Dec 20 15:13:45 2015 +0100
   439.3 @@ -36,11 +36,9 @@
   439.4  #
   439.5  pre_install()
   439.6  {
   439.7 -	local root
   439.8 -	root=$1
   439.9  	echo "Processing pre-install commands..."
  439.10  	echo -n "Removing all Busybox replaced utils... "
  439.11 -	rm -f $root/usr/bin/which
  439.12 +	rm -f "$1/usr/bin/which"
  439.13  	status
  439.14  }
  439.15  
   440.1 --- a/wicd/receipt	Sat Dec 19 21:50:31 2015 +0100
   440.2 +++ b/wicd/receipt	Sun Dec 20 15:13:45 2015 +0100
   440.3 @@ -56,11 +56,9 @@
   440.4  # edit daemons.conf.
   440.5  post_install()
   440.6  {
   440.7 -	local root
   440.8 -	root=$1
   440.9 -	if ! grep -q ^WICD_OPTIONS $root/etc/daemons.conf; then
  440.10 -		echo '# wicd options.' >> $root/etc/daemons.conf
  440.11 -		echo 'WICD_OPTIONS=""' >> $root/etc/daemons.conf
  440.12 -		echo '' >> $root/etc/daemons.conf
  440.13 +	if ! grep -q ^WICD_OPTIONS "$1/etc/daemons.conf"; then
  440.14 +		echo '# wicd options.' >> "$1/etc/daemons.conf"
  440.15 +		echo 'WICD_OPTIONS=""' >> "$1/etc/daemons.conf"
  440.16 +		echo '' >> "$1/etc/daemons.conf"
  440.17  	fi
  440.18  }
   441.1 --- a/wine/receipt	Sat Dec 19 21:50:31 2015 +0100
   441.2 +++ b/wine/receipt	Sun Dec 20 15:13:45 2015 +0100
   441.3 @@ -39,12 +39,12 @@
   441.4  	[ "$1" ] || modprobe snd-seq 2>/dev/null
   441.5  
   441.6  	# Enable unicode filenames and localized keyboard layouts input
   441.7 -	. $1/etc/locale.conf
   441.8 +	. "$1/etc/locale.conf"
   441.9  	case $LANG in
  441.10  		(C|POSIX|*UTF-8) echo $LANG - skip modifying /etc/locale.conf ;;
  441.11  		(*)
  441.12      		echo "$LANG changed to ${LANG}.UTF-8 in /etc/locale.conf"
  441.13  		echo "Restart/ReLogin required."
  441.14 -		sed -i 's/$/&.UTF-8/' $1/etc/locale.conf ;;
  441.15 +		sed -i 's/$/&.UTF-8/' "$1/etc/locale.conf" ;;
  441.16  	esac
  441.17  }
   442.1 --- a/wordpress/receipt	Sat Dec 19 21:50:31 2015 +0100
   442.2 +++ b/wordpress/receipt	Sun Dec 20 15:13:45 2015 +0100
   442.3 @@ -28,7 +28,7 @@
   442.4  	local db_password=wordpress
   442.5  	
   442.6  	# Minimal config for wordpress.
   442.7 -	if [ -z $1 ]; then
   442.8 +	if [ -z "$1" ]; then
   442.9  		if ( ! mysqladmin -s ping > /dev/null ); then
  442.10  			echo "Starting MySQL server"
  442.11  			( /etc/init.d/mysql start ; status  ) || exit 
  442.12 @@ -56,7 +56,7 @@
  442.13  	local db_user=wordpress
  442.14  	local db_password=wordpress
  442.15  	
  442.16 -	if [ -z $1 ]; then
  442.17 +	if [ -z "$1" ]; then
  442.18  		echo -n "Would you like to remove data and database files.(y/n) "
  442.19  		read answer
  442.20  
   443.1 --- a/wpa_supplicant/receipt	Sat Dec 19 21:50:31 2015 +0100
   443.2 +++ b/wpa_supplicant/receipt	Sun Dec 20 15:13:45 2015 +0100
   443.3 @@ -91,15 +91,15 @@
   443.4  # Pre and post install commands for Tazpkg.
   443.5  post_install()
   443.6  {
   443.7 -	grep -qs ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> $1/etc/daemons.conf << EOT
   443.8 +	grep -qs ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> "$1/etc/daemons.conf" << EOT
   443.9  
  443.10  # wpa_supplicant daemon options
  443.11  WPA_OPTIONS="-B -u -P /var/run/wpa_supplicant.pid -c /etc/wpa/wpa.conf -i \$(. /etc/network.conf ; echo \$WIFI_INTERFACE)"
  443.12  
  443.13  EOT
  443.14  	# We use /etc/wpa/wpa.conf from SliTaz 5.0
  443.15 -	sed -i s'#/etc/wpa_supplicant.conf#/etc/wpa/wpa.conf#'/ $1/etc/daemons.conf 2> /dev/null
  443.16 +	sed -i s'#/etc/wpa_supplicant.conf#/etc/wpa/wpa.conf#'/ "$1/etc/daemons.conf" 2> /dev/null
  443.17  	# 'w' option dont exist anymore with < 0.6.9
  443.18 -	sed -i s/'-Bw'/'-B'/ $1/etc/daemons.conf 2> /dev/null
  443.19 -	sed -i s/'-B -w'/'-B'/g $1/etc/init.d/network.sh 2> /dev/null
  443.20 +	sed -i s/'-Bw'/'-B'/ "$1/etc/daemons.conf" 2> /dev/null
  443.21 +	sed -i s/'-B -w'/'-B'/g "$1/etc/init.d/network.sh" 2> /dev/null
  443.22  }
   444.1 --- a/wvstreams/receipt	Sat Dec 19 21:50:31 2015 +0100
   444.2 +++ b/wvstreams/receipt	Sun Dec 20 15:13:45 2015 +0100
   444.3 @@ -45,5 +45,5 @@
   444.4  
   444.5  post_remove()
   444.6  {
   444.7 -	rm -rf $1/etc/ppp/peers/wvdial
   444.8 +	rm -rf "$1/etc/ppp/peers/wvdial"
   444.9  }
   445.1 --- a/x11vnc-extra/receipt	Sat Dec 19 21:50:31 2015 +0100
   445.2 +++ b/x11vnc-extra/receipt	Sun Dec 20 15:13:45 2015 +0100
   445.3 @@ -23,5 +23,5 @@
   445.4  # Post install/remove commands for Tazpkg.
   445.5  post_install()
   445.6  {
   445.7 -	sed -i 's/X11VNC_OPTIONS="/X11VNC_OPTIONS="-ssl -http /' $1/etc/daemons.conf
   445.8 +	sed -i 's/X11VNC_OPTIONS="/X11VNC_OPTIONS="-ssl -http /' "$1/etc/daemons.conf"
   445.9  }
   446.1 --- a/x11vnc/receipt	Sat Dec 19 21:50:31 2015 +0100
   446.2 +++ b/x11vnc/receipt	Sun Dec 20 15:13:45 2015 +0100
   446.3 @@ -36,12 +36,12 @@
   446.4  # Post install/remove commands for Tazpkg.
   446.5  post_install()
   446.6  {
   446.7 -	grep -q "^X11VNC" $1/etc/daemons.conf || cat >>$1/etc/daemons.conf <<EOT
   446.8 +	grep -q "^X11VNC" "$1/etc/daemons.conf" || cat >> "$1/etc/daemons.conf" <<EOT
   446.9  # VNC server options.
  446.10  X11VNC_OPTIONS="-rfbauth /etc/vnc.secret -auth /var/run/slim.auth -allow 10.,192.168.,127.0.0.1 -forever -loop -tightfilexfer -permitfiletransfer -display :0"
  446.11  
  446.12  EOT
  446.13 -	[ -f $1/etc/vnc.secret ] || 
  446.14 -	chroot $1/ x11vnc -storepasswd root /etc/vnc.secret
  446.15 +	[ -f "$1/etc/vnc.secret" ] || 
  446.16 +	chroot "$1/" x11vnc -storepasswd root /etc/vnc.secret
  446.17  }
  446.18  
   447.1 --- a/xfce4-ristretto/receipt	Sat Dec 19 21:50:31 2015 +0100
   447.2 +++ b/xfce4-ristretto/receipt	Sun Dec 20 15:13:45 2015 +0100
   447.3 @@ -38,6 +38,6 @@
   447.4  post_install()
   447.5  {
   447.6  	echo "Execute post-install command"
   447.7 -	gtk-update-icon-cache -f -t -q $1/usr/share/icons/hicolor
   447.8 +	gtk-update-icon-cache -f -t -q "$1/usr/share/icons/hicolor"
   447.9  }
  447.10  
   448.1 --- a/xfce4/receipt	Sat Dec 19 21:50:31 2015 +0100
   448.2 +++ b/xfce4/receipt	Sun Dec 20 15:13:45 2015 +0100
   448.3 @@ -21,12 +21,11 @@
   448.4  
   448.5  post_install()
   448.6  {
   448.7 -	root=$1
   448.8  	echo "Processing postinstall commands..."
   448.9  	
  448.10  	# Adding xfce to SLIM available sessions.
  448.11 -	if ! grep -q xfce $root/etc/slim.conf; then
  448.12 -		sed -i s/,jwm/,jwm,xfce/ $root/etc/slim.conf
  448.13 +	if ! grep -q xfce "$1/etc/slim.conf"; then
  448.14 +		sed -i s/,jwm/,jwm,xfce/ "$1/etc/slim.conf"
  448.15  	fi
  448.16  	
  448.17  	# Adding xfce support to tazx
   449.1 --- a/xine-plugin/receipt	Sat Dec 19 21:50:31 2015 +0100
   449.2 +++ b/xine-plugin/receipt	Sun Dec 20 15:13:45 2015 +0100
   449.3 @@ -34,6 +34,6 @@
   449.4  # Pre and post install commands for Tazpkg.
   449.5  post_install()
   449.6  {
   449.7 -	ln -s /usr/share/xine/xineplugin.so $1/usr/lib/firefox-*/plugins/
   449.8 -	ln -s /usr/share/xine/xineplugin.so $1/usr/lib/mozilla/plugins/
   449.9 +	ln -s /usr/share/xine/xineplugin.so "$1"/usr/lib/firefox-*/plugins/
  449.10 +	ln -s /usr/share/xine/xineplugin.so "$1/usr/lib/mozilla/plugins/"
  449.11  }
   450.1 --- a/xlockmore/receipt	Sat Dec 19 21:50:31 2015 +0100
   450.2 +++ b/xlockmore/receipt	Sun Dec 20 15:13:45 2015 +0100
   450.3 @@ -37,7 +37,5 @@
   450.4  
   450.5  post_install() 
   450.6  {
   450.7 -    local root
   450.8 -    root=$1
   450.9 -    chmod u+s $root/usr/bin/xlock
  450.10 +    chmod u+s "$1/usr/bin/xlock"
  450.11  }
   451.1 --- a/xorg-base-fonts/receipt	Sat Dec 19 21:50:31 2015 +0100
   451.2 +++ b/xorg-base-fonts/receipt	Sun Dec 20 15:13:45 2015 +0100
   451.3 @@ -27,5 +27,5 @@
   451.4  post_install()
   451.5  {
   451.6  	# It may be segfault without -f or -r
   451.7 -	chroot $1/ /usr/bin/fc-cache -r
   451.8 +	chroot "$1/" /usr/bin/fc-cache -r
   451.9  }
   452.1 --- a/xorg-server-Xephyr/receipt	Sat Dec 19 21:50:31 2015 +0100
   452.2 +++ b/xorg-server-Xephyr/receipt	Sun Dec 20 15:13:45 2015 +0100
   452.3 @@ -24,5 +24,5 @@
   452.4  # We need /var/tmp rw to let xkbcomp builr XKB definition.
   452.5  post_install()
   452.6  {
   452.7 -	chmod 1777 $1/var/tmp
   452.8 +	chmod 1777 "$1/var/tmp"
   452.9  }
   453.1 --- a/xorg-server-Xfbdev/receipt	Sat Dec 19 21:50:31 2015 +0100
   453.2 +++ b/xorg-server-Xfbdev/receipt	Sun Dec 20 15:13:45 2015 +0100
   453.3 @@ -25,5 +25,5 @@
   453.4  # We need /var/tmp rw to let xkbcomp builr XKB definition.
   453.5  post_install()
   453.6  {
   453.7 -	chmod 1777 $1/var/tmp
   453.8 +	chmod 1777 "$1/var/tmp"
   453.9  }
   454.1 --- a/xorg-server-Xnest/receipt	Sat Dec 19 21:50:31 2015 +0100
   454.2 +++ b/xorg-server-Xnest/receipt	Sun Dec 20 15:13:45 2015 +0100
   454.3 @@ -24,5 +24,5 @@
   454.4  # We need /var/tmp rw to let xkbcomp builr XKB definition.
   454.5  post_install()
   454.6  {
   454.7 -	chmod 1777 $1/var/tmp
   454.8 +	chmod 1777 "$1/var/tmp"
   454.9  }
   455.1 --- a/xorg-server-Xvfb/receipt	Sat Dec 19 21:50:31 2015 +0100
   455.2 +++ b/xorg-server-Xvfb/receipt	Sun Dec 20 15:13:45 2015 +0100
   455.3 @@ -23,5 +23,5 @@
   455.4  # We need /var/tmp rw to let xkbcomp builr XKB definition.
   455.5  post_install()
   455.6  {
   455.7 -	chmod 1777 $1/var/tmp
   455.8 +	chmod 1777 "$1/var/tmp"
   455.9  }
   456.1 --- a/xorg-server-light/receipt	Sat Dec 19 21:50:31 2015 +0100
   456.2 +++ b/xorg-server-light/receipt	Sun Dec 20 15:13:45 2015 +0100
   456.3 @@ -97,5 +97,5 @@
   456.4  # We need /var/tmp rw to let xkbcomp builr XKB definition.
   456.5  post_install()
   456.6  {
   456.7 -	chmod 1777 $1/var/tmp
   456.8 +	chmod 1777 "$1/var/tmp"
   456.9  }
   457.1 --- a/xorg-server/receipt	Sat Dec 19 21:50:31 2015 +0100
   457.2 +++ b/xorg-server/receipt	Sun Dec 20 15:13:45 2015 +0100
   457.3 @@ -76,5 +76,5 @@
   457.4  # We need /var/tmp rw to let xkbcomp builr XKB definition.
   457.5  post_install()
   457.6  {
   457.7 -	chmod 1777 $1/var/tmp
   457.8 +	chmod 1777 "$1/var/tmp"
   457.9  }
   458.1 --- a/xtel/receipt	Sat Dec 19 21:50:31 2015 +0100
   458.2 +++ b/xtel/receipt	Sun Dec 20 15:13:45 2015 +0100
   458.3 @@ -48,10 +48,10 @@
   458.4  # Pre and post install commands for Tazpkg.
   458.5  post_install()
   458.6  {
   458.7 -	grep -qs ^xtel $1/etc/services || cat >> $1/etc/services <<EOT
   458.8 +	grep -qs ^xtel "$1/etc/services" || cat >> "$1/etc/services" <<EOT
   458.9  xtel		1313/tcp				# French minitel
  458.10  EOT
  458.11 -	grep -qs ^xtel $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
  458.12 +	grep -qs ^xtel "$1/etc/inetd.conf" || cat >> "$1/etc/inetd.conf" <<EOT
  458.13  xtel	stream	tcp	nowait	root	/usr/bin/xteld	xteld
  458.14  EOT
  458.15  	chroot "$1/" /usr/bin/install_iminitel
   459.1 --- a/xvkbd/receipt	Sat Dec 19 21:50:31 2015 +0100
   459.2 +++ b/xvkbd/receipt	Sun Dec 20 15:13:45 2015 +0100
   459.3 @@ -43,7 +43,7 @@
   459.4  {
   459.5  	# .Xdefaults file
   459.6  	lang=$(echo $LANG | awk '{FS="_"} {print $1}')
   459.7 -	find $1/home -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults
   459.8 +	find "$1/home" -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults
   459.9  	while read line
  459.10  	do
  459.11  	if ! grep -q "Xvkbd settings" $line; then
   460.1 --- a/xz/receipt	Sat Dec 19 21:50:31 2015 +0100
   460.2 +++ b/xz/receipt	Sun Dec 20 15:13:45 2015 +0100
   460.3 @@ -42,17 +42,15 @@
   460.4  #
   460.5  #pre_install()
   460.6  #{
   460.7 -#	local root
   460.8 -#	root=$1
   460.9  #	echo "Processing pre-install commands..."
  460.10  #	echo -n "Removing all Busybox replaced utils... "
  460.11 -#	rm -f $root/usr/bin/unlzma
  460.12 -#	rm -f $root/usr/bin/lzcat
  460.13 +#	rm -f "$1/usr/bin/unlzma"
  460.14 +#	rm -f "$1/usr/bin/lzcat"
  460.15  #	status
  460.16  #}
  460.17  
  460.18  #post_remove()
  460.19  #{
  460.20 -#	ln -s /bin/busybox $1/usr/bin/unlzma
  460.21 -#	ln -s /bin/busybox $1/usr/bin/lzcat
  460.22 +#	ln -s /bin/busybox "$1/usr/bin/unlzma"
  460.23 +#	ln -s /bin/busybox "$1/usr/bin/lzcat"
  460.24  #}
   461.1 --- a/yasr/receipt	Sat Dec 19 21:50:31 2015 +0100
   461.2 +++ b/yasr/receipt	Sun Dec 20 15:13:45 2015 +0100
   461.3 @@ -35,7 +35,7 @@
   461.4  {
   461.5  	# Enable speech-synthesizer in config file
   461.6  	echo -n "Enabling config file..."
   461.7 -	cd $1/usr/share/yasr
   461.8 +	cd "$1/usr/share/yasr"
   461.9  	sed -i 's/synthesizer=emacspeak/#synthesizer=emacspeak/; \
  461.10  	s/#synthesizer=speech/synthesizer=speech/; \
  461.11  	s/synthesizer port=|/#synthesizer port=|/; \
   462.1 --- a/zerobin/receipt	Sat Dec 19 21:50:31 2015 +0100
   462.2 +++ b/zerobin/receipt	Sun Dec 20 15:13:45 2015 +0100
   462.3 @@ -38,9 +38,9 @@
   462.4  post_install()
   462.5  {
   462.6  	# Configure lighttpd server
   462.7 -	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
   462.8 -		if ! grep -q /usr/share/zerobin/ $1/etc/lighttpd/lighttpd.conf; then
   462.9 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/paste/" => "/usr/share/zerobin/",|g' -i $1/etc/lighttpd/lighttpd.conf
  462.10 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
  462.11 +		if ! grep -q /usr/share/zerobin/ "$1/etc/lighttpd/lighttpd.conf"; then
  462.12 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/paste/" => "/usr/share/zerobin/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
  462.13  			if [ -z "$1" ]; then
  462.14  				# Start Web server.
  462.15  				/etc/init.d/lighttpd stop
  462.16 @@ -49,10 +49,10 @@
  462.17  		fi
  462.18  	fi
  462.19  	# Configure apache server
  462.20 -	if [ -f $1/etc/apache/httpd.conf ]; then
  462.21 -		sed -i 's/lighttpd/apache/' $1/etc/rcS.conf
  462.22 -		if [ ! -f $1/etc/apache/conf.d/zerobin ]; then
  462.23 -			cat > $1/etc/apache/conf.d/zerobin <<EOT
  462.24 +	if [ -f "$1/etc/apache/httpd.conf" ]; then
  462.25 +		sed -i 's/lighttpd/apache/' "$1/etc/rcS.conf"
  462.26 +		if [ ! -f "$1/etc/apache/conf.d/zerobin" ]; then
  462.27 +			cat > "$1/etc/apache/conf.d/zerobin" <<EOT
  462.28  <IfModule mod_alias.c>
  462.29      Alias /paste /usr/share/zerobin/
  462.30  </IfModule>
   463.1 --- a/zsh/receipt	Sat Dec 19 21:50:31 2015 +0100
   463.2 +++ b/zsh/receipt	Sun Dec 20 15:13:45 2015 +0100
   463.3 @@ -48,10 +48,8 @@
   463.4  #
   463.5  post_install()
   463.6  {
   463.7 -	local root
   463.8 -	root=$1
   463.9  	echo "Processing post-install commands..."
  463.10 -	sh=`readlink $root/bin/sh`
  463.11 +	sh=$(readlink "$1/bin/sh")
  463.12  	if [ ! "$sh" = "/bin/zsh" ]; then
  463.13  		echo ""
  463.14  		echo "**** Actual SH link : $sh"
  463.15 @@ -60,8 +58,8 @@
  463.16  		read -t 30 answer < /dev/tty
  463.17  		if [ "$answer" == "y" ]; then
  463.18  			echo ""
  463.19 -			echo -n "Removin sh link to make a new one pointing on /bin/zsh..."
  463.20 -			rm $root/bin/sh && ln -s /bin/zsh $root/bin/sh
  463.21 +			echo -n "Removing sh link to make a new one pointing on /bin/zsh..."
  463.22 +			rm "$1/bin/sh" && ln -s /bin/zsh "$1/bin/sh"
  463.23  			status
  463.24  		else
  463.25  			echo ""
  463.26 @@ -73,11 +71,9 @@
  463.27  # Restore a valid sh link if needed.
  463.28  pre_remove()
  463.29  {
  463.30 -        local root
  463.31 -        root=$1
  463.32 -        sh=`readlink $root/bin/sh`
  463.33 +        sh=$(readlink "$1/bin/sh")
  463.34          if [ ! "$sh" = "busybox" ]; then
  463.35 -                rm $root/bin/sh &&
  463.36 -                ln -s /bin/busybox $root/bin/sh
  463.37 +                rm "$1/bin/sh" &&
  463.38 +                ln -s /bin/busybox "$1/bin/sh"
  463.39          fi
  463.40  }