wok-next annotate e2fsprogs/receipt @ rev 20534
Clean default configure options when site script used.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 30 19:31:50 2018 +0300 (2018-03-30) |
parents | d43bf7aae921 |
children | 68405ac5fe8a |
rev | line source |
---|---|
al@19741 | 1 # SliTaz package receipt v2. |
pankso@5 | 2 |
pankso@5 | 3 PACKAGE="e2fsprogs" |
al@20436 | 4 VERSION="1.43.5" |
pankso@271 | 5 CATEGORY="base-system" |
al@19741 | 6 SHORT_DESC="Filesystem utilities for use with ext2 and ext3" |
pankso@5 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
pankso@5 | 9 WEB_SITE="http://e2fsprogs.sourceforge.net/" |
al@20436 | 10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/e2fsprogs.html" |
pankso@12854 | 11 |
al@19577 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19577 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
al@19577 | 14 |
al@20436 | 15 BUILD_DEPENDS_arm=" " |
al@19577 | 16 BUILD_DEPENDS="util-linux-uuid-dev util-linux-blkid-dev gettext attr-dev \ |
al@19577 | 17 acl-dev texinfo" |
al@20436 | 18 SPLIT="libcomerr-dev e2fsprogs-dev e2fsprogs-fsck libcomerr e2fsprogs" |
pankso@15943 | 19 |
al@20436 | 20 compile_rules() { |
al@19577 | 21 sed -i -e 's:\[\.-\]::' tests/filter.sed |
al@20534 | 22 mkdir build |
al@20534 | 23 cd build |
al@19577 | 24 |
pankso@12854 | 25 $src/configure \ |
al@19577 | 26 --bindir=/bin \ |
pankso@12 | 27 --with-root-prefix="" \ |
pankso@12 | 28 --enable-elf-shlibs \ |
al@19577 | 29 --disable-libblkid \ |
al@19577 | 30 --disable-libuuid \ |
al@19577 | 31 --disable-uuidd \ |
al@19577 | 32 --disable-fsck \ |
al@19577 | 33 $CONFIGURE_ARGS && |
al@20534 | 34 make && |
al@20534 | 35 make install && |
al@20534 | 36 make install-libs || return 1 |
al@19577 | 37 |
al@19577 | 38 for i in libcom_err libe2p libext2fs libss; do |
al@19577 | 39 chmod u+w $install/usr/lib/$i.a |
al@19577 | 40 done |
al@19577 | 41 |
al@19577 | 42 # Make .info usable |
al@19577 | 43 gunzip $install/usr/share/info/libext2fs.info.gz |
al@19577 | 44 install-info --dir-file=$install/usr/share/info/dir \ |
al@19577 | 45 $install/usr/share/info/libext2fs.info |
al@19577 | 46 |
al@19577 | 47 # Additional documentation |
al@20436 | 48 makeinfo -o $src/doc/com_err.info $src/lib/et/com_err.texinfo |
al@19577 | 49 install -m644 $src/doc/com_err.info $install/usr/share/info |
al@19577 | 50 install-info --dir-file=$install/usr/share/info/dir \ |
al@19577 | 51 $install/usr/share/info/com_err.info |
al@19577 | 52 |
al@19577 | 53 # Remove illegal symbol '\b' |
al@19577 | 54 sed -i 's|\\b||' $src/po/de.po |
al@19577 | 55 msgfmt $src/po/de.po -o $src/po/de.gmo |
pankso@5 | 56 } |
pankso@5 | 57 |
al@20436 | 58 genpkg_rules() { |
al@19741 | 59 case $PACKAGE in |
al@20436 | 60 libcomerr-dev) |
al@20436 | 61 copy libcom_err.a com_err.h com_err.pc |
al@20436 | 62 CAT="development|libcomerr development files" |
al@20513 | 63 DEPENDS=" " |
al@19741 | 64 ;; |
al@19741 | 65 e2fsprogs-dev) |
al@20436 | 66 copy @dev *.sed *.awk @rm |
al@20513 | 67 DEPENDS="libcomerr-dev" |
al@19741 | 68 ;; |
al@20436 | 69 e2fsprogs-fsck) |
al@20436 | 70 copy sbin/fsck.* |
al@20436 | 71 CAT="system-tools|fsck tools" |
al@20436 | 72 DEPENDS="e2fsprogs libcomerr util-linux-blkid util-linux-uuid" |
al@20436 | 73 ;; |
al@19741 | 74 libcomerr) |
al@19741 | 75 copy libcom_err.so* |
al@19741 | 76 CAT="base-system|libcomerr library" |
al@19741 | 77 DEPENDS=" " |
al@19741 | 78 ;; |
al@20436 | 79 e2fsprogs) |
al@20436 | 80 copy @std @rm |
al@20436 | 81 DEPENDS="libcomerr util-linux-blkid util-linux-uuid" |
al@20436 | 82 TAGS="LFS" |
al@19741 | 83 ;; |
al@19741 | 84 esac |
pankso@5 | 85 } |
pascal@8876 | 86 |
pascal@8876 | 87 # Overlap busybox |
al@20436 | 88 pre_install_e2fsprogs() { |
al@19577 | 89 rm -f $1/sbin/tune2fs |
pascal@8876 | 90 } |