From: sev Date: Mon, 28 Oct 2024 21:56:04 +0000 (-0500) Subject: testing/sevmonster-keys: new aport X-Git-Url: https://git.sev.monster/aports.git/commitdiff_plain/276f00c5816b68c26a5ee56dcb7e99509c8ea71d?ds=inline testing/sevmonster-keys: new aport --- diff --git a/testing/sevmonster-keys/APKBUILD b/testing/sevmonster-keys/APKBUILD new file mode 100644 index 0000000..ad8507d --- /dev/null +++ b/testing/sevmonster-keys/APKBUILD @@ -0,0 +1,51 @@ +# Maintainer: Natanael Copa +pkgname=sevmonster-keys +pkgver=1 +pkgrel=0 +pkgdesc="Public keys for alpine.sev.monster packages" +url="https://alpine.sev.monster" +# we install arch specific keys to /etc so we cannot do arch=noarch +arch="all" +license="BSD-3-Clause" +options="!check" + +_arch_keys="x86_64:alpine@sev.monster-60eb1287.rsa.pub" + +for _i in $_arch_keys; do + source="$source ${_i#*:}" +done + +_ins_key() { + msg "- $2 ($1)" + install -Dm644 "$srcdir"/$2 "$pkgdir"/etc/apk/keys/$2 +} + +_install_x86() { + case "$1" in + x86*) _ins_key $1 $2 ;; + esac +} + +package() { + # copy keys for repos + mkdir -p "$pkgdir"/etc/apk/keys + for i in $_arch_keys; do + _archs="${i%:*}" + _key="${i#*:}" + install -Dm644 "$srcdir"/$_key \ + "$pkgdir"/usr/share/apk/keys/$_key + + for _arch in ${_archs//,/ }; do + mkdir -p "$pkgdir"/usr/share/apk/keys/$_arch + ln -s ../$_key "$pkgdir"/usr/share/apk/keys/$_arch/ + + case "$CARCH" in + x86*) _install_x86 $_arch $_key ;; + esac + done + done +} + +sha512sums=" +c36281116bad0c8c0c5e24b09366e9a238d68d7ead69167da8601e05951f895a007838e45d003aac1e5c10c3db52be6f4e2dc1d583f5eab3912ac26a8423819a alpine@sev.monster-60eb1287.rsa.pub +" diff --git a/testing/sevmonster-keys/alpine@sev.monster-60eb1287.rsa.pub b/testing/sevmonster-keys/alpine@sev.monster-60eb1287.rsa.pub new file mode 100644 index 0000000..d1e5c5e --- /dev/null +++ b/testing/sevmonster-keys/alpine@sev.monster-60eb1287.rsa.pub @@ -0,0 +1,14 @@ +-----BEGIN PUBLIC KEY----- +MIICGTANBgkqhkiG9w0BAQEFAAOCAgYAMIICAQKCAfgLhKaZZtGy63JchRb/ohFD +IKhVXjA7bwgKjcRPcLOtAsjrtiAGPGRF0NzC6yaLcBrM3zGBLbtYAjJPzHf0rU69 +Dx2Wvx22sQiVXyTeDirKTgoZAT8DKXiqga3j2CtH7JfT/i+pQnhj1Uhu4n+TBcI9 +gEuG/zZmaCkDlyptAHG53Y/JNLnY5dgphr/lz0lXKTkzLKRnJHiFuVNFBF4gChYg +PlLbQx0qYoyfRzaaFYk/GrB5cZlRUCJnBAzoXC4yc3Bn/kCQQLc5g/FlwXI3bGpn +HtTDAzXkBx4WB37MzZ/iYFm4PD7AgLkE2+l7Xgv+hzRi7+H/921n7LdC8SyzSKul +Sjq8vqCZKVtB3wQ0ttd7PrUI8skHV9Q5LpMdbjZVudoUieodVD4yG6W3r6Zm9V4R +0SULYGNfxSx6azoQnHUS6MpO09p2z3XN7I4D0RrmpofvVWJct4UFPe99xr6nR/u2 +JXfMiTXUcntCCUJqbaQs2XOtlKJS0FFR196H5XN7QxhJpKoqeZxK8NJ0uyLQSaOg +TM7hmjjt1w/EUlSbx29F15E9PbiODgaE7dEuZGJaL26tSXTlr8Gmj+WrL7sxbR40 +RwFRF9p8Bf1Tq++/8S+WHpDgI9LSX05QXlS1xINHKAesXVQukB5fda3cegnfYPNy +OhqZKN+kuXMCAwEAAQ== +-----END PUBLIC KEY-----