You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.4 KiB

  1. #
  2. # Copyright (C) 2006-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=xfsprogs
  9. PKG_VERSION:=5.9.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@KERNEL/linux/utils/fs/xfs/xfsprogs
  13. PKG_HASH:=bc5c805596bc609a18dc1f1b4ed6a2821dba9f47408ec00e7799ceea1b2097f1
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=GPL-2.0-only
  16. PKG_LICENSE_FILES:=LICENSES/GPL-2.0
  17. PKG_CPE_ID:=cpe:/a:sgi:xfsprogs
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/xfsprogs/default
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. SUBMENU:=Filesystem
  25. DEPENDS:=+libuuid +libpthread
  26. URL:=https://xfs.org/
  27. endef
  28. define Package/xfs-admin
  29. $(call Package/xfsprogs/default)
  30. TITLE:=Utilities for changing parameters of an XFS filesystems
  31. endef
  32. define Package/xfs-mkfs
  33. $(call Package/xfsprogs/default)
  34. TITLE:=Utility for creating XFS filesystems
  35. endef
  36. define Package/xfs-fsck
  37. $(call Package/xfsprogs/default)
  38. TITLE:=Utilities for checking and repairing XFS filesystems
  39. endef
  40. define Package/xfs-growfs
  41. $(call Package/xfsprogs/default)
  42. TITLE:=Utility for increasing the size of XFS filesystems
  43. endef
  44. CONFIGURE_ARGS += \
  45. --disable-gettext \
  46. --disable-blkid \
  47. --disable-readline \
  48. --disable-editline \
  49. --disable-termcap \
  50. --disable-lib64 \
  51. --disable-librt \
  52. --disable-ubisan \
  53. --disable-addrsan \
  54. --disable-threadsan \
  55. --disable-scrub \
  56. --disable-libicu
  57. TARGET_CFLAGS += -DHAVE_MAP_SYNC
  58. TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt)
  59. define Package/xfs-admin/install
  60. $(INSTALL_DIR) $(1)/sbin
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/sbin
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_admin $(1)/sbin
  63. endef
  64. define Package/xfs-mkfs/install
  65. $(INSTALL_DIR) $(1)/usr/sbin
  66. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mkfs.xfs $(1)/usr/sbin
  67. endef
  68. define Package/xfs-fsck/install
  69. $(INSTALL_DIR) $(1)/usr/sbin
  70. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/xfs_repair $(1)/usr/sbin
  71. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/usr/sbin
  72. endef
  73. define Package/xfs-growfs/install
  74. $(INSTALL_DIR) $(1)/usr/sbin
  75. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_growfs $(1)/usr/sbin
  76. endef
  77. $(eval $(call BuildPackage,xfs-admin))
  78. $(eval $(call BuildPackage,xfs-mkfs))
  79. $(eval $(call BuildPackage,xfs-fsck))
  80. $(eval $(call BuildPackage,xfs-growfs))