2016-02-24 01:27:23 +01:00
|
|
|
# Description: Utilities for handling the ext2,3 and 4 files system.
|
|
|
|
# URL: http://e2fsprogs.sourceforge.net/
|
|
|
|
# Maintainers: Ted Ts'o tytso at mit dot edu,tytso at alum dot mit dot edu
|
|
|
|
# Packagers: tnut at nutyx dot org
|
|
|
|
|
|
|
|
name=e2fsprogs
|
|
|
|
version=1.42.13
|
|
|
|
release=1
|
|
|
|
|
|
|
|
source=(http://prdownloads.sourceforge.net/$name/$name-$version.tar.gz)
|
|
|
|
|
2016-03-07 13:45:49 +01:00
|
|
|
#PKGMK_GROUPS=(devel man doc)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
build()
|
|
|
|
{
|
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
sed -e '/int.*old_desc_blocks/s/int/blk64_t/' \
|
|
|
|
-e '/if (old_desc_blocks/s/super->s_first_meta_bg/desc_blocks/' \
|
|
|
|
-i lib/ext2fs/closefs.c
|
|
|
|
|
|
|
|
mkdir -v build
|
|
|
|
cd build
|
|
|
|
LIBS=-L/tools/lib \
|
|
|
|
CFLAGS=-I/tools/include \
|
|
|
|
PKG_CONFIG_PATH=/tools/lib/pkgconfig \
|
|
|
|
../configure --prefix=/usr --with-root-prefix="" --libdir=/lib \
|
|
|
|
--bindir=/bin --sbindir=/sbin \
|
|
|
|
--enable-elf-shlibs --disable-libblkid --disable-libuuid --disable-uuidd \
|
|
|
|
--disable-fsck
|
|
|
|
make
|
|
|
|
# somes tests may fails
|
|
|
|
# make check||true
|
|
|
|
make DESTDIR=$PKG install install-libs || make -j1 DESTDIR=$PKG install install-libs
|
|
|
|
|
|
|
|
chmod -v u+w $PKG/lib/{libcom_err,libe2p,libext2fs,libss}.a
|
|
|
|
|
|
|
|
gunzip -v $PKG/usr/share/info/libext2fs.info.gz
|
|
|
|
|
|
|
|
makeinfo -o doc/com_err.info ../lib/et/com_err.texinfo
|
|
|
|
|
|
|
|
install -v -m644 doc/com_err.info $PKG/usr/share/info
|
|
|
|
|
|
|
|
rm -rf $PKG/usr/share/info/dir
|
|
|
|
|
|
|
|
mkdir $PKG/usr/lib
|
|
|
|
mv $PKG/lib/pkgconfig \
|
|
|
|
$PKG/usr/lib
|
|
|
|
}
|