wok-current view e2fsprogs/receipt @ rev 9902
parted: fix bdeps
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 17 13:38:44 2011 +0200 (2011-05-17) |
parents | 21b80c68de86 |
children | d3648bd9512f |
line source
1 # SliTaz package receipt.
3 PACKAGE="e2fsprogs"
4 VERSION="1.41.14"
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 DEPENDS="libcomerr util-linux-ng-blkid util-linux-ng-uuid"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 ./configure \
18 --prefix=/usr \
19 --with-root-prefix="" \
20 --enable-elf-shlibs \
21 --sysconfdir=/etc
22 make
23 make install
24 make install-libs
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/lib $fs/usr/share/locale
31 cp -a $_pkg/sbin $fs
32 cp -a $_pkg/lib $fs
33 cp -a $_pkg/etc $fs
34 cp -a $_pkg/usr/bin $fs/usr
35 cp -a $_pkg/usr/sbin $fs/usr
36 cp -ad $_pkg/usr/lib/*.so $fs/usr/lib
37 cat $src/*.files-list | while read file; do
38 rm -f $fs$file
39 done
40 # Remove fsck provided by Busybox and blkid by util-linux-ng.
41 rm $fs/sbin/fsck* $fs/sbin/blkid
42 rm $fs/lib/libblkid* $fs/usr/lib/libblkid*
43 # Remove uuid files provided by util-linux-ng.
44 rm $fs/usr/sbin/uuidd $fs/usr/bin/uuidgen
45 rm $fs/lib/libuuid* $fs/usr/lib/libuuid*
46 }
48 # Overlap busybox
49 pre_install()
50 {
51 rm -f $1/sbin/findfs
52 rm -f $1/sbin/tune2fs
53 }
55 post_remove()
56 {
57 ln -s /bin/busybox $1/sbin/findfs
58 ln -s /bin/busybox $1/sbin/tune2fs
59 }