wok view coreutils-command/receipt @ rev 24583

updated fusioninventory-agent (2.5.2 -> 2.6)
author Hans-G?nter Theisgen
date Sun Feb 27 17:43:39 2022 +0100 (2022-02-27)
parents 9b6a3a5c1a07
children
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-command"
4 VERSION="9.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU command utilities."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
11 DEPENDS="glibc-base"
12 WANTED="coreutils"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 # according to https://doc.slitaz.org/en:cookbook:wok
18 # Generally, the base packages contain no man, info or doc files
19 # mandir="$fs/usr/share/man/man1"
20 # mkdir -p $mandir ${mandir/1/8}
22 while read i
23 do
24 mkdir -p $fs$(dirname $i)
25 cp -a $install$i $fs$i
26 # find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
27 done <<EOT
28 /usr/bin/env
29 /usr/bin/kill
30 /usr/bin/nice
31 /usr/bin/nohup
32 /usr/bin/sleep
33 /usr/bin/stdbuf
34 /usr/bin/timeout
35 /usr/libexec/coreutils/libstdbuf.so
36 /usr/sbin/chroot
37 EOT
39 # mv $mandir/chroot.* ${mandir/1/8}
40 }
42 post_install()
43 {
44 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
45 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
46 rm "$1/bin/kill" # /usr/bin/kill
47 rm "$1/bin/nice" # /usr/bin/nice
48 rm "$1/bin/sleep" # /usr/bin/sleep
49 }
51 post_remove()
52 {
53 # Restore all Busybox applets that have been replaced
54 while read i
55 do
56 busybox ln -s /bin/busybox "$1$i"
57 done <<EOT
58 /bin/kill
59 /bin/nice
60 /bin/sleep
61 /usr/bin/env
62 /usr/bin/nohup
63 /usr/bin/timeout
64 /usr/sbin/chroot
65 EOT
66 }