pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Initial commit for hw-probe



Module Name:	pkgsrc-wip
Committed By:	Andrey Ponomarenko <andrew.v.ponomarenko%gmail.com@localhost>
Pushed By:	aponomarenko
Date:		Tue Jan 12 16:20:42 2021 +0300
Changeset:	ccf4ed811dc2607b23de504097bc62dfac9d8eac

Modified Files:
	Makefile
Added Files:
	hw-probe/DESCR
	hw-probe/Makefile
	hw-probe/PLIST
	hw-probe/distinfo

Log Message:
Initial commit for hw-probe

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ccf4ed811dc2607b23de504097bc62dfac9d8eac

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile          |  1 +
 hw-probe/DESCR    | 18 ++++++++++++++++++
 hw-probe/Makefile | 36 ++++++++++++++++++++++++++++++++++++
 hw-probe/PLIST    |  2 ++
 hw-probe/distinfo |  5 +++++
 5 files changed, 62 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 0e67b1b747..904e201d90 100644
--- a/Makefile
+++ b/Makefile
@@ -1638,6 +1638,7 @@ SUBDIR+=	hunspell-dictionaries
 SUBDIR+=	hunspell-uk_UA
 SUBDIR+=	hypatia
 SUBDIR+=	hyperrogue
+SUBDIR+=	hw-probe
 SUBDIR+=	hztool
 SUBDIR+=	i2pd
 SUBDIR+=	i2pd-git
diff --git a/hw-probe/DESCR b/hw-probe/DESCR
new file mode 100644
index 0000000000..319d36236c
--- /dev/null
+++ b/hw-probe/DESCR
@@ -0,0 +1,18 @@
+a tool to probe for hardware, check operability and find drivers
+with the help of 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 (requires superuser privileges) in the console to check
+your hardware and collect all the system logs at once:
+
+    # hw-probe -all -upload
+
+By creating probes you also contribute to the HDD/SSD reliability
+test study (https://github.com/bsdhw/SMART).
+
+WWW: https://bsd-hardware.info/
diff --git a/hw-probe/Makefile b/hw-probe/Makefile
new file mode 100644
index 0000000000..05d3f8892d
--- /dev/null
+++ b/hw-probe/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD$
+
+DISTNAME=	hw-probe-${PORTVERSION}
+PORTVERSION=	1.6-beta
+CATEGORIES=	sysutils perl5
+GITHUB_PROJECT=	linuxhw
+MASTER_SITES=	${MASTER_SITE_GITHUB:=hw-probe/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://bsd-hardware.info
+COMMENT=	Check operability of computer hardware and find drivers
+
+LICENSE=	gnu-lgpl-v2.1 OR 4-clause-bsd
+
+DEPENDS=	curl:../../www/curl \
+		usbutil:../../sysutils/usbutil \
+		mozilla-rootcerts-[0-9]*:../../security/mozilla-rootcerts \
+		smartmontools:../../sysutils/smartmontools
+
+NO_BUILD=	yes
+
+.include "<../../mk/bsd.prefs.mk>"
+
+.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64") || (${MACHINE_ARCH} == "aarch64")
+DEPENDS+=	dmidecode:../../sysutils/dmidecode
+.endif
+
+.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64")
+DEPENDS+=	cpuid:../../sysutils/cpuid
+.endif
+
+do-install:
+	${MKDIR} ${DESTDIR}${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/hw-probe.pl ${DESTDIR}${PREFIX}/bin/hw-probe
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/hw-probe/PLIST b/hw-probe/PLIST
new file mode 100644
index 0000000000..295e0fe556
--- /dev/null
+++ b/hw-probe/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/hw-probe
diff --git a/hw-probe/distinfo b/hw-probe/distinfo
new file mode 100644
index 0000000000..d9b3821ed5
--- /dev/null
+++ b/hw-probe/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+TIMESTAMP = 1590737484
+SHA256 (hw-probe-1.6-beta.tar.gz) = 1e23464e57717b469e06c9a51f3a86fc76bd09388cdc82c4cb8b0d4cd1d5cae7
+SIZE (hw-probe-1.6-beta.tar.gz) = 143569
\ No newline at end of file


Home | Main Index | Thread Index | Old Index