wok-next annotate e2fsprogs/receipt @ rev 16091
Up xine-lib (1.2.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 16 10:04:50 2014 +0000 (2014-03-16) |
parents | 80975bced006 |
children | 6c48090ad397 |
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@15943 | 17 # Handle cross compilation. |
pankso@15943 | 18 case "$ARCH" in |
pankso@15943 | 19 arm) BUILD_DEPENDS="" ;; |
pankso@15943 | 20 esac |
pankso@15943 | 21 |
pankso@5 | 22 # Rules to configure and make the package. |
pankso@5 | 23 compile_rules() |
pankso@5 | 24 { |
pankso@5 | 25 cd $src |
pankso@12854 | 26 mkdir ../build && cd ../build |
pankso@12854 | 27 $src/configure \ |
pankso@12 | 28 --prefix=/usr \ |
pankso@12 | 29 --with-root-prefix="" \ |
pankso@12 | 30 --enable-elf-shlibs \ |
slaxemulator@10301 | 31 --sysconfdir=/etc \ |
slaxemulator@10301 | 32 $CONFIGURE_ARGS |
pankso@10304 | 33 make && make install && |
slaxemulator@9684 | 34 make install-libs |
pankso@5 | 35 } |
pankso@5 | 36 |
pankso@5 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5 | 38 genpkg_rules() |
pankso@5 | 39 { |
pankso@12854 | 40 mkdir -p $fs/usr/lib |
pankso@12854 | 41 cp -a $install/sbin $fs |
pankso@12854 | 42 cp -a $install/lib $fs |
pankso@12854 | 43 cp -a $install/etc $fs |
pankso@12854 | 44 cp -a $install/usr/bin $fs/usr |
pankso@12854 | 45 cp -a $install/usr/sbin $fs/usr |
pankso@12854 | 46 cp -a $install/usr/lib/*.so $fs/usr/lib |
pankso@10304 | 47 cat $stuff/*.files-list | while read file; do |
pankso@12854 | 48 rm -f ${fs}$file |
pascal@1163 | 49 done |
pankso@12854 | 50 # Remove fsck provided by Busybox. |
pankso@3105 | 51 rm $fs/sbin/fsck* $fs/sbin/blkid |
pankso@12854 | 52 # Remove blkid provided by util-linux. |
pankso@3105 | 53 rm $fs/lib/libblkid* $fs/usr/lib/libblkid* |
pankso@12481 | 54 # Remove uuid files provided by util-linux. |
pankso@4051 | 55 rm $fs/usr/sbin/uuidd $fs/usr/bin/uuidgen |
pankso@4051 | 56 rm $fs/lib/libuuid* $fs/usr/lib/libuuid* |
pankso@5 | 57 } |
pascal@8876 | 58 |
pascal@8876 | 59 # Overlap busybox |
pascal@8876 | 60 pre_install() |
pascal@8876 | 61 { |
pankso@12854 | 62 rm -f $root/sbin/findfs |
pankso@12854 | 63 rm -f $root/sbin/tune2fs |
pascal@8876 | 64 } |
pascal@8876 | 65 |
pascal@8876 | 66 post_remove() |
pascal@8876 | 67 { |
pankso@12854 | 68 ln -s /bin/busybox $root/sbin/findfs |
pankso@12854 | 69 ln -s /bin/busybox $root/sbin/tune2fs |
pascal@8876 | 70 } |