aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine-keys
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-03-17 15:33:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-03-20 10:19:00 +0000
commit7c5404f01b0f24adbd3b22a33d1c00b56e1013c6 (patch)
treece7695be1e20b6423b39a68061cfdc129a142231 /main/alpine-keys
parent53f856d64fb99d0e565a5c133d7eaf4c1901987f (diff)
downloadaports-7c5404f01b0f24adbd3b22a33d1c00b56e1013c6.tar.bz2
aports-7c5404f01b0f24adbd3b22a33d1c00b56e1013c6.tar.xz
main/alpine-keys: reorganized public keys and add ppc64le
We install all available official keys in /usr/share but we only enable those who are relevant for the given architecture. That way we don't have more keys installed than necessary, and make it easy to enable more keys if you would like to do crosscompile or run different architecture via qemu. Add key for ppc64le builder
Diffstat (limited to 'main/alpine-keys')
-rw-r--r--main/alpine-keys/APKBUILD90
-rw-r--r--main/alpine-keys/alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub9
-rw-r--r--main/alpine-keys/alpine-devel@lists.alpinelinux.org-4d07755e.rsa.pub9
-rw-r--r--main/alpine-keys/alpine-devel@lists.alpinelinux.org-58cbb476.rsa.pub9
4 files changed, 82 insertions, 35 deletions
diff --git a/main/alpine-keys/APKBUILD b/main/alpine-keys/APKBUILD
index 21b4240fe6..bebf5f641f 100644
--- a/main/alpine-keys/APKBUILD
+++ b/main/alpine-keys/APKBUILD
@@ -1,50 +1,88 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-keys
-pkgver=1.3
+pkgver=2.0
pkgrel=0
pkgdesc="Public keys for Alpine Linux packages"
url="http://alpinelinux.org"
-arch="noarch"
+# we install arch specific keys to /etc so we cannot do arch=noarch
+arch="all"
license="MIT"
depends=""
makedepends=""
install=""
subpackages=""
replaces="alpine-base"
-source="http://dev.alpinelinux.org/~ncopa/alpine/alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
- alpine-devel@lists.alpinelinux.org-4d07755e.rsa.pub
- alpine-devel@lists.alpinelinux.org-5243ef4b.rsa.pub
- alpine-devel@lists.alpinelinux.org-524d27bb.rsa.pub
- alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub
- alpine-devel@lists.alpinelinux.org-58199dcc.rsa.pub
+source=
+
+_arch_keys="
+ aarch64:alpine-devel@lists.alpinelinux.org-58199dcc.rsa.pub
+ armhf:alpine-devel@lists.alpinelinux.org-524d27bb.rsa.pub
+
+ x86:alpine-devel@lists.alpinelinux.org-5243ef4b.rsa.pub
+ x86,x86_64:alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
+ x86_64:alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub
+
+ ppc64le:alpine-devel@lists.alpinelinux.org-58cbb476.rsa.pub
"
+for _i in $_arch_keys; do
+ source="$source ${_i#*:}"
+done
+
build() {
return 0
}
+
+_ins_key() {
+ msg "- $2 ($1)"
+ install -Dm644 "$srcdir"/$2 "$pkgdir"/etc/apk/keys/$2
+}
+
+_install_x86() {
+ case "$1" in
+ x86*) _ins_key $1 $2 || return 1
+ esac
+}
+
+_install_arm() {
+ case "$1" in
+ aarch64|arm*) _ins_key $1 $2 || return 1;;
+ esac
+}
+
+_install_ppc() {
+ case "$1" in
+ ppc*) _ins_key $1 $2 || return 1;;
+ esac
+}
+
package() {
# copy keys for repos
mkdir -p "$pkgdir"/etc/apk/keys
- install -m644 "$srcdir"/alpine-devel*.pub \
- "$pkgdir"/etc/apk/keys/ || return 1
+ for i in $_arch_keys; do
+ _archs="${i%:*}"
+ _key="${i#*:}"
+ install -Dm644 "$srcdir"/$_key \
+ "$pkgdir"/usr/share/apk/keys/$_key \
+ || return 1
+
+ for _arch in ${_archs//,/ }; do
+ mkdir -p "$pkgdir"/usr/share/apk/keys/$_arch || return 1
+ ln -s ../$_key "$pkgdir"/usr/share/apk/keys/$_arch/
+
+ case "$CARCH" in
+ x86*) _install_x86 $_arch $_key || return 1;;
+ arm*|aarch64) _install_arm $_arch $_key || return 1;;
+ ppc*) _install_ppc $_arch $_key || return 1;;
+ esac
+ done
+ done
}
-md5sums="75ee19ea2b03c12bc171647edc677f6f alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
-ca7d06006181b625cf1ff4aefd51bd08 alpine-devel@lists.alpinelinux.org-4d07755e.rsa.pub
-db1b0e718ae11127bc3a2485cfd6f4af alpine-devel@lists.alpinelinux.org-5243ef4b.rsa.pub
-c227288cab4154514a4aa89efab20dba alpine-devel@lists.alpinelinux.org-524d27bb.rsa.pub
-01e59112f4b4a9d8dc36b6203b678fca alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub
-72bebba2436bce68226ced566bec5174 alpine-devel@lists.alpinelinux.org-58199dcc.rsa.pub"
-sha256sums="9c102bcc376af1498d549b77bdbfa815ae86faa1d2d82f040e616b18ef2df2d4 alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
-2adcf7ce224f476330b5360ca5edb92fd0bf91c92d83292ed028d7c4e26333ab alpine-devel@lists.alpinelinux.org-4d07755e.rsa.pub
-ebf31683b56410ecc4c00acd9f6e2839e237a3b62b5ae7ef686705c7ba0396a9 alpine-devel@lists.alpinelinux.org-5243ef4b.rsa.pub
-1bb2a846c0ea4ca9d0e7862f970863857fc33c32f5506098c636a62a726a847b alpine-devel@lists.alpinelinux.org-524d27bb.rsa.pub
-12f899e55a7691225603d6fb3324940fc51cd7f133e7ead788663c2b7eecb00c alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub
-73867d92083f2f8ab899a26ccda7ef63dfaa0032a938620eda605558958a8041 alpine-devel@lists.alpinelinux.org-58199dcc.rsa.pub"
-sha512sums="2d4064cbe09ff958493ec86bcb925af9b7517825d1d9d8d00f2986201ad5952f986fea83d1e2c177e92130700bafa8c0bff61411b3cdb59a41e460ed719580a6 alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
-85af435d36c3cf0ba783dc70628d0060f7fae8b1543995610afceaeb2183d3fa846203f69825487f1f838d7d1315da015f02a44341eebdd2f45fbcd03620bd0a alpine-devel@lists.alpinelinux.org-4d07755e.rsa.pub
-e18e65ee911eb1f8ea869f758e8f2c94cf2ac254ee7ab90a3de1d47b94a547c2066214abf710da21910ebedc0153d05fd4fe579cc5ce24f46e0cfd29a02b1a68 alpine-devel@lists.alpinelinux.org-5243ef4b.rsa.pub
+sha512sums="e4f9e314f8e506fba2cb3e599c6412a036ec37ce3a54990fc7d80a821d8728f40ee3b4aa8a15218d50341fa785d9ddf7c7471f45018c6a2065ab13664a1aa9e9 alpine-devel@lists.alpinelinux.org-58199dcc.rsa.pub
698fda502f70365a852de3c10636eadfc4f70a7a00f096581119aef665e248b787004ceef63f4c8cb18c6f88d18b8b1bd6b3c5d260e79e6d73a3cc09537b196e alpine-devel@lists.alpinelinux.org-524d27bb.rsa.pub
+e18e65ee911eb1f8ea869f758e8f2c94cf2ac254ee7ab90a3de1d47b94a547c2066214abf710da21910ebedc0153d05fd4fe579cc5ce24f46e0cfd29a02b1a68 alpine-devel@lists.alpinelinux.org-5243ef4b.rsa.pub
+2d4064cbe09ff958493ec86bcb925af9b7517825d1d9d8d00f2986201ad5952f986fea83d1e2c177e92130700bafa8c0bff61411b3cdb59a41e460ed719580a6 alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
721134f289ab1e7dde9158359906017daee40983199fe55f28206c8cdc46b8fcf177a36f270ce374b0eba5dbe01f68cbb3e385ae78a54bb0a2ed1e83a4d820a5 alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub
-e4f9e314f8e506fba2cb3e599c6412a036ec37ce3a54990fc7d80a821d8728f40ee3b4aa8a15218d50341fa785d9ddf7c7471f45018c6a2065ab13664a1aa9e9 alpine-devel@lists.alpinelinux.org-58199dcc.rsa.pub"
+bb5a3df8fac14a62d5936fb3722873fa6a121219b703cba955eb77de38c4384aeaf378fb9321a655e255f0be761e894e309b3789867279c1524dab6300cd8ef1 alpine-devel@lists.alpinelinux.org-58cbb476.rsa.pub"
diff --git a/main/alpine-keys/alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub b/main/alpine-keys/alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
new file mode 100644
index 0000000000..bb4bdc80fd
--- /dev/null
+++ b/main/alpine-keys/alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
@@ -0,0 +1,9 @@
+-----BEGIN PUBLIC KEY-----
+MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1yHJxQgsHQREclQu4Ohe
+qxTxd1tHcNnvnQTu/UrTky8wWvgXT+jpveroeWWnzmsYlDI93eLI2ORakxb3gA2O
+Q0Ry4ws8vhaxLQGC74uQR5+/yYrLuTKydFzuPaS1dK19qJPXB8GMdmFOijnXX4SA
+jixuHLe1WW7kZVtjL7nufvpXkWBGjsfrvskdNA/5MfxAeBbqPgaq0QMEfxMAn6/R
+L5kNepi/Vr4S39Xvf2DzWkTLEK8pcnjNkt9/aafhWqFVW7m3HCAII6h/qlQNQKSo
+GuH34Q8GsFG30izUENV9avY7hSLq7nggsvknlNBZtFUcmGoQrtx3FmyYsIC8/R+B
+ywIDAQAB
+-----END PUBLIC KEY-----
diff --git a/main/alpine-keys/alpine-devel@lists.alpinelinux.org-4d07755e.rsa.pub b/main/alpine-keys/alpine-devel@lists.alpinelinux.org-4d07755e.rsa.pub
deleted file mode 100644
index 6b5b8607b3..0000000000
--- a/main/alpine-keys/alpine-devel@lists.alpinelinux.org-4d07755e.rsa.pub
+++ /dev/null
@@ -1,9 +0,0 @@
------BEGIN PUBLIC KEY-----
-MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqy4H+5jKkBM+3pELVDBF
-VclECAxk9dy23mNhbfxH6GfBUtVaJVpYOF943JR2LNfD88DJR5EXnKPxQYZN1PWZ
-MDoJbUil7GPOMHAm5AHtXYJhYeOF+rSyv4y6H1lgYQVDzA9z+4GATMBhqJ8oRrCy
-lAJ/vksY9PFkuK8oyygTxpc7ICpUMMLwIMwLMdVR4API2kaLfg9TlMpVGmQhOCRZ
-VygfN4H89n9ekPpSA0DHLSkKkRLzBlhtfw+Ho2fcw9BCU0Uj10pK6q0V+m2+r8aE
-07LZKH9NnddMaEJ+I58FwmxJRzt4+gKpiPhV4OHXLoJsXMLYhjV8kM/qbgASfW71
-jQIDAQAB
------END PUBLIC KEY-----
diff --git a/main/alpine-keys/alpine-devel@lists.alpinelinux.org-58cbb476.rsa.pub b/main/alpine-keys/alpine-devel@lists.alpinelinux.org-58cbb476.rsa.pub
new file mode 100644
index 0000000000..a9ead55ed0
--- /dev/null
+++ b/main/alpine-keys/alpine-devel@lists.alpinelinux.org-58cbb476.rsa.pub
@@ -0,0 +1,9 @@
+-----BEGIN PUBLIC KEY-----
+MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoSPnuAGKtRIS5fEgYPXD
+8pSGvKAmIv3A08LBViDUe+YwhilSHbYXUEAcSH1KZvOo1WT1x2FNEPBEFEFU1Eyc
++qGzbA03UFgBNvArurHQ5Z/GngGqE7IarSQFSoqewYRtFSfp+TL9CUNBvM0rT7vz
+2eMu3/wWG+CBmb92lkmyWwC1WSWFKO3x8w+Br2IFWvAZqHRt8oiG5QtYvcZL6jym
+Y8T6sgdDlj+Y+wWaLHs9Fc+7vBuyK9C4O1ORdMPW15qVSl4Lc2Wu1QVwRiKnmA+c
+DsH/m7kDNRHM7TjWnuj+nrBOKAHzYquiu5iB3Qmx+0gwnrSVf27Arc3ozUmmJbLj
+zQIDAQAB
+-----END PUBLIC KEY-----