wok-current annotate e2fsprogs/receipt @ rev 15006
e2fsprogs: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 11 09:31:26 2013 +0000 (2013-08-11) |
parents | 7896f0694ef6 |
children | 159df010240c |
rev | line source |
---|---|
pankso@5 | 1 # SliTaz package receipt. |
pankso@5 | 2 |
pankso@5 | 3 PACKAGE="e2fsprogs" |
pankso@13202 | 4 VERSION="1.42.5" |
pankso@271 | 5 CATEGORY="base-system" |
pankso@269 | 6 SHORT_DESC="Filesystem utilities for use with ext2 and ext3 (without fsck*)." |
pankso@5 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
pankso@5 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@5 | 10 WEB_SITE="http://e2fsprogs.sourceforge.net/" |
pankso@5 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@12854 | 12 HOST_ARCH="i486 arm" |
pankso@12854 | 13 |
pascal@12634 | 14 DEPENDS="libcomerr util-linux-blkid util-linux-uuid" |
pascal@15006 | 15 BUILD_DEPENDS="texinfo" |
pankso@5 | 16 |
pankso@5 | 17 # Rules to configure and make the package. |
pankso@5 | 18 compile_rules() |
pankso@5 | 19 { |
pankso@5 | 20 cd $src |
pankso@12854 | 21 mkdir ../build && cd ../build |
pankso@12854 | 22 $src/configure \ |
pankso@12 | 23 --prefix=/usr \ |
pankso@12 | 24 --with-root-prefix="" \ |
pankso@12 | 25 --enable-elf-shlibs \ |
slaxemulator@10301 | 26 --sysconfdir=/etc \ |
slaxemulator@10301 | 27 $CONFIGURE_ARGS |
pankso@10304 | 28 make && make install && |
slaxemulator@9684 | 29 make install-libs |
pankso@5 | 30 } |
pankso@5 | 31 |
pankso@5 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5 | 33 genpkg_rules() |
pankso@5 | 34 { |
pankso@12854 | 35 mkdir -p $fs/usr/lib |
pankso@12854 | 36 cp -a $install/sbin $fs |
pankso@12854 | 37 cp -a $install/lib $fs |
pankso@12854 | 38 cp -a $install/etc $fs |
pankso@12854 | 39 cp -a $install/usr/bin $fs/usr |
pankso@12854 | 40 cp -a $install/usr/sbin $fs/usr |
pankso@12854 | 41 cp -a $install/usr/lib/*.so $fs/usr/lib |
pankso@10304 | 42 cat $stuff/*.files-list | while read file; do |
pankso@12854 | 43 rm -f ${fs}$file |
pascal@1163 | 44 done |
pankso@12854 | 45 # Remove fsck provided by Busybox. |
pankso@3105 | 46 rm $fs/sbin/fsck* $fs/sbin/blkid |
pankso@12854 | 47 # Remove blkid provided by util-linux. |
pankso@3105 | 48 rm $fs/lib/libblkid* $fs/usr/lib/libblkid* |
pankso@12481 | 49 # Remove uuid files provided by util-linux. |
pankso@4051 | 50 rm $fs/usr/sbin/uuidd $fs/usr/bin/uuidgen |
pankso@4051 | 51 rm $fs/lib/libuuid* $fs/usr/lib/libuuid* |
pankso@5 | 52 } |
pascal@8876 | 53 |
pascal@8876 | 54 # Overlap busybox |
pascal@8876 | 55 pre_install() |
pascal@8876 | 56 { |
pankso@12854 | 57 rm -f $root/sbin/findfs |
pankso@12854 | 58 rm -f $root/sbin/tune2fs |
pascal@8876 | 59 } |
pascal@8876 | 60 |
pascal@8876 | 61 post_remove() |
pascal@8876 | 62 { |
pankso@12854 | 63 ln -s /bin/busybox $root/sbin/findfs |
pankso@12854 | 64 ln -s /bin/busybox $root/sbin/tune2fs |
pascal@8876 | 65 } |