wok diff coreutils-context-user/receipt @ rev 20779

updated cellwriter (1.3.5 -> 1.3.6)
author Hans-G?nter Theisgen
date Thu Feb 14 13:52:33 2019 +0100 (2019-02-14)
parents d6ca18366f41
children 9b6a3a5c1a07
line diff
     1.1 --- a/coreutils-context-user/receipt	Mon Dec 21 02:53:09 2015 +0200
     1.2 +++ b/coreutils-context-user/receipt	Thu Feb 14 13:52:33 2019 +0100
     1.3 @@ -1,40 +1,48 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="coreutils-context-user"
     1.7 -VERSION="8.12"
     1.8 +VERSION="8.25"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="GNU utilities related to the user context."
    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/id $fs/bin
    1.30 +	mandir="$fs/usr/share/man/man1"
    1.31 +	mkdir -p $mandir
    1.32  
    1.33 -	mkdir -p $fs/usr/bin
    1.34 -	cp -a $install/usr/bin/logname $fs/usr/bin
    1.35 -	cp -a $install/usr/bin/whoami $fs/usr/bin
    1.36 -	cp -a $install/usr/bin/groups $fs/usr/bin
    1.37 -	cp -a $install/usr/bin/pinky $fs/usr/bin
    1.38 -	cp -a $install/usr/bin/users $fs/usr/bin
    1.39 -	cp -a $install/usr/bin/who $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 +/usr/bin/groups
    1.46 +/usr/bin/id
    1.47 +/usr/bin/logname
    1.48 +/usr/bin/pinky
    1.49 +/usr/bin/users
    1.50 +/usr/bin/who
    1.51 +/usr/bin/whoami
    1.52 +EOT
    1.53  }
    1.54  
    1.55  post_remove()
    1.56  {
    1.57 -	ln -s /bin/busybox "$1/bin/id"
    1.58 -	ln -s /bin/busybox "$1/usr/bin/logname"
    1.59 -	ln -s /bin/busybox "$1/usr/bin/whoami"
    1.60 -	ln -s /bin/busybox "$1/usr/bin/who"
    1.61 +	# Restore all Busybox applets that have been replaced
    1.62 +	while read i; do
    1.63 +		busybox ln -s /bin/busybox "$1$i"
    1.64 +	done <<EOT
    1.65 +/usr/bin/groups
    1.66 +/usr/bin/id
    1.67 +/usr/bin/logname
    1.68 +/usr/bin/users
    1.69 +/usr/bin/who
    1.70 +/usr/bin/whoami
    1.71 +EOT
    1.72  }