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
:=6716b4b109dd909af63ab3becbad67a6
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-v
$(PKG_VERSION
)
19 PKG_MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>
21 PKG_LICENSE_FILES
:=COPYING
25 PKG_BUILD_DEPENDS
:=libacl
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/btrfs-progs
33 DEPENDS
:=+libattr
+libuuid
+zlib
+libext2fs
+libblkid
+liblzo
+libpthread
34 TITLE
:=Btrfs filesystems utilities
35 URL
:=http
://btrfs.wiki.kernel.org
/
38 define Package
/btrfs-progs
/description
39 Btrfs is a new copy on write filesystem for Linux aimed at implementing
40 advanced features while focusing on fault tolerance
, repair and easy
41 administration. Initially developed by Oracle
, Btrfs is licensed under the
42 GPL and open for contribution from anyone.
45 progs
= btrfs btrfsck btrfs-convert btrfs-debug-tree btrfs-find-root \
46 btrfs-image btrfs-map-logical btrfs-show-super btrfstune \
47 btrfs-zero-log fsck.btrfs mkfs.btrfs
52 CFLAGS
="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
53 LDFLAGS
="$(TARGET_LDFLAGS)" \
55 DESTDIR
=$(PKG_INSTALL_DIR
) \
57 DISABLE_DOCUMENTATION
=1
59 define Package
/btrfs-progs
/install
60 $(INSTALL_DIR
) $(1)/usr
/lib
61 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbtrfs.so
* $(1)/usr
/lib
62 $(INSTALL_DIR
) $(1)/usr
/bin
63 $(INSTALL_BIN
) $(addprefix $(PKG_INSTALL_DIR
)/usr
/bin
/, $(progs
)) $(1)/usr
/bin
/
64 $(INSTALL_DIR
) $(1)/etc
/init.d
65 $(INSTALL_BIN
) .
/files
/btrfs-scan.init
$(1)/etc
/init.d
/btrfs-scan
68 $(eval
$(call BuildPackage
,btrfs-progs
))