wok-current view coreutils-file-attributes/receipt @ rev 23588
updated python-zfec (1.4.24 -> 1.5.3)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 07 14:41:13 2020 +0100 (2020-04-07) |
parents | 1d0123efe74c |
children | 3b252eb4d26a |
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-file-attributes"
4 VERSION="8.31"
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 DEPENDS="glibc-base"
12 WANTED="coreutils"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mandir="$fs/usr/share/man/man1"
18 mkdir -p $mandir
20 while read i
21 do
22 mkdir -p $fs$(dirname $i)
23 cp -a $install$i $fs$i
24 find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
25 done <<EOT
26 /bin/chgrp
27 /bin/chmod
28 /bin/chown
29 /usr/bin/touch
30 EOT
31 }
33 post_install()
34 {
35 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
36 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
37 rm "$1/bin/touch" # /usr/bin/touch
38 }
40 post_remove()
41 {
42 # Restore all Busybox applets that have been replaced
43 while read i
44 do
45 busybox ln -s /bin/busybox "$1$i"
46 done <<EOT
47 /bin/chgrp
48 /bin/chmod
49 /bin/chown
50 /bin/touch
51 EOT
52 }