aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorleimaohui <leimaohui@fujitsu.com>2022-01-08 01:24:56 +0800
committerKhem Raj <raj.khem@gmail.com>2022-01-11 17:51:55 -0800
commit00034b34f599bd98578da06ab11a93f1e37c48cd (patch)
tree80d8165a50ab92d1cf9d0aa111d438e090707f9f
parent866715fa40b0c5f867add526dbe1d27ec2c1b66e (diff)
downloadmeta-openembedded-00034b34f599bd98578da06ab11a93f1e37c48cd.tar.gz
dool: Added a new OSS that forked from dstat project.
Please referece to https://github.com/dstat-real/dstat. Signed-off-by: Lei Maohui <leimaohui@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/dool/dool/0001-Fix-build-error-as-following.patch39
-rw-r--r--meta-oe/recipes-support/dool/dool_1.0.0.bb24
2 files changed, 63 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/dool/dool/0001-Fix-build-error-as-following.patch b/meta-oe/recipes-support/dool/dool/0001-Fix-build-error-as-following.patch
new file mode 100644
index 0000000000..2324af4997
--- /dev/null
+++ b/meta-oe/recipes-support/dool/dool/0001-Fix-build-error-as-following.patch
@@ -0,0 +1,39 @@
+From e81feec1ebbc676220cd8759d83f46335602d079 Mon Sep 17 00:00:00 2001
+From: Lei Maohui <leimaohui@fujitsu.com>
+Date: Fri, 7 Jan 2022 14:37:36 +0900
+Subject: [PATCH] Fix build error as following:
+
+*** No rule to make target 'dstat.1', needed by 'docs'. Stop.
+
+Upstream-Status: Pending
+
+Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
+---
+ docs/Makefile | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/docs/Makefile b/docs/Makefile
+index c031e82..1a85e61 100644
+--- a/docs/Makefile
++++ b/docs/Makefile
+@@ -11,13 +11,13 @@ all:
+
+ dist: docs
+
+-docs: dstat.1 $(htmltargets)
++docs: dool.1 $(htmltargets)
+
+-install: dstat.1
+- install -Dp -m0644 dstat.1 $(DESTDIR)$(mandir)/man1/dstat.1
++install: dool.1
++ install -Dp -m0644 dool.1 $(DESTDIR)$(mandir)/man1/dool.1
+
+ clean:
+- rm -f dstat.1 *.html *.xml
++ rm -f dool.1 *.html *.xml
+
+ %.1.html: %.1.adoc
+ asciidoc -d manpage $<
+--
+2.25.1
+
diff --git a/meta-oe/recipes-support/dool/dool_1.0.0.bb b/meta-oe/recipes-support/dool/dool_1.0.0.bb
new file mode 100644
index 0000000000..0cbc32ff3c
--- /dev/null
+++ b/meta-oe/recipes-support/dool/dool_1.0.0.bb
@@ -0,0 +1,24 @@
+SUMMARY = "versatile resource statics tool"
+DESCRIPTION = "Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat. \
+Dstat overcomes some of their limitations and adds some extra features, more counters \
+and flexibility. Dstat is handy for monitoring systems during performance tuning tests, \
+benchmarks or troubleshooting."
+HOMEPAGE = "http://dag.wiee.rs/home-made/dstat"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+DEPENDS += "asciidoc-native xmlto-native"
+
+SRC_URI = "git://github.com/scottchiefbaker/dool.git;branch=master;protocol=https \
+ file://0001-Fix-build-error-as-following.patch \
+ "
+
+SRCREV = "34a3244b46aa70a31f871a7ca8ffa8d3a7b950d2"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+ oe_runmake 'DESTDIR=${D}' install
+}
+
+RDEPENDS:${PN} += "python3-core python3-misc python3-resource python3-shell python3-six python3-unixadmin"