]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
resolve: Move plugin back to libcharon
authorMartin Willi <martin@revosec.ch>
Tue, 4 Nov 2014 13:13:34 +0000 (14:13 +0100)
committerMartin Willi <martin@revosec.ch>
Fri, 20 Feb 2015 12:34:54 +0000 (13:34 +0100)
Since pluto is gone, all existing users build upon libcharon.

configure.ac
src/libcharon/Makefile.am
src/libcharon/plugins/resolve/Makefile.am [moved from src/libhydra/plugins/resolve/Makefile.am with 93% similarity]
src/libcharon/plugins/resolve/resolve_handler.c [moved from src/libhydra/plugins/resolve/resolve_handler.c with 99% similarity]
src/libcharon/plugins/resolve/resolve_handler.h [moved from src/libhydra/plugins/resolve/resolve_handler.h with 100% similarity]
src/libcharon/plugins/resolve/resolve_plugin.c [moved from src/libhydra/plugins/resolve/resolve_plugin.c with 99% similarity]
src/libcharon/plugins/resolve/resolve_plugin.h [moved from src/libhydra/plugins/resolve/resolve_plugin.h with 100% similarity]
src/libhydra/Makefile.am

index f9b235093c7c800680e56be4a2bf80e86cd52181..9d55b39fc376834d0a31c0ded8430b40057a0dac 100644 (file)
@@ -1265,7 +1265,7 @@ ADD_PLUGIN([kernel-iph],           [c charon])
 ADD_PLUGIN([kernel-pfkey],         [h charon starter nm cmd])
 ADD_PLUGIN([kernel-pfroute],       [h charon starter nm cmd])
 ADD_PLUGIN([kernel-netlink],       [h charon starter nm cmd])
-ADD_PLUGIN([resolve],              [h charon cmd])
+ADD_PLUGIN([resolve],              [c charon cmd])
 ADD_PLUGIN([socket-default],       [c charon nm cmd])
 ADD_PLUGIN([socket-dynamic],       [c charon cmd])
 ADD_PLUGIN([socket-win],           [c charon])
@@ -1481,6 +1481,7 @@ AM_CONDITIONAL(USE_SOCKET_WIN, test x$socket_win = xtrue)
 AM_CONDITIONAL(USE_FARP, test x$farp = xtrue)
 AM_CONDITIONAL(USE_ADDRBLOCK, test x$addrblock = xtrue)
 AM_CONDITIONAL(USE_UNITY, test x$unity = xtrue)
+AM_CONDITIONAL(USE_RESOLVE, test x$resolve = xtrue)
 
 #  hydra plugins
 # ---------------
@@ -1489,7 +1490,6 @@ 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)
-AM_CONDITIONAL(USE_RESOLVE, test x$resolve = xtrue)
 
 #  other options
 # ---------------
@@ -1654,7 +1654,6 @@ AC_CONFIG_FILES([
        src/libhydra/plugins/kernel_netlink/Makefile
        src/libhydra/plugins/kernel_pfkey/Makefile
        src/libhydra/plugins/kernel_pfroute/Makefile
-       src/libhydra/plugins/resolve/Makefile
        src/libhydra/tests/Makefile
        src/libipsec/Makefile
        src/libsimaka/Makefile
@@ -1750,6 +1749,7 @@ AC_CONFIG_FILES([
        src/libcharon/plugins/dhcp/Makefile
        src/libcharon/plugins/unit_tester/Makefile
        src/libcharon/plugins/load_tester/Makefile
+       src/libcharon/plugins/resolve/Makefile
        src/stroke/Makefile
        src/ipsec/Makefile
        src/starter/Makefile
index e666950f19b8315738c9afabda24fa179438b0b3..7f7e32155ee23f2b33c445d1668a630f759349f1 100644 (file)
@@ -630,3 +630,10 @@ if MONOLITHIC
   libcharon_la_LIBADD += plugins/xauth_noauth/libstrongswan-xauth-noauth.la
 endif
 endif
+
+if USE_RESOLVE
+  SUBDIRS += plugins/resolve
+if MONOLITHIC
+  libcharon_la_LIBADD += plugins/resolve/libstrongswan-resolve.la
+endif
+endif
similarity index 93%
rename from src/libhydra/plugins/resolve/Makefile.am
rename to src/libcharon/plugins/resolve/Makefile.am
index 33c3e70fcc89c98247fc7e8dc354e2bc92885c80..9cfc370c025aaf1ce6861af437cede11e416f4df 100644 (file)
@@ -1,6 +1,7 @@
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/libstrongswan \
        -I$(top_srcdir)/src/libhydra \
+       -I$(top_srcdir)/src/libcharon \
        -DRESOLV_CONF=\"${resolv_conf}\"
 
 AM_CFLAGS = \
similarity index 99%
rename from src/libhydra/plugins/resolve/resolve_handler.c
rename to src/libcharon/plugins/resolve/resolve_handler.c
index 069466ab5c32fcce9c2323e601a53903105f0bde..1242ca6ffcc7a4cd4676c4770242fe9e0c1a146c 100644 (file)
@@ -374,4 +374,3 @@ resolve_handler_t *resolve_handler_create()
 
        return &this->public;
 }
-
similarity index 99%
rename from src/libhydra/plugins/resolve/resolve_plugin.c
rename to src/libcharon/plugins/resolve/resolve_plugin.c
index 2fef09a499966357fb050000e9469719a0799d3d..00c025f13cc7b367b671abebf8274b0a4e3e006e 100644 (file)
@@ -99,4 +99,3 @@ plugin_t *resolve_plugin_create()
 
        return &this->public.plugin;
 }
-
index 7334cdc2e6c2e0467c79b9777f61624b4fb50ed1..71c42c3de7e2055a14661ed7d035a0e35dac86a7 100644 (file)
@@ -72,13 +72,6 @@ if MONOLITHIC
 endif
 endif
 
-if USE_RESOLVE
-  SUBDIRS += plugins/resolve
-if MONOLITHIC
-  libhydra_la_LIBADD += plugins/resolve/libstrongswan-resolve.la
-endif
-endif
-
 if MONOLITHIC
   SUBDIRS += .
 endif