wok diff coreutils-operations/receipt @ rev 22422

retrigger thunar: now exo 0.10.3 available
author Erkan Yilmaz <erkan@slitaz.org>
date Sun Dec 15 11:44:49 2019 +0000 (2019-12-15)
parents 9e01bc6321ea
children 9b6a3a5c1a07
line diff
     1.1 --- a/coreutils-operations/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/coreutils-operations/receipt	Sun Dec 15 11:44:49 2019 +0000
     1.3 @@ -1,43 +1,44 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="coreutils-operations"
     1.7 -VERSION="8.12"
     1.8 +VERSION="8.25"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="GNU utilities that perform basic operations."
    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 acl"
    1.19 +DEPENDS="glibc-base acl attr"
    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 -#
    1.26  genpkg_rules()
    1.27  {
    1.28 -	mkdir -p $fs/bin
    1.29 -	#cp -a $install/usr/bin/cp $fs/bin
    1.30 -	cp -a $install/usr/bin/dd $fs/bin
    1.31 -	cp -a $install/usr/bin/mv $fs/bin
    1.32 -	cp -a $install/usr/bin/ln $fs/bin
    1.33 -	#cp -a $install/usr/bin/rm $fs/bin
    1.34 +	mandir="$fs/usr/share/man/man1"
    1.35 +	mkdir -p $mandir
    1.36  
    1.37 -	mkdir -p $fs/usr/bin
    1.38 -	cp -a $install/usr/bin/install $fs/usr/bin
    1.39 -	cp -a $install/usr/bin/shred $fs/usr/bin
    1.40 +	while read i; do
    1.41 +		mkdir -p $fs$(dirname $i)
    1.42 +		cp -a $install$i $fs$i
    1.43 +		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
    1.44 +	done <<EOT
    1.45 +/bin/cp
    1.46 +/bin/dd
    1.47 +/bin/mv
    1.48 +/usr/bin/install
    1.49 +/usr/bin/shred
    1.50 +EOT
    1.51  }
    1.52  
    1.53  post_remove()
    1.54  {
    1.55 -	# use busybox ln applet directly since /bin/ln
    1.56 -	# in this package is remove already
    1.57 -#	/bin/busybox ln -fs /bin/busybox "$1/bin/cp"
    1.58 -	/bin/busybox ln -fs /bin/busybox "$1/bin/dd"
    1.59 -	/bin/busybox ln -fs /bin/busybox "$1/bin/mv"
    1.60 -	/bin/busybox ln -fs /bin/busybox "$1/bin/ln"
    1.61 -#	/bin/busybox ln -fs /bin/busybox "$1/bin/rm"
    1.62 -	/bin/busybox ln -fs /bin/busybox "$1/usr/bin/install"
    1.63 +	# Restore all Busybox applets that have been replaced
    1.64 +	while read i; do
    1.65 +		busybox ln -s /bin/busybox "$1$i"
    1.66 +	done <<EOT
    1.67 +/bin/cp
    1.68 +/bin/dd
    1.69 +/bin/mv
    1.70 +/usr/bin/install
    1.71 +EOT
    1.72  }