wok rev 23955

Add rhash
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 26 09:25:55 2020 +0000 (4 weeks ago)
parents 7f23dac166fa
children 3a5c9f8a51f4
files pbzip2/receipt pigz/receipt rhash/receipt
line diff
     1.1 --- a/pbzip2/receipt	Tue Sep 22 17:05:06 2020 +0100
     1.2 +++ b/pbzip2/receipt	Sat Sep 26 09:25:55 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 +}
     2.1 --- a/pigz/receipt	Tue Sep 22 17:05:06 2020 +0100
     2.2 +++ b/pigz/receipt	Sat Sep 26 09:25:55 2020 +0000
     2.3 @@ -28,3 +28,14 @@
     2.4  	cp $src/pigz $fs/usr/bin
     2.5  	ln -s pigz $fs/usr/bin/unpigz
     2.6  }
     2.7 +
     2.8 +pre_remove()
     2.9 +{
    2.10 +	sed -i '/gzip=pigz/d' $1/etc/profile
    2.11 +}
    2.12 +
    2.13 +post_install()
    2.14 +{
    2.15 +	grep -qs 'gzip=pigz' $1/etc/profile ||
    2.16 +	echo 'alias gzip=pigz' >> $1/etc/profile
    2.17 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/rhash/receipt	Sat Sep 26 09:25:55 2020 +0000
     3.3 @@ -0,0 +1,29 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="rhash"
     3.7 +VERSION="1.4.0"
     3.8 +CATEGORY="misc"
     3.9 +SHORT_DESC="Compute and verify hash sums of files"
    3.10 +MAINTAINER="pascal.bellard@slitaz.org"
    3.11 +LICENSE="BSD"
    3.12 +TARBALL="$PACKAGE-$VERSION-src.tar.gz"
    3.13 +WEB_SITE="https://sourceforge.net/projects/rhash/"
    3.14 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    3.15 +TAGS="ed2k bthi magnet"
    3.16 +
    3.17 +# Rules to configure and make the package.
    3.18 +compile_rules()
    3.19 +{
    3.20 +	./configure --prefix=/usr --sysconfdir=/etc &&
    3.21 +	make &&
    3.22 +	make DESTDIR=$DESTDIR install
    3.23 +}
    3.24 +
    3.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.26 +genpkg_rules()
    3.27 +{
    3.28 +	mkdir -p $fs/usr
    3.29 +	cp -a $install/usr/bin	$fs/usr
    3.30 +	cp -a $install/usr/lib	$fs/usr
    3.31 +	cp -a $install/etc	$fs
    3.32 +}