wok view e2fsprogs/receipt @ rev 20215

virtualbox-ose: force host arch to i486
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 24 16:34:05 2018 +0100 (2018-02-24)
parents 3cf3117b4746
children 487819bf5549
line source
1 # SliTaz package receipt.
3 PACKAGE="e2fsprogs"
4 VERSION="1.43.9"
5 CATEGORY="base-system"
6 SHORT_DESC="Filesystem utilities for use with ext2 and ext3 (without fsck*)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://e2fsprogs.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="libcomerr util-linux-blkid util-linux-uuid"
15 BUILD_DEPENDS="texinfo util-linux-blkid-dev util-linux-uuid-dev"
17 # Handle cross compilation.
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="" ;;
20 esac
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 mkdir ../build && cd ../build
26 $src/configure \
27 --prefix=/usr \
28 --with-root-prefix="" \
29 --enable-elf-shlibs \
30 --sysconfdir=/etc \
31 $CONFIGURE_ARGS
32 make && make install &&
33 make install-libs
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
40 cp -a $install/sbin $fs
41 cp -a $install/lib $fs
42 cp -a $install/etc $fs
43 cp -a $install/usr/bin $fs/usr
44 cp -a $install/usr/sbin $fs/usr
45 ( cd $fs ; for i in lib/*.so.?; do ln -s /$i usr/$i ; done )
46 cat $stuff/*.files-list | while read file; do
47 rm -f ${fs}$file
48 done
49 # Remove fsck provided by Busybox.
50 rm $fs/sbin/fsck*
51 }
53 # Overlap busybox
54 pre_install()
55 {
56 rm -f $root/sbin/findfs
57 rm -f $root/sbin/tune2fs
58 }
60 post_remove()
61 {
62 ln -s /bin/busybox $root/sbin/findfs
63 ln -s /bin/busybox $root/sbin/tune2fs
64 }