aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am7
-rw-r--r--src/starter/Makefile.am1
-rw-r--r--src/strongswan.conf22
3 files changed, 28 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 66c2182e5..3ed61dfc7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = include
+SUBDIRS = . include
if USE_FILE_CONFIG
SUBDIRS += libfreeswan starter ipsec _copyright
@@ -39,3 +39,8 @@ if USE_MANAGER
SUBDIRS += manager
endif
+EXTRA_DIST = strongswan.conf
+
+install-exec-local :
+ test -e "$(DESTDIR)${sysconfdir}" || $(MKDIR_P) "$(DESTDIR)$(sysconfdir)"
+ test -e "$(DESTDIR)$(sysconfdir)/strongswan.conf" || $(INSTALL) -m 600 strongswan.conf $(DESTDIR)$(sysconfdir)/strongswan.conf
diff --git a/src/starter/Makefile.am b/src/starter/Makefile.am
index f39a646c0..e3b7f0d2d 100644
--- a/src/starter/Makefile.am
+++ b/src/starter/Makefile.am
@@ -31,7 +31,6 @@ defs.o: $(PLUTODIR)/defs.c $(PLUTODIR)/defs.h
$(COMPILE) -c -o $@ $<
install-exec-local :
- test -e "$(DESTDIR)${sysconfdir}" || $(MKDIR_P) "$(DESTDIR)$(sysconfdir)"
test -e "$(DESTDIR)${sysconfdir}/ipsec.d" || $(MKDIR_P) "$(DESTDIR)$(sysconfdir)/ipsec.d"
test -e "$(DESTDIR)${sysconfdir}/ipsec.d/cacerts" || $(MKDIR_P) "$(DESTDIR)$(sysconfdir)/ipsec.d/cacerts"
test -e "$(DESTDIR)${sysconfdir}/ipsec.d/ocspcerts" || $(MKDIR_P) "$(DESTDIR)$(sysconfdir)/ipsec.d/ocspcerts"
diff --git a/src/strongswan.conf b/src/strongswan.conf
new file mode 100644
index 000000000..cca06fd0a
--- /dev/null
+++ b/src/strongswan.conf
@@ -0,0 +1,22 @@
+# strongswan.conf - strongSwan configuration file
+
+charon {
+
+ # number of worker threads in charon
+ threads = 16
+
+ plugins {
+
+ sql {
+
+ # loglevel to log into sql database
+ loglevel = -1
+
+ # URI to the database
+ # database = sqlite:///path/to/file.db
+ # database = mysql://user:password@localhost/database
+ }
+ }
+
+ # ...
+}