wok annotate e2fsprogs/receipt @ rev 10301
e2fsprogs: Add $CONFIGURE_ARGS.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat May 21 19:05:09 2011 +0000 (2011-05-21) |
parents | d3648bd9512f |
children | 4c752152fba2 |
rev | line source |
---|---|
pankso@5 | 1 # SliTaz package receipt. |
pankso@5 | 2 |
pankso@5 | 3 PACKAGE="e2fsprogs" |
slaxemulator@7783 | 4 VERSION="1.41.14" |
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" |
pankso@5 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@5 | 9 WEB_SITE="http://e2fsprogs.sourceforge.net/" |
pankso@5 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@4051 | 11 DEPENDS="libcomerr util-linux-ng-blkid util-linux-ng-uuid" |
pankso@5 | 12 |
pankso@5 | 13 # Rules to configure and make the package. |
pankso@5 | 14 compile_rules() |
pankso@5 | 15 { |
pankso@5 | 16 cd $src |
pankso@12 | 17 ./configure \ |
pankso@12 | 18 --prefix=/usr \ |
pankso@12 | 19 --with-root-prefix="" \ |
pankso@12 | 20 --enable-elf-shlibs \ |
slaxemulator@10301 | 21 --sysconfdir=/etc \ |
slaxemulator@10301 | 22 $CONFIGURE_ARGS |
pankso@5 | 23 make |
slaxemulator@9684 | 24 make install |
slaxemulator@9684 | 25 make install-libs |
pankso@5 | 26 } |
pankso@5 | 27 |
pankso@5 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@5 | 29 genpkg_rules() |
pankso@5 | 30 { |
pankso@269 | 31 mkdir -p $fs/usr/lib $fs/usr/share/locale |
pankso@5 | 32 cp -a $_pkg/sbin $fs |
pankso@5 | 33 cp -a $_pkg/lib $fs |
pankso@269 | 34 cp -a $_pkg/etc $fs |
pankso@5 | 35 cp -a $_pkg/usr/bin $fs/usr |
pankso@5 | 36 cp -a $_pkg/usr/sbin $fs/usr |
erjo@10138 | 37 cp -a $_pkg/usr/lib/*.so $fs/usr/lib |
pascal@1163 | 38 cat $src/*.files-list | while read file; do |
pascal@1632 | 39 rm -f $fs$file |
pascal@1163 | 40 done |
pankso@3105 | 41 # Remove fsck provided by Busybox and blkid by util-linux-ng. |
pankso@3105 | 42 rm $fs/sbin/fsck* $fs/sbin/blkid |
pankso@3105 | 43 rm $fs/lib/libblkid* $fs/usr/lib/libblkid* |
pankso@4051 | 44 # Remove uuid files provided by util-linux-ng. |
pankso@4051 | 45 rm $fs/usr/sbin/uuidd $fs/usr/bin/uuidgen |
pankso@4051 | 46 rm $fs/lib/libuuid* $fs/usr/lib/libuuid* |
pankso@5 | 47 } |
pascal@8876 | 48 |
pascal@8876 | 49 # Overlap busybox |
pascal@8876 | 50 pre_install() |
pascal@8876 | 51 { |
pascal@8876 | 52 rm -f $1/sbin/findfs |
pascal@8876 | 53 rm -f $1/sbin/tune2fs |
pascal@8876 | 54 } |
pascal@8876 | 55 |
pascal@8876 | 56 post_remove() |
pascal@8876 | 57 { |
slaxemulator@9684 | 58 ln -s /bin/busybox $1/sbin/findfs |
slaxemulator@9684 | 59 ln -s /bin/busybox $1/sbin/tune2fs |
pascal@8876 | 60 } |