wok diff coreutils-directory/receipt @ rev 19991

Up busybox (1.27.1), vala (0.36.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 21 16:38:46 2017 +0200 (2017-07-21)
parents 6fab3264ba87
children 9b6a3a5c1a07
line diff
     1.1 --- a/coreutils-directory/receipt	Fri Dec 25 15:23:46 2015 +0200
     1.2 +++ b/coreutils-directory/receipt	Fri Jul 21 16:38:46 2017 +0200
     1.3 @@ -1,37 +1,40 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="coreutils-directory"
     1.7 -VERSION="8.12"
     1.8 +VERSION="8.25"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="GNU utilities that list directories."
    1.11  MAINTAINER="rcx@zoominternet.net"
    1.12  LICENSE="GPL3"
    1.13 -WEB_SITE="http://www.gnu.org/software/coreutils/"
    1.14 +WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
    1.15 +
    1.16  WANTED="coreutils"
    1.17 -
    1.18 -DEPENDS="glibc-base libcap acl"
    1.19 +DEPENDS="glibc-base attr libcap"
    1.20  
    1.21  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.22 -#
    1.23 -# This is a special package for installed system or developer. We only take
    1.24 -# a few things, as Busybox provides all the basic utilities, but not for compiling.
    1.25 -# But DO NOT erase a Busybox applet, remove it before with pre_install rules.
    1.26 -#
    1.27  genpkg_rules()
    1.28  {
    1.29 -	mkdir -p $fs/bin
    1.30 -	cp -a $install/usr/bin/ls $fs/bin
    1.31 +	mandir="$fs/usr/share/man/man1"
    1.32 +	mkdir -p $mandir
    1.33  
    1.34 -	mkdir -p $fs/usr/bin
    1.35 -	cp -a $install/usr/bin/dir $fs/usr/bin
    1.36 -	cp -a $install/usr/bin/vdir $fs/usr/bin
    1.37 -	cp -a $install/usr/bin/dircolors $fs/usr/bin
    1.38 +	while read i; do
    1.39 +		mkdir -p $fs$(dirname $i)
    1.40 +		cp -a $install$i $fs$i
    1.41 +		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
    1.42 +	done <<EOT
    1.43 +/bin/ls
    1.44 +/usr/bin/dir
    1.45 +/usr/bin/dircolors
    1.46 +/usr/bin/vdir
    1.47 +EOT
    1.48  }
    1.49  
    1.50  post_remove()
    1.51  {
    1.52 -	ln -s /bin/busybox "$1/bin/ls"
    1.53 -	ln -s /bin/busybox "$1/usr/bin/dir"
    1.54 -	ln -s /bin/busybox "$1/usr/bin/vdir"
    1.55 -	ln -s /bin/busybox "$1/usr/bin/dircolors"
    1.56 +	# Restore all Busybox applets that have been replaced
    1.57 +	while read i; do
    1.58 +		busybox ln -s /bin/busybox "$1$i"
    1.59 +	done <<EOT
    1.60 +/bin/ls
    1.61 +EOT
    1.62  }