summaryrefslogtreecommitdiff
path: root/package/e2fsprogs
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/e2fsprogs
Initial import
Diffstat (limited to 'package/e2fsprogs')
-rw-r--r--package/e2fsprogs/Config.in26
-rw-r--r--package/e2fsprogs/Makefile57
-rw-r--r--package/e2fsprogs/ipkg/e2fsprogs.control4
-rw-r--r--package/e2fsprogs/ipkg/libcom-err.control4
-rw-r--r--package/e2fsprogs/ipkg/libuuid.control4
-rw-r--r--package/e2fsprogs/patches/patch-misc_Makefile_in12
6 files changed, 107 insertions, 0 deletions
diff --git a/package/e2fsprogs/Config.in b/package/e2fsprogs/Config.in
new file mode 100644
index 000000000..6638f88fc
--- /dev/null
+++ b/package/e2fsprogs/Config.in
@@ -0,0 +1,26 @@
+config ADK_PACKAGE_E2FSPROGS
+ prompt "e2fsprogs......................... Ext2/3 filesystem utilities"
+ tristate
+ default n
+ select ADK_PACKAGE_LIBUUID
+ select ADK_PACKAGE_LIBCOM_ERR
+ help
+ This package contains essential ext2 filesystem utilities which consists of
+ e2fsck, mke2fs, debugfs, dumpe2fs, tune2fs, and most of the other core ext2
+ filesystem utilities.
+
+ http://e2fsprogs.sourceforge.net/
+
+config ADK_PACKAGE_LIBUUID
+ prompt "libuuid......................... UUID library"
+ depends ADK_PACKAGE_E2FSPROGS
+ tristate
+ default n
+ help
+
+config ADK_PACKAGE_LIBCOM_ERR
+ prompt "libcom_err...................... Common error library"
+ depends ADK_PACKAGE_E2FSPROGS
+ tristate
+ default n
+ help
diff --git a/package/e2fsprogs/Makefile b/package/e2fsprogs/Makefile
new file mode 100644
index 000000000..e62858527
--- /dev/null
+++ b/package/e2fsprogs/Makefile
@@ -0,0 +1,57 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= e2fsprogs
+PKG_VERSION:= 1.41.3
+PKG_RELEASE:= 1
+PKG_MD5SUM:= b21d26fc46c584021dc9c444933ee1c2
+MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=e2fsprogs/}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,E2FSPROGS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,LIBUUID,libuuid,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,LIBCOM_ERR,libcom-err,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE= gnu
+CONFIGURE_ARGS+= --enable-elf-shlibs \
+ --disable-tls \
+ --enable-dynamic-e2fsck
+BUILD_STYLE= auto
+INSTALL_STYLE= auto confprog
+INSTALL_TARGET+= install-libs
+
+pre-build:
+ ${MAKE} -C ${WRKBUILD}/util \
+ BUILDCC="${HOSTCC}" \
+ CFLAGS="" \
+ LDFLAGS="" \
+ CPPFLAGS="" \
+ subst
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_E2FSPROGS}/usr/lib
+ ${INSTALL_DIR} ${IDIR_E2FSPROGS}/usr/sbin
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/e2fsck ${IDIR_E2FSPROGS}/usr/sbin/
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/mke2fs ${IDIR_E2FSPROGS}/usr/sbin/
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/tune2fs ${IDIR_E2FSPROGS}/usr/sbin/
+ ${CP} ${WRKINST}/usr/lib/lib{blkid,e2p,ext2fs}.so.* \
+ ${IDIR_E2FSPROGS}/usr/lib/
+ # subpackage libcom_err
+ ${INSTALL_DIR} ${IDIR_LIBCOM_ERR}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libcom_err.so.* \
+ ${IDIR_LIBCOM_ERR}/usr/lib/
+ # subpackage libuuid
+ ${INSTALL_DIR} ${IDIR_LIBUUID}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libuuid.so.* \
+ ${IDIR_LIBUUID}/usr/lib/
+ # install some headers explicitely
+ ${INSTALL_DIR} ${STAGING_DIR}/usr/include/uuid
+ ${CP} ${WRKBUILD}/lib/uuid/uuid.h \
+ ${STAGING_DIR}/usr/include/uuid
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/e2fsprogs/ipkg/e2fsprogs.control b/package/e2fsprogs/ipkg/e2fsprogs.control
new file mode 100644
index 000000000..73e023d45
--- /dev/null
+++ b/package/e2fsprogs/ipkg/e2fsprogs.control
@@ -0,0 +1,4 @@
+Package: e2fsprogs
+Priority: optional
+Section: admin
+Description: Ext2/3 filesystem utilities
diff --git a/package/e2fsprogs/ipkg/libcom-err.control b/package/e2fsprogs/ipkg/libcom-err.control
new file mode 100644
index 000000000..4e8d022e8
--- /dev/null
+++ b/package/e2fsprogs/ipkg/libcom-err.control
@@ -0,0 +1,4 @@
+Package: libcom-err
+Priority: optional
+Section: admin
+Description: Common error library
diff --git a/package/e2fsprogs/ipkg/libuuid.control b/package/e2fsprogs/ipkg/libuuid.control
new file mode 100644
index 000000000..b0f738801
--- /dev/null
+++ b/package/e2fsprogs/ipkg/libuuid.control
@@ -0,0 +1,4 @@
+Package: libuuid
+Priority: optional
+Section: admin
+Description: UUID library
diff --git a/package/e2fsprogs/patches/patch-misc_Makefile_in b/package/e2fsprogs/patches/patch-misc_Makefile_in
new file mode 100644
index 000000000..f79bd78d7
--- /dev/null
+++ b/package/e2fsprogs/patches/patch-misc_Makefile_in
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- e2fsprogs-1.41.3.orig/misc/Makefile.in 2008-10-07 16:22:39.000000000 +0200
++++ e2fsprogs-1.41.3/misc/Makefile.in 2009-01-13 14:16:03.661864854 +0100
+@@ -113,7 +113,7 @@ tune2fs.static: $(TUNE2FS_OBJS) $(STATIC
+ blkid: $(BLKID_OBJS) $(DEPLIBBLKID) $(LIBEXT2FS)
+ @echo " LD $@"
+ @$(CC) $(ALL_LDFLAGS) -o blkid $(BLKID_OBJS) $(LIBBLKID) $(LIBINTL) \
+- $(LIBEXT2FS)
++ $(LIBEXT2FS) $(LIBCOM_ERR)
+
+ e2image: $(E2IMAGE_OBJS) $(DEPLIBS)
+ @echo " LD $@"