From: Martin Willi Date: Tue, 4 Nov 2014 13:13:34 +0000 (+0100) Subject: resolve: Move plugin back to libcharon X-Git-Tag: 5.3.0dr1~79^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6bfd1fbb71a4a3bd3079f9d26823f7bb12d9cd07;p=thirdparty%2Fstrongswan.git resolve: Move plugin back to libcharon Since pluto is gone, all existing users build upon libcharon. --- diff --git a/configure.ac b/configure.ac index f9b235093c..9d55b39fc3 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/src/libcharon/Makefile.am b/src/libcharon/Makefile.am index e666950f19..7f7e32155e 100644 --- a/src/libcharon/Makefile.am +++ b/src/libcharon/Makefile.am @@ -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 diff --git a/src/libhydra/plugins/resolve/Makefile.am b/src/libcharon/plugins/resolve/Makefile.am similarity index 93% rename from src/libhydra/plugins/resolve/Makefile.am rename to src/libcharon/plugins/resolve/Makefile.am index 33c3e70fcc..9cfc370c02 100644 --- a/src/libhydra/plugins/resolve/Makefile.am +++ b/src/libcharon/plugins/resolve/Makefile.am @@ -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 = \ diff --git a/src/libhydra/plugins/resolve/resolve_handler.c b/src/libcharon/plugins/resolve/resolve_handler.c similarity index 99% rename from src/libhydra/plugins/resolve/resolve_handler.c rename to src/libcharon/plugins/resolve/resolve_handler.c index 069466ab5c..1242ca6ffc 100644 --- a/src/libhydra/plugins/resolve/resolve_handler.c +++ b/src/libcharon/plugins/resolve/resolve_handler.c @@ -374,4 +374,3 @@ resolve_handler_t *resolve_handler_create() return &this->public; } - diff --git a/src/libhydra/plugins/resolve/resolve_handler.h b/src/libcharon/plugins/resolve/resolve_handler.h similarity index 100% rename from src/libhydra/plugins/resolve/resolve_handler.h rename to src/libcharon/plugins/resolve/resolve_handler.h diff --git a/src/libhydra/plugins/resolve/resolve_plugin.c b/src/libcharon/plugins/resolve/resolve_plugin.c similarity index 99% rename from src/libhydra/plugins/resolve/resolve_plugin.c rename to src/libcharon/plugins/resolve/resolve_plugin.c index 2fef09a499..00c025f13c 100644 --- a/src/libhydra/plugins/resolve/resolve_plugin.c +++ b/src/libcharon/plugins/resolve/resolve_plugin.c @@ -99,4 +99,3 @@ plugin_t *resolve_plugin_create() return &this->public.plugin; } - diff --git a/src/libhydra/plugins/resolve/resolve_plugin.h b/src/libcharon/plugins/resolve/resolve_plugin.h similarity index 100% rename from src/libhydra/plugins/resolve/resolve_plugin.h rename to src/libcharon/plugins/resolve/resolve_plugin.h diff --git a/src/libhydra/Makefile.am b/src/libhydra/Makefile.am index 7334cdc2e6..71c42c3de7 100644 --- a/src/libhydra/Makefile.am +++ b/src/libhydra/Makefile.am @@ -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