2016-09-06 11:12:17 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2014 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:=f2fs-tools
|
2023-05-07 15:58:26 +00:00
|
|
|
PKG_VERSION:=1.16.0
|
|
|
|
PKG_RELEASE:=1
|
2016-09-06 11:12:17 +00:00
|
|
|
|
2017-05-10 09:04:26 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2017-03-15 16:14:55 +00:00
|
|
|
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/
|
2023-05-07 15:58:26 +00:00
|
|
|
PKG_HASH:=208c7a07e95383fbd7b466b5681590789dcb41f41bf197369c41a95383b57c5e
|
2021-01-04 00:27:37 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2022-09-03 16:11:51 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:f2fs-tools_project:f2fs-tools
|
2016-09-06 11:12:17 +00:00
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/f2fs-tools/Default
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
SUBMENU:=Filesystem
|
|
|
|
DEPENDS:=+libf2fs
|
|
|
|
URL:=http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git
|
2020-08-20 01:02:24 +00:00
|
|
|
VARIANT:=default
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/f2fs-tools/SELinux
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
SUBMENU:=Filesystem
|
|
|
|
DEPENDS:=+libf2fs-selinux +libselinux
|
|
|
|
URL:=http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git
|
|
|
|
VARIANT:=selinux
|
2016-09-06 11:12:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mkf2fs
|
|
|
|
$(Package/f2fs-tools/Default)
|
|
|
|
TITLE:=Utility for creating a Flash-Friendly File System (F2FS)
|
2020-08-20 01:02:24 +00:00
|
|
|
CONFLICTS:=mkf2fs-selinux
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mkf2fs-selinux
|
|
|
|
$(Package/f2fs-tools/SELinux)
|
|
|
|
TITLE:=Utility for creating a Flash-Friendly File System (F2FS) with SELinux support
|
2016-09-06 11:12:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/f2fsck
|
|
|
|
$(Package/f2fs-tools/Default)
|
|
|
|
TITLE:=Utility for checking/repairing a Flash-Friendly File System (F2FS)
|
2020-08-20 01:02:24 +00:00
|
|
|
CONFLICTS:=f2fsck-selinux
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/f2fsck-selinux
|
|
|
|
$(Package/f2fs-tools/SELinux)
|
|
|
|
TITLE:=Utility for checking/repairing a Flash-Friendly File System (F2FS) with SELinux support
|
2016-09-06 11:12:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/f2fs-tools
|
|
|
|
$(Package/f2fs-tools/Default)
|
|
|
|
TITLE:=Tools for Flash-Friendly File System (F2FS)
|
|
|
|
DEPENDS += +mkf2fs +f2fsck
|
2020-08-20 01:02:24 +00:00
|
|
|
CONFLICTS:=f2fs-tools-selinux
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/f2fs-tools-selinux
|
|
|
|
$(Package/f2fs-tools/SELinux)
|
|
|
|
TITLE:=Tools for Flash-Friendly File System (F2FS) with SELinux support
|
|
|
|
DEPENDS += +mkf2fs-selinux +f2fsck-selinux
|
2016-09-06 11:12:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libf2fs
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Library for Flash-Friendly File System (F2FS) tools
|
|
|
|
DEPENDS:=+libuuid
|
2019-01-22 18:17:32 +00:00
|
|
|
ABI_VERSION:=6
|
2020-08-20 01:02:24 +00:00
|
|
|
CONFLICTS:=libf2fs-selinux
|
2021-10-17 15:34:05 +00:00
|
|
|
VARIANT:=default
|
2020-08-20 01:02:24 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libf2fs-selinux
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Library for Flash-Friendly File System (F2FS) tools with SELinux support
|
|
|
|
DEPENDS:=+libuuid +libselinux
|
|
|
|
ABI_VERSION:=6
|
2021-10-17 15:34:05 +00:00
|
|
|
VARIANT:=selinux
|
2016-09-06 11:12:17 +00:00
|
|
|
endef
|
|
|
|
|
2017-03-15 16:14:55 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2020-02-04 01:10:17 +00:00
|
|
|
--disable-static \
|
2022-07-04 07:52:43 +00:00
|
|
|
--without-blkid \
|
|
|
|
--without-lzo2 \
|
|
|
|
--without-lz4
|
2017-03-15 16:14:55 +00:00
|
|
|
|
2020-08-20 01:02:24 +00:00
|
|
|
ifneq ($(BUILD_VARIANT),selinux)
|
|
|
|
CONFIGURE_ARGS += --without-selinux
|
|
|
|
endif
|
|
|
|
|
2017-08-24 06:23:32 +00:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_file__git=no
|
|
|
|
|
2023-05-16 11:03:29 +00:00
|
|
|
ifneq ($(CONFIG_USE_MUSL),)
|
|
|
|
CONFIGURE_VARS += ac_cv_func_lseek64=yes
|
|
|
|
endif
|
|
|
|
|
2016-09-06 11:12:17 +00:00
|
|
|
define Package/libf2fs/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) \
|
2019-01-22 18:17:32 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libf2fs.so.* $(1)/usr/lib/
|
2016-09-06 11:12:17 +00:00
|
|
|
endef
|
|
|
|
|
2020-08-20 01:02:24 +00:00
|
|
|
Package/libf2fs-selinux/install = $(Package/libf2fs/install)
|
|
|
|
|
2016-09-06 11:12:17 +00:00
|
|
|
define Package/mkf2fs/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkfs.f2fs $(1)/usr/sbin
|
|
|
|
endef
|
|
|
|
|
2020-08-20 01:02:24 +00:00
|
|
|
Package/mkf2fs-selinux/install = $(Package/mkf2fs/install)
|
|
|
|
|
2016-09-06 11:12:17 +00:00
|
|
|
define Package/f2fsck/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fsck.f2fs $(1)/usr/sbin
|
|
|
|
ln -s /usr/sbin/fsck.f2fs $(1)/usr/sbin/defrag.f2fs
|
|
|
|
ln -s /usr/sbin/fsck.f2fs $(1)/usr/sbin/dump.f2fs
|
|
|
|
ln -s /usr/sbin/fsck.f2fs $(1)/usr/sbin/sload.f2fs
|
|
|
|
ln -s /usr/sbin/fsck.f2fs $(1)/usr/sbin/resize.f2fs
|
|
|
|
endef
|
|
|
|
|
2020-08-20 01:02:24 +00:00
|
|
|
Package/f2fsck-selinux/install = $(Package/f2fsck/install)
|
|
|
|
|
2016-09-06 11:12:17 +00:00
|
|
|
define Package/f2fs-tools/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fibmap.f2fs $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/parse.f2fs $(1)/usr/sbin
|
|
|
|
endef
|
|
|
|
|
2020-08-20 01:02:24 +00:00
|
|
|
Package/f2fs-tools-selinux/install = $(Package/f2fs-tools/install)
|
|
|
|
|
2016-09-06 11:12:17 +00:00
|
|
|
$(eval $(call BuildPackage,libf2fs))
|
2020-08-20 01:02:24 +00:00
|
|
|
$(eval $(call BuildPackage,libf2fs-selinux))
|
2016-09-06 11:12:17 +00:00
|
|
|
$(eval $(call BuildPackage,mkf2fs))
|
2020-08-20 01:02:24 +00:00
|
|
|
$(eval $(call BuildPackage,mkf2fs-selinux))
|
2016-09-06 11:12:17 +00:00
|
|
|
$(eval $(call BuildPackage,f2fsck))
|
2020-08-20 01:02:24 +00:00
|
|
|
$(eval $(call BuildPackage,f2fsck-selinux))
|
2016-09-06 11:12:17 +00:00
|
|
|
$(eval $(call BuildPackage,f2fs-tools))
|
2020-08-20 01:02:24 +00:00
|
|
|
$(eval $(call BuildPackage,f2fs-tools-selinux))
|