aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2020-05-26 09:00:00 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2020-05-26 09:00:00 +0000
commitc59e47ca8004b2f88637f4485beaf07d394808f4 (patch)
tree76384972fc1c8608d609ede1a3ce255eb1eaf37e
parent5bd4e189392be765c2f46ebd076f6d4b8c3f30b8 (diff)
downloadports-c59e47ca8004b2f88637f4485beaf07d394808f4.tar.gz
ports-c59e47ca8004b2f88637f4485beaf07d394808f4.zip
Add a tool to probe for hardware, check operability, and find drivers.
Notes
Notes: svn path=/head/; revision=536595
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/hw-probe/Makefile36
-rw-r--r--sysutils/hw-probe/distinfo3
-rw-r--r--sysutils/hw-probe/pkg-descr18
4 files changed, 58 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 6d79a675cab7..413c25b2f1e8 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -479,6 +479,7 @@
SUBDIR += hstr
SUBDIR += htop
SUBDIR += httplog
+ SUBDIR += hw-probe
SUBDIR += hwstat
SUBDIR += i2c-tools
SUBDIR += i7z
diff --git a/sysutils/hw-probe/Makefile b/sysutils/hw-probe/Makefile
new file mode 100644
index 000000000000..67f1ea21a27e
--- /dev/null
+++ b/sysutils/hw-probe/Makefile
@@ -0,0 +1,36 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= hw-probe
+DISTVERSION= 1.6-beta
+CATEGORIES= sysutils
+
+MAINTAINER= danfe@FreeBSD.org
+COMMENT= Probe for hardware, check operability, and find drivers
+
+LICENSE= LGPL21+
+
+RUN_DEPENDS= curl:ftp/curl \
+ dmidecode:sysutils/dmidecode \
+ hwstat:sysutils/hwstat \
+ lscpu:sysutils/lscpu \
+ smartctl:sysutils/smartmontools
+
+USE_GITHUB= yes
+GH_ACCOUNT= linuxhw
+
+USES= perl5
+USE_PERL5= run
+MAKE_ARGS= prefix=${PREFIX}
+NO_BUILD= yes
+
+OPTIONS_DEFINE= DOCS
+
+PLIST_FILES= bin/${PORTNAME}
+PORTDOCS= NEWS.md README.md
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/sysutils/hw-probe/distinfo b/sysutils/hw-probe/distinfo
new file mode 100644
index 000000000000..e97a91267d84
--- /dev/null
+++ b/sysutils/hw-probe/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1590003831
+SHA256 (linuxhw-hw-probe-1.6-beta_GH0.tar.gz) = 87a17cdcb241d2d068b1acbf5bb9380db3f84ae8ade3c546366975f761e6a9a6
+SIZE (linuxhw-hw-probe-1.6-beta_GH0.tar.gz) = 139901
diff --git a/sysutils/hw-probe/pkg-descr b/sysutils/hw-probe/pkg-descr
new file mode 100644
index 000000000000..c8d373e8511a
--- /dev/null
+++ b/sysutils/hw-probe/pkg-descr
@@ -0,0 +1,18 @@
+A tool to check operability of computer hardware and upload result
+to the Linux/*BSD hardware database.
+
+Probe is a snapshot of your computer hardware state and system
+logs. The tool checks operability of devices by analysis of logs
+and returns a permanent URL to view the probe of the computer.
+
+The tool is intended to simplify collecting of logs necessary for
+investigating hardware related problems. Just run one simple
+command in the console to check your hardware and collect all the
+system logs at once:
+
+ sudo -E hw-probe -all -upload
+
+By creating probes you contribute to the HDD/SSD Desktop-Class
+Reliability Test study: https://github.com/linuxhw/SMART
+
+WWW: https://bsd-hardware.info/