shipping a default strongswan.conf

This commit is contained in:
Martin Willi 2008-04-18 12:52:47 +00:00
parent bb2a529870
commit 66bb16b033
3 changed files with 28 additions and 2 deletions

View File

@ -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

View File

@ -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"

22
src/strongswan.conf Normal file
View File

@ -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
}
}
# ...
}