wok view e2fsprogs/receipt @ rev 12865
Up: awesome to 3.4.11.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu May 24 21:17:01 2012 +0000 (2012-05-24) |
parents | 2662eed28d15 |
children | 64e7fff3f73c |
line source
1 # SliTaz package receipt.
3 PACKAGE="e2fsprogs"
4 VERSION="1.42.3"
5 CATEGORY="base-system"
6 SHORT_DESC="Filesystem utilities for use with ext2 and ext3 (without fsck*)."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://e2fsprogs.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
11 HOST_ARCH="i486 arm"
13 DEPENDS="libcomerr util-linux-blkid util-linux-uuid"
15 # Handle arch installation
16 case "$SLITAZ_ARCH" in
17 arm) DEPENDS="libcomerr" ;;
18 esac
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 mkdir ../build && cd ../build
25 $src/configure \
26 --prefix=/usr \
27 --with-root-prefix="" \
28 --enable-elf-shlibs \
29 --sysconfdir=/etc \
30 $CONFIGURE_ARGS
31 make && make install &&
32 make install-libs
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
39 cp -a $install/sbin $fs
40 cp -a $install/lib $fs
41 cp -a $install/etc $fs
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/sbin $fs/usr
44 cp -a $install/usr/lib/*.so $fs/usr/lib
45 cat $stuff/*.files-list | while read file; do
46 rm -f ${fs}$file
47 done
48 # Remove fsck provided by Busybox.
49 rm $fs/sbin/fsck* $fs/sbin/blkid
50 # Package util-linux dont cross actually, keep uuid/blkid libs.
51 case "$ARCH" in
52 arm) return 0 ;;
53 esac
54 # Remove blkid provided by util-linux.
55 rm $fs/lib/libblkid* $fs/usr/lib/libblkid*
56 # Remove uuid files provided by util-linux.
57 rm $fs/usr/sbin/uuidd $fs/usr/bin/uuidgen
58 rm $fs/lib/libuuid* $fs/usr/lib/libuuid*
59 }
61 # Overlap busybox
62 pre_install()
63 {
64 rm -f $root/sbin/findfs
65 rm -f $root/sbin/tune2fs
66 }
68 post_remove()
69 {
70 ln -s /bin/busybox $root/sbin/findfs
71 ln -s /bin/busybox $root/sbin/tune2fs
72 }