wok rev 15714

Add util-linux-eject
author Richard Dunbar <mojo@slitaz.org>
date Tue Dec 24 22:10:59 2013 +0000 (2013-12-24)
parents 9d9921e751e8
children f4f1a0089c2d
files util-linux-eject/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/util-linux-eject/receipt	Tue Dec 24 22:10:59 2013 +0000
     1.3 @@ -0,0 +1,41 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="util-linux-eject"
     1.7 +VERSION="2.24"
     1.8 +CATEGORY="base-system"
     1.9 +SHORT_DESC="The eject utility from Util linux NG."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +WANTED="util-linux"
    1.13 +WEB_SITE="http://kernel.org/~kzak/util-linux/"
    1.14 +HOST_ARCH="i486 arm"
    1.15 +
    1.16 +DEPENDS="glibc-base"
    1.17 +
    1.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.19 +genpkg_rules()
    1.20 +{
    1.21 +	mkdir -p $fs/usr/bin
    1.22 +	cp -a $install/usr/bin/eject $fs/usr/bin
    1.23 +}
    1.24 +
    1.25 +# Remove old package
    1.26 +post_install()
    1.27 +{
    1.28 +	if [ -d "$INSTALLED/util-linux-eject" ]; then
    1.29 +		echo "Removing old: util-linux-eject"
    1.30 +		rm -rf $INSTALLED/util-linux-eject
    1.31 +	fi
    1.32 +}
    1.33 +
    1.34 +# Overlap busybox
    1.35 +pre_install()
    1.36 +{
    1.37 +	rm -f $root/usr/bin/eject
    1.38 +}
    1.39 +
    1.40 +post_remove()
    1.41 +{
    1.42 +	cd $root/usr/bin
    1.43 +	ln -s ../../bin/busybox eject
    1.44 +}