btrfs-progs: new package
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Tue, 29 Apr 2014 17:17:14 +0000 (14:17 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 1 May 2014 20:14:54 +0000 (22:14 +0200)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/Config.in
package/btrfs-progs/Config.in [new file with mode: 0644]
package/btrfs-progs/btrfs-progs.mk [new file with mode: 0644]

index 07fd166959989f2089754bfc6b8c0d7ef149d034..6888dc37094cc82b8ba189c96285ea639b7502fa 100644 (file)
@@ -130,6 +130,7 @@ source "package/yasm/Config.in"
 endmenu
 
 menu "Filesystem and flash utilities"
+source "package/btrfs-progs/Config.in"
 source "package/cifs-utils/Config.in"
 source "package/cramfs/Config.in"
 source "package/curlftpfs/Config.in"
diff --git a/package/btrfs-progs/Config.in b/package/btrfs-progs/Config.in
new file mode 100644 (file)
index 0000000..dcd2ec5
--- /dev/null
@@ -0,0 +1,23 @@
+config BR2_PACKAGE_BTRFS_PROGS
+       bool "btrfs-progs"
+       depends on BR2_LARGEFILE # acl, attr
+       depends on BR2_USE_WCHAR # util-linux
+       depends on BR2_USE_MMU # util-linux
+       depends on BR2_TOOLCHAIN_HAS_THREADS
+       select BR2_PACKAGE_ACL
+       select BR2_PACKAGE_ATTR
+       select BR2_PACKAGE_E2FSPROGS
+       select BR2_PACKAGE_LZO
+       select BR2_PACKAGE_UTIL_LINUX
+       select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
+       select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+       select BR2_PACKAGE_ZLIB
+       help
+         Btrfs filesystem utilities
+
+         https://btrfs.wiki.kernel.org/index.php/Main_Page
+
+comment "btrfs-progs needs a toolchain w/ largefile, wchar, threads"
+       depends on BR2_USE_MMU
+       depends on !BR2_LARGEFILE || !BR2_USE_WCHAR || \
+               !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/btrfs-progs/btrfs-progs.mk b/package/btrfs-progs/btrfs-progs.mk
new file mode 100644 (file)
index 0000000..415ded2
--- /dev/null
@@ -0,0 +1,22 @@
+################################################################################
+#
+# btrfs-progs
+#
+################################################################################
+
+BTRFS_PROGS_VERSION = 3.14.1
+BTRFS_PROGS_SITE = https://www.kernel.org/pub/linux/kernel/people/mason/btrfs-progs
+BTRFS_PROGS_SOURCE = btrfs-progs-v$(BTRFS_PROGS_VERSION).tar.xz
+BTRFS_PROGS_DEPENDENCIES = acl attr e2fsprogs lzo util-linux zlib
+BTRFS_PROGS_LICENSE = GPLv2
+BTRFS_PROGS_LICENSE_FILES = COPYING
+
+define BTRFS_PROGS_BUILD_CMDS
+       $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
+endef
+
+define BTRFS_PROGS_INSTALL_TARGET_CMDS
+       $(MAKE) -C $(@D) prefix=/usr DESTDIR=$(TARGET_DIR) install
+endef
+
+$(eval $(generic-package))