]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
conf: Install strongswan.conf template from a separate directory
authorTobias Brunner <tobias@strongswan.org>
Thu, 23 Jan 2014 13:38:03 +0000 (14:38 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 12 Feb 2014 13:34:33 +0000 (14:34 +0100)
Makefile.am
conf/Makefile.am [new file with mode: 0644]
conf/strongswan.conf [moved from src/strongswan.conf with 100% similarity]
configure.ac
src/Makefile.am

index 687d896f6619cd4a0b074778696fbf1e9f20c5c5..be320188a3cb0705667edbdbae75b5eabbb69b3a 100644 (file)
@@ -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 (file)
index 0000000..cbbb5b5
--- /dev/null
@@ -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
similarity index 100%
rename from src/strongswan.conf
rename to conf/strongswan.conf
index 76981e7b4073e817036c46bdf2c300c078e7aed0..2eba4d5ca4bc485b20b02a76747138834dd73cff 100644 (file)
@@ -1368,6 +1368,7 @@ fi
 
 AC_CONFIG_FILES([
        Makefile
+       conf/Makefile
        man/Makefile
        init/Makefile
        init/systemd/Makefile
index f290d9c85ba2cb68743a2f48cd3ddf5ae21b672f..7d11893d1e1bad957b54e234099b5cab59ec3649 100644 (file)
@@ -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