]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
swanctl: Install empty credential folders with appropriate permissions
authorMartin Willi <martin@revosec.ch>
Tue, 29 Apr 2014 14:03:44 +0000 (16:03 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 7 May 2014 13:48:17 +0000 (15:48 +0200)
src/swanctl/Makefile.am

index fcc4d159ff52dcb06a4a7e64ff4f844a3e715c0e..a262a2fa7b44082886c61cfcd7c978f5a5c0b9bc 100644 (file)
@@ -54,4 +54,12 @@ maintainer-clean-local:
 
 install-data-local: swanctl.conf
        test -e "$(DESTDIR)$(swanctldir)" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)"
+       test -e "$(DESTDIR)$(swanctldir)/x509" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509" || true
+       test -e "$(DESTDIR)$(swanctldir)/x509ca" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509ca" || true
+       test -e "$(DESTDIR)$(swanctldir)/x509aa" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509aa" || true
+       test -e "$(DESTDIR)$(swanctldir)/x509crl" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509crl" || true
+       test -e "$(DESTDIR)$(swanctldir)/x509ac" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)/x509ac" || true
+       test -e "$(DESTDIR)$(swanctldir)/rsa" || $(INSTALL) -d -m 750 "$(DESTDIR)$(swanctldir)/rsa" || true
+       test -e "$(DESTDIR)$(swanctldir)/ecdsa" || $(INSTALL) -d -m 750 "$(DESTDIR)$(swanctldir)/ecdsa" || true
+       test -e "$(DESTDIR)$(swanctldir)/pkcs8" || $(INSTALL) -d -m 750 "$(DESTDIR)$(swanctldir)/pkcs8" || true
        test -e "$(DESTDIR)$(swanctldir)/swanctl.conf" || $(INSTALL) -m 640 $(srcdir)/swanctl.conf $(DESTDIR)$(swanctldir)/swanctl.conf || true