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 | |
parent | 161c4639cd6398f5dfcc1f72c121b0376670fc48 (diff) | |
download | gemato-4cbc4501a7ede59c8ae0c877db82a098b0e4f016.tar.gz |
Include a repo.postsync.d hook for Portage
-rw-r--r-- | MANIFEST.in | 1 | ||||
-rw-r--r-- | utils/repo.postsync.d/00gemato | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/MANIFEST.in b/MANIFEST.in index 5d0acfa..a95b98b 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -4,3 +4,4 @@ include bin/gemato include tests/*.py include utils/*.bash include utils/*.py +include utils/repo.postsync.d/00gemato 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 |