wok-next annotate coreutils-context-working/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-context-working"
al@19215 4 VERSION="8.25"
rcx@3662 5 CATEGORY="system-tools"
rcx@3662 6 SHORT_DESC="GNU utilities related to the working context."
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 pwd stty printenv tty
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/printenv" # for /usr/bin/printenv
rcx@3662 25 }
rcx@3662 26
rcx@3662 27 post_remove()
rcx@3662 28 {
al@19215 29 # Restore all Busybox applets that have been replaced
al@19215 30 while read i; do
al@19215 31 busybox ln -s /bin/busybox "$1$i"
al@19215 32 done <<EOT
al@19215 33 /bin/printenv
al@19215 34 /bin/pwd
al@19215 35 /bin/stty
al@19215 36 /usr/bin/tty
al@19215 37 EOT
rcx@3662 38 }