wok annotate coreutils-multicall/receipt @ rev 21774

Add dasm, katarina
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 10 12:45:14 2019 +0200 (2019-07-10)
parents
children 9b6a3a5c1a07
rev   line source
al@19216 1 # SliTaz package receipt.
al@19216 2
al@19216 3 PACKAGE="coreutils-multicall"
al@19216 4 VERSION="8.25"
al@19216 5 CATEGORY="system-tools"
al@19216 6 SHORT_DESC="Utilities for using and setting the basic system."
al@19216 7 MAINTAINER="al.bobylev@gmail.com"
al@19216 8 LICENSE="GPL3"
al@19216 9 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
al@19216 10 TARBALL="coreutils-$VERSION.tar.xz"
al@19216 11 WGET_URL="$GNU_MIRROR/coreutils/$TARBALL"
al@19216 12
al@19216 13 SIBLINGS="coreutils"
al@19216 14 DEPENDS="glibc-base acl attr libcap gmp"
al@19216 15 BUILD_DEPENDS="automake xz libcap-dev gmp-dev"
al@19216 16
al@19216 17 # Rules to configure and make the package.
al@19216 18 compile_rules()
al@19216 19 {
al@19216 20 # LFS: Coreutils Internationalization Fixes Patch
al@19216 21 patch -Np1 -i $WOK/coreutils/stuff/coreutils-8.25-i18n-2.patch
al@19216 22 # SliTaz: show extended info touching CPU via uname
al@19216 23 patch -p1 -i $WOK/coreutils/stuff/uname.u
al@19216 24
al@19216 25 autoreconf -fi
al@19216 26
al@19216 27 FORCE_UNSAFE_CONFIGURE=1 \
al@19216 28 ./configure \
al@19216 29 --enable-single-binary=symlinks \
al@19216 30 $CONFIGURE_ARGS &&
al@19216 31 make && make install
al@19216 32
al@19216 33 # LFS: Move programs to the locations specified by the FHS
al@19216 34 mkdir -p $install/bin $install/usr/sbin $install/usr/share/man/man8
al@19216 35 for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \
al@19216 36 mknod mv pwd rm rmdir stty sync true uname; do
al@19216 37 rm $install/usr/bin/$i
al@19216 38 ln -s /usr/bin/coreutils $install/bin/$i
al@19216 39 done
al@19216 40 rm $install/usr/bin/chroot
al@19216 41 ln -s /usr/bin/coreutils $install/usr/sbin/chroot
al@19216 42 mv $install/usr/share/man/man1/chroot.1 \
al@19216 43 $install/usr/share/man/man8/chroot.8
al@19216 44 sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8
al@19216 45
al@19216 46 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
al@19216 47 }
al@19216 48
al@19216 49 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19216 50 genpkg_rules()
al@19216 51 {
al@19216 52 cp -a $install/* $fs
al@19216 53 rm -r $fs/usr/share/info $fs/usr/share/locale
al@19216 54 }
al@19216 55
al@19216 56 post_install()
al@19216 57 {
al@19216 58 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
al@19216 59 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
al@19216 60 rm "$1/bin/base64" # /usr/bin/base64
al@19216 61 rm "$1/bin/kill" # /usr/bin/kill
al@19216 62 rm "$1/bin/mktemp" # /usr/bin/mktemp
al@19216 63 rm "$1/bin/nice" # /usr/bin/nice
al@19216 64 rm "$1/bin/printenv" # /usr/bin/printenv
al@19216 65 rm "$1/bin/sleep" # /usr/bin/sleep
al@19216 66 rm "$1/bin/stat" # /usr/bin/stat
al@19216 67 rm "$1/bin/touch" # /usr/bin/touch
al@19216 68 }
al@19216 69
al@19216 70 post_remove()
al@19216 71 {
al@19216 72 # Restore all Busybox applets that have been replaced
al@19216 73
al@19216 74 # /bin:
al@19216 75 for i in base64 cat chgrp chmod chown cp date dd df echo false kill ln ls \
al@19216 76 mkdir mknod mktemp mv nice printenv pwd rm rmdir sleep stat stty sync \
al@19216 77 touch true uname; do
al@19216 78 busybox ln -s busybox "$1/bin/$i"
al@19216 79 done
al@19216 80
al@19216 81 # /usr/bin:
al@19216 82 for i in '[' basename cksum comm cut dirname du env expand expr fold \
al@19216 83 groups head hostid id install logname md5sum mkfifo nohup od printf \
al@19216 84 readlink realpath seq sha1sum sha256sum sha512sum sort split sum tac \
al@19216 85 tail tee test timeout tr tty unexpand uniq uptime users wc who whoami \
al@19216 86 yes; do
al@19216 87 busybox ln -s /bin/busybox "$1/usr/bin/$i"
al@19216 88 done
al@19216 89
al@19216 90 # /usr/sbin:
al@19216 91 busybox ln -s /bin/busybox "$1/usr/sbin/chroot"
al@19216 92 }