wok-current view coreutils-disk/receipt @ rev 25198
updated python-jedi (0.16.0 -> 0.17.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 13:40:45 2022 +0100 (2022-07-13) |
parents | 9b6a3a5c1a07 |
children | 5926178cd6fa |
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-disk"
4 VERSION="9.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU utilities that work with disks."
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/df
30 /bin/sync
31 /usr/bin/du
32 /usr/bin/stat
33 /usr/bin/truncate
34 EOT
35 }
37 post_install()
38 {
39 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
40 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
41 rm "$1/bin/stat" # /usr/bin/stat
42 }
44 post_remove()
45 {
46 # Restore all Busybox applets that have been replaced
47 while read i
48 do
49 busybox ln -s /bin/busybox "$1$i"
50 done <<EOT
51 /bin/df
52 /bin/stat
53 /bin/sync
54 /usr/bin/du
55 EOT
56 }