wok diff coreutils-file-special/receipt @ rev 20641

Add SSL support to retawq (needed by man to browse linux.die.net)
author Lucas Levrel <llevrel@yahoo.fr>
date Fri Jan 11 09:19:11 2019 +0100 (20 months ago)
parents 6fab3264ba87
children 9b6a3a5c1a07
line diff
     1.1 --- a/coreutils-file-special/receipt	Fri Dec 25 15:23:46 2015 +0200
     1.2 +++ b/coreutils-file-special/receipt	Fri Jan 11 09:19:11 2019 +0100
     1.3 @@ -1,54 +1,59 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="coreutils-file-special"
     1.7 -VERSION="8.12"
     1.8 +VERSION="8.25"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="GNU utilities that work with special file types."
    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"
    1.19  
    1.20  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.21 -#
    1.22 -# This is a special package for installed system or developer. We only take
    1.23 -# a few things, as Busybox provides all the basic utilities, but not for compiling.
    1.24 -# But DO NOT erase a Busybox applet, remove it before with pre_install rules.
    1.25 -#
    1.26  genpkg_rules()
    1.27  {
    1.28 -	mkdir -p $fs/bin
    1.29 -	cp -a $install/usr/bin/ln $fs/bin
    1.30 -	cp -a $install/usr/bin/mkdir $fs/bin
    1.31 -	cp -a $install/usr/bin/mknod $fs/bin
    1.32 -	cp -a $install/usr/bin/rmdir $fs/bin
    1.33 +	mandir="$fs/usr/share/man/man1"
    1.34 +	mkdir -p $mandir
    1.35  
    1.36 -	mkdir -p $fs/usr/bin
    1.37 -	cp -a $install/usr/bin/link $fs/usr/bin
    1.38 -	cp -a $install/usr/bin/mkfifo $fs/usr/bin
    1.39 -	cp -a $install/usr/bin/mktemp $fs/usr/bin
    1.40 -	cp -a $install/usr/bin/readlink $fs/usr/bin
    1.41 -	cp -a $install/usr/bin/unlink $fs/usr/bin
    1.42 +	while read i; do
    1.43 +		mkdir -p $fs$(dirname $i)
    1.44 +		cp -a $install$i $fs$i
    1.45 +		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
    1.46 +	done <<EOT
    1.47 +/bin/ln
    1.48 +/bin/mkdir
    1.49 +/bin/mknod
    1.50 +/bin/rmdir
    1.51 +/usr/bin/link
    1.52 +/usr/bin/mkfifo
    1.53 +/usr/bin/mktemp
    1.54 +/usr/bin/readlink
    1.55 +/usr/bin/realpath
    1.56 +/usr/bin/unlink
    1.57 +EOT
    1.58  }
    1.59  
    1.60 -pre_remove()
    1.61 +post_install()
    1.62  {
    1.63 -	# Need to handle the removal of ln
    1.64 -	cp -a -fd "$1/bin/ln" "$1/bin/ln-coreutils"
    1.65 +	# Remove Busybox applets in order to not clash with ("/bin", "/sbin",
    1.66 +	# "/usr/bin" and "/usr/sbin" conflicts with the same filename)
    1.67 +	rm "$1/bin/mktemp"   # /usr/bin/mktemp
    1.68  }
    1.69  
    1.70  post_remove()
    1.71  {
    1.72 -	# Restore ln
    1.73 -	ln-coreutils -s /bin/busybox "$1/bin/ln"
    1.74 -
    1.75 -	ln -s /bin/busybox "$1/bin/mkdir"
    1.76 -	ln -s /bin/busybox "$1/bin/mknod"
    1.77 -	ln -s /bin/busybox "$1/bin/rmdir"
    1.78 -	ln -s /bin/busybox "$1/usr/bin/mkfifo"
    1.79 -	ln -s /bin/busybox "$1/usr/bin/readlink"
    1.80 -	
    1.81 -	rm -f "$1/bin/ln-coreutils"
    1.82 +	# Restore all Busybox applets that have been replaced
    1.83 +	while read i; do
    1.84 +		busybox ln -s /bin/busybox "$1$i"
    1.85 +	done <<EOT
    1.86 +/bin/ln
    1.87 +/bin/mkdir
    1.88 +/bin/mknod
    1.89 +/bin/mktemp
    1.90 +/bin/rmdir
    1.91 +/usr/bin/mkfifo
    1.92 +/usr/bin/realpath
    1.93 +EOT
    1.94  }