update to hw-probe 1.6, from maintainer, tweak to pkgname from me
This commit is contained in:
parent
2746748a35
commit
5e3a48e6c4
@ -1,14 +1,11 @@
|
||||
#$OpenBSD: Makefile,v 1.3 2020/11/22 13:41:11 kevlo Exp $
|
||||
#$OpenBSD: Makefile,v 1.4 2022/02/08 16:18:54 sthen Exp $
|
||||
|
||||
COMMENT = hardware probe tool
|
||||
CATEGORIES = sysutils
|
||||
|
||||
PKGNAME = hw-probe-1.6beta
|
||||
REVISION = 1
|
||||
|
||||
GH_ACCOUNT = linuxhw
|
||||
GH_PROJECT = hw-probe
|
||||
GH_TAGNAME = 1.6-beta
|
||||
GH_TAGNAME = 1.6
|
||||
|
||||
MAINTAINER = David Dahlberg <david+bsd@dahlberg.cologne>
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (hw-probe-1.6-beta.tar.gz) = HiNGTldxe0aeBsmlHzqG/Ha9CTiM3ILEy4sNTNHVyuc=
|
||||
SIZE (hw-probe-1.6-beta.tar.gz) = 143569
|
||||
SHA256 (hw-probe-1.6.tar.gz) = 3gSL5q7zV9MULJ4jJ9b3nSBaQqozlq04HtMZEV0cmiI=
|
||||
SIZE (hw-probe-1.6.tar.gz) = 158879
|
||||
|
22
sysutils/hw-probe/patches/patch-hw-probe_pl
Normal file
22
sysutils/hw-probe/patches/patch-hw-probe_pl
Normal file
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-hw-probe_pl,v 1.1 2022/02/08 16:18:54 sthen Exp $
|
||||
|
||||
Index: hw-probe.pl
|
||||
--- hw-probe.pl.orig
|
||||
+++ hw-probe.pl
|
||||
@@ -2129,6 +2129,7 @@ sub hideDmesg($)
|
||||
$Content=~s/(Serial Number).+/$1.../g;
|
||||
$Content=~s/(\s+s\/n\s+)[^\s]+/$1.../g;
|
||||
$Content=~s/(serial\s*=\s*)[^\s]+/$1.../g;
|
||||
+ $Content=~s/ (serial\s+)[^\s]+/ $1.../g; # BSD
|
||||
$Content=~s/(removable serial\.).+/$1.../g;
|
||||
$Content=~s/( SN ).+?( MFG )/$1...$2/g;
|
||||
|
||||
@@ -5088,7 +5089,7 @@ sub probeHW()
|
||||
$Sysctl=~s/((kern\.hostname|serialno|-serial|-asset-tag)\s*[:=]\s*).+/$1.../g;
|
||||
$Sysctl=~s/ ([^\s]+) (login|syslogd)/ ... $2/g;
|
||||
$Sysctl=~s/(Serial Number\s+)(.+)/$1.../g;
|
||||
- $Sysctl=~s/(sernum=)[^\s]+/$1.../g;
|
||||
+ $Sysctl=~s/((sernum|soiikey)=)[^\s]+/$1.../g;
|
||||
foreach my $Hide ("kern.msgbuf", "kern.geom.confxml", "kern.geom.confdot", "kern.geom.conftxt") {
|
||||
$Sysctl=~s/(\Q$Hide\E:).+?(\skern\.)/$1 ...$2/gs;
|
||||
}
|
@ -3,6 +3,7 @@ with the help of Linux hardware database: https://linux-hardware.org
|
||||
|
||||
For BSD users: https://bsd-hardware.info
|
||||
|
||||
Please be aware that running hw-probe without parameters implies
|
||||
"-all -upload" and will upload a lot of information about your
|
||||
current OS and hardware configuration to the online database.
|
||||
Please be aware that running hw-probe with parameter "-upload" will
|
||||
upload a lot of information about your current OS and hardware
|
||||
configuration informationto the online database. This might include
|
||||
identifiable information like UIDs and hardware serial numbers.
|
||||
|
Loading…
Reference in New Issue
Block a user