diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-12-10 09:49:50 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-12-10 09:49:50 +0100 |
commit | 4cbc4501a7ede59c8ae0c877db82a098b0e4f016 (patch) | |
tree | 3611d7dd0f3b964bf58ce739c1bd518842ca9818 /utils | |
parent | 161c4639cd6398f5dfcc1f72c121b0376670fc48 (diff) | |
download | gemato-4cbc4501a7ede59c8ae0c877db82a098b0e4f016.tar.gz |
Include a repo.postsync.d hook for Portage
Diffstat (limited to 'utils')
-rw-r--r-- | utils/repo.postsync.d/00gemato | 13 |
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 |