pool: Install SQL schemas from src/pool

This allows us to install the schemas if either the attr-sql or sql
plugin is enabled, since both use the same schema (at least in parts).
This commit is contained in:
Tobias Brunner
2014-02-12 14:21:26 +01:00
parent b2cd0870a3
commit 6e288ed19c
5 changed files with 11 additions and 3 deletions
+4
View File
@@ -98,6 +98,10 @@ endif
if USE_ATTR_SQL
SUBDIRS += pool
else
if USE_SQL
SUBDIRS += pool
endif
endif
if USE_TKM
-3
View File
@@ -17,6 +17,3 @@ libstrongswan_sql_la_SOURCES = \
sql_cred.h sql_cred.c sql_logger.h sql_logger.c
libstrongswan_sql_la_LDFLAGS = -module -avoid-version
templatesdir = $(pkgdatadir)/templates/database/sql
dist_templates_DATA = mysql.sql sqlite.sql
+7
View File
@@ -1,3 +1,5 @@
if USE_ATTR_SQL
ipsec_PROGRAMS = pool
pool_SOURCES = \
@@ -14,3 +16,8 @@ AM_CPPFLAGS = \
pool_LDADD = \
$(top_builddir)/src/libstrongswan/libstrongswan.la \
$(top_builddir)/src/libhydra/libhydra.la
endif !USE_ATTR_SQL
templatesdir = $(pkgdatadir)/templates/database/sql
dist_templates_DATA = mysql.sql sqlite.sql