wok-6.x view coreutils-file-special/receipt @ rev 22616
updated coreutils packages (8.25 -> 8.31)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 12 09:19:37 2020 +0100 (2020-01-12) |
parents | 1d0123efe74c |
children | 82d54eca72be |
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-file-special"
4 VERSION="8.31"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU utilities that work with special file types."
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/ln
27 /bin/mkdir
28 /bin/mknod
29 /bin/rmdir
30 /usr/bin/link
31 /usr/bin/mkfifo
32 /usr/bin/mktemp
33 /usr/bin/readlink
34 /usr/bin/realpath
35 /usr/bin/unlink
36 EOT
37 }
39 post_install()
40 {
41 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
42 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
43 rm "$1/bin/mktemp" # /usr/bin/mktemp
44 }
46 post_remove()
47 {
48 # Restore all Busybox applets that have been replaced
49 while read i
50 do
51 busybox ln -s /bin/busybox "$1$i"
52 done <<EOT
53 /bin/ln
54 /bin/mkdir
55 /bin/mknod
56 /bin/mktemp
57 /bin/rmdir
58 /usr/bin/mkfifo
59 /usr/bin/realpath
60 EOT
61 }