Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: "Michał Górny" <mgorny@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 3/5] app-crypt/openpgp-keys-miniupnp: Package keys used by miniupnp upst
Date: Tue, 06 Oct 2020 11:26:43
Message-Id: upn5vmw7o@gentoo.org
In Reply to: [gentoo-dev] [PATCH 3/5] app-crypt/openpgp-keys-miniupnp: Package keys used by miniupnp upst by "Michał Górny"
1 >>>>> On Tue, 06 Oct 2020, Michał Górny wrote:
2
3 > Signed-off-by: Michał Górny <mgorny@g.o>
4 > ---
5 > app-crypt/openpgp-keys-miniupnp/Manifest | 2 ++
6 > app-crypt/openpgp-keys-miniupnp/metadata.xml | 9 ++++++++
7 > .../openpgp-keys-miniupnp-20201006.ebuild | 23 +++++++++++++++++++
8 > 3 files changed, 34 insertions(+)
9 > create mode 100644 app-crypt/openpgp-keys-miniupnp/Manifest
10 > create mode 100644 app-crypt/openpgp-keys-miniupnp/metadata.xml
11 > create mode 100644 app-crypt/openpgp-keys-miniupnp/openpgp-keys-miniupnp-20201006.ebuild
12
13 > diff --git a/app-crypt/openpgp-keys-miniupnp/Manifest b/app-crypt/openpgp-keys-miniupnp/Manifest
14 > new file mode 100644
15 > index 000000000000..c8f82da42fa6
16 > --- /dev/null
17 > +++ b/app-crypt/openpgp-keys-miniupnp/Manifest
18 > @@ -0,0 +1,2 @@
19 > +DIST A31ACAAF.asc 3139 BLAKE2B 4574c3f37965fafa4e2d703276a585d1f17b0da862042620681bac591062b3b70c52cbe5481da543d3c3193a640c06e9d86c3cef1568ae3a3f62901a6ad200ab SHA512 ecad52850fdcc7c21bab81917b3cea85c48b751534427d3db5750c43cbce73916ec4879e4f5535d4b87b7eca927ad249e384c5597702a0052afa89c23c5719b9
20 > +DIST A5C0863C.asc 3098 BLAKE2B fdbc8629fd462b9cc72c568b0af5607951055abc03a1e344e4c1b411fb87bfa285c2e29d2781f9e9b02ec0bc63eacf55e5dc19198056a417ba3358dba445cc0c SHA512 adebff655374dbc8a045f9ab148f9fc343b043e80cb7e4e14c66aa56bfb2f0f5521e294c7600ca708893efc84679f788116d82ef5818370f1425f03dea0a77b9
21 > diff --git a/app-crypt/openpgp-keys-miniupnp/metadata.xml b/app-crypt/openpgp-keys-miniupnp/metadata.xml
22 > new file mode 100644
23 > index 000000000000..5a5a3aaf4299
24 > --- /dev/null
25 > +++ b/app-crypt/openpgp-keys-miniupnp/metadata.xml
26 > @@ -0,0 +1,9 @@
27 > +<?xml version="1.0" encoding="UTF-8"?>
28 > +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
29 > +<pkgmetadata>
30 > + <maintainer type="person">
31 > + <email>mgorny@g.o</email>
32 > + <name>Michał Górny</name>
33 > + </maintainer>
34 > + <stabilize-allarches/>
35 > +</pkgmetadata>
36 > diff --git a/app-crypt/openpgp-keys-miniupnp/openpgp-keys-miniupnp-20201006.ebuild b/app-crypt/openpgp-keys-miniupnp/openpgp-keys-miniupnp-20201006.ebuild
37 > new file mode 100644
38 > index 000000000000..4b07eeca6024
39 > --- /dev/null
40 > +++ b/app-crypt/openpgp-keys-miniupnp/openpgp-keys-miniupnp-20201006.ebuild
41 > @@ -0,0 +1,23 @@
42 > +# Copyright 1999-2020 Gentoo Authors
43 > +# Distributed under the terms of the GNU General Public License v2
44 > +
45 > +EAPI=7
46 > +
47 > +DESCRIPTION="OpenPGP keys used to sign miniupnp* packages"
48 > +HOMEPAGE="http://miniupnp.free.fr/files/"
49 > +SRC_URI="
50 > + http://miniupnp.free.fr/A31ACAAF.asc
51 > + http://miniupnp.free.fr/A5C0863C.asc
52 > +"
53 > +
54 > +LICENSE="public-domain"
55 > +SLOT="0"
56 > +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86"
57 > +
58 > +S=${WORKDIR}
59 > +
60 > +src_install() {
61 > + local files=( ${A} )
62 > + insinto /usr/share/openpgp-keys
63 > + newins - miniupnp.asc < <(cat "${files[@]/#/${DISTDIR}/}")
64 > +}
65 > --
66
67 > 2.28.0
68
69 This relies again on Manifest digests for the integrity of the key
70 distfiles themselves. What do we gain by this indirection, as compared
71 to validating the distfiles of the target package by their Manifest?
72
73 Ulrich

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies