wok-next view e2fsprogs/receipt @ rev 16667
Add mlvpn
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 14 11:22:33 2014 +0000 (2014-05-14) |
parents | 80975bced006 |
children | 6c48090ad397 |
line source
1 # SliTaz package receipt.
3 PACKAGE="e2fsprogs"
4 VERSION="1.42.5"
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"
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 cd $src
26 mkdir ../build && cd ../build
27 $src/configure \
28 --prefix=/usr \
29 --with-root-prefix="" \
30 --enable-elf-shlibs \
31 --sysconfdir=/etc \
32 $CONFIGURE_ARGS
33 make && make install &&
34 make install-libs
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
41 cp -a $install/sbin $fs
42 cp -a $install/lib $fs
43 cp -a $install/etc $fs
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/sbin $fs/usr
46 cp -a $install/usr/lib/*.so $fs/usr/lib
47 cat $stuff/*.files-list | while read file; do
48 rm -f ${fs}$file
49 done
50 # Remove fsck provided by Busybox.
51 rm $fs/sbin/fsck* $fs/sbin/blkid
52 # Remove blkid provided by util-linux.
53 rm $fs/lib/libblkid* $fs/usr/lib/libblkid*
54 # Remove uuid files provided by util-linux.
55 rm $fs/usr/sbin/uuidd $fs/usr/bin/uuidgen
56 rm $fs/lib/libuuid* $fs/usr/lib/libuuid*
57 }
59 # Overlap busybox
60 pre_install()
61 {
62 rm -f $root/sbin/findfs
63 rm -f $root/sbin/tune2fs
64 }
66 post_remove()
67 {
68 ln -s /bin/busybox $root/sbin/findfs
69 ln -s /bin/busybox $root/sbin/tune2fs
70 }