# HG changeset patch # User Richard Dunbar # Date 1387923059 0 # Node ID c3b198684af9bbc0f61d4e7476d8ffa73e716fe7 # Parent 9d9921e751e8250da7ad0e01b200c7f4b888d5e0 Add util-linux-eject diff -r 9d9921e751e8 -r c3b198684af9 util-linux-eject/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/util-linux-eject/receipt Tue Dec 24 22:10:59 2013 +0000 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="util-linux-eject" +VERSION="2.24" +CATEGORY="base-system" +SHORT_DESC="The eject utility from Util linux NG." +MAINTAINER="pankso@slitaz.org" +LICENSE="GPL2" +WANTED="util-linux" +WEB_SITE="http://kernel.org/~kzak/util-linux/" +HOST_ARCH="i486 arm" + +DEPENDS="glibc-base" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp -a $install/usr/bin/eject $fs/usr/bin +} + +# Remove old package +post_install() +{ + if [ -d "$INSTALLED/util-linux-eject" ]; then + echo "Removing old: util-linux-eject" + rm -rf $INSTALLED/util-linux-eject + fi +} + +# Overlap busybox +pre_install() +{ + rm -f $root/usr/bin/eject +} + +post_remove() +{ + cd $root/usr/bin + ln -s ../../bin/busybox eject +}