PORTNAME= microcode DISTVERSIONPREFIX= microcode- DISTVERSION= 20241112 CATEGORIES= sysutils PKGNAMEPREFIX= cpu- PKGNAMESUFFIX= -intel MAINTAINER= jrm@FreeBSD.org COMMENT= Intel CPU microcode updates WWW= https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files LICENSE= EULA LICENSE_NAME= Intel Software License Agreement LICENSE_FILE= ${FILESDIR}/LICENSE LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept ONLY_FOR_ARCHS= amd64 i386 USES= cpe CPE_PART= o CPE_VENDOR= intel CPE_PRODUCT= microcode USE_GITHUB= yes GH_ACCOUNT= intel GH_PROJECT= Intel-Linux-Processor-Microcode-Data-Files DATADIR= ${PREFIX}/share/cpucontrol FWDIR= /boot/firmware NO_ARCH= yes NO_WRKSUBDIR= yes OPTIONS_DEFINE= RC SPLIT OPTIONS_DEFAULT= ${OPTIONS_DEFINE} OPTIONS_SUB= yes RC_DESC= Depend on RC script port (automatic update method two) SPLIT_DESC= Install split files (for cpucontrol(8) and RC script) RC_IMPLIES= SPLIT RC_RUN_DEPENDS= ${LOCALBASE}/etc/rc.d/microcode_update:sysutils/cpu-microcode-rc SPLIT_VARS_OFF= NO_BUILD=yes post-extract: ${CAT} ${WRKSRC}/Intel-Linux-Processor-Microcode-Data-Files-${GH_TAGNAME}/intel-ucode/* \ ${WRKSRC}/Intel-Linux-Processor-Microcode-Data-Files-${GH_TAGNAME}/intel-ucode-with-caveats/* \ > ${WRKSRC}/intel-ucode.bin post-extract-SPLIT-on: ${CP} -p ${FILESDIR}/Makefile ${FILESDIR}/ucode-split.c ${WRKSRC} ${REINPLACE_CMD} 's|%%GH_TAGNAME%%|${GH_TAGNAME}|g' ${WRKSRC}/Makefile do-install: ${MKDIR} ${STAGEDIR}${FWDIR} ${INSTALL_DATA} ${WRKSRC}/intel-ucode.bin ${STAGEDIR}${FWDIR}/ do-install-SPLIT-on: ${MKDIR} ${STAGEDIR}${DATADIR}/ ${INSTALL_DATA} ${WRKSRC}/mcodes/* ${STAGEDIR}${DATADIR}/ .include