Merge pull request #4465 from dibdot/adblock
[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.11
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:=25ba238f44b9a1a54e62f7b361bdc9d8
17 PKG_HASH:=e17a68cc52a27d905b715445e91ddbaa4d42de4847d54836d6ed21e012dabf0e
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
19
20 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
21 PKG_LICENSE:=GPL-2.0
22 PKG_LICENSE_FILES:=COPYING
23
24 PKG_INSTALL:=1
25 PKG_BUILD_PARALLEL:=1
26 PKG_BUILD_DEPENDS:=libacl
27
28 PKG_FIXUP:=autoreconf
29
30 include $(INCLUDE_DIR)/package.mk
31
32 define Package/btrfs-progs
33 SECTION:=utils
34 CATEGORY:=Utilities
35 SUBMENU:=Filesystem
36 DEPENDS:=+libattr +libuuid +zlib +libblkid +liblzo +libpthread
37 TITLE:=Btrfs filesystems utilities
38 URL:=http://btrfs.wiki.kernel.org/
39 endef
40
41 define Package/btrfs-progs/description
42 Btrfs is a new copy on write filesystem for Linux aimed at implementing
43 advanced features while focusing on fault tolerance, repair and easy
44 administration. Initially developed by Oracle, Btrfs is licensed under the
45 GPL and open for contribution from anyone.
46 endef
47
48 progs = btrfs btrfs-debug-tree btrfs-find-root btrfs-image btrfs-map-logical \
49 btrfs-select-super btrfstune btrfs-zero-log fsck.btrfs mkfs.btrfs
50
51 CONFIGURE_ARGS += \
52 --disable-backtrace \
53 --disable-convert \
54 --disable-documentation
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))