SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "coreutils-command"

# SliTaz package receipt.

PACKAGE="coreutils-command"
VERSION="9.0"
CATEGORY="system-tools"
SHORT_DESC="GNU command utilities."
MAINTAINER="rcx@zoominternet.net"
LICENSE="GPL3"
WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"

DEPENDS="glibc-base"
WANTED="coreutils"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    # according to https://doc.slitaz.org/en:cookbook:wok
    # Generally, the base packages contain no man, info or doc files
#    mandir="$fs/usr/share/man/man1"
#    mkdir -p $mandir ${mandir/1/8}

    while read i
      do
        mkdir -p $fs$(dirname $i)
        cp -a $install$i $fs$i
#        find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
      done <<EOT
/usr/bin/env
/usr/bin/kill
/usr/bin/nice
/usr/bin/nohup
/usr/bin/sleep
/usr/bin/stdbuf
/usr/bin/timeout
/usr/libexec/coreutils/libstdbuf.so
/usr/sbin/chroot
EOT

#    mv $mandir/chroot.* ${mandir/1/8}
}

post_install()
{
    # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
    # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
    rm "$1/bin/kill"    # /usr/bin/kill
    rm "$1/bin/nice"    # /usr/bin/nice
    rm "$1/bin/sleep"    # /usr/bin/sleep
}

post_remove()
{
    # Restore all Busybox applets that have been replaced
    while read i
      do
        busybox ln -s /bin/busybox "$1$i"
      done <<EOT
/bin/kill
/bin/nice
/bin/sleep
/usr/bin/env
/usr/bin/nohup
/usr/bin/timeout
/usr/sbin/chroot
EOT
}
5935 packages and 845883 files in cooking database (Sun Jun 2 00:46:56 2024)