freebsd-ports/sysutils/dmidecode/Makefile
Mateusz Piotrowski 718e455893 sysutils/dmidecode: Fix segmentation fault in dmi_hp_240_attr()
Back port a patch from the dmidecode upsteam that resolves a crash when
reading the Attribute #240 on some HP hardware.

See
https://git.savannah.nongnu.org/cgit/dmidecode.git/commit/?id=c3357b532941a8df387618e692e522cc7a43b3e8

Approved by:	portmgr blanket
Sponsored by:	Klara Inc.
2022-09-16 14:51:28 +02:00

35 lines
780 B
Makefile

PORTNAME= dmidecode
PORTVERSION= 3.4
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= SAVANNAH
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Tool for dumping DMI (SMBIOS) contents in human-readable format
WWW= https://www.nongnu.org/dmidecode/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 riscv64 riscv64sf
USES= tar:xz
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.post.mk>