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