freebsd-ports/sysutils/mcelog/Makefile
Richard Gallamore 14c342ec21 * Updated to 162
- Fix memory controller bank channel mappings for Skylake
 - Add decoding for Optane DC persistent memory mode
2019-02-13 23:35:49 +00:00

42 lines
1 KiB
Makefile

# Created by: Jeremy Chadwick <freebsd@jdc.parodius.com>
# $FreeBSD$
PORTNAME= mcelog
PORTVERSION= 162
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= ultima@FreeBSD.org
COMMENT= Collects and decodes Machine Check Exception data
LICENSE= GPLv2
ONLY_FOR_ARCHS= amd64 i386
TEST_DEPENDS= bash:shells/bash
USES= alias gmake shebangfix
USE_GITHUB= yes
GH_ACCOUNT= andikleen
SHEBANG_FILES= tests/cache/inject tests/memdb/inject tests/page/inject \
tests/pfa/inject tests/server/inject tests/socket/inject \
tests/trigger tests/unknown/inject
MAKE_ENV+= FREEBSD=1
MAKE_ARGS+= CFLAGS="${CFLAGS}" prefix="${PREFIX}"
LDFLAGS+= -lkvm
PLIST_FILES= bin/mcelog man/man8/mcelog.8.gz
post-patch:
@${ECHO} "${DISTVERSIONPREFIX}${PORTVERSION}" >${WRKSRC}/.os_version
@${CP} ${FILESDIR}/memstream.c ${WRKSRC}/memstream.c
@${REINPLACE_CMD} 's/\"unknown\"/\"${PORTVERSION}\"/' \
${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mcelog ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/mcelog.8 ${STAGEDIR}${MANPREFIX}/man/man8
.include <bsd.port.mk>