Hi,

hw-probe could run on non-x86 architectures.
Tested on arm64 [1] and octeon [2].

[1] https://bsd-hardware.info/index.php?probe=c030400069
[2] https://bsd-hardware.info/?probe=b8524b5002

ok?

Index: sysutils/hw-probe/Makefile
===================================================================
RCS file: /cvs/ports/sysutils/hw-probe/Makefile,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 Makefile
--- sysutils/hw-probe/Makefile  10 Sep 2020 10:00:46 -0000      1.2
+++ sysutils/hw-probe/Makefile  20 Nov 2020 04:29:41 -0000
@@ -4,7 +4,7 @@ COMMENT =       hardware probe tool
 CATEGORIES =   sysutils
 
 PKGNAME =      hw-probe-1.6beta
-REVISION =     0
+REVISION =     1
 
 GH_ACCOUNT =   linuxhw
 GH_PROJECT =   hw-probe
@@ -16,12 +16,15 @@ MAINTAINER =        David Dahlberg <david+bsd@d
 PERMIT_PACKAGE =       Yes
 
 RUN_DEPENDS =  net/curl \
-               sysutils/dmidecode \
                sysutils/lscpu \
                sysutils/pciutils \
                sysutils/smartmontools \
                sysutils/usbutil \
                sysutils/usbutils
+
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
+RUN_DEPENDS += sysutils/dmidecode
+.endif
 
 FAKE_FLAGS =   prefix=${PREFIX} tool_dir=${DESTDIR}${PREFIX}/sbin
 

Reply via email to