SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "coreutils-file-special"

# SliTaz package receipt.

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

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

HOST_ARCH="i486 x86_64"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    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/ln
/bin/mkdir
/bin/mknod
/bin/rmdir
/usr/bin/link
/usr/bin/mkfifo
/usr/bin/mktemp
/usr/bin/readlink
/usr/bin/realpath
/usr/bin/unlink
EOT
}

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/mktemp"   # /usr/bin/mktemp
}

post_remove()
{
    # Restore all Busybox applets that have been replaced
    while read i
      do
        busybox ln -s /bin/busybox "$1$i"
      done <<EOT
/bin/ln
/bin/mkdir
/bin/mknod
/bin/mktemp
/bin/rmdir
/usr/bin/mkfifo
/usr/bin/realpath
EOT
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)