wok annotate intel-microcode/receipt @ rev 25678

Patch ghostscript CVE-2023-36664
author Stanislas Leduc <shann@slitaz.org>
date Fri Mar 08 14:12:03 2024 +0100 (7 months ago)
parents 86d79cfc8e5e
children
rev   line source
al@20178 1 # SliTaz package receipt.
al@20177 2
al@20177 3 PACKAGE="intel-microcode"
pascal@25553 4 VERSION="20230214"
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@25553 9 WEB_SITE="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files"
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@25553 19 # What is the latest version available today?
pascal@24055 20 current_version()
pascal@24055 21 {
pascal@24055 22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25599 23 sed '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;q'
pascal@24055 24 }
pascal@24055 25
pascal@25553 26 # Rules to configure and make the package.
Hans-G?nter@21052 27 compile_rules()
Hans-G?nter@21052 28 {
al@20177 29 mkdir -p $install/lib/firmware/
Hans-G?nter@21052 30
Hans-G?nter@22952 31 cp -r $src/intel-ucode/ $install/lib/firmware/
al@20177 32
Hans-G?nter@22952 33 install -Dm644 $stuff/LICENSE $install/usr/share/licenses/$PACKAGE/LICENSE
al@20177 34 }
al@20177 35
pascal@25553 36 # Rules to gen a SliTaz package suitable for Tazpkg.
Hans-G?nter@21052 37 genpkg_rules()
Hans-G?nter@21052 38 {
Hans-G?nter@22952 39 cp -r $install/* $fs
al@20177 40 }
al@20177 41
pascal@25553 42 # Pre and post install commands for Tazpkg.
Hans-G?nter@21052 43 post_install()
Hans-G?nter@21052 44 {
Hans-G?nter@22952 45 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]
Hans-G?nter@22952 46 then
al@20177 47 echo 1 > /sys/devices/system/cpu/microcode/reload
al@20177 48 fi
al@20177 49 }