wok-current annotate e2fsprogs/receipt @ rev 24068

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