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.

67 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:=3.17.3
  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:=6716b4b109dd909af63ab3becbad67a6
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
  15. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/btrfs-progs
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. SUBMENU:=Filesystem
  25. DEPENDS:=+libattr +libuuid +zlib +libext2fs +libblkid +liblzo +libpthread
  26. TITLE:=Btrfs filesystems utilities
  27. URL:=http://btrfs.wiki.kernel.org/
  28. endef
  29. define Package/btrfs-progs/description
  30. Btrfs is a new copy on write filesystem for Linux aimed at implementing
  31. advanced features while focusing on fault tolerance, repair and easy
  32. administration. Initially developed by Oracle, Btrfs is licensed under the
  33. GPL and open for contribution from anyone.
  34. endef
  35. progs = btrfs btrfsck btrfs-convert btrfs-debug-tree btrfs-find-root \
  36. btrfs-image btrfs-map-logical btrfs-show-super btrfstune \
  37. btrfs-zero-log fsck.btrfs mkfs.btrfs
  38. MAKE_FLAGS+=\
  39. CC="$(TARGET_CC)" \
  40. CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
  41. LDFLAGS="$(TARGET_LDFLAGS)" \
  42. prefix=/usr \
  43. DESTDIR=$(PKG_INSTALL_DIR) \
  44. DISABLE_BACKTRACE=1 \
  45. DISABLE_DOCUMENTATION=1
  46. define Package/btrfs-progs/install
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libbtrfs.so* $(1)/usr/lib
  49. $(INSTALL_DIR) $(1)/usr/bin
  50. $(INSTALL_BIN) $(addprefix $(PKG_INSTALL_DIR)/usr/bin/, $(progs)) $(1)/usr/bin/
  51. $(INSTALL_DIR) $(1)/etc/init.d
  52. $(INSTALL_BIN) ./files/btrfs-scan.init $(1)/etc/init.d/btrfs-scan
  53. endef
  54. $(eval $(call BuildPackage,btrfs-progs))