wok diff coreutils-context-user/receipt @ rev 3919

linux: fix build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 18 19:22:04 2009 +0200 (2009-08-18)
parents
children 11129d96133c
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/coreutils-context-user/receipt	Tue Aug 18 19:22:04 2009 +0200
     1.3 @@ -0,0 +1,52 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="coreutils-context-user"
     1.7 +VERSION="7.4"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="GNU utilities related to the user context."
    1.10 +MAINTAINER="rcx@zoominternet.net"
    1.11 +WEB_SITE="http://www.gnu.org/software/coreutils/"
    1.12 +DEPENDS="glibc-base"
    1.13 +WANTED="coreutils"
    1.14 +
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +#
    1.17 +# This is a special package for installed system or developer. We only take
    1.18 +# a few things, as Busybox provides all the basic utilities, but not for compiling.
    1.19 +# But DO NOT erase a Busybox applet, remove it before with pre_install rules.
    1.20 +#
    1.21 +genpkg_rules()
    1.22 +{
    1.23 +	mkdir -p $fs/bin
    1.24 +	cp -a $_pkg/usr/bin/id $fs/bin
    1.25 +
    1.26 +	mkdir -p $fs/usr/bin
    1.27 +	cp -a $_pkg/usr/bin/logname $fs/usr/bin
    1.28 +	cp -a $_pkg/usr/bin/whoami $fs/usr/bin
    1.29 +	cp -a $_pkg/usr/bin/groups $fs/usr/bin
    1.30 +	cp -a $_pkg/usr/bin/pinky $fs/usr/bin
    1.31 +	cp -a $_pkg/usr/bin/users $fs/usr/bin
    1.32 +	cp -a $_pkg/usr/bin/who $fs/usr/bin
    1.33 +}
    1.34 +
    1.35 +# Pre and post install commands for Tazpkg.
    1.36 +# We must remove all Busybox symlink before installing.
    1.37 +#
    1.38 +pre_install()
    1.39 +{
    1.40 +	local root
    1.41 +	root=$1
    1.42 +	echo "Processing pre-install commands..."
    1.43 +	echo -n "Removing all Busybox replaced utils... "
    1.44 +	rm -f $root/bin/id
    1.45 +	rm -f $root/usr/bin/logname $root/usr/bin/whoami $root/usr/bin/who
    1.46 +	status
    1.47 +}
    1.48 +
    1.49 +post_remove()
    1.50 +{
    1.51 +	ln -s /bin/busybox /bin/id
    1.52 +	ln -s /bin/busybox /usr/bin/logname
    1.53 +	ln -s /bin/busybox /usr/bin/whoami
    1.54 +	ln -s /bin/busybox /usr/bin/who
    1.55 +}