wok annotate coreutils-multicall/receipt @ rev 23443

updated postfixadmin again (3.2 -> 3.2.3)
author Hans-G?nter Theisgen
date Thu Apr 02 15:23:47 2020 +0100 (2020-04-02)
parents 5b84caa85ec8
children 17091bc7c301
rev   line source
al@19216 1 # SliTaz package receipt.
al@19216 2
al@19216 3 PACKAGE="coreutils-multicall"
Hans-G?nter@22616 4 VERSION="8.31"
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"
Hans-G?nter@22616 10
al@19216 11 TARBALL="coreutils-$VERSION.tar.xz"
Hans-G?nter@22616 12 WGET_URL="https://ftp.gnu.org/gnu/coreutils/$TARBALL"
al@19216 13
al@19216 14 SIBLINGS="coreutils"
Hans-G?nter@22616 15 DEPENDS="acl attr glibc-base gmp libcap"
Hans-G?nter@22616 16 BUILD_DEPENDS="automake gmp-dev libcap-dev xz"
al@19216 17
al@19216 18 # Rules to configure and make the package.
al@19216 19 compile_rules()
al@19216 20 {
al@19216 21 # LFS: Coreutils Internationalization Fixes Patch
Hans-G?nter@22616 22 # patch -Np1 -i $WOK/coreutils/stuff/coreutils-8.25-i18n-2.patch
Hans-G?nter@22616 23
al@19216 24 # SliTaz: show extended info touching CPU via uname
al@19216 25 patch -p1 -i $WOK/coreutils/stuff/uname.u
al@19216 26
al@19216 27 autoreconf -fi
al@19216 28
Hans-G?nter@22616 29 # bypass checking whether mknod can create fifo without root privileges
Hans-G?nter@22616 30 export FORCE_UNSAFE_CONFIGURE=1
Hans-G?nter@22616 31
Hans-G?nter@22616 32 ./configure \
Hans-G?nter@22616 33 --enable-single-binary=symlinks \
al@19216 34 $CONFIGURE_ARGS &&
Hans-G?nter@22616 35 make &&
Hans-G?nter@22616 36 make install
al@19216 37
al@19216 38 # LFS: Move programs to the locations specified by the FHS
Hans-G?nter@22616 39 mkdir -p $install/bin
Hans-G?nter@22616 40 mkdir -p $install/usr/sbin
Hans-G?nter@22616 41 mkdir -p $install/usr/share/man/man8
Hans-G?nter@22616 42
al@19216 43 for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \
Hans-G?nter@22616 44 mknod mv pwd rm rmdir stty sync true uname
Hans-G?nter@22616 45 do
al@19216 46 rm $install/usr/bin/$i
Hans-G?nter@22616 47 ln -s /usr/bin/coreutils $install/bin/$i
Hans-G?nter@22616 48 done
al@19216 49 rm $install/usr/bin/chroot
Hans-G?nter@22616 50 ln -s /usr/bin/coreutils $install/usr/sbin/chroot
al@19216 51 mv $install/usr/share/man/man1/chroot.1 \
Hans-G?nter@22616 52 $install/usr/share/man/man8/chroot.8
Hans-G?nter@22616 53
al@19216 54 sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8
al@19216 55
al@19216 56 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
al@19216 57 }
al@19216 58
al@19216 59 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19216 60 genpkg_rules()
al@19216 61 {
Hans-G?nter@22616 62 cp -a $install/* $fs
Hans-G?nter@22616 63 rm -r $fs/usr/share/info
Hans-G?nter@22616 64 rm -r $fs/usr/share/locale
al@19216 65 }
al@19216 66
al@19216 67 post_install()
al@19216 68 {
al@19216 69 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
al@19216 70 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
al@19216 71 rm "$1/bin/base64" # /usr/bin/base64
al@19216 72 rm "$1/bin/kill" # /usr/bin/kill
al@19216 73 rm "$1/bin/mktemp" # /usr/bin/mktemp
al@19216 74 rm "$1/bin/nice" # /usr/bin/nice
al@19216 75 rm "$1/bin/printenv" # /usr/bin/printenv
al@19216 76 rm "$1/bin/sleep" # /usr/bin/sleep
al@19216 77 rm "$1/bin/stat" # /usr/bin/stat
al@19216 78 rm "$1/bin/touch" # /usr/bin/touch
al@19216 79 }
al@19216 80
al@19216 81 post_remove()
al@19216 82 {
al@19216 83 # Restore all Busybox applets that have been replaced
al@19216 84
al@19216 85 # /bin:
al@19216 86 for i in base64 cat chgrp chmod chown cp date dd df echo false kill ln ls \
al@19216 87 mkdir mknod mktemp mv nice printenv pwd rm rmdir sleep stat stty sync \
Hans-G?nter@22616 88 touch true uname
Hans-G?nter@22616 89 do
al@19216 90 busybox ln -s busybox "$1/bin/$i"
Hans-G?nter@22616 91 done
al@19216 92
al@19216 93 # /usr/bin:
al@19216 94 for i in '[' basename cksum comm cut dirname du env expand expr fold \
al@19216 95 groups head hostid id install logname md5sum mkfifo nohup od printf \
al@19216 96 readlink realpath seq sha1sum sha256sum sha512sum sort split sum tac \
al@19216 97 tail tee test timeout tr tty unexpand uniq uptime users wc who whoami \
Hans-G?nter@22616 98 yes
Hans-G?nter@22616 99 do
al@19216 100 busybox ln -s /bin/busybox "$1/usr/bin/$i"
Hans-G?nter@22616 101 done
al@19216 102
al@19216 103 # /usr/sbin:
al@19216 104 busybox ln -s /bin/busybox "$1/usr/sbin/chroot"
al@19216 105 }