aboutsummaryrefslogtreecommitdiffstats
path: root/gnupg
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-25 12:56:30 +0200
committerMattias Andrée <maandree@kth.se>2021-06-25 12:56:30 +0200
commit5a7db2f34aa6a6787d98a001b6d28be97f36abf4 (patch)
tree52db199005cc5daee35b5c0e9b3d28b534449e1c /gnupg
downloaddotfiles-5a7db2f34aa6a6787d98a001b6d28be97f36abf4.tar.gz
dotfiles-5a7db2f34aa6a6787d98a001b6d28be97f36abf4.tar.bz2
dotfiles-5a7db2f34aa6a6787d98a001b6d28be97f36abf4.tar.xz
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'gnupg')
-rw-r--r--gnupg/Makefile14
-rw-r--r--gnupg/user-profile8
2 files changed, 22 insertions, 0 deletions
diff --git a/gnupg/Makefile b/gnupg/Makefile
new file mode 100644
index 0000000..ac5408f
--- /dev/null
+++ b/gnupg/Makefile
@@ -0,0 +1,14 @@
+.POSIX:
+
+install:
+ mkdir -p -- ~/.var/lib/gnupg
+ mkdir -p -- ~/.config/profile.d
+ test ! -d ~/.config/profile.d/gnupg
+ ln -sf -- ~/.dotfiles/gnupg/user-profile ~/.config/profile.d/gnupg
+
+uninstall:
+ -unlink -- ~/.config/profile.d/gnupg
+ -rmdir -- ~/.config/profile.d
+ -rmdir -- ~/.var/lib/gnupg
+
+.PHONY: install uninstall
diff --git a/gnupg/user-profile b/gnupg/user-profile
new file mode 100644
index 0000000..67cbb86
--- /dev/null
+++ b/gnupg/user-profile
@@ -0,0 +1,8 @@
+# -*- shell-script -*-
+
+export GNUPGHOME=~/.var/lib/.gnupg
+
+export GPG_KEY=69E7C5ED
+export GPG_KEYA=45668AAD
+export GPG_KEY_EMAIL=6ABC233E # 8AAD AC7C E522 E5E8 674C F187 5319 6754 6ABC 233E
+# Old GPG_KEY_EMAIL: 678A6A76