summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/repo.postsync.d/00gemato13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/repo.postsync.d/00gemato b/utils/repo.postsync.d/00gemato
new file mode 100644
index 0000000..b6ceff9
--- /dev/null
+++ b/utils/repo.postsync.d/00gemato
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+name=${1}
+url=${2}
+path=${3}
+
+# keyring installed by gentoo-keys
+openpgp_key=/var/lib/gentoo/gkeys/keyrings/gentoo/release/pubring.gpg
+
+# Apply only to ::gentoo, when synced over rsync.
+if [[ ${name} == gentoo && ${url} == rsync://* ]]; then
+ gemato verify -K "${openpgp_key}" -s "${path}"
+fi