]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
attr-sql: Move plugin to libcharon
authorMartin Willi <martin@revosec.ch>
Tue, 4 Nov 2014 13:22:20 +0000 (14:22 +0100)
committerMartin Willi <martin@revosec.ch>
Fri, 20 Feb 2015 12:34:55 +0000 (13:34 +0100)
configure.ac
src/libcharon/Makefile.am
src/libcharon/plugins/attr_sql/Makefile.am [moved from src/libhydra/plugins/attr_sql/Makefile.am with 85% similarity]
src/libcharon/plugins/attr_sql/attr_sql_plugin.c [moved from src/libhydra/plugins/attr_sql/attr_sql_plugin.c with 100% similarity]
src/libcharon/plugins/attr_sql/attr_sql_plugin.h [moved from src/libhydra/plugins/attr_sql/attr_sql_plugin.h with 98% similarity]
src/libcharon/plugins/attr_sql/sql_attribute.c [moved from src/libhydra/plugins/attr_sql/sql_attribute.c with 100% similarity]
src/libcharon/plugins/attr_sql/sql_attribute.h [moved from src/libhydra/plugins/attr_sql/sql_attribute.h with 100% similarity]
src/libhydra/Makefile.am
src/pool/Makefile.am

index 3e1e6fb648440d51ef2615c74dbe6c1ba77be7ab..b0c349974ca9e36cc8efc650ac0caa961e352559 100644 (file)
@@ -1257,7 +1257,7 @@ ADD_PLUGIN([soup],                 [s charon pki scripts nm cmd])
 ADD_PLUGIN([mysql],                [s charon pool manager medsrv attest])
 ADD_PLUGIN([sqlite],               [s charon pool manager medsrv attest])
 ADD_PLUGIN([attr],                 [c charon])
-ADD_PLUGIN([attr-sql],             [h charon])
+ADD_PLUGIN([attr-sql],             [c charon])
 ADD_PLUGIN([load-tester],          [c charon])
 ADD_PLUGIN([kernel-libipsec],      [c charon cmd])
 ADD_PLUGIN([kernel-wfp],           [c charon])
@@ -1483,10 +1483,10 @@ AM_CONDITIONAL(USE_ADDRBLOCK, test x$addrblock = xtrue)
 AM_CONDITIONAL(USE_UNITY, test x$unity = xtrue)
 AM_CONDITIONAL(USE_RESOLVE, test x$resolve = xtrue)
 AM_CONDITIONAL(USE_ATTR, test x$attr = xtrue)
+AM_CONDITIONAL(USE_ATTR_SQL, test x$attr_sql = xtrue)
 
 #  hydra plugins
 # ---------------
-AM_CONDITIONAL(USE_ATTR_SQL, test x$attr_sql = xtrue)
 AM_CONDITIONAL(USE_KERNEL_NETLINK, test x$kernel_netlink = xtrue)
 AM_CONDITIONAL(USE_KERNEL_PFKEY, test x$kernel_pfkey = xtrue)
 AM_CONDITIONAL(USE_KERNEL_PFROUTE, test x$kernel_pfroute = xtrue)
@@ -1649,7 +1649,6 @@ AC_CONFIG_FILES([
        src/libstrongswan/plugins/test_vectors/Makefile
        src/libstrongswan/tests/Makefile
        src/libhydra/Makefile
-       src/libhydra/plugins/attr_sql/Makefile
        src/libhydra/plugins/kernel_netlink/Makefile
        src/libhydra/plugins/kernel_pfkey/Makefile
        src/libhydra/plugins/kernel_pfroute/Makefile
@@ -1750,6 +1749,7 @@ AC_CONFIG_FILES([
        src/libcharon/plugins/load_tester/Makefile
        src/libcharon/plugins/resolve/Makefile
        src/libcharon/plugins/attr/Makefile
+       src/libcharon/plugins/attr_sql/Makefile
        src/stroke/Makefile
        src/ipsec/Makefile
        src/starter/Makefile
index 5df7dbbf3415333d69d131ccb495b1d9ee3c1ceb..0384064fbe11aa52627fdd8b5587f20776cc85bd 100644 (file)
@@ -644,3 +644,10 @@ if MONOLITHIC
   libcharon_la_LIBADD += plugins/attr/libstrongswan-attr.la
 endif
 endif
+
+if USE_ATTR_SQL
+  SUBDIRS += plugins/attr_sql
+if MONOLITHIC
+  libcharon_la_LIBADD += plugins/attr_sql/libstrongswan-attr-sql.la
+endif
+endif
similarity index 85%
rename from src/libhydra/plugins/attr_sql/Makefile.am
rename to src/libcharon/plugins/attr_sql/Makefile.am
index 6e7eae5eb0e4532db31f58d2398a074e9b537c26..5d89e67cbd4542bb804842370e8850760b4bfd25 100644 (file)
@@ -1,6 +1,7 @@
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/libstrongswan \
-       -I$(top_srcdir)/src/libhydra
+       -I$(top_srcdir)/src/libhydra \
+       -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = \
        $(PLUGIN_CFLAGS)
similarity index 98%
rename from src/libhydra/plugins/attr_sql/attr_sql_plugin.h
rename to src/libcharon/plugins/attr_sql/attr_sql_plugin.h
index ba85a6b2883a392cbe16b697fd88d99ab44964e3..ef71492f35eeb46072de6017c5dcc4d0cc8f0dbf 100644 (file)
@@ -15,7 +15,7 @@
 
 /**
  * @defgroup attr_sql attr_sql
- * @ingroup hplugins
+ * @ingroup cplugins
  *
  * @defgroup sql_plugin sql_plugin
  * @{ @ingroup attr_sql
index 1877a0bfa1e1f1692d30ede2c7f75c1a07daeea8..e1537c1fb1771b5b140c25a6a1da8c16b597a2d4 100644 (file)
@@ -37,13 +37,6 @@ else
 SUBDIRS = .
 endif
 
-if USE_ATTR_SQL
-  SUBDIRS += plugins/attr_sql
-if MONOLITHIC
-  libhydra_la_LIBADD += plugins/attr_sql/libstrongswan-attr-sql.la
-endif
-endif
-
 if USE_KERNEL_PFKEY
   SUBDIRS += plugins/kernel_pfkey
 if MONOLITHIC
index b8d662e57e8081c391139a4b88ed1d4bb7b451e8..5ae624b8807c913b78da14d6301ab98833698f2b 100644 (file)
@@ -11,11 +11,13 @@ pool.o :    $(top_builddir)/config.status
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/libstrongswan \
        -I$(top_srcdir)/src/libhydra \
+       -I$(top_srcdir)/src/libcharon \
        -DPLUGINS=\""${pool_plugins}\""
 
 pool_LDADD = \
        $(top_builddir)/src/libstrongswan/libstrongswan.la \
-       $(top_builddir)/src/libhydra/libhydra.la
+       $(top_builddir)/src/libhydra/libhydra.la \
+       $(top_builddir)/src/libcharon/libcharon.la
 
 endif USE_ATTR_SQL