# HG changeset patch # User Aleksej Bobylev # Date 1414001231 -10800 # Node ID e30b21af17143063654ae10f81031ba927f0d5f4 # Parent 3d7811276978ff9eee25532b568a35a75f360a2b Up: gzip (1.6). diff -r 3d7811276978 -r e30b21af1714 gzip-full/receipt --- a/gzip-full/receipt Wed Oct 22 09:28:39 2014 +0300 +++ b/gzip-full/receipt Wed Oct 22 21:07:11 2014 +0300 @@ -1,9 +1,9 @@ # SliTaz package receipt. PACKAGE="gzip-full" -VERSION="1.5" +VERSION="1.6" CATEGORY="system-tools" -SHORT_DESC="Gzip full programs" +SHORT_DESC="GNU compression utilities" MAINTAINER="erjo@slitaz.org" LICENSE="GPL3" WEB_SITE="http://www.gnu.org/software/gzip/" @@ -14,9 +14,25 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/bin - cp -a $install/usr/bin/z* $fs/usr/bin - cp -a $install/usr/bin/un* $fs/usr/bin - cp -a $src/gzexe $fs/usr/bin + mkdir -p $fs/usr + + cp -a $install/usr/bin $fs/usr + rm -f $fs/usr/bin/gzip $fs/usr/bin/gunzip } +# Pre and post install commands for Tazpkg. +# We must remove all Busybox symlink before installing. +pre_install() +{ + echo -n "Removing Busybox uncompress and zcat utilities... " + rm -f $1/bin/uncompress $1/bin/zcat + status +} + +post_remove() +{ + echo -n "Restoring Busybox uncompress and zcat utilities... " + ln -s busybox $1/bin/uncompress + ln -s busybox $1/bin/zcat + status +} diff -r 3d7811276978 -r e30b21af1714 gzip/receipt --- a/gzip/receipt Wed Oct 22 09:28:39 2014 +0300 +++ b/gzip/receipt Wed Oct 22 21:07:11 2014 +0300 @@ -1,12 +1,12 @@ # SliTaz package receipt. PACKAGE="gzip" -VERSION="1.5" +VERSION="1.6" CATEGORY="system-tools" -SHORT_DESC="Data compression program" +SHORT_DESC="GNU compression utilities (gzip and gunzip)" MAINTAINER="erjo@slitaz.org" LICENSE="GPL3" -TARBALL="$PACKAGE-$VERSION.tar.gz" +TARBALL="$PACKAGE-$VERSION.tar.xz" WEB_SITE="http://www.gnu.org/software/gzip/" WGET_URL="http://ftp.gnu.org/gnu/gzip/$TARBALL" @@ -16,7 +16,6 @@ # Rules to configure and make the package. compile_rules() { - cd $src ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ @@ -35,20 +34,17 @@ # Pre and post install commands for Tazpkg. # We must remove all Busybox symlink before installing. -# pre_install() { - local root - root=$1 - echo "Processing pre-install commands..." - echo -n "Removing all Busybox replaced utils... " - rm -f $root/bin/gzip - rm -f $root/bin/gunzip + echo -n "Removing Busybox gzip and gunzip utilities... " + rm -f $1/bin/gzip $1/bin/gunzip status } post_remove() { - ln -s $1/bin/busybox $1/bin/gzip - ln -s $1/bin/busybox $1/bin/gunzip + echo -n "Restoring Busybox gzip and gunzip utilities... " + ln -s busybox $1/bin/gzip + ln -s busybox $1/bin/gunzip + status }