wok-next annotate coreutils-file-attributes/receipt @ rev 19658
Up xorg-xf86-video-ati
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Mar 04 17:31:46 2017 +0200 (2017-03-04) |
parents | 1d0123efe74c |
children |
rev | line source |
---|---|
rcx@3662 | 1 # SliTaz package receipt. |
rcx@3662 | 2 |
rcx@3662 | 3 PACKAGE="coreutils-file-attributes" |
al@19215 | 4 VERSION="8.25" |
rcx@3662 | 5 CATEGORY="system-tools" |
rcx@3662 | 6 SHORT_DESC="GNU utilities that change file attributes." |
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 chgrp chmod chown touch |
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/touch" # for /usr/bin/touch |
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/chgrp |
al@19215 | 34 /bin/chmod |
al@19215 | 35 /bin/chown |
al@19215 | 36 /bin/touch |
al@19215 | 37 EOT |
rcx@3662 | 38 } |