# HG changeset patch # User Pascal Bellard # Date 1681051644 0 # Node ID 86d79cfc8e5e3e7011c97e0900b1fce55caa87ba # Parent 976aaa1af0d26b2e6df9e4862984dae7a770fa1a Up amd-microcode (2021.Sep.10), intel-microcode (20230214) diff -r 976aaa1af0d2 -r 86d79cfc8e5e amd-microcode/receipt --- a/amd-microcode/receipt Sat Apr 08 14:00:41 2023 +0000 +++ b/amd-microcode/receipt Sun Apr 09 14:47:24 2023 +0000 @@ -1,34 +1,47 @@ # SliTaz package receipt. PACKAGE="amd-microcode" -VERSION="20180125" # just date of creating the receipt +VERSION="2021.Sep.10" CATEGORY="kernel" SHORT_DESC="AMD processor microcode update for Linux" MAINTAINER="al.bobylev@gmail.com" LICENSE="unknown" -WEB_SITE="https://linuxfromscratch.org/blfs/view/svn/postlfs/firmware.html#and-microcode" # yes, "and" is typo +WEB_SITE="https://linuxfromscratch.org/blfs/view/svn/postlfs/firmware.html#amd-microcode" # See also: https://wiki.gentoo.org/wiki/AMD_microcode DEPENDS="linux" +# What is the latest version available today? +current_version() +{ + wget -O - https://wiki.gentoo.org/wiki/AMD_microcode 2>/dev/null | \ + sed '/signed-off/!d;s|.*off, ||;s|).*||;s|\(.*\) \(.*\) \(.*\)|\3.\2.\1|' | tail -n1 +} + +# Rules to configure and make the package. compile_rules() { - mkdir -p $install/lib/firmware/amd-ucode + mkdir -p $install/lib/firmware/amd-ucode $install/lib/firmware/amd - for i in microcode_amd.bin microcode_amd_fam15h.bin microcode_amd_fam16h.bin; do - [ -f "$SRC/$i" ] || - wget -O "$SRC/$i" http://anduin.linuxfromscratch.org/BLFS/linux-firmware/amd-ucode/$i - if [ ! -f "$SRC/$i" ]; then + for i in amd-ucode/microcode_amd.bin amd-ucode/microcode_amd_fam15h.bin \ + amd-ucode/microcode_amd_fam16h.bin amd-ucode/microcode_amd_fam17h.bin \ + amd-ucode/microcode_amd_fam19h.bin amd/amd_sev_fam17h_model0xh.sbin \ + amd/amd_sev_fam17h_model3xh.sbin amd/amd_sev_fam19h_model0xh.sbin ; do + [ -f "$SRC/${i#*/}" ] || + wget -O "$SRC/${i#*/}" http://anduin.linuxfromscratch.org/BLFS/linux-firmware/$i + if [ ! -f "$SRC/${i#*/}" ]; then echo "ERROR: can't get $i" return 1 fi - cp "$SRC/$i" $install/lib/firmware/amd-ucode/ + cp "$SRC/${i#*/}" $install/lib/firmware/$i done } +# Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -r $install/* $fs } +# Pre and post install commands for Tazpkg. post_install() { if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then echo 1 > /sys/devices/system/cpu/microcode/reload diff -r 976aaa1af0d2 -r 86d79cfc8e5e intel-microcode/receipt --- a/intel-microcode/receipt Sat Apr 08 14:00:41 2023 +0000 +++ b/intel-microcode/receipt Sun Apr 09 14:47:24 2023 +0000 @@ -1,12 +1,12 @@ # SliTaz package receipt. PACKAGE="intel-microcode" -VERSION="20220207" +VERSION="20230214" CATEGORY="kernel" SHORT_DESC="Intel processor microcode update for Linux." MAINTAINER="al.bobylev@gmail.com" LICENSE="other" -WEB_SITE="https://www.intel.com/content/www/us/en/download-center/home.html?keyword=processor+microcode+data+file" +WEB_SITE="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files" # See also: https://wiki.archlinux.org/index.php/Microcode # and https://www.archlinux.org/packages/extra/any/intel-ucode/ @@ -16,12 +16,14 @@ DEPENDS="linux" +# What is the latest version available today? current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/microcode-\(.*\).tar.*|\1|;q' } +# Rules to configure and make the package. compile_rules() { mkdir -p $install/lib/firmware/ @@ -31,11 +33,13 @@ install -Dm644 $stuff/LICENSE $install/usr/share/licenses/$PACKAGE/LICENSE } +# Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -r $install/* $fs } +# Pre and post install commands for Tazpkg. post_install() { if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ] diff -r 976aaa1af0d2 -r 86d79cfc8e5e kegs/receipt --- a/kegs/receipt Sat Apr 08 14:00:41 2023 +0000 +++ b/kegs/receipt Sun Apr 09 14:47:24 2023 +0000 @@ -35,6 +35,6 @@ genpkg_rules() { mkdir -p $fs/usr/bin $fs/usr/share - cp $src/kegs $fs/usr/bin + cp $src/xkegs $fs/usr/bin cp -a $src/doc $fs/usr/share } diff -r 976aaa1af0d2 -r 86d79cfc8e5e warmux-music/receipt --- a/warmux-music/receipt Sat Apr 08 14:00:41 2023 +0000 +++ b/warmux-music/receipt Sun Apr 09 14:47:24 2023 +0000 @@ -6,7 +6,7 @@ SHORT_DESC="Warmux game music (~35Mb)" MAINTAINER="slaxemulator@gmail.com" LICENSE="GPL2" -WEB_SITE="https://www.wormux.org/" +WEB_SITE="https://web.archive.org/web/20221203051925/https://www.warmux.org/" WANTED="warmux" DEPENDS="warmux" diff -r 976aaa1af0d2 -r 86d79cfc8e5e warmux/receipt --- a/warmux/receipt Sat Apr 08 14:00:41 2023 +0000 +++ b/warmux/receipt Sun Apr 09 14:47:24 2023 +0000 @@ -6,8 +6,7 @@ SHORT_DESC="Warmux game" MAINTAINER="slaxemulator@gmail.com" LICENSE="GPL2" -WEB_SITE="https://www.warmux.org/" -#WEB_SITE="https://web.archive.org/web/20221203051925/https://www.warmux.org/" +WEB_SITE="https://web.archive.org/web/20221203051925/https://www.warmux.org/" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="$WEB_SITE$TARBALL" PROVIDE="wormux" @@ -22,7 +21,7 @@ # What is the latest version available today? current_version() { - wget -O - $WEB_SITE 2>/dev/null | \ + wget -O - https://www.warmux.org/ 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q }