From ebb6fd3b46d70f3ce6c3f110ca7cffc96b9b2cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gr=C3=B6ber?= Date: Tue, 8 Feb 2022 23:23:17 +0100 Subject: [PATCH] Support non-default gpg key --- .gitignore | 1 + Makefile | 4 +++- README | 11 +++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4e54622..179c4f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.sig +/local.mk diff --git a/Makefile b/Makefile index d2ed59b..c2ea18b 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ check: $(patsubst %.zone,%.check,$(wildcard *.zone)) sign: $(patsubst %,%.sig,$(wildcard *.zone)) %.sig: % - gpg -o $@ --batch --yes --detach-sign $< + gpg $(GPG_FLAGS) -o $@ --batch --yes --detach-sign $< .PHONY: check-clean check-clean: @@ -23,3 +23,5 @@ clean: FORCE: .PHONY: FORCE + +-include local.mk diff --git a/README b/README index bd88a0b..e09007e 100644 --- a/README +++ b/README @@ -18,3 +18,14 @@ SOA for the update to be applied sucessfully on the server side. Emacs does this by default, just say'in. Note: Knot handles DNSSEC signing on the server side. + + +Using a non-default GPG key +--------------------------- + +Create a file `local.mk` and specify GPG_FLAGS as follows: + +``` +# local.mk +GPG_FLAGS=--default-key= +```