wok-current annotate e2fsprogs/receipt @ rev 20354
Up e2fsprogs (1.44.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 09 16:13:52 2018 +0200 (2018-06-09) |
parents | 67a7322e0150 |
children | 3232bb723678 |
rev | line source |
---|---|
pankso@5 | 1 # SliTaz package receipt. |
pankso@5 | 2 |
pankso@5 | 3 PACKAGE="e2fsprogs" |
pascal@20354 | 4 VERSION="1.44.2" |
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@20197 | 15 BUILD_DEPENDS="texinfo util-linux-blkid-dev util-linux-uuid-dev" |
pankso@5 | 16 |
pankso@15943 | 17 # Handle cross compilation. |
pankso@15943 | 18 case "$ARCH" in |
pankso@15943 | 19 arm) BUILD_DEPENDS="" ;; |
pankso@15943 | 20 esac |
pankso@15943 | 21 |
pankso@5 | 22 # Rules to configure and make the package. |
pankso@5 | 23 compile_rules() |
pankso@5 | 24 { |
pankso@12854 | 25 mkdir ../build && cd ../build |
pankso@12854 | 26 $src/configure \ |
pankso@12 | 27 --prefix=/usr \ |
pankso@12 | 28 --with-root-prefix="" \ |
pankso@12 | 29 --enable-elf-shlibs \ |
slaxemulator@10301 | 30 --sysconfdir=/etc \ |
slaxemulator@10301 | 31 $CONFIGURE_ARGS |
pankso@10304 | 32 make && make install && |
slaxemulator@9684 | 33 make install-libs |
pankso@5 | 34 } |
pankso@5 | 35 |
pankso@5 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5 | 37 genpkg_rules() |
pankso@5 | 38 { |
pankso@12854 | 39 mkdir -p $fs/usr/lib |
pankso@12854 | 40 cp -a $install/sbin $fs |
pankso@12854 | 41 cp -a $install/lib $fs |
pankso@12854 | 42 cp -a $install/etc $fs |
pankso@12854 | 43 cp -a $install/usr/bin $fs/usr |
pankso@12854 | 44 cp -a $install/usr/sbin $fs/usr |
pascal@20199 | 45 ( cd $fs ; for i in lib/*.so.?; do ln -s /$i usr/$i ; done ) |
pankso@10304 | 46 cat $stuff/*.files-list | while read file; do |
pankso@12854 | 47 rm -f ${fs}$file |
pascal@1163 | 48 done |
pankso@12854 | 49 # Remove fsck provided by Busybox. |
pascal@20198 | 50 rm $fs/sbin/fsck* |
pankso@5 | 51 } |
pascal@8876 | 52 |
pascal@8876 | 53 # Overlap busybox |
pascal@8876 | 54 pre_install() |
pascal@8876 | 55 { |
pankso@12854 | 56 rm -f $root/sbin/findfs |
pankso@12854 | 57 rm -f $root/sbin/tune2fs |
pascal@8876 | 58 } |
pascal@8876 | 59 |
pascal@8876 | 60 post_remove() |
pascal@8876 | 61 { |
pankso@12854 | 62 ln -s /bin/busybox $root/sbin/findfs |
pankso@12854 | 63 ln -s /bin/busybox $root/sbin/tune2fs |
pascal@8876 | 64 } |