wok-6.x view coreutils-file-output-full/receipt @ rev 25508
Up memtest (6.10)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 12 10:26:56 2023 +0000 (22 months ago) |
parents | 9b6a3a5c1a07 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-file-output-full"
4 VERSION="9.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU utilities that output entire files."
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/cat
30 /usr/bin/base32
31 /usr/bin/base64
32 /usr/bin/nl
33 /usr/bin/od
34 /usr/bin/tac
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/base64" # /usr/bin/base64
43 }
45 post_remove()
46 {
47 # Restore all Busybox applets that have been replaced
48 while read i
49 do
50 busybox ln -s /bin/busybox "$1$i"
51 done <<EOT
52 /bin/base64
53 /bin/cat
54 /usr/bin/od
55 /usr/bin/tac
56 EOT
57 }