[Buildroot] [PATCH v4] package/dust: new package

Nicolas Tran nicolas.tran at smile.fr
Wed Jul 27 12:55:04 UTC 2022


dust is an alternative of the command du from the Linux kernel,
written in Rust. It aims to be more intuitive and visual in order
to give the user a better view of his system's storage capacity.

Signed-off-by: Nicolas Tran <nicolas.tran at smile.fr>
---

The package has been checked with correct formatting and
without typos:
$ ./utils/check-package package/dust/*

Tests have been run using test-pkg:
$ ./utils/test-pkg -c dust.config -p dust

test-pkg config:
To run the test, the file dust.config contains the following line
BR2_PACKAGE_DUST=y

Results:
     bootlin-armv5-uclibc [1/6]: SKIPPED
      bootlin-armv7-glibc [2/6]: OK
    bootlin-armv7m-uclibc [3/6]: SKIPPED
      bootlin-x86-64-musl [4/6]: OK
       br-arm-full-static [5/6]: SKIPPED
             sourcery-arm [6/6]: OK

This PATCH v4 contains an updated value of the dust tarball's hash.
It was wrong in the previous patch because I made a $ make dust-dirclean
without removing the sources in the dl/ directory while I trying to
update the package from the v0.8.1-alpha.2 to the v0.8.1.
Moreover, tests have been rerun successfully.

Signed-off-by: Nicolas Tran <nicolas.tran at smile.fr>
---
 DEVELOPERS             |  1 +
 package/Config.in      |  1 +
 package/dust/Config.in | 11 +++++++++++
 package/dust/dust.hash |  3 +++
 package/dust/dust.mk   | 12 ++++++++++++
 5 files changed, 28 insertions(+)
 create mode 100644 package/dust/Config.in
 create mode 100644 package/dust/dust.hash
 create mode 100644 package/dust/dust.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 270fc52de1..9938acb2fa 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2184,6 +2184,7 @@ F:	package/exiv2/
 F:	package/ofono/
 
 N:	Nicolas Tran <nicolas.tran at smile.fr>
+F:	package/dust/
 F:	package/hyperfine/
 
 N:	Niklas Cassel <niklas.cassel at wdc.com>
diff --git a/package/Config.in b/package/Config.in
index f039d83113..f93ff56c8d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -211,6 +211,7 @@ menu "Filesystem and flash utilities"
 	source "package/curlftpfs/Config.in"
 	source "package/davfs2/Config.in"
 	source "package/dosfstools/Config.in"
+	source "package/dust/Config.in"
 	source "package/e2fsprogs/Config.in"
 	source "package/e2tools/Config.in"
 	source "package/ecryptfs-utils/Config.in"
diff --git a/package/dust/Config.in b/package/dust/Config.in
new file mode 100644
index 0000000000..7b6e9304bc
--- /dev/null
+++ b/package/dust/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_DUST
+	bool "dust"
+	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+	select BR2_PACKAGE_HOST_RUSTC
+	help
+	  dust is an alternative written in Rust of the command "du"
+	  from the Linux kernel. It aims to be more intuitive and visual
+	  in order to give the user a better view of his system's
+	  current storage capacity.
+
+	  https://github.com/bootandy/dust.git
diff --git a/package/dust/dust.hash b/package/dust/dust.hash
new file mode 100644
index 0000000000..d4f6bff4e4
--- /dev/null
+++ b/package/dust/dust.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  271cc0f1978049b2dbfece633b85d4dd0184df346bd93720062c13e4332f2549  dust-0.8.1.tar.gz
+sha256  c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4  LICENSE
diff --git a/package/dust/dust.mk b/package/dust/dust.mk
new file mode 100644
index 0000000000..2cffc336a9
--- /dev/null
+++ b/package/dust/dust.mk
@@ -0,0 +1,12 @@
+################################################################################
+#
+# dust
+#
+################################################################################
+
+DUST_VERSION = 0.8.1
+DUST_SITE = $(call github,bootandy,dust,v$(DUST_VERSION))
+DUST_LICENSE = APACHE-2.0
+DUST_LICENSE_FILES = LICENSE
+
+$(eval $(cargo-package))
-- 
2.32.0




More information about the buildroot mailing list