wok-6.x annotate e2fsprogs/receipt @ rev 12900

Up get-skype (1.0.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 28 12:22:38 2012 +0200 (2012-05-28)
parents 2662eed28d15
children 64e7fff3f73c
rev   line source
pankso@5 1 # SliTaz package receipt.
pankso@5 2
pankso@5 3 PACKAGE="e2fsprogs"
pankso@12854 4 VERSION="1.42.3"
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"
pankso@5 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@5 9 WEB_SITE="http://e2fsprogs.sourceforge.net/"
pankso@5 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@12854 11 HOST_ARCH="i486 arm"
pankso@12854 12
pascal@12634 13 DEPENDS="libcomerr util-linux-blkid util-linux-uuid"
pankso@5 14
pankso@12854 15 # Handle arch installation
pankso@12854 16 case "$SLITAZ_ARCH" in
pankso@12854 17 arm) DEPENDS="libcomerr" ;;
pankso@12854 18 esac
pankso@12854 19
pankso@5 20 # Rules to configure and make the package.
pankso@5 21 compile_rules()
pankso@5 22 {
pankso@5 23 cd $src
pankso@12854 24 mkdir ../build && cd ../build
pankso@12854 25 $src/configure \
pankso@12 26 --prefix=/usr \
pankso@12 27 --with-root-prefix="" \
pankso@12 28 --enable-elf-shlibs \
slaxemulator@10301 29 --sysconfdir=/etc \
slaxemulator@10301 30 $CONFIGURE_ARGS
pankso@10304 31 make && make install &&
slaxemulator@9684 32 make install-libs
pankso@5 33 }
pankso@5 34
pankso@5 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@5 36 genpkg_rules()
pankso@5 37 {
pankso@12854 38 mkdir -p $fs/usr/lib
pankso@12854 39 cp -a $install/sbin $fs
pankso@12854 40 cp -a $install/lib $fs
pankso@12854 41 cp -a $install/etc $fs
pankso@12854 42 cp -a $install/usr/bin $fs/usr
pankso@12854 43 cp -a $install/usr/sbin $fs/usr
pankso@12854 44 cp -a $install/usr/lib/*.so $fs/usr/lib
pankso@10304 45 cat $stuff/*.files-list | while read file; do
pankso@12854 46 rm -f ${fs}$file
pascal@1163 47 done
pankso@12854 48 # Remove fsck provided by Busybox.
pankso@3105 49 rm $fs/sbin/fsck* $fs/sbin/blkid
pankso@12854 50 # Package util-linux dont cross actually, keep uuid/blkid libs.
pankso@12854 51 case "$ARCH" in
pankso@12854 52 arm) return 0 ;;
pankso@12854 53 esac
pankso@12854 54 # Remove blkid provided by util-linux.
pankso@3105 55 rm $fs/lib/libblkid* $fs/usr/lib/libblkid*
pankso@12481 56 # Remove uuid files provided by util-linux.
pankso@4051 57 rm $fs/usr/sbin/uuidd $fs/usr/bin/uuidgen
pankso@4051 58 rm $fs/lib/libuuid* $fs/usr/lib/libuuid*
pankso@5 59 }
pascal@8876 60
pascal@8876 61 # Overlap busybox
pascal@8876 62 pre_install()
pascal@8876 63 {
pankso@12854 64 rm -f $root/sbin/findfs
pankso@12854 65 rm -f $root/sbin/tune2fs
pascal@8876 66 }
pascal@8876 67
pascal@8876 68 post_remove()
pascal@8876 69 {
pankso@12854 70 ln -s /bin/busybox $root/sbin/findfs
pankso@12854 71 ln -s /bin/busybox $root/sbin/tune2fs
pascal@8876 72 }