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