wok-next annotate e2fsprogs/receipt @ rev 20436
Update packages listed in the LFS book.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 21 19:48:17 2018 +0200 (2018-02-21) |
parents | 9278a60d6895 |
children | d43bf7aae921 |
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 |
pankso@12854 | 22 mkdir ../build && cd ../build |
al@19577 | 23 |
pankso@12854 | 24 $src/configure \ |
al@19577 | 25 --bindir=/bin \ |
al@19577 | 26 --sysconfdir=/etc \ |
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@20436 | 34 make && make install && make install-libs || return 1 |
al@19577 | 35 |
al@19577 | 36 for i in libcom_err libe2p libext2fs libss; do |
al@19577 | 37 chmod u+w $install/usr/lib/$i.a |
al@19577 | 38 done |
al@19577 | 39 |
al@19577 | 40 # Make .info usable |
al@19577 | 41 gunzip $install/usr/share/info/libext2fs.info.gz |
al@19577 | 42 install-info --dir-file=$install/usr/share/info/dir \ |
al@19577 | 43 $install/usr/share/info/libext2fs.info |
al@19577 | 44 |
al@19577 | 45 # Additional documentation |
al@20436 | 46 makeinfo -o $src/doc/com_err.info $src/lib/et/com_err.texinfo |
al@19577 | 47 install -m644 $src/doc/com_err.info $install/usr/share/info |
al@19577 | 48 install-info --dir-file=$install/usr/share/info/dir \ |
al@19577 | 49 $install/usr/share/info/com_err.info |
al@19577 | 50 |
al@19577 | 51 # Remove illegal symbol '\b' |
al@19577 | 52 sed -i 's|\\b||' $src/po/de.po |
al@19577 | 53 msgfmt $src/po/de.po -o $src/po/de.gmo |
pankso@5 | 54 } |
pankso@5 | 55 |
al@20436 | 56 genpkg_rules() { |
al@19741 | 57 case $PACKAGE in |
al@20436 | 58 libcomerr-dev) |
al@20436 | 59 copy libcom_err.a com_err.h com_err.pc |
al@20436 | 60 CAT="development|libcomerr development files" |
al@20436 | 61 DEPENDS="pkg-config" |
al@19741 | 62 ;; |
al@19741 | 63 e2fsprogs-dev) |
al@20436 | 64 copy @dev *.sed *.awk @rm |
al@19741 | 65 DEPENDS="libcomerr-dev pkg-config" |
al@19741 | 66 ;; |
al@20436 | 67 e2fsprogs-fsck) |
al@20436 | 68 copy sbin/fsck.* |
al@20436 | 69 CAT="system-tools|fsck tools" |
al@20436 | 70 DEPENDS="e2fsprogs libcomerr util-linux-blkid util-linux-uuid" |
al@20436 | 71 ;; |
al@19741 | 72 libcomerr) |
al@19741 | 73 copy libcom_err.so* |
al@19741 | 74 CAT="base-system|libcomerr library" |
al@19741 | 75 DEPENDS=" " |
al@19741 | 76 ;; |
al@20436 | 77 e2fsprogs) |
al@20436 | 78 copy @std @rm |
al@20436 | 79 DEPENDS="libcomerr util-linux-blkid util-linux-uuid" |
al@20436 | 80 TAGS="LFS" |
al@19741 | 81 ;; |
al@19741 | 82 esac |
pankso@5 | 83 } |
pascal@8876 | 84 |
pascal@8876 | 85 # Overlap busybox |
al@20436 | 86 pre_install_e2fsprogs() { |
al@19577 | 87 rm -f $1/sbin/tune2fs |
pascal@8876 | 88 } |