wok annotate intel-microcode/receipt @ rev 25551

nfs-utils: make nfsd work on first start too
author Hans-G?nter Theisgen
date Thu Apr 06 10:52:37 2023 +0100 (19 months ago)
parents 63f5ba2b74dc
children 86d79cfc8e5e
rev   line source
al@20178 1 # SliTaz package receipt.
al@20177 2
al@20177 3 PACKAGE="intel-microcode"
Hans-G?nter@24668 4 VERSION="20220207"
al@20177 5 CATEGORY="kernel"
Hans-G?nter@21052 6 SHORT_DESC="Intel processor microcode update for Linux."
al@20177 7 MAINTAINER="al.bobylev@gmail.com"
al@20177 8 LICENSE="other"
pascal@25438 9 WEB_SITE="https://www.intel.com/content/www/us/en/download-center/home.html?keyword=processor+microcode+data+file"
al@20177 10 # See also: https://wiki.archlinux.org/index.php/Microcode
al@20177 11 # and https://www.archlinux.org/packages/extra/any/intel-ucode/
al@20177 12
al@20178 13
Hans-G?nter@22952 14 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22952 15 WGET_URL="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-$VERSION.tar.gz"
al@20178 16
al@20178 17 DEPENDS="linux"
al@20177 18
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/microcode-\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
Hans-G?nter@21052 25 compile_rules()
Hans-G?nter@21052 26 {
al@20177 27 mkdir -p $install/lib/firmware/
Hans-G?nter@21052 28
Hans-G?nter@22952 29 cp -r $src/intel-ucode/ $install/lib/firmware/
al@20177 30
Hans-G?nter@22952 31 install -Dm644 $stuff/LICENSE $install/usr/share/licenses/$PACKAGE/LICENSE
al@20177 32 }
al@20177 33
Hans-G?nter@21052 34 genpkg_rules()
Hans-G?nter@21052 35 {
Hans-G?nter@22952 36 cp -r $install/* $fs
al@20177 37 }
al@20177 38
Hans-G?nter@21052 39 post_install()
Hans-G?nter@21052 40 {
Hans-G?nter@22952 41 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]
Hans-G?nter@22952 42 then
al@20177 43 echo 1 > /sys/devices/system/cpu/microcode/reload
al@20177 44 fi
al@20177 45 }