wok diff pbzip2/receipt @ rev 23977

Up slitaz-base-files (343), slitaz-configs (318), tazinst (108), tazlito (529)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 31 16:33:00 2020 +0000 (2020-10-31)
parents 826c1bab582b
children 15650f5d595b
line diff
     1.1 --- a/pbzip2/receipt	Wed Apr 10 13:37:55 2019 +0200
     1.2 +++ b/pbzip2/receipt	Sat Oct 31 16:33:00 2020 +0000
     1.3 @@ -25,3 +25,14 @@
     1.4  	mkdir -p $fs/usr/bin
     1.5  	cp $src/pbzip2 $fs/usr/bin
     1.6  }
     1.7 +
     1.8 +pre_remove()
     1.9 +{
    1.10 +	sed -i '/bzip2=pbzip2/d' $1/etc/profile
    1.11 +}
    1.12 +
    1.13 +post_install()
    1.14 +{
    1.15 +	grep -qs 'bzip2=pbzip2' $1/etc/profile ||
    1.16 +	echo 'alias bzip2=pbzip2' >> $1/etc/profile
    1.17 +}