2 # Copyright (C) 2009-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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
)
21 PKG_LICENSE_FILES
:=COPYING
25 PKG_BUILD_DEPENDS
:=libacl
29 include $(INCLUDE_DIR
)/package.mk
31 define Package
/btrfs-progs
35 DEPENDS
:=+libattr
+libuuid
+zlib
+libblkid
+liblzo
+libpthread
36 TITLE
:=Btrfs filesystems utilities
37 URL
:=http
://btrfs.wiki.kernel.org
/
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.
47 progs
= btrfs btrfs-debug-tree btrfs-find-root btrfs-image btrfs-map-logical \
48 btrfs-select-super btrfstune btrfs-zero-log fsck.btrfs mkfs.btrfs
53 --disable-documentation
55 EXTRA_CFLAGS
=$(TARGET_CPPFLAGS
)
57 define Package
/btrfs-progs
/install
58 $(INSTALL_DIR
) $(1)/usr
/lib
59 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbtrfs.so
* $(1)/usr
/lib
60 $(INSTALL_DIR
) $(1)/usr
/bin
61 $(INSTALL_BIN
) $(addprefix $(PKG_INSTALL_DIR
)/usr
/bin
/, $(progs
)) $(1)/usr
/bin
/
62 $(LN
) btrfs
$(1)/usr
/bin
/btrfsck
63 $(INSTALL_DIR
) $(1)/etc
/init.d
64 $(INSTALL_BIN
) .
/files
/btrfs-scan.init
$(1)/etc
/init.d
/btrfs-scan
67 $(eval
$(call BuildPackage
,btrfs-progs
))