SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "coreutils-context-system"

# SliTaz package receipt.

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

SUGGESTED="coreutils-lang"
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

    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
/bin/date
/bin/uname
/usr/bin/chcon
/usr/bin/hostid
/usr/bin/nproc
/usr/bin/runcon
/usr/bin/uptime
EOT
}

post_remove()
{
    # Restore all Busybox applets that have been replaced
    while read i
      do
        busybox ln -s /bin/busybox "$1$i"
      done <<EOT
/bin/date
/bin/uname
/usr/bin/hostid
/usr/bin/uptime
EOT
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)