1 |
Include a repo.postsync.d hook to verify the rsync checkout using |
2 |
gemato. Given that not all people will want to have it enabled |
3 |
unconditionally, no setup.py rules are included -- instead, the file |
4 |
would be installed conditionally by the ebuild. |
5 |
--- |
6 |
MANIFEST.in | 2 +- |
7 |
misc/repo.postsync.d/00gemato | 14 ++++++++++++++ |
8 |
2 files changed, 15 insertions(+), 1 deletion(-) |
9 |
create mode 100644 misc/repo.postsync.d/00gemato |
10 |
|
11 |
diff --git a/MANIFEST.in b/MANIFEST.in |
12 |
index 4f6cac162..edc6704e7 100644 |
13 |
--- a/MANIFEST.in |
14 |
+++ b/MANIFEST.in |
15 |
@@ -14,4 +14,4 @@ include cnf/make.conf.example.* |
16 |
include .portage_not_installed |
17 |
|
18 |
# extra scripts |
19 |
-include misc/* |
20 |
+graft misc |
21 |
diff --git a/misc/repo.postsync.d/00gemato b/misc/repo.postsync.d/00gemato |
22 |
new file mode 100644 |
23 |
index 000000000..758716f16 |
24 |
--- /dev/null |
25 |
+++ b/misc/repo.postsync.d/00gemato |
26 |
@@ -0,0 +1,14 @@ |
27 |
+#!/bin/bash |
28 |
+# repo.postsync.d hook to verify ::gentoo checkout using gemato |
29 |
+ |
30 |
+name=${1} |
31 |
+url=${2} |
32 |
+path=${3} |
33 |
+ |
34 |
+# keyring installed by gentoo-keys |
35 |
+openpgp_key=/var/lib/gentoo/gkeys/keyrings/gentoo/release/pubring.gpg |
36 |
+ |
37 |
+# apply only to ::gentoo, when synced over rsync. |
38 |
+if [[ ${name} == gentoo && ${url} == rsync://* ]]; then |
39 |
+ gemato verify -K "${openpgp_key}" -s "${path}" |
40 |
+fi |
41 |
-- |
42 |
2.16.0.rc2 |