wok rev 17552

Update some post_install for install --root
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 30 10:17:37 2015 +0100 (2015-01-30)
parents 40f9f468d1fd
children 1c2114316b6a
files bash/receipt boinc/receipt buildroot/receipt c_icap/receipt cacerts/receipt claws-mail/receipt couchdb/receipt cplay/receipt dummynet/receipt emacs-pkg-go-mode/receipt emacs-pkg-lua-mode/receipt emacs-pkg-po-mode/receipt emacs-pkg-text-translator/receipt emacs-pkg-vala-mode/receipt emacs/receipt fatattr/stuff/fatattr.sh foomatic-db-nonfree/receipt freetype-infinality/receipt libsdl/receipt lightdm-gtk2-greeter/receipt lightdm-gtk3-greeter/receipt obmenu/receipt ptxdist/receipt slib/receipt slim-theme-7legs/receipt slim-theme-cat/receipt slim-theme-control/receipt slim-theme-default/receipt slim-theme-mascot/receipt slim-theme-pilar/receipt slim-theme-radarspider/receipt slim-theme-robotic/receipt slim-theme-sandfive/receipt slitaz-arm-adm/receipt squirrelmail-ar/receipt squirrelmail-bg_BG/receipt squirrelmail-bn_IN/receipt squirrelmail-ca_ES/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-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-lt_LT/receipt squirrelmail-ms_MY/receipt squirrelmail-nb_NO/receipt squirrelmail-nl_NL/receipt squirrelmail-nn_NO/receipt squirrelmail-pl_PL/receipt squirrelmail-pt_BR/receipt squirrelmail-pt_PT/receipt squirrelmail-ro_RO/receipt squirrelmail-ru_RU/receipt squirrelmail-sk_SK/receipt squirrelmail-sl_SI/receipt squirrelmail-sr_YU/receipt squirrelmail-sv_SE/receipt squirrelmail-tr_TR/receipt squirrelmail-ug/receipt squirrelmail-uk_UA/receipt squirrelmail-zh_CN/receipt squirrelmail-zh_TW/receipt sshttp/receipt t2/receipt tuxtype/receipt ufr2/receipt util-linux-uuid/receipt wine-rt/receipt wine/receipt wqy-bitmapfont/receipt xvkbd/receipt
line diff
     1.1 --- a/bash/receipt	Fri Jan 30 03:47:10 2015 +0100
     1.2 +++ b/bash/receipt	Fri Jan 30 10:17:37 2015 +0100
     1.3 @@ -89,36 +89,32 @@
     1.4  
     1.5  post_install()
     1.6  {
     1.7 -	local root
     1.8 -	root=$1
     1.9  	echo "Processing post-install commands..."
    1.10 -		echo -n "Do you want to set Bash to default (y/N) ? : "
    1.11 -		read -t 30 anser
    1.12 -		if [ "$anser" == "y" ]; then
    1.13 -			echo ""
    1.14 -			echo "Setting bash as default for all users"
    1.15 -			sed -i "s/:\/bin\/sh$/:\/bin\/bash/g"  /etc/passwd
    1.16 -			sed -i "s/:\/bin\/ksh$/:\/bin\/bash/g" /etc/passwd
    1.17 -			sed -i "s/:\/bin\/zsh$/:\/bin\/bash/g" /etc/passwd
    1.18 -			sed -i "s/:\/bin\/csh$/:\/bin\/bash/g" /etc/passwd	
    1.19 -			echo "Creating .bashrc file for all users"
    1.20 -			for i in `ls -d /home/*`
    1.21 -			    do
    1.22 -			    cp /etc/bashrc $i/.bashrc
    1.23 -			    done
    1.24 -			cp /etc/bashrc /root/.bashrc
    1.25 -			cp /etc/bashrc /etc/skel/.bashrc
    1.26 -		fi
    1.27 +	echo -n "Do you want to set Bash to default (y/N) ? : "
    1.28 +	read -t 30 anser
    1.29 +	if [ "$anser" == "y" ]; then
    1.30 +		echo ""
    1.31 +		echo "Setting bash as default for all users"
    1.32 +		sed -i "s/:\/bin\/sh$/:\/bin\/bash/g"  $1/etc/passwd
    1.33 +		sed -i "s/:\/bin\/ksh$/:\/bin\/bash/g" $1/etc/passwd
    1.34 +		sed -i "s/:\/bin\/zsh$/:\/bin\/bash/g" $1/etc/passwd
    1.35 +		sed -i "s/:\/bin\/csh$/:\/bin\/bash/g" $1/etc/passwd	
    1.36 +		echo "Creating .bashrc file for all users"
    1.37 +		for i in `ls -d $1/home/*`
    1.38 +		    do
    1.39 +		    cp $1/etc/bashrc $1$i/.bashrc
    1.40 +		    done
    1.41 +		cp $1/etc/bashrc $1/root/.bashrc
    1.42 +		cp $1/etc/bashrc $1/etc/skel/.bashrc
    1.43 +	fi
    1.44  }
    1.45  
    1.46  
    1.47  pre_remove()
    1.48  {
    1.49 -	local root
    1.50 -	root=$1
    1.51  	echo "Setting back sh as default for all users"
    1.52 -	sed -i "s/:\/bin\/bash$/:\/bin\/sh/g"  /etc/passwd
    1.53 -	if [ -f /etc/skel/.bashrc ]; then
    1.54 -	rm /etc/skel/.bashrc
    1.55 +	sed -i "s/:\/bin\/bash$/:\/bin\/sh/g"  $1/etc/passwd
    1.56 +	if [ -f $1/etc/skel/.bashrc ]; then
    1.57 +		rm $1/etc/skel/.bashrc
    1.58  	fi
    1.59  }
     2.1 --- a/boinc/receipt	Fri Jan 30 03:47:10 2015 +0100
     2.2 +++ b/boinc/receipt	Fri Jan 30 10:17:37 2015 +0100
     2.3 @@ -51,11 +51,11 @@
     2.4  post_install()
     2.5  {
     2.6  	# Check if boinc user already exists
     2.7 -	if [ -n "`grep ^${BOINCUSER}: /etc/passwd`" ] ; then                       
     2.8 -		adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
     2.9 +	if [ -n "`grep ^${BOINCUSER}: $1/etc/passwd`" ] ; then                       
    2.10 +		chroot "$1/" adduser -g "BOINC User" -h /var/lib/boinc -s /bin/bash -S -H -D boinc
    2.11  	else
    2.12  		# In case boinc was previously installed:
    2.13 -		chown -R boinc /var/lib/boinc
    2.14 +		chroot "$1/" chown -R boinc /var/lib/boinc
    2.15          fi  
    2.16                                          
    2.17  	echo -n "Start the boinc client with \"# /etc/init.d/boinc-client start\""
    2.18 @@ -67,8 +67,8 @@
    2.19  	echo -n "Delete user boinc and /var/lib/boinc (yes/No) ? : "
    2.20  	read -t 30 answer
    2.21  	if [ "$answer" == "yes" ]; then
    2.22 -		deluser boinc
    2.23 -		rm -r /var/lib/boinc
    2.24 +		chroot "$1/" deluser boinc
    2.25 +		rm -r $1/var/lib/boinc
    2.26  	else
    2.27  		echo ""
    2.28  		echo "Leaving user boinc and /var/lib/boinc"
     3.1 --- a/buildroot/receipt	Fri Jan 30 03:47:10 2015 +0100
     3.2 +++ b/buildroot/receipt	Fri Jan 30 10:17:37 2015 +0100
     3.3 @@ -24,7 +24,7 @@
     3.4  # Pre and post install commands for Tazpkg.
     3.5  post_install()
     3.6  {
     3.7 -	[ -L /usr/bin/wget ] && tazpkg get-install wget --forced
     3.8 +	[ -L $1/usr/bin/wget ] && chroot "$1/" tazpkg get-install wget --forced
     3.9  	cat <<EOT
    3.10  Now you can do:
    3.11  $ cd /usr/lib/buildroot
     4.1 --- a/c_icap/receipt	Fri Jan 30 03:47:10 2015 +0100
     4.2 +++ b/c_icap/receipt	Fri Jan 30 10:17:37 2015 +0100
     4.3 @@ -67,12 +67,12 @@
     4.4  		
     4.5  		echo "Stopping daemon..."
     4.6  		if (ps | grep -q c-icap); then
     4.7 -			/etc/init.d/c-icapd stop
     4.8 +			chroot "$1/" /etc/init.d/c-icapd stop
     4.9  		fi
    4.10  }
    4.11  post_remove()
    4.12  {
    4.13  	echo "Removing stalled files..."
    4.14 -	test -d /var/log/c-icap && rm -rf /var/log/c-icap
    4.15 -	test -d /usr/run/c-icap && rm -rf /usr/run/c-icap
    4.16 +	test -d $1/var/log/c-icap && rm -rf $1/var/log/c-icap
    4.17 +	test -d $1/usr/run/c-icap && rm -rf $1/usr/run/c-icap
    4.18  }
     5.1 --- a/cacerts/receipt	Fri Jan 30 03:47:10 2015 +0100
     5.2 +++ b/cacerts/receipt	Fri Jan 30 10:17:37 2015 +0100
     5.3 @@ -33,10 +33,10 @@
     5.4  post_install()
     5.5  {
     5.6  	echo "Rehash certificates:"
     5.7 -	if [ -d "$INSTALLED/perl" ]; then
     5.8 -		c_rehash
     5.9 +	if [ -d "$1/$INSTALLED/perl" ]; then
    5.10 +		chroot "$1/" c_rehash
    5.11  	else
    5.12 -		tazpkg -gi microperl
    5.13 -		microperl /usr/bin/c_rehash
    5.14 +		tazpkg -gi microperl --root="${1:-/}"
    5.15 +		chroot "$1/" microperl /usr/bin/c_rehash
    5.16  	fi
    5.17  }
     6.1 --- a/claws-mail/receipt	Fri Jan 30 03:47:10 2015 +0100
     6.2 +++ b/claws-mail/receipt	Fri Jan 30 10:17:37 2015 +0100
     6.3 @@ -47,6 +47,6 @@
     6.4  # Post installation custom.
     6.5  post_install()
     6.6  {
     6.7 -	[ -x /usr/bin/gtk-update-icon-cache ] && \
     6.8 -		gtk-update-icon-cache  -f -t /usr/share/icons/hicolor
     6.9 +	[ -x $1/usr/bin/gtk-update-icon-cache ] &&
    6.10 +	  chroot "$1/" gtk-update-icon-cache -f -t /usr/share/icons/hicolor
    6.11  }
     7.1 --- a/couchdb/receipt	Fri Jan 30 03:47:10 2015 +0100
     7.2 +++ b/couchdb/receipt	Fri Jan 30 10:17:37 2015 +0100
     7.3 @@ -53,7 +53,7 @@
     7.4  {
     7.5  	INIT_FILE="/etc/init.d/$PACKAGE"
     7.6  	echo "Processing pre-install commands..."
     7.7 -	[ -f $INIT_FILE ] && $INIT_FILE stop
     7.8 +	[ -f $1$$INIT_FILE ] && chroot "$1/" $INIT_FILE stop
     7.9  	echo "Done..."
    7.10  }
    7.11  
    7.12 @@ -68,13 +68,14 @@
    7.13  
    7.14  	echo "Processing post-install commands..."
    7.15  
    7.16 -	grep -q "$PACKAGE" /etc/group || addgroup -S $PACKAGE
    7.17 +	grep -q "$PACKAGE" $1/etc/group || chroot "$1/" addgroup -S $PACKAGE
    7.18  
    7.19 -	grep -q "$PACKAGE" /etc/passwd || adduser -S -D -H -h $LIBDIR \
    7.20 -	        -G $PACKAGE -s /bin/sh -g "CouchDB Administrator" $PACKAGE
    7.21 +	grep -q "$PACKAGE" $1/etc/passwd || chroot "$1/" adduser -S -D -H \
    7.22 +	  -h $LIBDIR -G $PACKAGE -s /bin/sh -g "CouchDB Administrator" $PACKAGE
    7.23  
    7.24  	for DIR in $LIBDIR $ETCDIR $LOGDIR $RUNDIR; do
    7.25 -		chown -R $PACKAGE:$PACKAGE $DIR && chmod -R 0770 $DIR
    7.26 +		chroot "$1/" chown -R $PACKAGE:$PACKAGE $DIR &&
    7.27 +		chroot "$1/" chmod -R 0770 $DIR
    7.28  	done
    7.29  
    7.30  	echo "Done..."
    7.31 @@ -85,7 +86,7 @@
    7.32  {
    7.33  	INIT_FILE="/etc/init.d/$PACKAGE"
    7.34  	echo "Processing pre-remove commands..."
    7.35 -	[ -f $INIT_FILE ] && $INIT_FILE stop
    7.36 +	[ -f $1$INIT_FILE ] && chroot "$1/" $INIT_FILE stop
    7.37  	echo "Done..."
    7.38  }
    7.39  
    7.40 @@ -98,10 +99,10 @@
    7.41  
    7.42  	echo "Processing post-remove commands..."
    7.43  
    7.44 -	deluser $PACKAGE
    7.45 +	chroot "$1/" deluser $PACKAGE
    7.46  
    7.47  	for DIR in $LIBDIR $ETCDIR $LOGDIR $RUNDIR; do
    7.48 -		rm -rf $DIR
    7.49 +		rm -rf $1$DIR
    7.50  	done
    7.51  
    7.52  	echo "Done..."
     8.1 --- a/cplay/receipt	Fri Jan 30 03:47:10 2015 +0100
     8.2 +++ b/cplay/receipt	Fri Jan 30 10:17:37 2015 +0100
     8.3 @@ -39,7 +39,7 @@
     8.4  {
     8.5  	echo "Processing post-install commands..."
     8.6  	echo -n "Modprobing snd-pcm-oss for legacy volume controls..."
     8.7 -	modprobe snd-pcm-oss
     8.8 +	[ "$1" ] || modprobe snd-pcm-oss
     8.9  	status
    8.10  }
    8.11  
     9.1 --- a/dummynet/receipt	Fri Jan 30 03:47:10 2015 +0100
     9.2 +++ b/dummynet/receipt	Fri Jan 30 10:17:37 2015 +0100
     9.3 @@ -33,6 +33,5 @@
     9.4  
     9.5  post_install()
     9.6  {
     9.7 -	echo "/lib/modules/`uname -r`/kernel/net/ipfw_mod.ko" >> /lib/modules/modules.dep
     9.8 -	depmod
     9.9 +	[ "$1" ] || depmod -a
    9.10  }
    10.1 --- a/emacs-pkg-go-mode/receipt	Fri Jan 30 03:47:10 2015 +0100
    10.2 +++ b/emacs-pkg-go-mode/receipt	Fri Jan 30 10:17:37 2015 +0100
    10.3 @@ -29,10 +29,10 @@
    10.4  
    10.5  post_install()
    10.6  {
    10.7 -	tazpkg reconfigure emacs
    10.8 +	chroot "$1/" tazpkg reconfigure emacs
    10.9  }
   10.10  
   10.11  post_remove()
   10.12  {
   10.13 -	tazpkg reconfigure emacs
   10.14 +	chroot "$1/" tazpkg reconfigure emacs
   10.15  }
    11.1 --- a/emacs-pkg-lua-mode/receipt	Fri Jan 30 03:47:10 2015 +0100
    11.2 +++ b/emacs-pkg-lua-mode/receipt	Fri Jan 30 10:17:37 2015 +0100
    11.3 @@ -37,10 +37,10 @@
    11.4  
    11.5  post_install()
    11.6  {
    11.7 -	tazpkg reconfigure emacs
    11.8 +	chroot "$1/" tazpkg reconfigure emacs
    11.9  }
   11.10  
   11.11  post_remove()
   11.12  {
   11.13 -	tazpkg reconfigure emacs
   11.14 +	chroot "$1/" tazpkg reconfigure emacs
   11.15  }
    12.1 --- a/emacs-pkg-po-mode/receipt	Fri Jan 30 03:47:10 2015 +0100
    12.2 +++ b/emacs-pkg-po-mode/receipt	Fri Jan 30 10:17:37 2015 +0100
    12.3 @@ -38,10 +38,10 @@
    12.4  
    12.5  post_install()
    12.6  {
    12.7 -	tazpkg reconfigure emacs
    12.8 +	chroot "$1/" tazpkg reconfigure emacs
    12.9  }
   12.10  
   12.11  post_remove()
   12.12  {
   12.13 -	tazpkg reconfigure emacs
   12.14 +	chroot "$1/" tazpkg reconfigure emacs
   12.15  }
    13.1 --- a/emacs-pkg-text-translator/receipt	Fri Jan 30 03:47:10 2015 +0100
    13.2 +++ b/emacs-pkg-text-translator/receipt	Fri Jan 30 10:17:37 2015 +0100
    13.3 @@ -27,10 +27,10 @@
    13.4  
    13.5  post_install()
    13.6  {
    13.7 -	tazpkg reconfigure emacs
    13.8 +	chroot "$1/" tazpkg reconfigure emacs
    13.9  }
   13.10  
   13.11  post_remove()
   13.12  {
   13.13 -	tazpkg reconfigure emacs
   13.14 +	chroot "$1/" tazpkg reconfigure emacs
   13.15  }
    14.1 --- a/emacs-pkg-vala-mode/receipt	Fri Jan 30 03:47:10 2015 +0100
    14.2 +++ b/emacs-pkg-vala-mode/receipt	Fri Jan 30 10:17:37 2015 +0100
    14.3 @@ -37,10 +37,10 @@
    14.4  
    14.5  post_install()
    14.6  {
    14.7 -	tazpkg reconfigure emacs
    14.8 +	chroot "$1/" tazpkg reconfigure emacs
    14.9  }
   14.10  
   14.11  post_remove()
   14.12  {
   14.13 -	tazpkg reconfigure emacs
   14.14 +	chroot "$1/" tazpkg reconfigure emacs
   14.15  }
    15.1 --- a/emacs/receipt	Fri Jan 30 03:47:10 2015 +0100
    15.2 +++ b/emacs/receipt	Fri Jan 30 10:17:37 2015 +0100
    15.3 @@ -185,7 +185,7 @@
    15.4  
    15.5  post_install()
    15.6  {
    15.7 -	cd /usr/share/$PACKAGE/$VERSION/site-lisp
    15.8 +	cd $1/usr/share/$PACKAGE/$VERSION/site-lisp
    15.9  	cat <<-EOF >site-start.el
   15.10  	;; site-start.el for SliTaz			-*- no-byte-compile: t -*-
   15.11  	;;
   15.12 @@ -201,13 +201,13 @@
   15.13  	    cat site-start.d/$file >> site-start.el
   15.14  	done
   15.15  	# linking /usr/bin/emacs to new version
   15.16 -	[ -h /usr/bin/emacs ] && rm -f /usr/bin/emacs
   15.17 -	ln -s /usr/bin/emacs-$VERSION /usr/bin/emacs
   15.18 +	[ -h $1/usr/bin/emacs ] && rm -f $1/usr/bin/emacs
   15.19 +	ln -s /usr/bin/emacs-$VERSION $1/usr/bin/emacs
   15.20  }
   15.21  
   15.22  post_remove()
   15.23  {
   15.24 -	rm -rf /usr/share/emacs
   15.25 -	rm -rf /usr/lib/emacs
   15.26 -	rm -f /usr/bin/emacs
   15.27 +	rm -rf $1/usr/share/emacs
   15.28 +	rm -rf $1/usr/lib/emacs
   15.29 +	rm -f $1/usr/bin/emacs
   15.30  }
    16.1 --- a/fatattr/stuff/fatattr.sh	Fri Jan 30 03:47:10 2015 +0100
    16.2 +++ b/fatattr/stuff/fatattr.sh	Fri Jan 30 10:17:37 2015 +0100
    16.3 @@ -9,7 +9,7 @@
    16.4  case "${1/--/-}" in
    16.5  -s*)	find ${3:-.} -exec fatattr {} \; > ${2:-$ATTRS} ;;
    16.6  -r*)	sed -e 's/^\(.\{0,8\}\)/\1=/' -e ':a;s/^\([^ =]*\)\ /\1/;ta' \
    16.7 -	    -e 's/^/fatattr +/;s/=//' < ${2:-$ATTRS} | sh ;;
    16.8 +	    -e "s/^/fatattr +/;s|= | ${3:-.}/|" < ${2:-$ATTRS} | sh ;;
    16.9  -c*)	cdfat ${2:-.} && $0 -s && find . | cpio -o -H newc ;;
   16.10  -[xe]*)	cdfat ${2:-.} && cpio -idmu && $0 -r && rm -f $ATTRS ;;
   16.11  *)	cat 1>&2 <<EOT
    17.1 --- a/foomatic-db-nonfree/receipt	Fri Jan 30 03:47:10 2015 +0100
    17.2 +++ b/foomatic-db-nonfree/receipt	Fri Jan 30 10:17:37 2015 +0100
    17.3 @@ -62,14 +62,13 @@
    17.4      echo "The license is stored in /usr/share/licenses/$PACKAGE "    
    17.5      echo -n "Would you like to read the license (y/N) : "; read anser
    17.6      if [ "$anser" = "y" ]; then
    17.7 -		cat /usr/share/licenses/"$PACKAGE"/COPYING | more	
    17.8 +		cat $1/usr/share/licenses/"$PACKAGE"/COPYING | more	
    17.9  		echo "" 		
   17.10  	fi
   17.11  	echo "================================================================================"
   17.12  	 echo -n "Do you accept the license (y/N) : "; read anser
   17.13      if [ "$anser" = "N" ]; then
   17.14  		echo "You did not accept the license, Removing the pkg."	
   17.15 -		tazpkg remove "$PACKAGE"		
   17.16 +		chroot "$1/" tazpkg remove "$PACKAGE"		
   17.17  	fi
   17.18 -
   17.19  }
    18.1 --- a/freetype-infinality/receipt	Fri Jan 30 03:47:10 2015 +0100
    18.2 +++ b/freetype-infinality/receipt	Fri Jan 30 10:17:37 2015 +0100
    18.3 @@ -50,21 +50,21 @@
    18.4  post_install()
    18.5  {
    18.6  	# SliTaz not support /etc/profile.d/ by default, but use /etc/profile file
    18.7 -	cat >> /etc/profile << EOT
    18.8 +	cat >> $1/etc/profile << EOT
    18.9  
   18.10  # freetype-infinality profile settings
   18.11  . /etc/profile.d/infinality-settings.sh
   18.12  EOT
   18.13  
   18.14  	# add patched libs to loader config
   18.15 -	echo '/usr/lib/freetype-infinality' >> /etc/ld.so.conf
   18.16 -	ldconfig
   18.17 +	echo '/usr/lib/freetype-infinality' >> $1/etc/ld.so.conf
   18.18 +	chroot "$1/" ldconfig
   18.19  	echo 'Now you can log out/in to take effect on all your apps'
   18.20  }
   18.21  
   18.22  post_remove()
   18.23  {
   18.24 -	sed -i '/infinality/d' /etc/profile
   18.25 -	sed -i '/freetype-infinality/d' /etc/ld.so.conf
   18.26 -	ldconfig
   18.27 +	sed -i '/infinality/d' $1/etc/profile
   18.28 +	sed -i '/freetype-infinality/d' $1/etc/ld.so.conf
   18.29 +	chroot "$1/" ldconfig
   18.30  }
    19.1 --- a/libsdl/receipt	Fri Jan 30 03:47:10 2015 +0100
    19.2 +++ b/libsdl/receipt	Fri Jan 30 10:17:37 2015 +0100
    19.3 @@ -42,5 +42,6 @@
    19.4  
    19.5  post_install()
    19.6  {
    19.7 -	[ -d "/var/lib/tazpkg/installed/libSDL" ] && rm -rf /var/lib/tazpkg/installed/libSDL 
    19.8 +	[ -d "$1/var/lib/tazpkg/installed/libSDL" ] &&
    19.9 +		rm -rf $1/var/lib/tazpkg/installed/libSDL 
   19.10  }
    20.1 --- a/lightdm-gtk2-greeter/receipt	Fri Jan 30 03:47:10 2015 +0100
    20.2 +++ b/lightdm-gtk2-greeter/receipt	Fri Jan 30 10:17:37 2015 +0100
    20.3 @@ -48,12 +48,12 @@
    20.4  {
    20.5  	echo 'make lightdm-gtk2-greeter default greeter'
    20.6  	sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk2-greeter #|' \
    20.7 -		/etc/lightdm/lightdm.conf
    20.8 +		$1/etc/lightdm/lightdm.conf
    20.9  }
   20.10  
   20.11  post_remove()
   20.12  {
   20.13  	echo 'back to default greeter'
   20.14  	sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \
   20.15 -		/etc/lightdm/lightdm.conf
   20.16 +		$1/etc/lightdm/lightdm.conf
   20.17  }
    21.1 --- a/lightdm-gtk3-greeter/receipt	Fri Jan 30 03:47:10 2015 +0100
    21.2 +++ b/lightdm-gtk3-greeter/receipt	Fri Jan 30 10:17:37 2015 +0100
    21.3 @@ -47,12 +47,12 @@
    21.4  {
    21.5  	echo 'make lightdm-gtk3-greeter default greeter'
    21.6  	sed -i 's|^# \(greeter-session =\)|\1 lightdm-gtk3-greeter #|' \
    21.7 -		/etc/lightdm/lightdm.conf
    21.8 +		$1/etc/lightdm/lightdm.conf
    21.9  }
   21.10  
   21.11  post_remove()
   21.12  {
   21.13  	echo 'back to default greeter'
   21.14  	sed -i 's|^\(greeter-session =\).*#\(.*\)|#\1\2|' \
   21.15 -		/etc/lightdm/lightdm.conf
   21.16 +		$1/etc/lightdm/lightdm.conf
   21.17  }
    22.1 --- a/obmenu/receipt	Fri Jan 30 03:47:10 2015 +0100
    22.2 +++ b/obmenu/receipt	Fri Jan 30 10:17:37 2015 +0100
    22.3 @@ -33,13 +33,13 @@
    22.4  post_install()
    22.5  {
    22.6  	echo -n "Enabling configuration file..."
    22.7 -	cp /home/tux/.config/openbox/menu.xml /root/.config/openbox
    22.8 +	cp $1/home/tux/.config/openbox/menu.xml $1/root/.config/openbox
    22.9  	status
   22.10  }
   22.11  
   22.12  post_remove()
   22.13  {
   22.14  	echo -n "Removing configuration files..."
   22.15 -	rm /root/.config/openbox/menu.xml
   22.16 +	rm $1/root/.config/openbox/menu.xml
   22.17  	status
   22.18  }
    23.1 --- a/ptxdist/receipt	Fri Jan 30 03:47:10 2015 +0100
    23.2 +++ b/ptxdist/receipt	Fri Jan 30 10:17:37 2015 +0100
    23.3 @@ -23,7 +23,7 @@
    23.4  # Pre and post install commands for Tazpkg.
    23.5  post_install()
    23.6  {
    23.7 -	[ -L /usr/bin/wget ] && tazpkg get-install wget --forced
    23.8 +	[ -L $1/usr/bin/wget ] && tazpkg get-install wget --forced --root=${1:-/}
    23.9  	cat <<EOT
   23.10  Now you can do:
   23.11  $ cd /usr/lib/buildroot
    24.1 --- a/slib/receipt	Fri Jan 30 03:47:10 2015 +0100
    24.2 +++ b/slib/receipt	Fri Jan 30 10:17:37 2015 +0100
    24.3 @@ -39,13 +39,13 @@
    24.4  {
    24.5  	# add path to initialization file
    24.6  	sed -i s'#(load-from.*#(load-from-path "/usr/share/slib/guile.init")#' \
    24.7 -		/usr/share/guile/1.8/ice-9/slib.scm
    24.8 +		$1/usr/share/guile/1.8/ice-9/slib.scm
    24.9  	printf "Creating catalog"
   24.10 -	guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))"
   24.11 +	chroot "$1/" guile -c "((use-modules (ice-9 slib))(require 'new-catalog)(quit))"
   24.12  	status
   24.13  }
   24.14  
   24.15  post_remove()
   24.16  {
   24.17 -	rm -f /usr/share/guile/1.8/slibcat
   24.18 +	rm -f $1/usr/share/guile/1.8/slibcat
   24.19  }
    25.1 --- a/slim-theme-7legs/receipt	Fri Jan 30 03:47:10 2015 +0100
    25.2 +++ b/slim-theme-7legs/receipt	Fri Jan 30 10:17:37 2015 +0100
    25.3 @@ -33,10 +33,10 @@
    25.4  
    25.5  post_install()
    25.6  {
    25.7 -	slim-theme -s7_legged_spider
    25.8 +	chroot "$1/" slim-theme -s7_legged_spider
    25.9  }
   25.10  
   25.11  pre_remove()
   25.12  {
   25.13 -	slim-theme -f7_legged_spider
   25.14 +	chroot "$1/" slim-theme -f7_legged_spider
   25.15  }
    26.1 --- a/slim-theme-cat/receipt	Fri Jan 30 03:47:10 2015 +0100
    26.2 +++ b/slim-theme-cat/receipt	Fri Jan 30 10:17:37 2015 +0100
    26.3 @@ -33,10 +33,10 @@
    26.4  
    26.5  post_install()
    26.6  {
    26.7 -	slim-theme -s cat_and_spider
    26.8 +	chroot "$1/" slim-theme -s cat_and_spider
    26.9  }
   26.10  
   26.11  pre_remove()
   26.12  {
   26.13 -	slim-theme -fcat_and_spider
   26.14 +	chroot "$1/" slim-theme -fcat_and_spider
   26.15  }
    27.1 --- a/slim-theme-control/receipt	Fri Jan 30 03:47:10 2015 +0100
    27.2 +++ b/slim-theme-control/receipt	Fri Jan 30 10:17:37 2015 +0100
    27.3 @@ -21,10 +21,10 @@
    27.4  
    27.5  post_install()
    27.6  {
    27.7 -	slim-theme -scontrol
    27.8 +	chroot "$1/" slim-theme -scontrol
    27.9  }
   27.10  
   27.11  pre_remove()
   27.12  {
   27.13 -	slim-theme -fcontrol
   27.14 +	chroot "$1/" slim-theme -fcontrol
   27.15  }
    28.1 --- a/slim-theme-default/receipt	Fri Jan 30 03:47:10 2015 +0100
    28.2 +++ b/slim-theme-default/receipt	Fri Jan 30 10:17:37 2015 +0100
    28.3 @@ -21,10 +21,10 @@
    28.4  
    28.5  post_install()
    28.6  {
    28.7 -	slim-theme -sdefault
    28.8 +	chroot "$1/" slim-theme -sdefault
    28.9  }
   28.10  
   28.11  pre_remove()
   28.12  {
   28.13 -	slim-theme -fdefault
   28.14 +	chroot "$1/" slim-theme -fdefault
   28.15  }
    29.1 --- a/slim-theme-mascot/receipt	Fri Jan 30 03:47:10 2015 +0100
    29.2 +++ b/slim-theme-mascot/receipt	Fri Jan 30 10:17:37 2015 +0100
    29.3 @@ -33,10 +33,10 @@
    29.4  
    29.5  post_install()
    29.6  {
    29.7 -	slim-theme -smascot
    29.8 +	chroot "$1/" slim-theme -smascot
    29.9  }
   29.10  
   29.11  pre_remove()
   29.12  {
   29.13 -	slim-theme -fmascot
   29.14 +	chroot "$1/" slim-theme -fmascot
   29.15  }
    30.1 --- a/slim-theme-pilar/receipt	Fri Jan 30 03:47:10 2015 +0100
    30.2 +++ b/slim-theme-pilar/receipt	Fri Jan 30 10:17:37 2015 +0100
    30.3 @@ -21,10 +21,10 @@
    30.4  
    30.5  post_install()
    30.6  {
    30.7 -	slim-theme -spilar
    30.8 +	chroot "$1/" slim-theme -spilar
    30.9  }
   30.10  
   30.11  pre_remove()
   30.12  {
   30.13 -	slim-theme -fpilar
   30.14 +	chroot "$1/" slim-theme -fpilar
   30.15  }
    31.1 --- a/slim-theme-radarspider/receipt	Fri Jan 30 03:47:10 2015 +0100
    31.2 +++ b/slim-theme-radarspider/receipt	Fri Jan 30 10:17:37 2015 +0100
    31.3 @@ -21,10 +21,10 @@
    31.4  
    31.5  post_install()
    31.6  {
    31.7 -	slim-theme -sradarspider
    31.8 +	chroot "$1/" slim-theme -sradarspider
    31.9  }
   31.10  
   31.11  pre_remove()
   31.12  {
   31.13 -	slim-theme -fradarspider
   31.14 +	chroot "$1/" slim-theme -fradarspider
   31.15  }
    32.1 --- a/slim-theme-robotic/receipt	Fri Jan 30 03:47:10 2015 +0100
    32.2 +++ b/slim-theme-robotic/receipt	Fri Jan 30 10:17:37 2015 +0100
    32.3 @@ -21,10 +21,10 @@
    32.4  
    32.5  post_install()
    32.6  {
    32.7 -	slim-theme -srobotic
    32.8 +	chroot "$1/" slim-theme -srobotic
    32.9  }
   32.10  
   32.11  pre_remove()
   32.12  {
   32.13 -	slim-theme -frobotic
   32.14 +	chroot "$1/" slim-theme -frobotic
   32.15  }
    33.1 --- a/slim-theme-sandfive/receipt	Fri Jan 30 03:47:10 2015 +0100
    33.2 +++ b/slim-theme-sandfive/receipt	Fri Jan 30 10:17:37 2015 +0100
    33.3 @@ -21,10 +21,10 @@
    33.4  
    33.5  post_install()
    33.6  {
    33.7 -	slim-theme -ssandfive
    33.8 +	chroot "$1/" slim-theme -ssandfive
    33.9  }
   33.10  
   33.11  pre_remove()
   33.12  {
   33.13 -	slim-theme -fsandfive
   33.14 +	chroot "$1/" slim-theme -fsandfive
   33.15  }
    34.1 --- a/slitaz-arm-adm/receipt	Fri Jan 30 03:47:10 2015 +0100
    34.2 +++ b/slitaz-arm-adm/receipt	Fri Jan 30 10:17:37 2015 +0100
    34.3 @@ -23,7 +23,7 @@
    34.4  # SliTaz RPi files are over written so reinstall pkg
    34.5  post_install()
    34.6  {
    34.7 -	if [ -d "/var/lib/tazpkg/installed/slitaz-arm-rpi" ]; then
    34.8 -		spk-add slitaz-arm-rpi --forced
    34.9 +	if [ -d "$1/var/lib/tazpkg/installed/slitaz-arm-rpi" ]; then
   34.10 +		chroot "$1/" spk-add slitaz-arm-rpi --forced
   34.11  	fi
   34.12  }
    35.1 --- a/squirrelmail-ar/receipt	Fri Jan 30 03:47:10 2015 +0100
    35.2 +++ b/squirrelmail-ar/receipt	Fri Jan 30 10:17:37 2015 +0100
    35.3 @@ -23,5 +23,5 @@
    35.4  # Pre and post install commands for Tazpkg.
    35.5  post_install()
    35.6  {
    35.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    35.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    35.9  }
    36.1 --- a/squirrelmail-bg_BG/receipt	Fri Jan 30 03:47:10 2015 +0100
    36.2 +++ b/squirrelmail-bg_BG/receipt	Fri Jan 30 10:17:37 2015 +0100
    36.3 @@ -23,5 +23,5 @@
    36.4  # Pre and post install commands for Tazpkg.
    36.5  post_install()
    36.6  {
    36.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    36.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    36.9  }
    37.1 --- a/squirrelmail-bn_IN/receipt	Fri Jan 30 03:47:10 2015 +0100
    37.2 +++ b/squirrelmail-bn_IN/receipt	Fri Jan 30 10:17:37 2015 +0100
    37.3 @@ -23,5 +23,5 @@
    37.4  # Pre and post install commands for Tazpkg.
    37.5  post_install()
    37.6  {
    37.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    37.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    37.9  }
    38.1 --- a/squirrelmail-ca_ES/receipt	Fri Jan 30 03:47:10 2015 +0100
    38.2 +++ b/squirrelmail-ca_ES/receipt	Fri Jan 30 10:17:37 2015 +0100
    38.3 @@ -23,5 +23,5 @@
    38.4  # Pre and post install commands for Tazpkg.
    38.5  post_install()
    38.6  {
    38.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    38.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    38.9  }
    39.1 --- a/squirrelmail-cs_CZ/receipt	Fri Jan 30 03:47:10 2015 +0100
    39.2 +++ b/squirrelmail-cs_CZ/receipt	Fri Jan 30 10:17:37 2015 +0100
    39.3 @@ -23,5 +23,5 @@
    39.4  # Pre and post install commands for Tazpkg.
    39.5  post_install()
    39.6  {
    39.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    39.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    39.9  }
    40.1 --- a/squirrelmail-cy_GB/receipt	Fri Jan 30 03:47:10 2015 +0100
    40.2 +++ b/squirrelmail-cy_GB/receipt	Fri Jan 30 10:17:37 2015 +0100
    40.3 @@ -23,5 +23,5 @@
    40.4  # Pre and post install commands for Tazpkg.
    40.5  post_install()
    40.6  {
    40.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    40.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    40.9  }
    41.1 --- a/squirrelmail-da_DK/receipt	Fri Jan 30 03:47:10 2015 +0100
    41.2 +++ b/squirrelmail-da_DK/receipt	Fri Jan 30 10:17:37 2015 +0100
    41.3 @@ -23,5 +23,5 @@
    41.4  # Pre and post install commands for Tazpkg.
    41.5  post_install()
    41.6  {
    41.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    41.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    41.9  }
    42.1 --- a/squirrelmail-de_DE/receipt	Fri Jan 30 03:47:10 2015 +0100
    42.2 +++ b/squirrelmail-de_DE/receipt	Fri Jan 30 10:17:37 2015 +0100
    42.3 @@ -23,5 +23,5 @@
    42.4  # Pre and post install commands for Tazpkg.
    42.5  post_install()
    42.6  {
    42.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    42.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    42.9  }
    43.1 --- a/squirrelmail-el_GR/receipt	Fri Jan 30 03:47:10 2015 +0100
    43.2 +++ b/squirrelmail-el_GR/receipt	Fri Jan 30 10:17:37 2015 +0100
    43.3 @@ -23,5 +23,5 @@
    43.4  # Pre and post install commands for Tazpkg.
    43.5  post_install()
    43.6  {
    43.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    43.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    43.9  }
    44.1 --- a/squirrelmail-en_GB/receipt	Fri Jan 30 03:47:10 2015 +0100
    44.2 +++ b/squirrelmail-en_GB/receipt	Fri Jan 30 10:17:37 2015 +0100
    44.3 @@ -23,5 +23,5 @@
    44.4  # Pre and post install commands for Tazpkg.
    44.5  post_install()
    44.6  {
    44.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    44.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    44.9  }
    45.1 --- a/squirrelmail-es_ES/receipt	Fri Jan 30 03:47:10 2015 +0100
    45.2 +++ b/squirrelmail-es_ES/receipt	Fri Jan 30 10:17:37 2015 +0100
    45.3 @@ -23,5 +23,5 @@
    45.4  # Pre and post install commands for Tazpkg.
    45.5  post_install()
    45.6  {
    45.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    45.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    45.9  }
    46.1 --- a/squirrelmail-et_EE/receipt	Fri Jan 30 03:47:10 2015 +0100
    46.2 +++ b/squirrelmail-et_EE/receipt	Fri Jan 30 10:17:37 2015 +0100
    46.3 @@ -23,5 +23,5 @@
    46.4  # Pre and post install commands for Tazpkg.
    46.5  post_install()
    46.6  {
    46.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    46.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    46.9  }
    47.1 --- a/squirrelmail-eu_ES/receipt	Fri Jan 30 03:47:10 2015 +0100
    47.2 +++ b/squirrelmail-eu_ES/receipt	Fri Jan 30 10:17:37 2015 +0100
    47.3 @@ -23,5 +23,5 @@
    47.4  # Pre and post install commands for Tazpkg.
    47.5  post_install()
    47.6  {
    47.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    47.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    47.9  }
    48.1 --- a/squirrelmail-fa_IR/receipt	Fri Jan 30 03:47:10 2015 +0100
    48.2 +++ b/squirrelmail-fa_IR/receipt	Fri Jan 30 10:17:37 2015 +0100
    48.3 @@ -23,5 +23,5 @@
    48.4  # Pre and post install commands for Tazpkg.
    48.5  post_install()
    48.6  {
    48.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    48.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    48.9  }
    49.1 --- a/squirrelmail-fi_FI/receipt	Fri Jan 30 03:47:10 2015 +0100
    49.2 +++ b/squirrelmail-fi_FI/receipt	Fri Jan 30 10:17:37 2015 +0100
    49.3 @@ -23,5 +23,5 @@
    49.4  # Pre and post install commands for Tazpkg.
    49.5  post_install()
    49.6  {
    49.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    49.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    49.9  }
    50.1 --- a/squirrelmail-fo_FO/receipt	Fri Jan 30 03:47:10 2015 +0100
    50.2 +++ b/squirrelmail-fo_FO/receipt	Fri Jan 30 10:17:37 2015 +0100
    50.3 @@ -23,5 +23,5 @@
    50.4  # Pre and post install commands for Tazpkg.
    50.5  post_install()
    50.6  {
    50.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    50.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    50.9  }
    51.1 --- a/squirrelmail-fr_FR/receipt	Fri Jan 30 03:47:10 2015 +0100
    51.2 +++ b/squirrelmail-fr_FR/receipt	Fri Jan 30 10:17:37 2015 +0100
    51.3 @@ -23,5 +23,5 @@
    51.4  # Pre and post install commands for Tazpkg.
    51.5  post_install()
    51.6  {
    51.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    51.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    51.9  }
    52.1 --- a/squirrelmail-fy/receipt	Fri Jan 30 03:47:10 2015 +0100
    52.2 +++ b/squirrelmail-fy/receipt	Fri Jan 30 10:17:37 2015 +0100
    52.3 @@ -23,5 +23,5 @@
    52.4  # Pre and post install commands for Tazpkg.
    52.5  post_install()
    52.6  {
    52.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    52.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    52.9  }
    53.1 --- a/squirrelmail-he_IL/receipt	Fri Jan 30 03:47:10 2015 +0100
    53.2 +++ b/squirrelmail-he_IL/receipt	Fri Jan 30 10:17:37 2015 +0100
    53.3 @@ -23,5 +23,5 @@
    53.4  # Pre and post install commands for Tazpkg.
    53.5  post_install()
    53.6  {
    53.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    53.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    53.9  }
    54.1 --- a/squirrelmail-hr_HR/receipt	Fri Jan 30 03:47:10 2015 +0100
    54.2 +++ b/squirrelmail-hr_HR/receipt	Fri Jan 30 10:17:37 2015 +0100
    54.3 @@ -23,5 +23,5 @@
    54.4  # Pre and post install commands for Tazpkg.
    54.5  post_install()
    54.6  {
    54.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    54.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    54.9  }
    55.1 --- a/squirrelmail-hu_HU/receipt	Fri Jan 30 03:47:10 2015 +0100
    55.2 +++ b/squirrelmail-hu_HU/receipt	Fri Jan 30 10:17:37 2015 +0100
    55.3 @@ -23,5 +23,5 @@
    55.4  # Pre and post install commands for Tazpkg.
    55.5  post_install()
    55.6  {
    55.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    55.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    55.9  }
    56.1 --- a/squirrelmail-id_ID/receipt	Fri Jan 30 03:47:10 2015 +0100
    56.2 +++ b/squirrelmail-id_ID/receipt	Fri Jan 30 10:17:37 2015 +0100
    56.3 @@ -23,5 +23,5 @@
    56.4  # Pre and post install commands for Tazpkg.
    56.5  post_install()
    56.6  {
    56.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    56.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    56.9  }
    57.1 --- a/squirrelmail-is_IS/receipt	Fri Jan 30 03:47:10 2015 +0100
    57.2 +++ b/squirrelmail-is_IS/receipt	Fri Jan 30 10:17:37 2015 +0100
    57.3 @@ -23,5 +23,5 @@
    57.4  # Pre and post install commands for Tazpkg.
    57.5  post_install()
    57.6  {
    57.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    57.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    57.9  }
    58.1 --- a/squirrelmail-it_IT/receipt	Fri Jan 30 03:47:10 2015 +0100
    58.2 +++ b/squirrelmail-it_IT/receipt	Fri Jan 30 10:17:37 2015 +0100
    58.3 @@ -23,5 +23,5 @@
    58.4  # Pre and post install commands for Tazpkg.
    58.5  post_install()
    58.6  {
    58.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    58.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    58.9  }
    59.1 --- a/squirrelmail-ja_JP/receipt	Fri Jan 30 03:47:10 2015 +0100
    59.2 +++ b/squirrelmail-ja_JP/receipt	Fri Jan 30 10:17:37 2015 +0100
    59.3 @@ -23,5 +23,5 @@
    59.4  # Pre and post install commands for Tazpkg.
    59.5  post_install()
    59.6  {
    59.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    59.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    59.9  }
    60.1 --- a/squirrelmail-ka/receipt	Fri Jan 30 03:47:10 2015 +0100
    60.2 +++ b/squirrelmail-ka/receipt	Fri Jan 30 10:17:37 2015 +0100
    60.3 @@ -23,5 +23,5 @@
    60.4  # Pre and post install commands for Tazpkg.
    60.5  post_install()
    60.6  {
    60.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    60.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    60.9  }
    61.1 --- a/squirrelmail-ko_KR/receipt	Fri Jan 30 03:47:10 2015 +0100
    61.2 +++ b/squirrelmail-ko_KR/receipt	Fri Jan 30 10:17:37 2015 +0100
    61.3 @@ -23,5 +23,5 @@
    61.4  # Pre and post install commands for Tazpkg.
    61.5  post_install()
    61.6  {
    61.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    61.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    61.9  }
    62.1 --- a/squirrelmail-lt_LT/receipt	Fri Jan 30 03:47:10 2015 +0100
    62.2 +++ b/squirrelmail-lt_LT/receipt	Fri Jan 30 10:17:37 2015 +0100
    62.3 @@ -23,5 +23,5 @@
    62.4  # Pre and post install commands for Tazpkg.
    62.5  post_install()
    62.6  {
    62.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    62.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    62.9  }
    63.1 --- a/squirrelmail-ms_MY/receipt	Fri Jan 30 03:47:10 2015 +0100
    63.2 +++ b/squirrelmail-ms_MY/receipt	Fri Jan 30 10:17:37 2015 +0100
    63.3 @@ -23,5 +23,5 @@
    63.4  # Pre and post install commands for Tazpkg.
    63.5  post_install()
    63.6  {
    63.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    63.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    63.9  }
    64.1 --- a/squirrelmail-nb_NO/receipt	Fri Jan 30 03:47:10 2015 +0100
    64.2 +++ b/squirrelmail-nb_NO/receipt	Fri Jan 30 10:17:37 2015 +0100
    64.3 @@ -23,5 +23,5 @@
    64.4  # Pre and post install commands for Tazpkg.
    64.5  post_install()
    64.6  {
    64.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    64.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    64.9  }
    65.1 --- a/squirrelmail-nl_NL/receipt	Fri Jan 30 03:47:10 2015 +0100
    65.2 +++ b/squirrelmail-nl_NL/receipt	Fri Jan 30 10:17:37 2015 +0100
    65.3 @@ -23,5 +23,5 @@
    65.4  # Pre and post install commands for Tazpkg.
    65.5  post_install()
    65.6  {
    65.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    65.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    65.9  }
    66.1 --- a/squirrelmail-nn_NO/receipt	Fri Jan 30 03:47:10 2015 +0100
    66.2 +++ b/squirrelmail-nn_NO/receipt	Fri Jan 30 10:17:37 2015 +0100
    66.3 @@ -23,5 +23,5 @@
    66.4  # Pre and post install commands for Tazpkg.
    66.5  post_install()
    66.6  {
    66.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    66.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    66.9  }
    67.1 --- a/squirrelmail-pl_PL/receipt	Fri Jan 30 03:47:10 2015 +0100
    67.2 +++ b/squirrelmail-pl_PL/receipt	Fri Jan 30 10:17:37 2015 +0100
    67.3 @@ -23,5 +23,5 @@
    67.4  # Pre and post install commands for Tazpkg.
    67.5  post_install()
    67.6  {
    67.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    67.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    67.9  }
    68.1 --- a/squirrelmail-pt_BR/receipt	Fri Jan 30 03:47:10 2015 +0100
    68.2 +++ b/squirrelmail-pt_BR/receipt	Fri Jan 30 10:17:37 2015 +0100
    68.3 @@ -23,5 +23,5 @@
    68.4  # Pre and post install commands for Tazpkg.
    68.5  post_install()
    68.6  {
    68.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    68.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    68.9  }
    69.1 --- a/squirrelmail-pt_PT/receipt	Fri Jan 30 03:47:10 2015 +0100
    69.2 +++ b/squirrelmail-pt_PT/receipt	Fri Jan 30 10:17:37 2015 +0100
    69.3 @@ -23,5 +23,5 @@
    69.4  # Pre and post install commands for Tazpkg.
    69.5  post_install()
    69.6  {
    69.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    69.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    69.9  }
    70.1 --- a/squirrelmail-ro_RO/receipt	Fri Jan 30 03:47:10 2015 +0100
    70.2 +++ b/squirrelmail-ro_RO/receipt	Fri Jan 30 10:17:37 2015 +0100
    70.3 @@ -23,5 +23,5 @@
    70.4  # Pre and post install commands for Tazpkg.
    70.5  post_install()
    70.6  {
    70.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    70.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    70.9  }
    71.1 --- a/squirrelmail-ru_RU/receipt	Fri Jan 30 03:47:10 2015 +0100
    71.2 +++ b/squirrelmail-ru_RU/receipt	Fri Jan 30 10:17:37 2015 +0100
    71.3 @@ -23,5 +23,5 @@
    71.4  # Pre and post install commands for Tazpkg.
    71.5  post_install()
    71.6  {
    71.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    71.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    71.9  }
    72.1 --- a/squirrelmail-sk_SK/receipt	Fri Jan 30 03:47:10 2015 +0100
    72.2 +++ b/squirrelmail-sk_SK/receipt	Fri Jan 30 10:17:37 2015 +0100
    72.3 @@ -23,5 +23,5 @@
    72.4  # Pre and post install commands for Tazpkg.
    72.5  post_install()
    72.6  {
    72.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    72.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    72.9  }
    73.1 --- a/squirrelmail-sl_SI/receipt	Fri Jan 30 03:47:10 2015 +0100
    73.2 +++ b/squirrelmail-sl_SI/receipt	Fri Jan 30 10:17:37 2015 +0100
    73.3 @@ -23,5 +23,5 @@
    73.4  # Pre and post install commands for Tazpkg.
    73.5  post_install()
    73.6  {
    73.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    73.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    73.9  }
    74.1 --- a/squirrelmail-sr_YU/receipt	Fri Jan 30 03:47:10 2015 +0100
    74.2 +++ b/squirrelmail-sr_YU/receipt	Fri Jan 30 10:17:37 2015 +0100
    74.3 @@ -23,5 +23,5 @@
    74.4  # Pre and post install commands for Tazpkg.
    74.5  post_install()
    74.6  {
    74.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    74.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    74.9  }
    75.1 --- a/squirrelmail-sv_SE/receipt	Fri Jan 30 03:47:10 2015 +0100
    75.2 +++ b/squirrelmail-sv_SE/receipt	Fri Jan 30 10:17:37 2015 +0100
    75.3 @@ -23,5 +23,5 @@
    75.4  # Pre and post install commands for Tazpkg.
    75.5  post_install()
    75.6  {
    75.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    75.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    75.9  }
    76.1 --- a/squirrelmail-tr_TR/receipt	Fri Jan 30 03:47:10 2015 +0100
    76.2 +++ b/squirrelmail-tr_TR/receipt	Fri Jan 30 10:17:37 2015 +0100
    76.3 @@ -23,5 +23,5 @@
    76.4  # Pre and post install commands for Tazpkg.
    76.5  post_install()
    76.6  {
    76.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    76.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    76.9  }
    77.1 --- a/squirrelmail-ug/receipt	Fri Jan 30 03:47:10 2015 +0100
    77.2 +++ b/squirrelmail-ug/receipt	Fri Jan 30 10:17:37 2015 +0100
    77.3 @@ -23,5 +23,5 @@
    77.4  # Pre and post install commands for Tazpkg.
    77.5  post_install()
    77.6  {
    77.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    77.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    77.9  }
    78.1 --- a/squirrelmail-uk_UA/receipt	Fri Jan 30 03:47:10 2015 +0100
    78.2 +++ b/squirrelmail-uk_UA/receipt	Fri Jan 30 10:17:37 2015 +0100
    78.3 @@ -23,5 +23,5 @@
    78.4  # Pre and post install commands for Tazpkg.
    78.5  post_install()
    78.6  {
    78.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    78.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    78.9  }
    79.1 --- a/squirrelmail-zh_CN/receipt	Fri Jan 30 03:47:10 2015 +0100
    79.2 +++ b/squirrelmail-zh_CN/receipt	Fri Jan 30 10:17:37 2015 +0100
    79.3 @@ -23,5 +23,5 @@
    79.4  # Pre and post install commands for Tazpkg.
    79.5  post_install()
    79.6  {
    79.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    79.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    79.9  }
    80.1 --- a/squirrelmail-zh_TW/receipt	Fri Jan 30 03:47:10 2015 +0100
    80.2 +++ b/squirrelmail-zh_TW/receipt	Fri Jan 30 10:17:37 2015 +0100
    80.3 @@ -23,5 +23,5 @@
    80.4  # Pre and post install commands for Tazpkg.
    80.5  post_install()
    80.6  {
    80.7 -	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" /etc/squirrelmail/config.php
    80.8 +	sed -i "s/^\$squirrelmail_default_language = .*/\$squirrelmail_default_language = '${PACKAGE#squirrelmail-}';/" $1/etc/squirrelmail/config.php
    80.9  }
    81.1 --- a/sshttp/receipt	Fri Jan 30 03:47:10 2015 +0100
    81.2 +++ b/sshttp/receipt	Fri Jan 30 10:17:37 2015 +0100
    81.3 @@ -31,7 +31,7 @@
    81.4  # Pre and post install commands for Tazpkg.
    81.5  post_install()
    81.6  {
    81.7 -	zcat /proc/config.gz | grep -q ^CONFIG_NETFILTER_TPROXY= || cat <<EOT
    81.8 +	[ "$1" ] || zcat /proc/config.gz | grep -q ^CONFIG_NETFILTER_TPROXY= || cat <<EOT
    81.9  
   81.10  CONFIG_NETFILTER_TPROXY not found in /proc/config.gz
   81.11  sshttp needs Linux IP_TRANSPARENT feature to work.
    82.1 --- a/t2/receipt	Fri Jan 30 03:47:10 2015 +0100
    82.2 +++ b/t2/receipt	Fri Jan 30 10:17:37 2015 +0100
    82.3 @@ -12,12 +12,6 @@
    82.4  
    82.5  DEPENDS="slitaz-toolchain bash ncurses"
    82.6  
    82.7 -# Rules to configure and make the package.
    82.8 -compile_rules()
    82.9 -{
   82.10 -	true
   82.11 -}
   82.12 -
   82.13  # Rules to gen a SliTaz package suitable for Tazpkg.
   82.14  genpkg_rules()
   82.15  {
   82.16 @@ -28,7 +22,7 @@
   82.17  # Pre and post install commands for Tazpkg.
   82.18  post_install()
   82.19  {
   82.20 -	[ -L /usr/bin/wget ] && tazpkg get-install wget --forced
   82.21 +	[ -L $1/usr/bin/wget ] && tazpkg get-install wget --forced --root=${1:-/}
   82.22  	cat <<EOT
   82.23  Now you can do:
   82.24  # cd /usr/lib/t2
    83.1 --- a/tuxtype/receipt	Fri Jan 30 03:47:10 2015 +0100
    83.2 +++ b/tuxtype/receipt	Fri Jan 30 10:17:37 2015 +0100
    83.3 @@ -52,5 +52,5 @@
    83.4  post_install()
    83.5  {
    83.6  	echo "Adding games group if not already created:"
    83.7 -	addgroup games
    83.8 +	chroot "$1/" addgroup games
    83.9  }
    84.1 --- a/ufr2/receipt	Fri Jan 30 03:47:10 2015 +0100
    84.2 +++ b/ufr2/receipt	Fri Jan 30 10:17:37 2015 +0100
    84.3 @@ -91,13 +91,13 @@
    84.4      echo "The license is stored in /usr/share/licenses/$PACKAGE "    
    84.5      echo -n "Would you like to read the license (y/N) : "; read anser
    84.6      if [ "$anser" = "y" ]; then
    84.7 -		cat /usr/share/licenses/"$PACKAGE"/LICENSE | more	
    84.8 +		cat $1/usr/share/licenses/"$PACKAGE"/LICENSE | more	
    84.9  		echo "" 		
   84.10  	fi
   84.11  	echo "================================================================================"
   84.12  	 echo -n "Do you accept the license (y/N) : "; read anser
   84.13      if [ "$anser" = "N" ]; then
   84.14  		echo "You did not accept the license, Removing the pkg."	
   84.15 -		tazpkg remove "$PACKAGE"		
   84.16 +		chroot "$1/" tazpkg remove "$PACKAGE"		
   84.17  	fi
   84.18  }
    85.1 --- a/util-linux-uuid/receipt	Fri Jan 30 03:47:10 2015 +0100
    85.2 +++ b/util-linux-uuid/receipt	Fri Jan 30 10:17:37 2015 +0100
    85.3 @@ -27,8 +27,8 @@
    85.4  # Remove old package
    85.5  post_install()
    85.6  {
    85.7 -	if [ -d "$INSTALLED/util-linux-ng-uuid" ]; then
    85.8 +	if [ -d "$1$INSTALLED/util-linux-ng-uuid" ]; then
    85.9  		echo "Removing old: util-linux-ng-uuid"
   85.10 -		rm -rf $INSTALLED/util-linux-ng-uuid
   85.11 +		rm -rf $1$INSTALLED/util-linux-ng-uuid
   85.12  	fi
   85.13  }
    86.1 --- a/wine-rt/receipt	Fri Jan 30 03:47:10 2015 +0100
    86.2 +++ b/wine-rt/receipt	Fri Jan 30 10:17:37 2015 +0100
    86.3 @@ -64,5 +64,5 @@
    86.4  
    86.5  post_install()
    86.6  {
    86.7 -	modprobe snd-seq 2>/dev/null
    86.8 +	[ "$1" ] || modprobe snd-seq 2>/dev/null
    86.9  }
    87.1 --- a/wine/receipt	Fri Jan 30 03:47:10 2015 +0100
    87.2 +++ b/wine/receipt	Fri Jan 30 10:17:37 2015 +0100
    87.3 @@ -36,5 +36,5 @@
    87.4  
    87.5  post_install()
    87.6  {
    87.7 -	modprobe snd-seq 2>/dev/null
    87.8 +	[ "$1" ] || modprobe snd-seq 2>/dev/null
    87.9  }
    88.1 --- a/wqy-bitmapfont/receipt	Fri Jan 30 03:47:10 2015 +0100
    88.2 +++ b/wqy-bitmapfont/receipt	Fri Jan 30 10:17:37 2015 +0100
    88.3 @@ -26,5 +26,5 @@
    88.4  
    88.5  post_install()
    88.6  {
    88.7 -	fc-cache -f > /dev/null 2>&1
    88.8 +	chroot "$1/" fc-cache -f > /dev/null 2>&1
    88.9  }
    89.1 --- a/xvkbd/receipt	Fri Jan 30 03:47:10 2015 +0100
    89.2 +++ b/xvkbd/receipt	Fri Jan 30 10:17:37 2015 +0100
    89.3 @@ -43,7 +43,7 @@
    89.4  { 
    89.5  	# .Xdefaults file
    89.6  	lang=$(echo $LANG | awk '{FS="_"} {print $1}')
    89.7 -	find /home -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults
    89.8 +	find $1/home -maxdepth 2 -name ".Xdefaults" > /tmp/listeXdefaults
    89.9  	while read line
   89.10  	do
   89.11  	if ! grep -q "Xvkbd settings" $line; then