wok-current view coreutils-file-attributes/receipt @ rev 24463
updated dar (2.6.7 -> 2.7.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 17 07:23:25 2022 +0100 (2022-02-17) |
parents | 9b6a3a5c1a07 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-file-attributes"
4 VERSION="9.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU utilities that change file attributes."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
11 SUGGESTED="coreutils-lang"
12 DEPENDS="glibc-base"
13 WANTED="coreutils"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 # according to https://doc.slitaz.org/en:cookbook:wok
19 # Generally, the base packages contain no man, info or doc files
20 # mandir="$fs/usr/share/man/man1"
21 # mkdir -p $mandir
23 while read i
24 do
25 mkdir -p $fs$(dirname $i)
26 cp -a $install$i $fs$i
27 # find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
28 done <<EOT
29 /bin/chgrp
30 /bin/chmod
31 /bin/chown
32 /usr/bin/touch
33 EOT
34 }
36 post_install()
37 {
38 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
39 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
40 rm "$1/bin/touch" # /usr/bin/touch
41 }
43 post_remove()
44 {
45 # Restore all Busybox applets that have been replaced
46 while read i
47 do
48 busybox ln -s /bin/busybox "$1$i"
49 done <<EOT
50 /bin/chgrp
51 /bin/chmod
52 /bin/chown
53 /bin/touch
54 EOT
55 }