aboutsummaryrefslogtreecommitdiff
path: root/src/property/apt.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-06-16 15:20:13 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-06-16 15:21:06 -0700
commit8cdfe06dc48eb66f847aec6e630a121192ca205d (patch)
tree02b0ae8a5b9a865292f928d4b9caf801972ebc6d /src/property/apt.lisp
parent082d760dbf167716128a2a13577ed869c82d6835 (diff)
downloadconsfigurator-8cdfe06dc48eb66f847aec6e630a121192ca205d.tar.gz
add APT:TRUSTS-KEY & specify that --pgp-pubkey is ASCII-armoured
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property/apt.lisp')
-rw-r--r--src/property/apt.lisp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/property/apt.lisp b/src/property/apt.lisp
index a612a2b..b68b82b 100644
--- a/src/property/apt.lisp
+++ b/src/property/apt.lisp
@@ -224,6 +224,15 @@ after BASENAME. CONTENT is as the content argument to FILE:HAS-CONTENT."
(:hostattrs (os:required 'os:debianlike))
(:apply (apt-get "clean") :no-change))
+(defproplist trusts-key :posix
+ (fingerprint &optional (basename (remove #\Space fingerprint))
+ &aux (file #?"/etc/apt/trusted.gpg.d/${basename}.asc"))
+ "Have apt trust the PGP key identified by FINGERPRINT to sign apt archives."
+ (:desc #?"apt trusts PGP public key ${fingerprint}")
+ (with-unapply
+ (file:data-uploaded "--pgp-pubkey" (remove #\Space fingerprint) file)
+ :unapply (file:does-not-exist file)))
+
;;;; Reports on installation status