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.

66 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2009-2014 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:=btrfs-progs
  9. PKG_VERSION:=4.11
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@KERNEL/linux/kernel/people/kdave/btrfs-progs/
  13. PKG_MD5SUM:=25ba238f44b9a1a54e62f7b361bdc9d8
  14. PKG_HASH:=e17a68cc52a27d905b715445e91ddbaa4d42de4847d54836d6ed21e012dabf0e
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
  16. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  17. PKG_LICENSE:=GPL-2.0
  18. PKG_LICENSE_FILES:=COPYING
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. PKG_BUILD_DEPENDS:=libacl
  22. PKG_FIXUP:=autoreconf
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/btrfs-progs
  25. SECTION:=utils
  26. CATEGORY:=Utilities
  27. SUBMENU:=Filesystem
  28. DEPENDS:=+libattr +libuuid +zlib +libblkid +liblzo +libpthread
  29. TITLE:=Btrfs filesystems utilities
  30. URL:=http://btrfs.wiki.kernel.org/
  31. endef
  32. define Package/btrfs-progs/description
  33. Btrfs is a new copy on write filesystem for Linux aimed at implementing
  34. advanced features while focusing on fault tolerance, repair and easy
  35. administration. Initially developed by Oracle, Btrfs is licensed under the
  36. GPL and open for contribution from anyone.
  37. endef
  38. progs = btrfs btrfs-debug-tree btrfs-find-root btrfs-image btrfs-map-logical \
  39. btrfs-select-super btrfstune btrfs-zero-log fsck.btrfs mkfs.btrfs
  40. CONFIGURE_ARGS += \
  41. --disable-backtrace \
  42. --disable-convert \
  43. --disable-documentation
  44. define Package/btrfs-progs/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libbtrfs.so* $(1)/usr/lib
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(INSTALL_BIN) $(addprefix $(PKG_INSTALL_DIR)/usr/bin/, $(progs)) $(1)/usr/bin/
  49. $(LN) btrfs $(1)/usr/bin/btrfsck
  50. $(INSTALL_DIR) $(1)/etc/init.d
  51. $(INSTALL_BIN) ./files/btrfs-scan.init $(1)/etc/init.d/btrfs-scan
  52. endef
  53. $(eval $(call BuildPackage,btrfs-progs))