wok annotate coreutils-command/receipt @ rev 19842
gitso: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 13 12:09:18 2017 +0100 (2017-03-13) |
parents | 6fab3264ba87 |
children | 9b6a3a5c1a07 |
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@19215 | 17 mandir="$fs/usr/share/man/man1" |
al@19215 | 18 mkdir -p $mandir ${mandir/1/8} |
rcx@3662 | 19 |
al@19215 | 20 while read i; do |
al@19215 | 21 mkdir -p $fs$(dirname $i) |
al@19215 | 22 cp -a $install$i $fs$i |
al@19215 | 23 find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \; |
al@19215 | 24 done <<EOT |
al@19215 | 25 /usr/bin/env |
al@19215 | 26 /usr/bin/kill |
al@19215 | 27 /usr/bin/nice |
al@19215 | 28 /usr/bin/nohup |
al@19215 | 29 /usr/bin/sleep |
al@19215 | 30 /usr/bin/stdbuf |
al@19215 | 31 /usr/bin/timeout |
al@19215 | 32 /usr/libexec/coreutils/libstdbuf.so |
al@19215 | 33 /usr/sbin/chroot |
al@19215 | 34 EOT |
rcx@3662 | 35 |
al@19215 | 36 mv $mandir/chroot.* ${mandir/1/8} |
al@19215 | 37 } |
al@19215 | 38 |
al@19215 | 39 post_install() |
al@19215 | 40 { |
al@19215 | 41 # Remove Busybox applets in order to not clash with ("/bin", "/sbin", |
al@19215 | 42 # "/usr/bin" and "/usr/sbin" conflicts with the same filename) |
al@19215 | 43 rm "$1/bin/kill" # /usr/bin/kill |
al@19215 | 44 rm "$1/bin/nice" # /usr/bin/nice |
al@19215 | 45 rm "$1/bin/sleep" # /usr/bin/sleep |
rcx@3662 | 46 } |
rcx@3662 | 47 |
rcx@3662 | 48 post_remove() |
rcx@3662 | 49 { |
al@19215 | 50 # Restore all Busybox applets that have been replaced |
al@19215 | 51 while read i; do |
al@19215 | 52 busybox ln -s /bin/busybox "$1$i" |
al@19215 | 53 done <<EOT |
al@19215 | 54 /bin/kill |
al@19215 | 55 /bin/nice |
al@19215 | 56 /bin/sleep |
al@19215 | 57 /usr/bin/env |
al@19215 | 58 /usr/bin/nohup |
al@19215 | 59 /usr/bin/timeout |
al@19215 | 60 /usr/sbin/chroot |
al@19215 | 61 EOT |
rcx@3662 | 62 } |