wok diff pigz/receipt @ rev 24143

Add ventoy
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 16 17:16:48 2021 +0000 (2021-11-16)
parents 86790a278e70
children 453c249b6219
line diff
     1.1 --- a/pigz/receipt	Tue Aug 07 23:03:21 2018 +0200
     1.2 +++ b/pigz/receipt	Tue Nov 16 17:16:48 2021 +0000
     1.3 @@ -28,3 +28,14 @@
     1.4  	cp $src/pigz $fs/usr/bin
     1.5  	ln -s pigz $fs/usr/bin/unpigz
     1.6  }
     1.7 +
     1.8 +pre_remove()
     1.9 +{
    1.10 +	sed -i '/gzip=pigz/d' $1/etc/profile
    1.11 +}
    1.12 +
    1.13 +post_install()
    1.14 +{
    1.15 +	grep -qs 'gzip=pigz' $1/etc/profile ||
    1.16 +	echo 'alias gzip=pigz' >> $1/etc/profile
    1.17 +}