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