wok view util-linux-eject/receipt @ 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
children 69d061d983f5
line source
1 # SliTaz package receipt.
3 PACKAGE="util-linux-eject"
4 VERSION="2.24"
5 CATEGORY="base-system"
6 SHORT_DESC="The eject utility from Util linux NG."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WANTED="util-linux"
10 WEB_SITE="http://kernel.org/~kzak/util-linux/"
11 HOST_ARCH="i486 arm"
13 DEPENDS="glibc-base"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/usr/bin
19 cp -a $install/usr/bin/eject $fs/usr/bin
20 }
22 # Remove old package
23 post_install()
24 {
25 if [ -d "$INSTALLED/util-linux-eject" ]; then
26 echo "Removing old: util-linux-eject"
27 rm -rf $INSTALLED/util-linux-eject
28 fi
29 }
31 # Overlap busybox
32 pre_install()
33 {
34 rm -f $root/usr/bin/eject
35 }
37 post_remove()
38 {
39 cd $root/usr/bin
40 ln -s ../../bin/busybox eject
41 }