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