Skip to contentSkip to conversation

mtree: new package

PATCH Superseded Esben Haabendal 1 participant 1 message Mar 20, 2019

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 mtree: new package

From: Esben Haabendal <[email protected]>

---
 DEVELOPERS               |  3 +++
 package/Config.in        |  1 +
 package/mtree/Config.in  | 15 +++++++++++++++
 package/mtree/mtree.hash |  5 +++++
 package/mtree/mtree.mk   | 17 +++++++++++++++++
 5 files changed, 41 insertions(+)
 create mode 100644 package/mtree/Config.in
 create mode 100644 package/mtree/mtree.hash
 create mode 100644 package/mtree/mtree.mk
DEVELOPERS +3 -0
index 3e0ac08e1136..4b827ae4d276 100644
@@ -697,6 +697,9 @@ F:	package/mxsldr/
 N:	Ernesto L. Williams Jr <[email protected]>
 F:	package/szip/
 
+N:	Esben Haabendal <[email protected]>
+F:	package/mtree/
+
 N:	Etienne Carriere <[email protected]>
 F:	boot/optee-os/
 F:	package/optee-benchmark/
package/Config.in +1 -0
index b5321aeb49c9..13f7fae09df6 100644
@@ -197,6 +197,7 @@ menu "Filesystem and flash utilities"
 	source "package/mmc-utils/Config.in"
 	source "package/mtd/Config.in"
 	source "package/mtools/Config.in"
+	source "package/mtree/Config.in"
 	source "package/nfs-utils/Config.in"
 	source "package/nilfs-utils/Config.in"
 	source "package/ntfs-3g/Config.in"
package/mtree/Config.in new file +15 -0
new file mode 100644
index 000000000000..175d05d3bb0d
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_MTREE
+	bool "mtree"
+	# mtree uses <fts.h> which is not included by default in uClibc
+	depends on BR2_TOOLCHAIN_USES_GLIBC
+	# fts.h does not support LFS (_FILE_OFFSET_BITS==64) in glibc versions
+	# older than 2.23, and codesourcery-arm is currently using glibc 2.18
+	depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM
+	select BR2_PACKAGE_OPENSSL
+	help
+	  mtree - utility for creating and verifying file hierarchies.
+
+	  Port of the mtree utility, originally only available in BSD
+	  distributions, to Linux and other operating systems.
+
+	  https://github.com/archiecobbs/mtree-port
package/mtree/mtree.hash new file +5 -0
new file mode 100644
index 000000000000..8dc54a201133
@@ -0,0 +1,5 @@
+# Locally computed
+sha256 fb5e99b28e270ab9a4622bd7142e9a7e9703fa08db3086398c52d33bb0505327  mtree-1.0.4.tar.gz
+
+# License file (locally computed as well)
+sha256 024360ed813a773260cee77ae84196da44a0842f45cd9bddad869de13d6c4bd2  COPYING
package/mtree/mtree.mk new file +17 -0
new file mode 100644
index 000000000000..6227508106c7
@@ -0,0 +1,17 @@
+################################################################################
+#
+# mtree
+#
+################################################################################
+
+MTREE_VERSION = 1.0.4
+MTREE_SOURCE = mtree-$(MTREE_VERSION).tar.gz
+MTREE_SITE = https://s3.amazonaws.com/archie-public/mtree-port
+MTREE_LICENSE = BSD-3-Clause
+MTREE_LICENSE_FILES = COPYING
+
+MTREE_DEPENDENCIES = openssl
+
+MTREE_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-exec
+
+$(eval $(autotools-package))
Signature · 1 line
2.21.0