Fri Aug 25 14:49:58 2023 UTC ()
sysutils/hw-probe: package revision.

# Changes

* Fix versioning.
  The script available on the BSD hardware database site tracks the master
  branch, so it's difficult to provide reliable distfiles without breaking
  checksums. Switching MASTER_SITES to the official github repo.
  This also allows to have consistent versioning.
* Let package to be installed also on Linux (supported).
* Simplify DESCR.
* Install documentation.


(vins)
diff -r1.1 -r1.2 pkgsrc/sysutils/hw-probe/DESCR
diff -r1.1 -r1.2 pkgsrc/sysutils/hw-probe/PLIST
diff -r1.1 -r1.2 pkgsrc/sysutils/hw-probe/distinfo
diff -r1.2 -r1.3 pkgsrc/sysutils/hw-probe/Makefile

cvs diff -r1.1 -r1.2 pkgsrc/sysutils/hw-probe/DESCR (expand / switch to unified diff)

--- pkgsrc/sysutils/hw-probe/DESCR 2023/07/08 22:15:42 1.1
+++ pkgsrc/sysutils/hw-probe/DESCR 2023/08/25 14:49:58 1.2
@@ -1,16 +1,3 @@ @@ -1,16 +1,3 @@
1A tool to probe for hardware, check operability and find drivers 1Hardware probe is a tool to check operability of hardware devices,
2with the help of BSD hardware database. 2collect system logs and contribute to the hardware database and user
3 3statistics.
4Probe is a snapshot of your computer hardware state and system 
5logs. The tool checks operability of devices by analysis of logs 
6and returns a permanent URL to view the probe of the computer. 
7 
8The tool is intended to simplify collecting of logs necessary for 
9investigating hardware related problems. Just run one simple 
10command (requires superuser privileges) in the console to check 
11your hardware and collect all the system logs at once: 
12 
13 # hw-probe -all -upload 
14 
15By creating probes you also contribute to the HDD/SSD reliability 
16test study (https://github.com/bsdhw/SMART). 

cvs diff -r1.1 -r1.2 pkgsrc/sysutils/hw-probe/PLIST (expand / switch to unified diff)

--- pkgsrc/sysutils/hw-probe/PLIST 2023/07/08 22:15:42 1.1
+++ pkgsrc/sysutils/hw-probe/PLIST 2023/08/25 14:49:58 1.2
@@ -1,2 +1,3 @@ @@ -1,2 +1,3 @@
1@comment $NetBSD: PLIST,v 1.1 2023/07/08 22:15:42 vins Exp $ 1@comment $NetBSD: PLIST,v 1.2 2023/08/25 14:49:58 vins Exp $
2bin/hw-probe 2bin/hw-probe
 3share/doc/hw-probe/README

cvs diff -r1.1 -r1.2 pkgsrc/sysutils/hw-probe/distinfo (expand / switch to unified diff)

--- pkgsrc/sysutils/hw-probe/distinfo 2023/07/08 22:15:42 1.1
+++ pkgsrc/sysutils/hw-probe/distinfo 2023/08/25 14:49:58 1.2
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.1 2023/07/08 22:15:42 vins Exp $ 1$NetBSD: distinfo,v 1.2 2023/08/25 14:49:58 vins Exp $
2 2
3BLAKE2s (hw-probe-1.6/hw-probe) = 635ebfd03db6d806aa8c54396a07ec6c3ec83b0ee9ca04197f0623249226a331 3BLAKE2s (hw-probe-1.6.5_20230812-b895b77b7e03f4b1b0a5fb177118373ee0328a25.tar.gz) = 86592282efc6fca24eeb4efb3c46e5e1772364fde2dd7b8fcb1b8abb94bd245c
4SHA512 (hw-probe-1.6/hw-probe) = f811d34297f1cca048cd02929d2c962a36f593c8f15385578082671dd0d2e1cc0aef7de991559adfeca98abf1cad88b97be0dd0e6094194103323fdd8d35b177 4SHA512 (hw-probe-1.6.5_20230812-b895b77b7e03f4b1b0a5fb177118373ee0328a25.tar.gz) = 633cda1e1d6a3104587b6ebf4faad98526e0d6daec5e9a26b319a4b5b76baeac063277eca9e81e7903b28cdebbb3db095f7526d1f46511f885e37b31e1032b7d
5Size (hw-probe-1.6/hw-probe) = 551369 bytes 5Size (hw-probe-1.6.5_20230812-b895b77b7e03f4b1b0a5fb177118373ee0328a25.tar.gz) = 166015 bytes

cvs diff -r1.2 -r1.3 pkgsrc/sysutils/hw-probe/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/hw-probe/Makefile 2023/07/10 10:35:20 1.2
+++ pkgsrc/sysutils/hw-probe/Makefile 2023/08/25 14:49:58 1.3
@@ -1,50 +1,56 @@ @@ -1,50 +1,56 @@
1# $NetBSD: Makefile,v 1.2 2023/07/10 10:35:20 vins Exp $ 1# $NetBSD: Makefile,v 1.3 2023/08/25 14:49:58 vins Exp $
2 2
3DISTNAME= hw-probe 3PKGVER= 1.6.5_20230812
4PKGNAME= hw-probe-1.6 4DISTNAME= hw-probe-${PKGVER}
5CATEGORIES= sysutils perl5 5CATEGORIES= sysutils perl5
6MASTER_SITES= http://bsd-hardware.info/ 6MASTER_SITES= ${MASTER_SITE_GITHUB:=linuxhw/}
7DIST_SUBDIR= ${PKGNAME_NOREV} 7GITHUB_TAG= b895b77b7e03f4b1b0a5fb177118373ee0328a25
8EXTRACT_SUFX= # empty 
9 8
10MAINTAINER= vins@NetBSD.org 9MAINTAINER= vins@NetBSD.org
11HOMEPAGE= https://bsd-hardware.info/ 10HOMEPAGE= https://bsd-hardware.info/
 11#HOMEPAGE+= https://linux-hardware.org/
12COMMENT= Check operability of computer hardware and find drivers 12COMMENT= Check operability of computer hardware and find drivers
13LICENSE= gnu-lgpl-v2.1 OR original-bsd 13LICENSE= gnu-lgpl-v2.1 OR original-bsd
14 14
15ONLY_FOR_PLATFORM+= FreeBSD-*-* OpenBSD-*-* NetBSD-*-* DragonFly-*-* 15ONLY_FOR_PLATFORM+= FreeBSD-*-* OpenBSD-*-* NetBSD-*-*
 16ONLY_FOR_PLATFORM+= DragonFly-*-* Linux-*-*
 17
 18USE_TOOLS+= perl:run
16 19
17DEPENDS+= curl-[0-9]*:../../www/curl 20DEPENDS+= curl-[0-9]*:../../www/curl
18DEPENDS+= usbutil-[0-9]*:../../sysutils/usbutil 21DEPENDS+= usbutil-[0-9]*:../../sysutils/usbutil
19DEPENDS+= mozilla-rootcerts-[0-9]*:../../security/mozilla-rootcerts 22DEPENDS+= mozilla-rootcerts-[0-9]*:../../security/mozilla-rootcerts
20DEPENDS+= smartmontools-[0-9]*:../../sysutils/smartmontools 23DEPENDS+= smartmontools-[0-9]*:../../sysutils/smartmontools
21 24
22USE_TOOLS+= perl:run 
23 
24REPLACE_PERL+= hw-probe 
25 
26INSTALLATION_DIRS+= bin 
27 
28NO_BUILD= yes 
29 
30WRKSRC= ${WRKDIR} 
31 
32.include "../../mk/bsd.prefs.mk" 25.include "../../mk/bsd.prefs.mk"
33 26
34.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64") || (${MACHINE_ARCH} == "aarch64") 27.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64") || (${MACHINE_ARCH} == "aarch64")
35DEPENDS+= dmidecode-[0-9]*:../../sysutils/dmidecode 28DEPENDS+= dmidecode-[0-9]*:../../sysutils/dmidecode
36.endif 29.endif
37 30
38.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64") 31.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "x86_64")
39. if ${OPSYS} == "NetBSD" 32. if ${OPSYS} == "NetBSD" || ${OPSYS} == "Linux"
40DEPENDS+= cpuid-[0-9]*:../../sysutils/cpuid 33DEPENDS+= cpuid-[0-9]*:../../sysutils/cpuid
41. else 34. else
42DEPENDS+= lscpu-[0-9]*:../../sysutils/lscpu 35DEPENDS+= lscpu-[0-9]*:../../sysutils/lscpu
43. endif 36. endif
44.endif 37.endif
45 38
 39DOCDIR= share/doc/${PKGBASE}
 40MESSAGE_SUBST+= DOCDIR=${DOCDIR:Q}
 41
 42REPLACE_PERL+= hw-probe.pl
 43
 44NO_BUILD= yes
 45
 46INSTALLATION_DIRS+= bin ${DOCDIR}
46 47
47do-install: 48do-install:
48 ${INSTALL_SCRIPT} ${WRKSRC}/hw-probe ${DESTDIR}${PREFIX}/bin/hw-probe 49 ${INSTALL_SCRIPT} ${WRKSRC}/hw-probe.pl \
 50 ${DESTDIR}${PREFIX}/bin/hw-probe
 51
 52post-install:
 53 ${INSTALL_DATA} ${WRKSRC}/README.md \
 54 ${DESTDIR}${PREFIX}/${DOCDIR}/README
49 55
50.include "../../mk/bsd.pkg.mk" 56.include "../../mk/bsd.pkg.mk"