wok view coreutils-file-special/receipt @ rev 20355

syslinux: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 09 17:09:08 2018 +0200 (2018-06-09)
parents 6fab3264ba87
children 9b6a3a5c1a07
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-file-special"
4 VERSION="8.25"
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 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/ln
26 /bin/mkdir
27 /bin/mknod
28 /bin/rmdir
29 /usr/bin/link
30 /usr/bin/mkfifo
31 /usr/bin/mktemp
32 /usr/bin/readlink
33 /usr/bin/realpath
34 /usr/bin/unlink
35 EOT
36 }
38 post_install()
39 {
40 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
41 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
42 rm "$1/bin/mktemp" # /usr/bin/mktemp
43 }
45 post_remove()
46 {
47 # Restore all Busybox applets that have been replaced
48 while read i; do
49 busybox ln -s /bin/busybox "$1$i"
50 done <<EOT
51 /bin/ln
52 /bin/mkdir
53 /bin/mknod
54 /bin/mktemp
55 /bin/rmdir
56 /usr/bin/mkfifo
57 /usr/bin/realpath
58 EOT
59 }