wok view coreutils-disk/receipt @ rev 19880
obexftp: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 02 17:28:17 2017 +0200 (2017-04-02) |
parents | 6fab3264ba87 |
children | 9b6a3a5c1a07 |
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-disk"
4 VERSION="8.25"
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 WANTED="coreutils"
12 DEPENDS="glibc-base"
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; do
21 mkdir -p $fs$(dirname $i)
22 cp -a $install$i $fs$i
23 find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
24 done <<EOT
25 /bin/df
26 /bin/sync
27 /usr/bin/du
28 /usr/bin/stat
29 /usr/bin/truncate
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/stat" # /usr/bin/stat
38 }
40 post_remove()
41 {
42 # Restore all Busybox applets that have been replaced
43 while read i; do
44 busybox ln -s /bin/busybox "$1$i"
45 done <<EOT
46 /bin/df
47 /bin/stat
48 /bin/sync
49 /usr/bin/du
50 EOT
51 }