
Receipt for package "coreutils"
# SliTaz package receipt. PACKAGE="coreutils" VERSION="9.0" CATEGORY="system-tools" SHORT_DESC="Utilities for using and setting the basic system." MAINTAINER="pankso@slitaz.org" LICENSE="GPL3" WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="https://ftp.gnu.org/gnu/$PACKAGE/$TARBALL" HOST_ARCH="i486 x86_64" SUGGESTED="coreutils-lang" SIBLINGS="coreutils-multicall" SPLIT="coreutils-character coreutils-command coreutils-conditions coreutils-context-system coreutils-context-user coreutils-context-working coreutils-directory coreutils-disk coreutils-file-attributes coreutils-file-format coreutils-file-output-full coreutils-file-output-part coreutils-file-sort coreutils-file-special coreutils-file-summarize coreutils-line coreutils-numeric coreutils-operations coreutils-path coreutils-print coreutils-redirection" DEPENDS="acl attr glibc-base gmp" BUILD_DEPENDS="automake gmp-dev libcap-dev xz" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed '/latest/d;/coreutils-/!d;/tar/!d;s|.*coreutils-||;s|.tar.*||' | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { # LFS: Coreutils Internationalization Fixes Patch # patch -Np1 -i $stuff/coreutils-8.25-i18n-2.patch # SliTaz: show extended info touching CPU via uname patch -p1 -i $stuff/uname.u autoreconf -fi # bypass checking whether mknod can create fifo without root privileges export FORCE_UNSAFE_CONFIGURE=1 ./configure $CONFIGURE_ARGS && make && make install # LFS: Move programs to the locations specified by the FHS mkdir -p $install/bin mkdir -p $install/usr/sbin mkdir -p $install/usr/share/man/man8 while read i do mv $install/usr/bin/$i $install/bin done <<EOT cat chgrp chmod chown cp date dd df echo false ln ls mkdir mknod mv pwd rm rmdir stty sync true uname EOT mv $install/usr/bin/chroot $install/usr/sbin mv $install/usr/share/man/man1/chroot.1 \ $install/usr/share/man/man8/chroot.8 sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8 find $install/usr/share/man -type f -exec gzip -9 \{\} \; } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { # A set of binaries looks intriguing, isn't it? # For what is this package with exactly these binaries? mkdir -p $fs/usr/bin mkdir -p $fs/bin cd $install/usr/bin while read i do cp -a $i $fs/usr/bin done <<EOT base64 csplit factor fmt groups join od paste ptx shred shuf split users EOT cp -a $install/bin/cp $fs/bin } post_install() { # Remove Busybox applet in order to not clash with # /usr/bin/base64 from this package. rm "$1/bin/base64" } post_remove() { ln -s busybox "$1/bin/base64" ln -s busybox "$1/bin/cp" ln -s /bin/busybox "$1/usr/bin/groups" ln -s /bin/busybox "$1/usr/bin/od" ln -s /bin/busybox "$1/usr/bin/split" ln -s /bin/busybox "$1/usr/bin/users" }
6088 packages and 256128 files in current database (Wed Mar 5 09:18:31 2025)