wok-next view coreutils-command/receipt @ rev 19722
Up net-snmp (5.7.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 24 18:42:05 2017 +0200 (2017-05-24) |
parents | 1d0123efe74c |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-command"
4 VERSION="8.25"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU command utilities."
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 cook_copy_files env kill nice nohup sleep stdbuf timeout libstdbuf.so chroot
18 }
20 post_install()
21 {
22 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
23 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
24 rm "$1/bin/kill" # for /usr/bin/kill
25 rm "$1/bin/nice" # for /usr/bin/nice
26 rm "$1/bin/sleep" # for /usr/bin/sleep
27 }
29 post_remove()
30 {
31 # Restore all Busybox applets that have been replaced
32 while read i; do
33 busybox ln -s /bin/busybox "$1$i"
34 done <<EOT
35 /bin/kill
36 /bin/nice
37 /bin/sleep
38 /usr/bin/env
39 /usr/bin/nohup
40 /usr/bin/timeout
41 /usr/sbin/chroot
42 EOT
43 }