wok annotate e2fsprogs/receipt @ rev 25680
updated gnu-efi (3.0.14 -> 3.0.17)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 18 18:46:02 2024 +0100 (5 months ago) |
parents | 095836df71b7 |
children |
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" |
pascal@25460 | 9 WEB_SITE="https://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@24326 | 25 # What is the latest version available today? |
pascal@24068 | 26 current_version() |
pascal@24068 | 27 { |
pascal@24068 | 28 wget -O - https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git 2>/dev/null | \ |
pascal@24326 | 29 sed '1,/Download/d;/h=v/!d;s|.*h=v||;s|.>.*||;q' |
pascal@24068 | 30 } |
pascal@24068 | 31 |
pankso@5 | 32 # Rules to configure and make the package. |
pankso@5 | 33 compile_rules() |
pankso@5 | 34 { |
mojo@21141 | 35 # Do not use 64-bit feature by default on ext4 because syslinux and grub4dos-linux |
mojo@21141 | 36 # bootloaders used by the slitaz-installer(tazinst) will fail to boot. |
mojo@21141 | 37 # Add "auto_64-bit_support = 1" to enable 64-bit if the number of blocks for the file system |
mojo@21141 | 38 # require the feature to be enabled. |
mojo@21141 | 39 zcat $stuff/e2fsprogs.no.64bit.by.default.diff.gz | patch -p1 || exit 1 |
mojo@21141 | 40 |
pascal@20971 | 41 sed -i 's|\$ac_MKDIR_P&|mkdir -p\&|' configure |
Hans-G?nter@22744 | 42 |
Hans-G?nter@22744 | 43 mkdir ../build && |
Hans-G?nter@22744 | 44 cd ../build && |
Hans-G?nter@22744 | 45 $src/configure \ |
Hans-G?nter@22744 | 46 --prefix=/usr \ |
Hans-G?nter@22744 | 47 --with-root-prefix="" \ |
Hans-G?nter@22744 | 48 --enable-elf-shlibs \ |
Hans-G?nter@22744 | 49 --sysconfdir=/etc \ |
slaxemulator@10301 | 50 $CONFIGURE_ARGS |
Hans-G?nter@22744 | 51 make && |
Hans-G?nter@22744 | 52 make install && |
slaxemulator@9684 | 53 make install-libs |
pankso@5 | 54 } |
pankso@5 | 55 |
pankso@5 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5 | 57 genpkg_rules() |
pankso@5 | 58 { |
pankso@12854 | 59 mkdir -p $fs/usr/lib |
Hans-G?nter@22744 | 60 |
Hans-G?nter@22744 | 61 cp -a $install/sbin $fs |
Hans-G?nter@22744 | 62 cp -a $install/lib $fs |
Hans-G?nter@22744 | 63 cp -a $install/etc $fs |
Hans-G?nter@22744 | 64 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22744 | 65 cp -a $install/usr/sbin $fs/usr |
pascal@20199 | 66 ( cd $fs ; for i in lib/*.so.?; do ln -s /$i usr/$i ; done ) |
Hans-G?nter@22744 | 67 cat $stuff/*.files-list | while read file |
Hans-G?nter@22744 | 68 do |
pankso@12854 | 69 rm -f ${fs}$file |
Hans-G?nter@22744 | 70 done |
Hans-G?nter@22744 | 71 |
pankso@12854 | 72 # Remove fsck provided by Busybox. |
pascal@20198 | 73 rm $fs/sbin/fsck* |
pankso@5 | 74 } |
pascal@8876 | 75 |
pascal@8876 | 76 # Overlap busybox |
pascal@8876 | 77 pre_install() |
pascal@8876 | 78 { |
pankso@12854 | 79 rm -f $root/sbin/findfs |
pankso@12854 | 80 rm -f $root/sbin/tune2fs |
pascal@8876 | 81 } |
pascal@8876 | 82 |
pascal@8876 | 83 post_remove() |
pascal@8876 | 84 { |
pankso@12854 | 85 ln -s /bin/busybox $root/sbin/findfs |
pankso@12854 | 86 ln -s /bin/busybox $root/sbin/tune2fs |
pascal@8876 | 87 } |