Add ownertrust file for the master keys

This commit is contained in:
Pierre Schmitz 2012-02-20 13:03:25 +01:00
parent c1359ffd9e
commit bbd88abce4
3 changed files with 11 additions and 10 deletions

View File

@ -1,16 +1,12 @@
V=20120213 V=20120220
PREFIX = /usr/local PREFIX = /usr/local
install: install:
install -dm0755 $(DESTDIR)$(PREFIX)/share/archlinux-keyring/master for k in master/*.asc master/ownertrust.txt packager/*.asc; do install -Dm0644 $$k $(DESTDIR)$(PREFIX)/share/archlinux-keyring/$$k; done
install -dm0755 $(DESTDIR)$(PREFIX)/share/archlinux-keyring/packager
for k in master/*.asc; do install -m0644 $$k $(DESTDIR)$(PREFIX)/share/archlinux-keyring/master/; done
for k in packager/*.asc; do install -m0644 $$k $(DESTDIR)$(PREFIX)/share/archlinux-keyring/packager/; done
uninstall: uninstall:
for k in master/*.asc; do rm -f $(DESTDIR)$(PREFIX)/share/archlinux-keyring/master/$$k; done for k in master/*.asc master/ownertrust.txt in packager/*.as; do rm -f $(DESTDIR)$(PREFIX)/share/archlinux-keyring/$$k; done
for k in packager/*.asc; do rm -f $(DESTDIR)$(PREFIX)/share/archlinux-keyring/packager/$$k; done
rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/archlinux-keyring/master rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/archlinux-keyring/master
rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/archlinux-keyring/packager rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/archlinux-keyring/packager

5
master/ownertrust.txt Normal file
View File

@ -0,0 +1,5 @@
AB19265E5D7D20687D303246BA1DFB64FFF979E7:4:
27FFC4769E19F096D41D9265A04F9397CDFD6BB0:4:
44D4A033AC140143927397D47EFD567D4C7EA887:4:
0E8B644079F599DFC1DDC3973348882F6AC6A4C2:4:
684148BB25B49E986A4944C55184252D824B18E8:4:

View File

@ -5,7 +5,7 @@ export LANG=C
TMPDIR=$(mktemp -d) TMPDIR=$(mktemp -d)
trap "rm -rf '${TMPDIR}'" EXIT trap "rm -rf '${TMPDIR}'" EXIT
KEYSERVER='pgp.mit.edu' KEYSERVER='wwwkeys.de.pgp.net'
GPG="gpg --quiet --batch --no-tty --no-permission-warning --keyserver "${KEYSERVER}" --homedir ${TMPDIR}" GPG="gpg --quiet --batch --no-tty --no-permission-warning --keyserver "${KEYSERVER}" --homedir ${TMPDIR}"
pushd "$(dirname "$0")" >/dev/null pushd "$(dirname "$0")" >/dev/null
@ -31,10 +31,10 @@ while read -ra data; do
${GPG} --recv-keys ${keyid} &>/dev/null ${GPG} --recv-keys ${keyid} &>/dev/null
printf 'y\ny\n' | \ printf 'y\ny\n' | \
${GPG} --command-fd 0 --lsign-key ${keyid} &>/dev/null ${GPG} --command-fd 0 --lsign-key ${keyid} &>/dev/null
printf 'trust\n3\nquit\n' | \
${GPG} --command-fd 0 --edit-key ${keyid} &>/dev/null
${GPG} --armor --output master/${username}.asc --export ${keyid} ${GPG} --armor --output master/${username}.asc --export ${keyid}
echo "${keyid}:4:" >> master/ownertrust.txt
done < master-keyids done < master-keyids
${GPG} --import-ownertrust < master/ownertrust.txt
while read -ra data; do while read -ra data; do
keyid="${data[0]}" keyid="${data[0]}"