This shouldn't be necessary anymore.
metainfo_in_files = NetworkManager-strongswan.metainfo.xml.in
@INTLTOOL_XML_RULE@
-if WITH_LIBNM_GLIB
-# Install a file with full path to plugins for an old gnome-shell
-# https://bugzilla.gnome.org/show_bug.cgi?id=693590
-install-data-hook:
- mkdir -p $(DESTDIR)$(sysconfdir)/NetworkManager/VPN
- sed -e "1s|^|# This file is obsoleted by a file in $(nmvpnservicedir)\n\n|" \
- -e 's|[@]NM_LIBEXECDIR[@]|$(nm_libexecdir)|g' \
- -e 's|[@]NM_PLUGINDIR[@]|$(nm_plugindir)|g' \
- -e 's|[@]NM_PLUGINDIR_ABS[@]|$(nm_plugindir)|g' \
- -e 's|[@]CHARON[@]|$(charon)|' \
- <$(srcdir)/nm-strongswan-service.name.in \
- >$(DESTDIR)$(sysconfdir)/NetworkManager/VPN/nm-strongswan-service.name
-
-uninstall-hook:
- rm -f $(DESTDIR)$(sysconfdir)/NetworkManager/VPN/nm-strongswan-service.name
-endif
-
nm-strongswan-service.name: $(srcdir)/nm-strongswan-service.name.in
$(AM_V_GEN) \
sed -e 's|[@]NM_LIBEXECDIR[@]|$(nm_libexecdir)|' \
[nm-absolute-paths],
AS_HELP_STRING([--enable-nm-absolute-paths],[use absolute paths for NM plugins in the .name file])
)
-AC_ARG_WITH(
- [libnm-glib],
- AS_HELP_STRING([--without-libnm-glib], [build NetworkManager-strongswan without libnm-glib compatibility]),
- [with_libnm_glib=no],
- [with_libnm_glib=yes]
-)
-
-AM_CONDITIONAL(WITH_LIBNM_GLIB, test "$with_libnm_glib" != no)
PKG_CHECK_MODULES(LIBNM, libnm >= 1.1.0)
LIBNM_CFLAGS="$LIBNM_CFLAGS -DNM_VERSION_MIN_REQUIRED=NM_VERSION_1_2"
LIBNM_CFLAGS="$LIBNM_CFLAGS -DNM_VERSION_MAX_ALLOWED=NM_VERSION_1_2"
PKG_CHECK_MODULES(LIBNMA, libnma >= 1.1.0)
-if test x"$with_libnm_glib" != xno; then
- PKG_CHECK_MODULES(LIBNM_GLIB, NetworkManager >= 1.1.0 libnm-util libnm-glib libnm-glib-vpn)
- PKG_CHECK_MODULES(LIBNM_GTK, libnm-gtk >= 1.1.0)
- if test -z "$nm_libexecdir"; then
- nm_libexecdir=$($PKG_CONFIG --variable=libgnome_serverdir NetworkManager)
- fi
- if test -z "$nm_plugindir"; then
- nm_plugindir=$($PKG_CONFIG --variable=plugindir NetworkManager)
- fi
-else
- if test -z "$nm_libexecdir"; then
- nm_libexecdir=$($PKG_CONFIG --variable=exec_prefix libnm)/lib/NetworkManager
- fi
- if test -z "$nm_plugindir"; then
- nm_plugindir=$($PKG_CONFIG --variable=libdir libnm)/NetworkManager
- fi
+if test -z "$nm_libexecdir"; then
+ nm_libexecdir=$($PKG_CONFIG --variable=exec_prefix libnm)/lib/NetworkManager
+fi
+if test -z "$nm_plugindir"; then
+ nm_plugindir=$($PKG_CONFIG --variable=libdir libnm)/NetworkManager
fi
AC_SUBST(nm_libexecdir)
[GNOME]
auth-dialog=@NM_LIBEXECDIR@/nm-strongswan-auth-dialog
-properties=@NM_PLUGINDIR_ABS@/libnm-strongswan-properties
supports-external-ui-mode=true
nm_plugin_LTLIBRARIES = libnm-vpn-plugin-strongswan.la
-if WITH_LIBNM_GLIB
-nm_plugin_LTLIBRARIES += libnm-strongswan-properties.la
-endif
-
libnm_vpn_plugin_strongswan_la_SOURCES = \
nm-strongswan.c \
nm-strongswan.h
-libnm_strongswan_properties_la_SOURCES = \
- $(libnm_vpn_plugin_strongswan_la_SOURCES)
-
uidir = $(datadir)/gnome-vpn-properties/strongswan
ui_DATA = nm-strongswan-dialog.ui
$(LIBNMA_CFLAGS) \
$(common_CFLAGS)
-libnm_strongswan_properties_la_CFLAGS = \
- -DNM_STRONGSWAN_OLD \
- $(LIBNM_GTK_CFLAGS) \
- $(LIBNM_GLIB_CFLAGS) \
- $(common_CFLAGS)
-
libnm_vpn_plugin_strongswan_la_LIBADD = \
$(GTK_LIBS) \
$(LIBNMA_LIBS) \
$(LIBNM_LIBS)
-libnm_strongswan_properties_la_LIBADD = \
- $(GTK_LIBS) \
- $(LIBNM_GTK_LIBS) \
- $(LIBNM_GLIB_LIBS)
-
libnm_vpn_plugin_strongswan_la_LDFLAGS = \
-avoid-version
-libnm_strongswan_properties_la_LDFLAGS = \
- $(libnm_vpn_plugin_strongswan_la_LDFLAGS)
-
EXTRA_DIST = $(ui_DATA)
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
-#ifdef NM_STRONGSWAN_OLD
-#define NM_VPN_LIBNM_COMPAT
-#include <nm-vpn-plugin-ui-interface.h>
-#include <nm-setting-vpn.h>
-#include <nm-setting-connection.h>
-#include <nm-ui-utils.h>
-#else
#include <NetworkManager.h>
#include <nma-ui-utils.h>
-#endif
#include "nm-strongswan.h"