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.

97 lines
2.3 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:=1
  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. define Package/xfs-admin/install
  59. $(INSTALL_DIR) $(1)/sbin
  60. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/sbin
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_admin $(1)/sbin
  62. endef
  63. define Package/xfs-mkfs/install
  64. $(INSTALL_DIR) $(1)/usr/sbin
  65. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mkfs.xfs $(1)/usr/sbin
  66. endef
  67. define Package/xfs-fsck/install
  68. $(INSTALL_DIR) $(1)/usr/sbin
  69. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/xfs_repair $(1)/usr/sbin
  70. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/usr/sbin
  71. endef
  72. define Package/xfs-growfs/install
  73. $(INSTALL_DIR) $(1)/usr/sbin
  74. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_growfs $(1)/usr/sbin
  75. endef
  76. $(eval $(call BuildPackage,xfs-admin))
  77. $(eval $(call BuildPackage,xfs-mkfs))
  78. $(eval $(call BuildPackage,xfs-fsck))
  79. $(eval $(call BuildPackage,xfs-growfs))