From c75acc4c44af5f6fb03b7402dbf72d6f10443315 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 23 Jan 2014 14:38:03 +0100 Subject: [PATCH] conf: Install strongswan.conf template from a separate directory --- Makefile.am | 2 +- conf/Makefile.am | 5 +++++ {src => conf}/strongswan.conf | 0 configure.ac | 1 + src/Makefile.am | 6 ------ 5 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 conf/Makefile.am rename {src => conf}/strongswan.conf (100%) diff --git a/Makefile.am b/Makefile.am index 687d896f6..be320188a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = src man init testing +SUBDIRS = src man conf init testing if USE_SCRIPTS SUBDIRS += scripts diff --git a/conf/Makefile.am b/conf/Makefile.am new file mode 100644 index 000000000..cbbb5b57e --- /dev/null +++ b/conf/Makefile.am @@ -0,0 +1,5 @@ +EXTRA_DIST = strongswan.conf + +install-exec-local : + test -e "$(DESTDIR)${sysconfdir}" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)" + test -e "$(DESTDIR)$(sysconfdir)/strongswan.conf" || $(INSTALL) -m 640 $(srcdir)/strongswan.conf $(DESTDIR)$(sysconfdir)/strongswan.conf || true diff --git a/src/strongswan.conf b/conf/strongswan.conf similarity index 100% rename from src/strongswan.conf rename to conf/strongswan.conf diff --git a/configure.ac b/configure.ac index 76981e7b4..2eba4d5ca 100644 --- a/configure.ac +++ b/configure.ac @@ -1368,6 +1368,7 @@ fi AC_CONFIG_FILES([ Makefile + conf/Makefile man/Makefile init/Makefile init/systemd/Makefile diff --git a/src/Makefile.am b/src/Makefile.am index f290d9c85..7d11893d1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -119,9 +119,3 @@ endif if USE_INTEGRITY_TEST SUBDIRS += checksum endif - -EXTRA_DIST = strongswan.conf - -install-exec-local : - test -e "$(DESTDIR)${sysconfdir}" || $(INSTALL) -d "$(DESTDIR)$(sysconfdir)" - test -e "$(DESTDIR)$(sysconfdir)/strongswan.conf" || $(INSTALL) -m 640 $(srcdir)/strongswan.conf $(DESTDIR)$(sysconfdir)/strongswan.conf || true