app-crypt/openpgp-keys-gentoo-release: Bump to 20191030
authorMichał Górny <mgorny@gentoo.org>
Wed, 30 Oct 2019 11:20:41 +0000 (12:20 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 30 Oct 2019 11:22:31 +0000 (12:22 +0100)
A fresh snapshot with prolonged keys.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
app-crypt/openpgp-keys-gentoo-release/Manifest
app-crypt/openpgp-keys-gentoo-release/openpgp-keys-gentoo-release-20191030.ebuild [new file with mode: 0644]

index 8125352b8994143021f0dad3400708a5c8bdf3af..54158857bc79f62978ae6726d71f5f8292c2f9c4 100644 (file)
@@ -1,2 +1,3 @@
 DIST gentoo-release-test-sigs-20190224.tar.gz 3235 BLAKE2B 924c69a62d5321716f536144f0607bd3ec4a65d76be492adc729864fd9bef82df0086541ae13034a83152ea0c8dc3cbd168be6cff111a3484128a22cbc8ef1d4 SHA512 f8cc2e84bedbdf14ace6abe4aacf8f0c9810c77ff6ae0fac301829d9d4d5cf0c128a76516c773ac993879215bcdb0aab097e1e7e747d8e1a7c4cfc815bd4d3e6
 DIST gentoo-release.asc.20190427.gz 59649 BLAKE2B 138c6bad0ec688c515888433256c95cea7d8ec1e76587e0e89d3c11078eb1b85931ba9f6630f60dc8bc168b8303204ebe05b9bad7abe946a74730123b1c36d89 SHA512 1491fb2bcf9c6a29adf8ff08cbf8cd40517ee3de7adc048be29a2300f460e78594548c3e47bd18da68585248c560d868815ded5584ed18929e4072c4933484f0
+DIST gentoo-release.asc.20191030.gz 23981 BLAKE2B 307ceab69e309a53c2db191cf9d7a484318e852af648d93d9ad4bb2422737ab8de9257b457e5f201d86d226b348447acfbe57d259ce436150f75ccfb9f6ed60e SHA512 f3fbe0198f80f37784613c2a390c29f55e5b6291c44ee64d676806a26745017f8a9168573e13f6fc2fe93910927846c584b9f5cd017c4eac1cc875d7ed30cb8c
diff --git a/app-crypt/openpgp-keys-gentoo-release/openpgp-keys-gentoo-release-20191030.ebuild b/app-crypt/openpgp-keys-gentoo-release/openpgp-keys-gentoo-release-20191030.ebuild
new file mode 100644 (file)
index 0000000..ae331b0
--- /dev/null
@@ -0,0 +1,42 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="OpenPGP keys used for Gentoo releases (snapshots, stages)"
+HOMEPAGE="https://www.gentoo.org/downloads/signatures/"
+SRC_URI="https://dev.gentoo.org/~mgorny/dist/openpgp-keys/gentoo-release.asc.${PV}.gz
+       test? ( https://dev.gentoo.org/~mgorny/dist/openpgp-keys/gentoo-release-test-sigs-20190224.tar.gz )"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="test? ( app-crypt/gnupg )"
+
+S=${WORKDIR}
+
+src_test() {
+       local old_umask=$(umask)
+       umask 077
+
+       local -x GNUPGHOME=${T}/.gnupg
+       mkdir "${GNUPGHOME}" || die
+       einfo "Importing keys ..."
+       gpg --import "gentoo-release.asc.${PV}" || die "Key import failed"
+
+       local f
+       for f in gentoo-release-test-sigs*/*.asc; do
+               einfo "Testing ${f##*/} ..."
+               gpg -q --trust-model always --verify "${f}" || die "Verification failed on ${f}"
+       done
+
+       umask "${old_umask}"
+}
+
+src_install() {
+       insinto /usr/share/openpgp-keys
+       newins "gentoo-release.asc.${PV}" gentoo-release.asc
+}