Initial commit
This commit is contained in:
50
tools/e2fsprogs/Makefile
Normal file
50
tools/e2fsprogs/Makefile
Normal file
@@ -0,0 +1,50 @@
|
||||
#
|
||||
# Copyright (C) 2010-2015 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=e2fsprogs
|
||||
PKG_CPE_ID:=cpe:/a:e2fsprogs_project:e2fsprogs
|
||||
PKG_VERSION:=1.44.2
|
||||
PKG_HASH:=8324cf0b6e81805a741d94087b00e99f7e16144f1ee5a413709a1fa6948b126c
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=@KERNEL/linux/kernel/people/tytso/e2fsprogs/v$(PKG_VERSION)/
|
||||
|
||||
HOST_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
|
||||
HOST_CFLAGS += $(FPIC)
|
||||
|
||||
HOST_CONFIGURE_ARGS += \
|
||||
--disable-elf-shlibs \
|
||||
--enable-libuuid \
|
||||
--disable-tls \
|
||||
--disable-nls
|
||||
|
||||
define Host/Prepare
|
||||
$(call Host/Prepare/Default)
|
||||
rm -rf $(HOST_BUILD_DIR)/doc
|
||||
endef
|
||||
|
||||
define Host/Install
|
||||
$(Host/Install/Default)
|
||||
$(MAKE) -C $(HOST_BUILD_DIR)/lib/uuid install
|
||||
mkdir -p $(STAGING_DIR_HOST)/include/e2fsprogs
|
||||
$(CP) $(STAGING_DIR_HOST)/include/uuid $(STAGING_DIR_HOST)/include/e2fsprogs/
|
||||
rm -rf $(STAGING_DIR_HOST)/include/uuid
|
||||
$(INSTALL_DATA) $(HOST_BUILD_DIR)/lib/uuid/libuuid.a $(STAGING_DIR_HOST)/lib/
|
||||
endef
|
||||
|
||||
define Host/Clean
|
||||
rm -f $(STAGING_DIR_HOST)/bin/e2fsck
|
||||
rm -f $(STAGING_DIR_HOST)/bin/tune2fs
|
||||
endef
|
||||
|
||||
$(eval $(call HostBuild))
|
||||
11
tools/e2fsprogs/patches/001-exit_0_on_corrected_errors.patch
Normal file
11
tools/e2fsprogs/patches/001-exit_0_on_corrected_errors.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/e2fsck/e2fsck.h
|
||||
+++ b/e2fsck/e2fsck.h
|
||||
@@ -73,7 +73,7 @@
|
||||
* Exit codes used by fsck-type programs
|
||||
*/
|
||||
#define FSCK_OK 0 /* No errors */
|
||||
-#define FSCK_NONDESTRUCT 1 /* File system errors corrected */
|
||||
+#define FSCK_NONDESTRUCT 0 /* File system errors corrected */
|
||||
#define FSCK_REBOOT 2 /* System should be rebooted */
|
||||
#define FSCK_UNCORRECTED 4 /* File system errors left uncorrected */
|
||||
#define FSCK_ERROR 8 /* Operational error */
|
||||
11
tools/e2fsprogs/patches/002-dont-build-e4defrag.patch
Normal file
11
tools/e2fsprogs/patches/002-dont-build-e4defrag.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/misc/Makefile.in
|
||||
+++ b/misc/Makefile.in
|
||||
@@ -11,7 +11,7 @@ INSTALL = @INSTALL@
|
||||
|
||||
@MCONFIG@
|
||||
|
||||
-@DEFRAG_CMT@@LINUX_CMT@E4DEFRAG_PROG= e4defrag
|
||||
+@DEFRAG_CMT@@LINUX_CMT@E4DEFRAG_PROG=
|
||||
@DEFRAG_CMT@@LINUX_CMT@E4DEFRAG_MAN= e4defrag.8
|
||||
|
||||
@LINUX_CMT@E4CRYPT_PROG = e4crypt
|
||||
12
tools/e2fsprogs/patches/003-openbsd-compat.patch
Normal file
12
tools/e2fsprogs/patches/003-openbsd-compat.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- a/lib/blkid/getsize.c
|
||||
+++ b/lib/blkid/getsize.c
|
||||
@@ -29,6 +29,9 @@
|
||||
#include <fcntl.h>
|
||||
#ifdef HAVE_SYS_IOCTL_H
|
||||
#include <sys/ioctl.h>
|
||||
+#ifdef __OpenBSD__
|
||||
+#include <sys/dkio.h>
|
||||
+#endif
|
||||
#endif
|
||||
#ifdef HAVE_LINUX_FD_H
|
||||
#include <linux/fd.h>
|
||||
22
tools/e2fsprogs/patches/004-darwin-compat.patch
Normal file
22
tools/e2fsprogs/patches/004-darwin-compat.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
--- a/lib/blkid/blkid_types.h.in
|
||||
+++ b/lib/blkid/blkid_types.h.in
|
||||
@@ -9,6 +9,8 @@
|
||||
|
||||
@ASM_TYPES_HEADER@
|
||||
|
||||
+#include <stdint.h>
|
||||
+
|
||||
#ifndef HAVE___U8
|
||||
#define HAVE___U8
|
||||
#ifdef __U8_TYPEDEF
|
||||
--- a/lib/ext2fs/ext2_types.h.in
|
||||
+++ b/lib/ext2fs/ext2_types.h.in
|
||||
@@ -9,6 +9,8 @@
|
||||
|
||||
@ASM_TYPES_HEADER@
|
||||
|
||||
+#include <stdint.h>
|
||||
+
|
||||
#ifndef HAVE___U8
|
||||
#define HAVE___U8
|
||||
#ifdef __U8_TYPEDEF
|
||||
Reference in New Issue
Block a user