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:
@@ -98,6 +98,10 @@ endif
|
|||||||
|
|
||||||
if USE_ATTR_SQL
|
if USE_ATTR_SQL
|
||||||
SUBDIRS += pool
|
SUBDIRS += pool
|
||||||
|
else
|
||||||
|
if USE_SQL
|
||||||
|
SUBDIRS += pool
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if USE_TKM
|
if USE_TKM
|
||||||
|
|||||||
@@ -17,6 +17,3 @@ libstrongswan_sql_la_SOURCES = \
|
|||||||
sql_cred.h sql_cred.c sql_logger.h sql_logger.c
|
sql_cred.h sql_cred.c sql_logger.h sql_logger.c
|
||||||
|
|
||||||
libstrongswan_sql_la_LDFLAGS = -module -avoid-version
|
libstrongswan_sql_la_LDFLAGS = -module -avoid-version
|
||||||
|
|
||||||
templatesdir = $(pkgdatadir)/templates/database/sql
|
|
||||||
dist_templates_DATA = mysql.sql sqlite.sql
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
if USE_ATTR_SQL
|
||||||
|
|
||||||
ipsec_PROGRAMS = pool
|
ipsec_PROGRAMS = pool
|
||||||
|
|
||||||
pool_SOURCES = \
|
pool_SOURCES = \
|
||||||
@@ -14,3 +16,8 @@ AM_CPPFLAGS = \
|
|||||||
pool_LDADD = \
|
pool_LDADD = \
|
||||||
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
$(top_builddir)/src/libstrongswan/libstrongswan.la \
|
||||||
$(top_builddir)/src/libhydra/libhydra.la
|
$(top_builddir)/src/libhydra/libhydra.la
|
||||||
|
|
||||||
|
endif !USE_ATTR_SQL
|
||||||
|
|
||||||
|
templatesdir = $(pkgdatadir)/templates/database/sql
|
||||||
|
dist_templates_DATA = mysql.sql sqlite.sql
|
||||||
|
|||||||
Reference in New Issue
Block a user