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.

93 lines
2.2 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.5.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:=cfbb0b136799c48cb79435facd0969c5a60a587a458e2d16f9752771027efbec
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_CPE_ID:=cpe:/a:sgi:xfsprogs
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/xfsprogs/default
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. SUBMENU:=Filesystem
  22. DEPENDS:=+libuuid +libpthread
  23. URL:=https://xfs.org/
  24. endef
  25. define Package/xfs-admin
  26. $(call Package/xfsprogs/default)
  27. TITLE:=Utilities for changing parameters of an XFS filesystems
  28. endef
  29. define Package/xfs-mkfs
  30. $(call Package/xfsprogs/default)
  31. TITLE:=Utility for creating XFS filesystems
  32. endef
  33. define Package/xfs-fsck
  34. $(call Package/xfsprogs/default)
  35. TITLE:=Utilities for checking and repairing XFS filesystems
  36. endef
  37. define Package/xfs-growfs
  38. $(call Package/xfsprogs/default)
  39. TITLE:=Utility for increasing the size of XFS filesystems
  40. endef
  41. CONFIGURE_ARGS += \
  42. --disable-gettext \
  43. --disable-blkid \
  44. --disable-readline \
  45. --disable-editline \
  46. --disable-termcap \
  47. --disable-lib64 \
  48. --disable-librt \
  49. --disable-ubisan \
  50. --disable-addrsan \
  51. --disable-threadsan \
  52. --disable-scrub \
  53. --disable-libicu
  54. TARGET_CFLAGS += -DHAVE_MAP_SYNC
  55. define Package/xfs-admin/install
  56. $(INSTALL_DIR) $(1)/sbin
  57. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/sbin
  58. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_admin $(1)/sbin
  59. endef
  60. define Package/xfs-mkfs/install
  61. $(INSTALL_DIR) $(1)/usr/sbin
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mkfs.xfs $(1)/usr/sbin
  63. endef
  64. define Package/xfs-fsck/install
  65. $(INSTALL_DIR) $(1)/usr/sbin
  66. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/xfs_repair $(1)/usr/sbin
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_db $(1)/usr/sbin
  68. endef
  69. define Package/xfs-growfs/install
  70. $(INSTALL_DIR) $(1)/usr/sbin
  71. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/xfs_growfs $(1)/usr/sbin
  72. endef
  73. $(eval $(call BuildPackage,xfs-admin))
  74. $(eval $(call BuildPackage,xfs-mkfs))
  75. $(eval $(call BuildPackage,xfs-fsck))
  76. $(eval $(call BuildPackage,xfs-growfs))