wok diff coreutils-multicall/receipt @ rev 21671
updated pdf2djvu (0.9.4 -> 0.9.12)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 01 15:33:43 2019 +0100 (2019-06-01) |
parents | |
children | 9b6a3a5c1a07 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/coreutils-multicall/receipt Sat Jun 01 15:33:43 2019 +0100 1.3 @@ -0,0 +1,92 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="coreutils-multicall" 1.7 +VERSION="8.25" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Utilities for using and setting the basic system." 1.10 +MAINTAINER="al.bobylev@gmail.com" 1.11 +LICENSE="GPL3" 1.12 +WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html" 1.13 +TARBALL="coreutils-$VERSION.tar.xz" 1.14 +WGET_URL="$GNU_MIRROR/coreutils/$TARBALL" 1.15 + 1.16 +SIBLINGS="coreutils" 1.17 +DEPENDS="glibc-base acl attr libcap gmp" 1.18 +BUILD_DEPENDS="automake xz libcap-dev gmp-dev" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + # LFS: Coreutils Internationalization Fixes Patch 1.24 + patch -Np1 -i $WOK/coreutils/stuff/coreutils-8.25-i18n-2.patch 1.25 + # SliTaz: show extended info touching CPU via uname 1.26 + patch -p1 -i $WOK/coreutils/stuff/uname.u 1.27 + 1.28 + autoreconf -fi 1.29 + 1.30 + FORCE_UNSAFE_CONFIGURE=1 \ 1.31 + ./configure \ 1.32 + --enable-single-binary=symlinks \ 1.33 + $CONFIGURE_ARGS && 1.34 + make && make install 1.35 + 1.36 + # LFS: Move programs to the locations specified by the FHS 1.37 + mkdir -p $install/bin $install/usr/sbin $install/usr/share/man/man8 1.38 + for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \ 1.39 + mknod mv pwd rm rmdir stty sync true uname; do 1.40 + rm $install/usr/bin/$i 1.41 + ln -s /usr/bin/coreutils $install/bin/$i 1.42 + done 1.43 + rm $install/usr/bin/chroot 1.44 + ln -s /usr/bin/coreutils $install/usr/sbin/chroot 1.45 + mv $install/usr/share/man/man1/chroot.1 \ 1.46 + $install/usr/share/man/man8/chroot.8 1.47 + sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8 1.48 + 1.49 + find $install/usr/share/man -type f -exec gzip -9 \{\} \; 1.50 +} 1.51 + 1.52 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.53 +genpkg_rules() 1.54 +{ 1.55 + cp -a $install/* $fs 1.56 + rm -r $fs/usr/share/info $fs/usr/share/locale 1.57 +} 1.58 + 1.59 +post_install() 1.60 +{ 1.61 + # Remove Busybox applets in order to not clash with ("/bin", "/sbin", 1.62 + # "/usr/bin" and "/usr/sbin" conflicts with the same filename) 1.63 + rm "$1/bin/base64" # /usr/bin/base64 1.64 + rm "$1/bin/kill" # /usr/bin/kill 1.65 + rm "$1/bin/mktemp" # /usr/bin/mktemp 1.66 + rm "$1/bin/nice" # /usr/bin/nice 1.67 + rm "$1/bin/printenv" # /usr/bin/printenv 1.68 + rm "$1/bin/sleep" # /usr/bin/sleep 1.69 + rm "$1/bin/stat" # /usr/bin/stat 1.70 + rm "$1/bin/touch" # /usr/bin/touch 1.71 +} 1.72 + 1.73 +post_remove() 1.74 +{ 1.75 + # Restore all Busybox applets that have been replaced 1.76 + 1.77 + # /bin: 1.78 + for i in base64 cat chgrp chmod chown cp date dd df echo false kill ln ls \ 1.79 + mkdir mknod mktemp mv nice printenv pwd rm rmdir sleep stat stty sync \ 1.80 + touch true uname; do 1.81 + busybox ln -s busybox "$1/bin/$i" 1.82 + done 1.83 + 1.84 + # /usr/bin: 1.85 + for i in '[' basename cksum comm cut dirname du env expand expr fold \ 1.86 + groups head hostid id install logname md5sum mkfifo nohup od printf \ 1.87 + readlink realpath seq sha1sum sha256sum sha512sum sort split sum tac \ 1.88 + tail tee test timeout tr tty unexpand uniq uptime users wc who whoami \ 1.89 + yes; do 1.90 + busybox ln -s /bin/busybox "$1/usr/bin/$i" 1.91 + done 1.92 + 1.93 + # /usr/sbin: 1.94 + busybox ln -s /bin/busybox "$1/usr/sbin/chroot" 1.95 +}