summaryrefslogtreecommitdiff
path: root/makechrootpkg.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2018-01-03 00:47:36 -0500
committerLuke Shumaker <lukeshu@parabola.nu>2018-03-26 18:20:56 -0400
commit3c7efcfb95f0fe743629552c78ba2a7a513311a9 (patch)
treeafd35fe8022fade8f4546a87be3268fa9d85d499 /makechrootpkg.in
parentffb5003fdacaece3540ba167f7e965a122133af0 (diff)
downloaddevtools32-3c7efcfb95f0fe743629552c78ba2a7a513311a9.tar.xz
makechrootpkg: Put "keyserver-options auto-key-retrieve" in gpg.conf
This allows signature verification by `makepkg --verifysource`, `git verify-tag`, and such without requiring the user to manually retrieve the keys first. This is based off of devtools32 commit 009695b (2017-06-27) by Erich Eckner <git@eckner.net>. There are 2 differences from that commit: - In this version, gpg.conf is owned by builduser, not by root - In this version, we don't keep appending duplicate lines if we re-use a chroot
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 653847f..54a6c99 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -186,6 +186,7 @@ prepare_chroot() {
[[ -r $USER_HOME/$x ]] || continue
$install -m 644 "$USER_HOME/$x" "$copydir/build/$x"
done
+ $install -m644 /dev/stdin "$copydir/build/.gnupg/gpg.conf" <<<'keyserver-options auto-key-retrieve'
sed -e '/^MAKEFLAGS=/d' -e '/^PACKAGER=/d' -i "$copydir/etc/makepkg.conf"
for x in BUILDDIR=/build PKGDEST=/pkgdest SRCPKGDEST=/srcpkgdest SRCDEST=/srcdest LOGDEST=/logdest \