milis/talimatname/temel/e2fsprogs/talimat

47 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-10-27 21:56:50 +02:00
# Tanım: Utilities for handling the ext2,3 and 4 files system.
2016-02-24 01:27:23 +01:00
# URL: http://e2fsprogs.sourceforge.net/
2017-10-27 21:56:50 +02:00
# Paketçi: milisarge
# Gerekler:
2016-02-24 01:27:23 +01:00
2017-10-28 14:15:02 +02:00
isim=e2fsprogs
surum=1.42.13
devir=1
2016-02-24 01:27:23 +01:00
2017-10-28 14:15:02 +02:00
kaynak=(http://prdownloads.sourceforge.net/$isim/$isim-$surum.tar.gz)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:15:02 +02:00
cd $isim-$surum
2016-02-24 01:27:23 +01:00
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
}