sysutils/cpupdate: minor update

Update for platomav/CPUMicrocodes r274.
Update for Intel pack microcode-20230808.
Fix microcode download, again. (*)

Bump PORTREVISION.

PR:	273035 (*)
This commit is contained in:
Eugene Grosbein 2023-08-15 05:09:25 +07:00
parent 711c314900
commit a5d39f235d
No known key found for this signature in database
GPG key ID: C8960FF146564C9A
4 changed files with 16 additions and 17 deletions

View file

@ -1,6 +1,6 @@
PORTNAME= cpupdate
DISTVERSION= g20180513
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= sysutils
MAINTAINER= eugen@FreeBSD.org
@ -30,27 +30,25 @@ SUB_LIST= CPM_DIR="${CPM_DIR}" INTEL_DIR="${INTEL_DIR}" \
USE_GITHUB= yes
GH_ACCOUNT= kernschmelze
GH_PROJECT= ${PORTNAME}
GH_TAGNAME= 48e42d5
PLIST_FILES= sbin/${PORTNAME} man/man8/${PORTNAME}.8.gz
# MCE DB r268
# MCE DB r274
CPM_ACCOUNT= platomav
CPM_PROJECT= CPUMicrocodes
CPM_TAGNAME= 246a49d
CPM_TAGNAME= 0a6abcd
OPTIONS_DEFINE= CPM INTEL
CPM_DESC= Download platomav/CPUMicrocodes collection
CPM_GH_ACCOUNT= ${CPM_ACCOUNT}:cpm
CPM_GH_PROJECT= ${CPM_PROJECT}:cpm
CPM_GH_TAGNAME= ${CPM_TAGNAME}:cpm
CPM_PACK= ${CPM_ACCOUNT}-${CPM_PROJECT}-${CPM_TAGNAME}_GH0
CPM_MASTER_SITES= https://codeload.github.com/platomav/${CPM_PROJECT}/tar.gz/${CPM_TAGNAME}?dummy=/${CPM_PACK}.tar.gz
CPM_PACK?= ${CPM_ACCOUNT}-${CPM_PROJECT}-${CPM_TAGNAME}_GH0.tar.gz
CPM_DIR= ${WRKDIR}/${CPM_PROJECT}-${CPM_TAGNAME}
CPM_DATADIR= ${DATADIR}/CPUMicrocodes/secondary/Intel
INTEL_PACK= microcode-20230613
INTEL_PACK= microcode-20230808
INTEL_DESC= Download Intel microcode pack ${INTEL_PACK}
INTEL_PROJECT= Intel-Linux-Processor-Microcode-Data-Files
INTEL_MASTER_SITES= https://codeload.github.com/intel/${INTEL_PROJECT}/tar.gz/:intel
@ -58,8 +56,9 @@ INTEL_DISTFILES= ${INTEL_PACK}:intel
INTEL_DIR= ${WRKDIR}/${INTEL_PROJECT}-${INTEL_PACK}/intel-ucode
INTEL_DATADIR= ${DATADIR}/CPUMicrocodes/primary/Intel
CPUPDATE_SITES?= ${CPM_MASTER_SITES}:cpm ${INTEL_MASTER_SITES}
CPUPDATE_DISTFILES?= ${CPM_PACK}:cpm ${INTEL_PACK}:intel
CPUPDATE_SITES?= ${INTEL_MASTER_SITES} \
https://codeload.github.com/platomav/${CPM_PROJECT}/tar.gz/${CPM_TAGNAME}?dummy=/:cpm
CPUPDATE_DISTFILES?= ${INTEL_PACK}:intel ${CPM_PACK}:cpm
post-patch:
${REINPLACE_CMD} -e "s,/usr/local/share/cpupdate,${DATADIR},g" ${WRKSRC}/cpupdate.h

View file

@ -1,7 +1,7 @@
TIMESTAMP = 1687165633
SHA256 (microcode-20230613) = 894d822d2347222a2595d4fc47d358e01d35a54780123100c317dfc31b1b0cc9
SIZE (microcode-20230613) = 12338446
TIMESTAMP = 1691636867
SHA256 (microcode-20230808) = fe49bb719441f20335ed6004090ab38cdc374134d36d4f5d30be7ed93b820313
SIZE (microcode-20230808) = 13011561
SHA256 (kernschmelze-cpupdate-g20180513-48e42d5_GH0.tar.gz) = d28582fe7edfb57da99fb2466417033ee619c32de9c6b5f1a5fae7d9be8253da
SIZE (kernschmelze-cpupdate-g20180513-48e42d5_GH0.tar.gz) = 4566722
SHA256 (platomav-CPUMicrocodes-246a49d_GH0.tar.gz) = 2f5d49aa504b5579395ce75cca6051877766fdf7843defb6441337ffa571b67a
SIZE (platomav-CPUMicrocodes-246a49d_GH0.tar.gz) = 21633497
SHA256 (platomav-CPUMicrocodes-0a6abcd_GH0.tar.gz) = 362dc160df2c3363d81224195bdb22c812c37771349fe4e6f77e2dca7736e459
SIZE (platomav-CPUMicrocodes-0a6abcd_GH0.tar.gz) = 22285749

View file

@ -64,8 +64,8 @@ cpupdate_download() {
*:cpm|*:intel)
cpupdate_distfile _file ${_url##*:}
_url=${_url%:*}${_file}
echo Downloading $_url
$cpupdate_fetch -o - $_url | tar -C $_tmpdir -xf - || exit
echo Downloading "$_url"
$cpupdate_fetch -o - "$_url" | tar -C $_tmpdir -xf - || exit
;;
esac
done

View file

@ -11,7 +11,7 @@ if you have just built the port with corresponding CPM/INTEL option(s) enabled.
In this case you can run "make install-microcodes" to install them to
%%DATADIR%%
If you installed the package then you may download microcodes with following command:
If you installed the package then you can download microcodes with following command:
service cpupdate download
EOM
}