wok-6.x view e2fsprogs/receipt @ rev 10301

e2fsprogs: Add $CONFIGURE_ARGS.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat May 21 19:05:09 2011 +0000 (2011-05-21)
parents d3648bd9512f
children 4c752152fba2
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 $CONFIGURE_ARGS
23 make
24 make install
25 make install-libs
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib $fs/usr/share/locale
32 cp -a $_pkg/sbin $fs
33 cp -a $_pkg/lib $fs
34 cp -a $_pkg/etc $fs
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/sbin $fs/usr
37 cp -a $_pkg/usr/lib/*.so $fs/usr/lib
38 cat $src/*.files-list | while read file; do
39 rm -f $fs$file
40 done
41 # Remove fsck provided by Busybox and blkid by util-linux-ng.
42 rm $fs/sbin/fsck* $fs/sbin/blkid
43 rm $fs/lib/libblkid* $fs/usr/lib/libblkid*
44 # Remove uuid files provided by util-linux-ng.
45 rm $fs/usr/sbin/uuidd $fs/usr/bin/uuidgen
46 rm $fs/lib/libuuid* $fs/usr/lib/libuuid*
47 }
49 # Overlap busybox
50 pre_install()
51 {
52 rm -f $1/sbin/findfs
53 rm -f $1/sbin/tune2fs
54 }
56 post_remove()
57 {
58 ln -s /bin/busybox $1/sbin/findfs
59 ln -s /bin/busybox $1/sbin/tune2fs
60 }