# HG changeset patch # User Pascal Bellard # Date 1601112355 0 # Node ID 42556310041654193557638c8b45788c7ea0d1b2 # Parent 7f23dac166fa671c4c6a2c998ece8f697471a972 Add rhash diff -r 7f23dac166fa -r 425563100416 pbzip2/receipt --- a/pbzip2/receipt Tue Sep 22 17:05:06 2020 +0100 +++ b/pbzip2/receipt Sat Sep 26 09:25:55 2020 +0000 @@ -25,3 +25,14 @@ mkdir -p $fs/usr/bin cp $src/pbzip2 $fs/usr/bin } + +pre_remove() +{ + sed -i '/bzip2=pbzip2/d' $1/etc/profile +} + +post_install() +{ + grep -qs 'bzip2=pbzip2' $1/etc/profile || + echo 'alias bzip2=pbzip2' >> $1/etc/profile +} diff -r 7f23dac166fa -r 425563100416 pigz/receipt --- a/pigz/receipt Tue Sep 22 17:05:06 2020 +0100 +++ b/pigz/receipt Sat Sep 26 09:25:55 2020 +0000 @@ -28,3 +28,14 @@ cp $src/pigz $fs/usr/bin ln -s pigz $fs/usr/bin/unpigz } + +pre_remove() +{ + sed -i '/gzip=pigz/d' $1/etc/profile +} + +post_install() +{ + grep -qs 'gzip=pigz' $1/etc/profile || + echo 'alias gzip=pigz' >> $1/etc/profile +} diff -r 7f23dac166fa -r 425563100416 rhash/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rhash/receipt Sat Sep 26 09:25:55 2020 +0000 @@ -0,0 +1,29 @@ +# SliTaz package receipt. + +PACKAGE="rhash" +VERSION="1.4.0" +CATEGORY="misc" +SHORT_DESC="Compute and verify hash sums of files" +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="BSD" +TARBALL="$PACKAGE-$VERSION-src.tar.gz" +WEB_SITE="https://sourceforge.net/projects/rhash/" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" +TAGS="ed2k bthi magnet" + +# Rules to configure and make the package. +compile_rules() +{ + ./configure --prefix=/usr --sysconfdir=/etc && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/lib $fs/usr + cp -a $install/etc $fs +}