wok-next annotate coreutils-file-special/receipt @ rev 19561
Initial commit to wok-next (SliTaz v.6 now): update 61 packages (about) according to LFS 7.10
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 16 01:16:56 2016 +0200 (2016-12-16) |
parents | 1d0123efe74c |
children |
rev | line source |
---|---|
rcx@3662 | 1 # SliTaz package receipt. |
rcx@3662 | 2 |
rcx@3662 | 3 PACKAGE="coreutils-file-special" |
al@19215 | 4 VERSION="8.25" |
rcx@3662 | 5 CATEGORY="system-tools" |
rcx@3662 | 6 SHORT_DESC="GNU utilities that work with special file types." |
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 ln mkdir mknod rmdir link mkfifo mktemp readlink realpath \ |
al@19561 | 18 unlink |
rcx@3662 | 19 } |
rcx@3662 | 20 |
al@19215 | 21 post_install() |
rcx@3684 | 22 { |
al@19215 | 23 # Remove Busybox applets in order to not clash with ("/bin", "/sbin", |
al@19215 | 24 # "/usr/bin" and "/usr/sbin" conflicts with the same filename) |
al@19561 | 25 rm "$1/bin/mktemp" # for /usr/bin/mktemp |
rcx@3684 | 26 } |
al@18741 | 27 |
rcx@3662 | 28 post_remove() |
rcx@3662 | 29 { |
al@19215 | 30 # Restore all Busybox applets that have been replaced |
al@19215 | 31 while read i; do |
al@19215 | 32 busybox ln -s /bin/busybox "$1$i" |
al@19215 | 33 done <<EOT |
al@19215 | 34 /bin/ln |
al@19215 | 35 /bin/mkdir |
al@19215 | 36 /bin/mknod |
al@19215 | 37 /bin/mktemp |
al@19215 | 38 /bin/rmdir |
al@19215 | 39 /usr/bin/mkfifo |
al@19215 | 40 /usr/bin/realpath |
al@19215 | 41 EOT |
rcx@3662 | 42 } |