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