From 582e673f51940f03d4e82f7e833d6c0ca104c6b1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 2 Sep 2019 11:58:43 +0200 Subject: do not create missing stuff in sign-ca, but install it in install-ca --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 335b066..e2fa32e 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,16 @@ install-ca: install -D -m0755 -t $(DESTDIR)$(BINDIR) sign-ca sign-request install -D -m0644 -t $(DESTDIR)$(ETCDIR)/simple-pki etc/ca.conf etc/ca-ssl.conf install -D -m0644 -t $(DESTDIR)$(LIBDIR)/systemd/system sign-ca.service sign-ca.timer + install -d -m0755 $(DESTDIR)$(ETCDIR)/simple-pki/ca/root-ca/db $(DESTDIR)$(ETCDIR)/simple-pki/ca/signing-ca/db $(DESTDIR)$(ETCDIR)/simple-pki/crl $(DESTDIR)$(ETCDIR)/simple-pki/certs + install -d -m0700 $(DESTDIR)$(ETCDIR)/simple-pki/ca/root-ca/private $(DESTDIR)$(ETCDIR)/simple-pki/ca/signing-ca/private + install -m 644 -t $(DESTDIR)$(ETCDIR)/simple-pki/ca/root-ca/db/root-ca.db /dev/null + install -m 644 -t $(DESTDIR)$(ETCDIR)/simple-pki/ca/signing-ca/db/signing-ca.db /dev/null + install -m 644 -t $(DESTDIR)$(ETCDIR)/simple-pki/ca/root-ca/db/root-ca.db.attr /dev/null + install -m 644 -t $(DESTDIR)$(ETCDIR)/simple-pki/ca/signing-ca/db/signing-ca.db.attr /dev/null + echo 01 | install -m 644 -t $(DESTDIR)$(ETCDIR)/simple-pki/ca/root-ca/db/root-ca.crt.srl /dev/stdin + echo 01 | install -m 644 -t $(DESTDIR)$(ETCDIR)/simple-pki/ca/signing-ca/db/signing-ca.crt.srl /dev/stdin + echo 01 | install -m 644 -t $(DESTDIR)$(ETCDIR)/simple-pki/ca/root-ca/db/root-ca.crl.srl /dev/stdin + echo 01 | install -m 644 -t $(DESTDIR)$(ETCDIR)/simple-pki/ca/signing-ca/db/signing-ca.crl.srl /dev/stdin install-cb: install -D -m0755 -t $(DESTDIR)$(BINDIR) rotate-keys -- cgit v1.2.3-54-g00ecf