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