wok view e2fsprogs/receipt @ rev 25460

Update sourceforge.net web_sites with https://
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 08:10:35 2022 +0000 (19 months ago)
parents 095836df71b7
children
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="https://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 # What is the latest version available today?
26 current_version()
27 {
28 wget -O - https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git 2>/dev/null | \
29 sed '1,/Download/d;/h=v/!d;s|.*h=v||;s|.>.*||;q'
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 # Do not use 64-bit feature by default on ext4 because syslinux and grub4dos-linux
36 # bootloaders used by the slitaz-installer(tazinst) will fail to boot.
37 # Add "auto_64-bit_support = 1" to enable 64-bit if the number of blocks for the file system
38 # require the feature to be enabled.
39 zcat $stuff/e2fsprogs.no.64bit.by.default.diff.gz | patch -p1 || exit 1
41 sed -i 's|\$ac_MKDIR_P&|mkdir -p\&|' configure
43 mkdir ../build &&
44 cd ../build &&
45 $src/configure \
46 --prefix=/usr \
47 --with-root-prefix="" \
48 --enable-elf-shlibs \
49 --sysconfdir=/etc \
50 $CONFIGURE_ARGS
51 make &&
52 make install &&
53 make install-libs
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/lib
61 cp -a $install/sbin $fs
62 cp -a $install/lib $fs
63 cp -a $install/etc $fs
64 cp -a $install/usr/bin $fs/usr
65 cp -a $install/usr/sbin $fs/usr
66 ( cd $fs ; for i in lib/*.so.?; do ln -s /$i usr/$i ; done )
67 cat $stuff/*.files-list | while read file
68 do
69 rm -f ${fs}$file
70 done
72 # Remove fsck provided by Busybox.
73 rm $fs/sbin/fsck*
74 }
76 # Overlap busybox
77 pre_install()
78 {
79 rm -f $root/sbin/findfs
80 rm -f $root/sbin/tune2fs
81 }
83 post_remove()
84 {
85 ln -s /bin/busybox $root/sbin/findfs
86 ln -s /bin/busybox $root/sbin/tune2fs
87 }