# SliTaz package receipt. PACKAGE="coreutils-context-user" VERSION="8.12" CATEGORY="system-tools" SHORT_DESC="GNU utilities related to the user context." MAINTAINER="rcx@zoominternet.net" WEB_SITE="http://www.gnu.org/software/coreutils/" DEPENDS="glibc-base" WANTED="coreutils" # Rules to gen a SliTaz package suitable for Tazpkg. # # This is a special package for installed system or developer. We only take # a few things, as Busybox provides all the basic utilities, but not for compiling. # But DO NOT erase a Busybox applet, remove it before with pre_install rules. # genpkg_rules() { mkdir -p $fs/bin cp -a $_pkg/usr/bin/id $fs/bin mkdir -p $fs/usr/bin cp -a $_pkg/usr/bin/logname $fs/usr/bin cp -a $_pkg/usr/bin/whoami $fs/usr/bin cp -a $_pkg/usr/bin/groups $fs/usr/bin cp -a $_pkg/usr/bin/pinky $fs/usr/bin cp -a $_pkg/usr/bin/users $fs/usr/bin cp -a $_pkg/usr/bin/who $fs/usr/bin } # Pre and post install commands for Tazpkg. # We must remove all Busybox symlink before installing. # pre_install() { local root root=$1 echo "Processing pre-install commands..." echo -n "Removing all Busybox replaced utils... " rm -f $root/bin/id rm -f $root/usr/bin/logname $root/usr/bin/whoami $root/usr/bin/who status } post_remove() { ln -s /bin/busybox $1/bin/id ln -s /bin/busybox $1/usr/bin/logname ln -s /bin/busybox $1/usr/bin/whoami ln -s /bin/busybox $1/usr/bin/who }