wok diff coreutils-file-special/receipt @ rev 3662

Add: coreutils (all coreutils packaged in groups by function)
author Matthew Sheets <rcx@zoominternet.net>
date Wed Jul 08 15:50:51 2009 +0000 (2009-07-08)
parents
children dd1b57f565a1
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/coreutils-file-special/receipt	Wed Jul 08 15:50:51 2009 +0000
     1.3 @@ -0,0 +1,56 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="coreutils-file-special"
     1.7 +VERSION="7.4"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="GNU utilities that work with special file types."
    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/ln $fs/bin
    1.25 +	cp -a $_pkg/usr/bin/mkdir $fs/bin
    1.26 +	cp -a $_pkg/usr/bin/mknod $fs/bin
    1.27 +	cp -a $_pkg/usr/bin/rmdir $fs/bin
    1.28 +
    1.29 +	mkdir -p $fs/usr/bin
    1.30 +	cp -a $_pkg/usr/bin/link $fs/usr/bin
    1.31 +	cp -a $_pkg/usr/bin/mkfifo $fs/usr/bin
    1.32 +	cp -a $_pkg/usr/bin/mktemp $fs/usr/bin
    1.33 +	cp -a $_pkg/usr/bin/readlink $fs/usr/bin
    1.34 +	cp -a $_pkg/usr/bin/unlink $fs/usr/bin
    1.35 +}
    1.36 +
    1.37 +# Pre and post install commands for Tazpkg.
    1.38 +# We must remove all Busybox symlink before installing.
    1.39 +#
    1.40 +pre_install()
    1.41 +{
    1.42 +	local root
    1.43 +	root=$1
    1.44 +	echo "Processing pre-install commands..."
    1.45 +	echo -n "Removing all Busybox replaced utils... "
    1.46 +	rm -f $root/bin/ln $root/bin/mkdir $root/bin/mknod $root/bin/rmdir
    1.47 +	rm -f $root/usr/bin/mkfifo $root/usr/bin/readlink
    1.48 +	status
    1.49 +}
    1.50 +
    1.51 +post_remove()
    1.52 +{
    1.53 +	ln -s /bin/busybox /bin/ln
    1.54 +	ln -s /bin/busybox /bin/mkdir
    1.55 +	ln -s /bin/busybox /bin/mknod
    1.56 +	ln -s /bin/busybox /bin/rmdir
    1.57 +	ln -s /bin/busybox /usr/bin/mkfifo
    1.58 +	ln -s /bin/busybox /usr/bin/readlink
    1.59 +}