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

Add some GPL2 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 21:12:16 2013 +0000 (2013-08-10)
parents cc7c36a61435
children 80975bced006
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"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 mkdir ../build && cd ../build
21 $src/configure \
22 --prefix=/usr \
23 --with-root-prefix="" \
24 --enable-elf-shlibs \
25 --sysconfdir=/etc \
26 $CONFIGURE_ARGS
27 make && make install &&
28 make install-libs
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib
35 cp -a $install/sbin $fs
36 cp -a $install/lib $fs
37 cp -a $install/etc $fs
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/sbin $fs/usr
40 cp -a $install/usr/lib/*.so $fs/usr/lib
41 cat $stuff/*.files-list | while read file; do
42 rm -f ${fs}$file
43 done
44 # Remove fsck provided by Busybox.
45 rm $fs/sbin/fsck* $fs/sbin/blkid
46 # Remove blkid provided by util-linux.
47 rm $fs/lib/libblkid* $fs/usr/lib/libblkid*
48 # Remove uuid files provided by util-linux.
49 rm $fs/usr/sbin/uuidd $fs/usr/bin/uuidgen
50 rm $fs/lib/libuuid* $fs/usr/lib/libuuid*
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 }