wok-next annotate coreutils-command/receipt @ rev 19608

lzop: add forgotten patch.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Feb 03 14:20:13 2017 +0200 (2017-02-03)
parents 1d0123efe74c
children
rev   line source
rcx@3662 1 # SliTaz package receipt.
rcx@3662 2
rcx@3662 3 PACKAGE="coreutils-command"
al@19215 4 VERSION="8.25"
rcx@3662 5 CATEGORY="system-tools"
rcx@3662 6 SHORT_DESC="GNU command utilities."
rcx@3662 7 MAINTAINER="rcx@zoominternet.net"
pascal@14999 8 LICENSE="GPL3"
al@19215 9 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
al@19215 10
pascal@14999 11 WANTED="coreutils"
rcx@3662 12 DEPENDS="glibc-base"
rcx@3662 13
rcx@3662 14 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3662 15 genpkg_rules()
rcx@3662 16 {
al@19561 17 cook_copy_files env kill nice nohup sleep stdbuf timeout libstdbuf.so chroot
al@19215 18 }
al@19215 19
al@19215 20 post_install()
al@19215 21 {
al@19215 22 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
al@19215 23 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
al@19561 24 rm "$1/bin/kill" # for /usr/bin/kill
al@19561 25 rm "$1/bin/nice" # for /usr/bin/nice
al@19561 26 rm "$1/bin/sleep" # for /usr/bin/sleep
rcx@3662 27 }
rcx@3662 28
rcx@3662 29 post_remove()
rcx@3662 30 {
al@19215 31 # Restore all Busybox applets that have been replaced
al@19215 32 while read i; do
al@19215 33 busybox ln -s /bin/busybox "$1$i"
al@19215 34 done <<EOT
al@19215 35 /bin/kill
al@19215 36 /bin/nice
al@19215 37 /bin/sleep
al@19215 38 /usr/bin/env
al@19215 39 /usr/bin/nohup
al@19215 40 /usr/bin/timeout
al@19215 41 /usr/sbin/chroot
al@19215 42 EOT
rcx@3662 43 }