diff options
Diffstat (limited to 'abs/core/e2fsprogs')
-rw-r--r-- | abs/core/e2fsprogs/Makefile-fsck.static.patch | 13 | ||||
-rw-r--r-- | abs/core/e2fsprogs/PKGBUILD | 34 | ||||
-rw-r--r-- | abs/core/e2fsprogs/mke2fs.conf | 26 |
3 files changed, 73 insertions, 0 deletions
diff --git a/abs/core/e2fsprogs/Makefile-fsck.static.patch b/abs/core/e2fsprogs/Makefile-fsck.static.patch new file mode 100644 index 0000000..a006443 --- /dev/null +++ b/abs/core/e2fsprogs/Makefile-fsck.static.patch @@ -0,0 +1,13 @@ +--- e2fsprogs-1.40.4/misc/Makefile 2008-01-16 14:52:53.000000000 +0000 ++++ e2fsprogs-1.40.4/misc/Makefile.neu 2008-01-16 14:53:43.000000000 +0000 +@@ -376,6 +376,10 @@ + @echo " LD $@" + @$(CC) $(ALL_LDFLAGS) -o fsck $(FSCK_OBJS) $(LIBS_BLKID) $(LIBINTL) + ++fsck.static: $(FSCK_OBJS) $(DEPSTATIC_LIBBLKID) ++ @echo " LD $@" ++ @$(CC) $(ALL_LDFLAGS) -static -o fsck.static $(FSCK_OBJS) $(STATIC_LIBBLKID) $(DEPSTATIC_LIBUUID) $(LIBINTL) ++ + badblocks: $(BADBLOCKS_OBJS) $(DEPLIBS) + @echo " LD $@" + @$(CC) $(ALL_LDFLAGS) -o badblocks $(BADBLOCKS_OBJS) $(LIBS) $(LIBINTL) diff --git a/abs/core/e2fsprogs/PKGBUILD b/abs/core/e2fsprogs/PKGBUILD new file mode 100644 index 0000000..b85652b --- /dev/null +++ b/abs/core/e2fsprogs/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ +# Maintainer: judd <jvinet@zeroflux.org> + +pkgname=e2fsprogs +pkgver=1.40.8 +pkgrel=10 +pkgdesc="Ext2 filesystem utilities" +arch=('i686' 'x86_64') +license=('GPL' 'LGPL' 'MIT') +url="http://e2fsprogs.sourceforge.net" +groups=('base') +depends=('glibc') +makedepends=('bc') +source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz + Makefile-fsck.static.patch + mke2fs.conf) +md5sums=('450e2fb2461b2296fec770ff8fc147ed' + 'ce2b0daf84e17e8c7880ba3d43020ea3' + '4ebb30bdb5951f1fc86c1470e4d81532') + +build() { + cd ${startdir}/src/${pkgname}-${pkgver} + # Remove unnecessary init.d directory + sed -i '/init\.d/s|^|#|' misc/Makefile.in + ./configure --prefix=/usr --with-root-prefix="" --enable-elf-shlibs + # add fsck.static for mkinitrd use + patch -Np1 -i ../Makefile-fsck.static.patch || return 1 + make || return 1 + make DESTDIR=${startdir}/pkg install install-libs + make -C ${startdir}/src/${pkgname}-${pkgver}/misc fsck.static || return 1 + install -D -m755 ${startdir}/src/${pkgname}-${pkgver}/misc/fsck.static ${startdir}/pkg/sbin/fsck.static + sed -i -e 's/^AWK=.*/AWK=awk/' ${startdir}/pkg/usr/bin/compile_et || return 1 + install -m644 ${startdir}/src/mke2fs.conf ${startdir}/pkg/etc/ || return 1 +} diff --git a/abs/core/e2fsprogs/mke2fs.conf b/abs/core/e2fsprogs/mke2fs.conf new file mode 100644 index 0000000..92464e3 --- /dev/null +++ b/abs/core/e2fsprogs/mke2fs.conf @@ -0,0 +1,26 @@ +[defaults] + base_features = sparse_super,filetype,resize_inode,dir_index,ext_attr + blocksize = 4096 + inode_size = 128 + inode_ratio = 16384 + +[fs_types] + small = { + blocksize = 1024 + inode_size = 128 + inode_ratio = 4096 + } + floppy = { + blocksize = 1024 + inode_size = 128 + inode_ratio = 8192 + } + news = { + inode_ratio = 4096 + } + largefile = { + inode_ratio = 1048576 + } + largefile4 = { + inode_ratio = 4194304 + } |