svn commit: r562225 - head/sysutils/dmidecode
Mitchell Horne
mhorne at FreeBSD.org
Thu Jan 21 17:31:05 UTC 2021
Author: mhorne (src committer)
Date: Thu Jan 21 17:31:05 2021
New Revision: 562225
URL: https://svnweb.freebsd.org/changeset/ports/562225
Log:
sysutils/dmidecode: expand platform support
SMBIOS data is made available on all EFI platforms, including arm64,
arm, and riscv. Allow the port to be built for these architectures,
excluding the x86-specific utilities.
Reviewed by: lwhsu, emaste
Approved by: lwhsu (ports)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28244
Modified:
head/sysutils/dmidecode/Makefile
head/sysutils/dmidecode/pkg-plist
Modified: head/sysutils/dmidecode/Makefile
==============================================================================
--- head/sysutils/dmidecode/Makefile Thu Jan 21 17:03:10 2021 (r562224)
+++ head/sysutils/dmidecode/Makefile Thu Jan 21 17:31:05 2021 (r562225)
@@ -12,7 +12,7 @@ COMMENT= Tool for dumping DMI (SMBIOS) contents in hum
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
-ONLY_FOR_ARCHS= amd64 i386
+ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 riscv64 riscv64sf
USES= tar:xz
@@ -20,8 +20,17 @@ SUB_FILES= dmidecode
OPTIONS_DEFINE= DOCS
+.include <bsd.port.pre.mk>
+
+# Additional programs are only built for x86 platforms.
+.if ${ARCH} == "amd64" || ${ARCH} == "i386"
+PLIST_SUB+= X86=""
+.else
+PLIST_SUB+= X86="@comment "
+.endif
+
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily/
${INSTALL_SCRIPT} ${WRKDIR}/dmidecode ${STAGEDIR}${PREFIX}/etc/periodic/daily/
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Modified: head/sysutils/dmidecode/pkg-plist
==============================================================================
--- head/sysutils/dmidecode/pkg-plist Thu Jan 21 17:03:10 2021 (r562224)
+++ head/sysutils/dmidecode/pkg-plist Thu Jan 21 17:31:05 2021 (r562225)
@@ -1,12 +1,12 @@
etc/periodic/daily/dmidecode
-man/man8/biosdecode.8.gz
-man/man8/dmidecode.8.gz
-man/man8/ownership.8.gz
-man/man8/vpddecode.8.gz
-sbin/biosdecode
sbin/dmidecode
-sbin/ownership
-sbin/vpddecode
+man/man8/dmidecode.8.gz
+%%X86%%man/man8/biosdecode.8.gz
+%%X86%%man/man8/ownership.8.gz
+%%X86%%man/man8/vpddecode.8.gz
+%%X86%%sbin/biosdecode
+%%X86%%sbin/ownership
+%%X86%%sbin/vpddecode
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README
More information about the svn-ports-all
mailing list