wok-current annotate util-linux-blkid/receipt @ rev 12481
Rename linux-util-ng to util-linux in all packages
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 23 16:30:27 2012 +0200 (2012-04-23) |
parents | d35ad056f90e |
children | 64e7fff3f73c |
rev | line source |
---|---|
pankso@12480 | 1 # SliTaz package receipt. |
pankso@12480 | 2 |
pankso@12480 | 3 PACKAGE="util-linux-blkid" |
pankso@12480 | 4 VERSION="2.21.1" |
pankso@12480 | 5 CATEGORY="base-system" |
pankso@12480 | 6 SHORT_DESC="The blkid utility and library from Util linux NG." |
pankso@12480 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@12480 | 8 DEPENDS="glibc-base util-linux-uuid" |
pankso@12480 | 9 WANTED="util-linux" |
pankso@12480 | 10 WEB_SITE="http://kernel.org/~kzak/util-linux/" |
pankso@12480 | 11 |
pankso@12480 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12480 | 13 genpkg_rules() |
pankso@12480 | 14 { |
pankso@12480 | 15 mkdir -p $fs/lib $fs/sbin $fs/bin $fs/usr/lib |
pankso@12480 | 16 cp -a $install/sbin/blkid $fs/sbin |
pankso@12480 | 17 cp -a $install/bin/lsblk $fs/bin |
pankso@12480 | 18 cp -a $install/lib/libblkid.so* $fs/lib |
pankso@12480 | 19 cp -a $install/usr/lib/libblkid.so* $fs/usr/lib |
pankso@12480 | 20 } |
pankso@12480 | 21 |
pankso@12481 | 22 # Remove old package |
pankso@12481 | 23 post_install() |
pankso@12481 | 24 { |
pankso@12481 | 25 if [ -d "/var/lib/tazpkg/installed/util-linux-ng-blkid" ]; then |
pankso@12481 | 26 echo "Removing old: util-linux-ng-blkid" |
pankso@12481 | 27 yes | tazpkg -r util-linux-ng-blkid |
pankso@12481 | 28 fi |
pankso@12481 | 29 } |
pankso@12481 | 30 |
pankso@12480 | 31 # Overlap busybox |
pankso@12480 | 32 pre_install() |
pankso@12480 | 33 { |
pankso@12481 | 34 [ -d "$INSTALLED/util-linux-ng-blkid" ] && yes | tazpkg -r util-linux-ng-blkid |
pankso@12480 | 35 rm -f $1/sbin/blkid |
pankso@12480 | 36 } |
pankso@12480 | 37 |
pankso@12480 | 38 post_remove() |
pankso@12480 | 39 { |
pankso@12480 | 40 ln -s /bin/busybox /sbin/blkid |
pankso@12480 | 41 } |