wok diff freetype-infinality/receipt @ rev 18380

nginx-extras: update (b)deps
author Yuri Pourre <yuripourre@gmail.com>
date Thu Sep 17 18:12:30 2015 -0300 (2015-09-17)
parents 7bb096863642
children 9e01bc6321ea
line diff
     1.1 --- a/freetype-infinality/receipt	Sat Sep 14 17:06:00 2013 +0000
     1.2 +++ b/freetype-infinality/receipt	Thu Sep 17 18:12:30 2015 -0300
     1.3 @@ -50,21 +50,21 @@
     1.4  post_install()
     1.5  {
     1.6  	# SliTaz not support /etc/profile.d/ by default, but use /etc/profile file
     1.7 -	cat >> /etc/profile << EOT
     1.8 +	cat >> $1/etc/profile << EOT
     1.9  
    1.10  # freetype-infinality profile settings
    1.11  . /etc/profile.d/infinality-settings.sh
    1.12  EOT
    1.13  
    1.14  	# add patched libs to loader config
    1.15 -	echo '/usr/lib/freetype-infinality' >> /etc/ld.so.conf
    1.16 -	ldconfig
    1.17 +	echo '/usr/lib/freetype-infinality' >> $1/etc/ld.so.conf
    1.18 +	chroot "$1/" ldconfig
    1.19  	echo 'Now you can log out/in to take effect on all your apps'
    1.20  }
    1.21  
    1.22  post_remove()
    1.23  {
    1.24 -	sed -i '/infinality/d' /etc/profile
    1.25 -	sed -i '/freetype-infinality/d' /etc/ld.so.conf
    1.26 -	ldconfig
    1.27 +	sed -i '/infinality/d' $1/etc/profile
    1.28 +	sed -i '/freetype-infinality/d' $1/etc/ld.so.conf
    1.29 +	chroot "$1/" ldconfig
    1.30  }