wok diff gzip-full/receipt @ rev 17331

Add gesftpserver
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 05 13:34:59 2014 +0100 (2014-11-05)
parents 38aa1647ef56
children 9e01bc6321ea
line diff
     1.1 --- a/gzip-full/receipt	Fri Mar 28 22:16:01 2014 +0000
     1.2 +++ b/gzip-full/receipt	Wed Nov 05 13:34:59 2014 +0100
     1.3 @@ -1,9 +1,9 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="gzip-full"
     1.7 -VERSION="1.5"
     1.8 +VERSION="1.6"
     1.9  CATEGORY="system-tools"
    1.10 -SHORT_DESC="Gzip full programs"
    1.11 +SHORT_DESC="GNU compression utilities"
    1.12  MAINTAINER="erjo@slitaz.org"
    1.13  LICENSE="GPL3"
    1.14  WEB_SITE="http://www.gnu.org/software/gzip/"
    1.15 @@ -14,9 +14,25 @@
    1.16  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.17  genpkg_rules()
    1.18  {
    1.19 -	mkdir -p $fs/usr/bin
    1.20 -	cp -a $install/usr/bin/z* $fs/usr/bin
    1.21 -	cp -a $install/usr/bin/un* $fs/usr/bin
    1.22 -	cp -a $src/gzexe $fs/usr/bin
    1.23 +	mkdir -p $fs/usr
    1.24 +
    1.25 +	cp -a $install/usr/bin $fs/usr
    1.26 +	rm -f $fs/usr/bin/gzip $fs/usr/bin/gunzip
    1.27  }
    1.28  
    1.29 +# Pre and post install commands for Tazpkg.
    1.30 +# We must remove all Busybox symlink before installing.
    1.31 +pre_install()
    1.32 +{
    1.33 +	echo -n "Removing Busybox uncompress and zcat utilities... "
    1.34 +	rm -f $1/bin/uncompress $1/bin/zcat
    1.35 +	status
    1.36 +}
    1.37 +
    1.38 +post_remove()
    1.39 +{
    1.40 +	echo -n "Restoring Busybox uncompress and zcat utilities... "
    1.41 +	ln -s busybox $1/bin/uncompress
    1.42 +	ln -s busybox $1/bin/zcat
    1.43 +	status
    1.44 +}