wok-current view e2fsprogs/receipt @ rev 24181
updated perl-berkeleydb (0.63 -> 0.64)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 13:39:16 2021 +0100 (2021-12-31) |
parents | 0f8e59b63cd4 |
children | 095836df71b7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="e2fsprogs"
4 VERSION="1.45.5"
5 CATEGORY="base-system"
6 SHORT_DESC="Filesystem utilities for use with ext2, ext3 and ext4 (without fsck*)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://e2fsprogs.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="libcomerr util-linux-blkid util-linux-uuid"
15 BUILD_DEPENDS="coreutils-operations texinfo util-linux-blkid-dev
16 util-linux-uuid-dev"
18 HOST_ARCH="i486 arm"
20 # Handle cross compilation.
21 case "$ARCH" in
22 arm) BUILD_DEPENDS="" ;;
23 esac
25 current_version()
26 {
27 wget -O - https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git 2>/dev/null | \
28 sed '1,/Download/d;s|.*h=v||;s|.>.*||;q'
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 # Do not use 64-bit feature by default on ext4 because syslinux and grub4dos-linux
35 # bootloaders used by the slitaz-installer(tazinst) will fail to boot.
36 # Add "auto_64-bit_support = 1" to enable 64-bit if the number of blocks for the file system
37 # require the feature to be enabled.
38 zcat $stuff/e2fsprogs.no.64bit.by.default.diff.gz | patch -p1 || exit 1
40 sed -i 's|\$ac_MKDIR_P&|mkdir -p\&|' configure
42 mkdir ../build &&
43 cd ../build &&
44 $src/configure \
45 --prefix=/usr \
46 --with-root-prefix="" \
47 --enable-elf-shlibs \
48 --sysconfdir=/etc \
49 $CONFIGURE_ARGS
50 make &&
51 make install &&
52 make install-libs
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr/lib
60 cp -a $install/sbin $fs
61 cp -a $install/lib $fs
62 cp -a $install/etc $fs
63 cp -a $install/usr/bin $fs/usr
64 cp -a $install/usr/sbin $fs/usr
65 ( cd $fs ; for i in lib/*.so.?; do ln -s /$i usr/$i ; done )
66 cat $stuff/*.files-list | while read file
67 do
68 rm -f ${fs}$file
69 done
71 # Remove fsck provided by Busybox.
72 rm $fs/sbin/fsck*
73 }
75 # Overlap busybox
76 pre_install()
77 {
78 rm -f $root/sbin/findfs
79 rm -f $root/sbin/tune2fs
80 }
82 post_remove()
83 {
84 ln -s /bin/busybox $root/sbin/findfs
85 ln -s /bin/busybox $root/sbin/tune2fs
86 }