#!/bin/bash # Slackware build script for microsoft-secureboot-objects # Written 2026-10-14 for Parted Magic. Data only: the part of Microsoft's # github.com/microsoft/secureboot_objects that Parted Magic Secure Boot # (pmagic_secureboot) reads, at one pinned commit. # # The tarball is the repository's own files, unchanged, in its own paths, # fetched by git blob hash from commit COMMIT below (SHA256SUMS inside lists # every file): # License.txt, Readme.md BSD-2-Clause-Patent # PostSignedObjects/Readme.md # PostSignedObjects/KEK/ KEK 2023 updates signed by each # maker's PK, kek_update_map.json # PostSignedObjects/Optional/DB/ the 2023 db certificates # PostSignedObjects/SignedByKEK2011/dbx_x64_Legacy/ dbx, through KEK CA 2011 # PostSignedObjects/SignedByKEK2023/dbx_x64.efiauth2 dbx, through KEK 2K CA 2023 # PreSignedObjects/{DB,KEK}/Certificates/, PreSignedObjects/PK/, # PreSignedObjects/DBX/dbx_info_msft_latest.json # Left out on purpose: the optional revocation of the Windows Production PCA # 2011 (Optional/DBX, SVN files), which stops every 2011-signed Windows boot # manager; Windows Update applies it with its own checks. Not x86_64: the # arm, arm64 and ia32 dbx files. set -e cd "$(dirname "$0")" ; CWD=$(pwd) PRGNAM=microsoft-secureboot-objects VERSION=${VERSION:-20261013_daa3271} COMMIT=daa32713651f2ffe97b18df5aaf93ffe238aa464 BUILD=${BUILD:-1} TAG=${TAG:-_pmagic} PKGTYPE=${PKGTYPE:-txz} ARCH=noarch if [ -n "${PRINT_PACKAGE_NAME:-}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"; exit 0 fi TMP=${TMP:-/tmp/pm-build} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-$TMP} rm -rf "$PKG" "$TMP/$PRGNAM-$VERSION" mkdir -p "$TMP" "$PKG" "$OUTPUT" cd "$TMP" tar xJf "$CWD/$PRGNAM-$VERSION.tar.xz" cd "$PRGNAM-$VERSION" sha256sum -c --quiet SHA256SUMS chown -R root:root . find . -type d -exec chmod 755 {} \+ find . -type f -exec chmod 644 {} \+ mkdir -p "$PKG/usr/share/$PRGNAM" cp -a License.txt Readme.md SHA256SUMS PostSignedObjects PreSignedObjects \ "$PKG/usr/share/$PRGNAM/" echo "github.com/microsoft/secureboot_objects commit ${COMMIT:0:7} (2026-10-13)" \ > "$PKG/usr/share/$PRGNAM/VERSION" mkdir -p "$PKG/usr/doc/$PRGNAM-$VERSION" cp -a License.txt Readme.md "$PKG/usr/doc/$PRGNAM-$VERSION/" cp -a "$CWD/$PRGNAM.SlackBuild" "$CWD/$PRGNAM.info" "$PKG/usr/doc/$PRGNAM-$VERSION/" mkdir -p "$PKG/install" cat > "$PKG/install/slack-desc" <<'EOD' |-----handy-ruler------------------------------------------------------| microsoft-secureboot-objects: microsoft-secureboot-objects (signed Secure Boot updates) microsoft-secureboot-objects: microsoft-secureboot-objects: Microsoft's signed UEFI Secure Boot update files and certificates: microsoft-secureboot-objects: the 2023 KEK update for each computer maker, the 2023 db microsoft-secureboot-objects: certificates and the dbx revocation list. Parted Magic Secure microsoft-secureboot-objects: Boot applies them. License: BSD-2-Clause-Patent. microsoft-secureboot-objects: microsoft-secureboot-objects: Homepage: https://github.com/microsoft/secureboot_objects microsoft-secureboot-objects: microsoft-secureboot-objects: microsoft-secureboot-objects: EOD cd "$PKG" /sbin/makepkg -l y -c n "$OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"