wok-next annotate e2fsprogs/receipt @ rev 19702

unionfs-fuse: do not define function twice (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 26 12:04:09 2017 +0200 (2017-04-26)
parents 6b0977689017
children 9278a60d6895
rev   line source
pankso@5 1 # SliTaz package receipt.
pankso@5 2
pankso@5 3 PACKAGE="e2fsprogs"
al@19577 4 VERSION="1.43.1"
pankso@271 5 CATEGORY="base-system"
pankso@269 6 SHORT_DESC="Filesystem utilities for use with ext2 and ext3 (without fsck*)."
pankso@5 7 MAINTAINER="pankso@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
pankso@5 9 WEB_SITE="http://e2fsprogs.sourceforge.net/"
pankso@12854 10 HOST_ARCH="i486 arm"
pankso@12854 11
al@19577 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@19577 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
al@19577 14
pascal@12634 15 DEPENDS="libcomerr util-linux-blkid util-linux-uuid"
al@19577 16 BUILD_DEPENDS="util-linux-uuid-dev util-linux-blkid-dev gettext attr-dev \
al@19577 17 acl-dev texinfo"
al@19577 18 SPLIT="libcomerr libcomerr-dev e2fsprogs-dev"
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
pankso@5 25 # Rules to configure and make the package.
pankso@5 26 compile_rules()
pankso@5 27 {
al@19577 28 sed -i -e 's:\[\.-\]::' tests/filter.sed
pankso@12854 29 mkdir ../build && cd ../build
al@19577 30
pankso@12854 31 $src/configure \
al@19577 32 --bindir=/bin \
al@19577 33 --sysconfdir=/etc \
pankso@12 34 --with-root-prefix="" \
pankso@12 35 --enable-elf-shlibs \
al@19577 36 --disable-libblkid \
al@19577 37 --disable-libuuid \
al@19577 38 --disable-uuidd \
al@19577 39 --disable-fsck \
al@19577 40 $CONFIGURE_ARGS &&
al@19577 41 make && make install && make install-libs
al@19577 42
al@19577 43 for i in libcom_err libe2p libext2fs libss; do
al@19577 44 chmod u+w $install/usr/lib/$i.a
al@19577 45 done
al@19577 46
al@19577 47 # Make .info usable
al@19577 48 gunzip $install/usr/share/info/libext2fs.info.gz
al@19577 49 install-info --dir-file=$install/usr/share/info/dir \
al@19577 50 $install/usr/share/info/libext2fs.info
al@19577 51
al@19577 52 # Additional documentation
al@19577 53 makeinfo -o $src/doc/com_err.info $src/lib/et/com_err.texinfo
al@19577 54 install -m644 $src/doc/com_err.info $install/usr/share/info
al@19577 55 install-info --dir-file=$install/usr/share/info/dir \
al@19577 56 $install/usr/share/info/com_err.info
al@19577 57
al@19577 58 # Remove illegal symbol '\b'
al@19577 59 sed -i 's|\\b||' $src/po/de.po
al@19577 60 msgfmt $src/po/de.po -o $src/po/de.gmo
pankso@5 61 }
pankso@5 62
pankso@5 63 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@5 64 genpkg_rules()
pankso@5 65 {
al@19577 66 cook_copy_folders bin sbin etc
al@19577 67 cook_copy_files *.so*
al@19577 68 # Split -> libcomerr
al@19577 69 find $fs -name 'libcom_err*' -delete
pankso@12854 70 # Remove fsck provided by Busybox.
al@19577 71 rm $fs/sbin/fsck*
pankso@5 72 }
pascal@8876 73
pascal@8876 74 # Overlap busybox
pascal@8876 75 pre_install()
pascal@8876 76 {
al@19577 77 rm -f $1/sbin/tune2fs
pascal@8876 78 }