Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH v2] misc: Distribute a repo.postsync.d hook to run gemato verification
Date: Tue, 16 Jan 2018 19:32:33
Message-Id: 238cbae5-b4c2-e974-6eb1-4dbda91f651f@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH v2] misc: Distribute a repo.postsync.d hook to run gemato verification by "Michał Górny"
1 On 01/16/2018 10:39 AM, Michał Górny wrote:
2 > W dniu wto, 16.01.2018 o godzinie 12∶44 -0500, użytkownik Alec Warner
3 > napisał:
4 >> On Tue, Jan 16, 2018 at 11:43 AM, Michał Górny <mgorny@g.o> wrote:
5 >>
6 >>> Include a repo.postsync.d hook to verify the rsync checkout using
7 >>> gemato. Given that not all people will want to have it enabled
8 >>> unconditionally, no setup.py rules are included -- instead, the file
9 >>> would be installed conditionally by the ebuild.
10 >>>
11 >>> [v2: included link to the wiki page]
12 >>> ---
13 >>> MANIFEST.in | 2 +-
14 >>> misc/repo.postsync.d/00gemato | 18 ++++++++++++++++++
15 >>> 2 files changed, 19 insertions(+), 1 deletion(-)
16 >>> create mode 100644 misc/repo.postsync.d/00gemato
17 >>>
18 >>> diff --git a/MANIFEST.in b/MANIFEST.in
19 >>> index 4f6cac162..edc6704e7 100644
20 >>> --- a/MANIFEST.in
21 >>> +++ b/MANIFEST.in
22 >>> @@ -14,4 +14,4 @@ include cnf/make.conf.example.*
23 >>> include .portage_not_installed
24 >>>
25 >>> # extra scripts
26 >>> -include misc/*
27 >>> +graft misc
28 >>> diff --git a/misc/repo.postsync.d/00gemato b/misc/repo.postsync.d/00gemato
29 >>> new file mode 100644
30 >>> index 000000000..f2af50925
31 >>> --- /dev/null
32 >>> +++ b/misc/repo.postsync.d/00gemato
33 >>> @@ -0,0 +1,18 @@
34 >>> +#!/bin/bash
35 >>> +# repo.postsync.d hook to verify ::gentoo checkout using gemato
36 >>> +
37 >>> +name=${1}
38 >>> +url=${2}
39 >>> +path=${3}
40 >>> +
41 >>> +# keyring installed by gentoo-keys
42 >>> +openpgp_key=/var/lib/gentoo/gkeys/keyrings/gentoo/release/pubring.gpg
43 >>>
44 >>
45 >> This seems a bit leaky to me.
46 >>
47 >> Possible to get gentoo-keys to print it?
48 >>
49 >> e.g:
50 >>
51 >> openpgp_key=$(gentoo-keys --print-key-path)
52 >
53 > But app-crypt/gentoo-keys doesn't include that executable, and it has
54 > no dependency on app-crypt/gkeys. I'd rather not introduce an artificial
55 > dependency here.
56
57 I suppose we could using a separate ebuild to install this hook, so that
58 we can update it separately from portage if necessary. The hook can
59 still live in the portage repository (like emerge-delta-webrsync which
60 is also installed by a separate ebuild).
61 --
62 Thanks,
63 Zac

Attachments

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

Replies