From: Tobias Brunner Date: Thu, 23 Jan 2014 13:38:03 +0000 (+0100) Subject: conf: Install strongswan.conf template from a separate directory X-Git-Tag: 5.1.2rc1~7^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c75acc4c44af5f6fb03b7402dbf72d6f10443315;p=thirdparty%2Fstrongswan.git conf: Install strongswan.conf template from a separate directory --- diff --git a/Makefile.am b/Makefile.am index 687d896f66..be320188a3 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 0000000000..cbbb5b57e4 --- /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 76981e7b40..2eba4d5ca4 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 f290d9c85b..7d11893d1e 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