[network-manager-openvpn/lr/libnm: 11/13] fixup! properties: build separate libnm-based and libnm-glib-based plugins



commit 5ca1d7094e706ae22a8d5c5af1ebbd04cbaa8c7e
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Sat Aug 15 20:42:19 2015 +0200

    fixup! properties: build separate libnm-based and libnm-glib-based plugins
    
    find -name Makefile.am |xargs sed 
's/libnm\(.\)\([^-_]*\).properties/libnm\1vpn\1plugin\1\2/;s/vpn.plugin\(.\)\([^-_]*\).old/\2\1properties/g;s/libnm\(.\)\([^-_]*\).common/libnm\1vpn\1plugin\1\2\1common/;s/vpn.plugin\(.\)\([^-_]*\).common.old/\2\1common/g'
 -i *.name.in

 auth-dialog/Makefile.am      |    2 +-
 common/Makefile.am           |   18 +++++++++---------
 nm-openvpn-service.name.in   |    4 ++--
 properties/Makefile.am       |   28 ++++++++++++++--------------
 properties/tests/Makefile.am |    2 +-
 src/Makefile.am              |    2 +-
 6 files changed, 28 insertions(+), 28 deletions(-)
---
diff --git a/auth-dialog/Makefile.am b/auth-dialog/Makefile.am
index fde4497..142f995 100644
--- a/auth-dialog/Makefile.am
+++ b/auth-dialog/Makefile.am
@@ -20,6 +20,6 @@ nm_openvpn_auth_dialog_LDADD = \
        $(LIBNM_LIBS) \
        $(LIBNMA_LIBS) \
        $(LIBSECRET_LIBS) \
-       $(top_builddir)/common/libnm-openvpn-common.la
+       $(top_builddir)/common/libnm-vpn-plugin-openvpn-common.la
 
 CLEANFILES = *~
diff --git a/common/Makefile.am b/common/Makefile.am
index 9f663ab..f99bfd0 100644
--- a/common/Makefile.am
+++ b/common/Makefile.am
@@ -1,29 +1,29 @@
-noinst_LTLIBRARIES=libnm-openvpn-common.la
+noinst_LTLIBRARIES=libnm-vpn-plugin-openvpn-common.la
 if WITH_LIBNM_GLIB
-noinst_LTLIBRARIES += libnm-openvpn-common-old.la
+noinst_LTLIBRARIES += libnm-openvpn-common.la
 endif
 
-libnm_openvpn_common_la_CPPFLAGS = \
+libnm_vpn_plugin_openvpn_common_la_CPPFLAGS = \
        $(LIBNM_CFLAGS) \
         -I$(top_srcdir)/src/
 
-libnm_openvpn_common_old_la_CPPFLAGS = \
+libnm_openvpn_common_la_CPPFLAGS = \
        -DNM_OPENVPN_OLD \
        $(LIBNM_GLIB_CFLAGS) \
         -I$(top_srcdir)/src/
 
-libnm_openvpn_common_la_SOURCES= \
+libnm_vpn_plugin_openvpn_common_la_SOURCES= \
        utils.c \
        utils.h \
        nm-glib-compat.h
 
-libnm_openvpn_common_old_la_SOURCES = \
-       $(libnm_openvpn_common_la_SOURCES)
+libnm_openvpn_common_la_SOURCES = \
+       $(libnm_vpn_plugin_openvpn_common_la_SOURCES)
 
-libnm_openvpn_common_la_LIBADD = \
+libnm_vpn_plugin_openvpn_common_la_LIBADD = \
        $(LIBNM_LIBS)
 
-libnm_openvpn_common_old_la_LIBADD = \
+libnm_openvpn_common_la_LIBADD = \
        $(LIBNM_GLIB_LIBS)
 
 EXTRA_DIST = nm-glib-compat.h
diff --git a/nm-openvpn-service.name.in b/nm-openvpn-service.name.in
index 6329b1b..93c90c8 100644
--- a/nm-openvpn-service.name.in
+++ b/nm-openvpn-service.name.in
@@ -4,10 +4,10 @@ service=org.freedesktop.NetworkManager.openvpn
 program= LIBEXECDIR@/nm-openvpn-service
 
 [libnm]
-plugin= PLUGINDIR@/libnm-openvpn-properties
+plugin= PLUGINDIR@/libnm-vpn-plugin-openvpn
 
 [GNOME]
 auth-dialog= LIBEXECDIR@/nm-openvpn-auth-dialog
-properties= PLUGINDIR@/libnm-openvpn-properties-old
+properties= PLUGINDIR@/libnm-openvpn-properties
 supports-external-ui-mode=true
 supports-hints=true
diff --git a/properties/Makefile.am b/properties/Makefile.am
index 18ccf70..7c3c862 100644
--- a/properties/Makefile.am
+++ b/properties/Makefile.am
@@ -1,12 +1,12 @@
 SUBDIRS = . tests
 
 plugindir = $(libdir)/NetworkManager
-plugin_LTLIBRARIES = libnm-openvpn-properties.la
+plugin_LTLIBRARIES = libnm-vpn-plugin-openvpn.la
 if WITH_LIBNM_GLIB
-plugin_LTLIBRARIES += libnm-openvpn-properties-old.la
+plugin_LTLIBRARIES += libnm-openvpn-properties.la
 endif
 
-libnm_openvpn_properties_la_SOURCES =                   \
+libnm_vpn_plugin_openvpn_la_SOURCES =                   \
         nm-openvpn.c                                    \
         nm-openvpn.h                                    \
         auth-helpers.c                                  \
@@ -14,8 +14,8 @@ libnm_openvpn_properties_la_SOURCES =                   \
         import-export.c                                 \
         import-export.h
 
-libnm_openvpn_properties_old_la_SOURCES =               \
-        $(libnm_openvpn_properties_la_SOURCES)
+libnm_openvpn_properties_la_SOURCES =               \
+        $(libnm_vpn_plugin_openvpn_la_SOURCES)
 
 uidir = $(datadir)/gnome-vpn-properties/openvpn
 ui_DATA = nm-openvpn-dialog.ui
@@ -29,34 +29,34 @@ common_CFLAGS =                                         \
         -DLOCALEDIR=\"$(datadir)/locale\"               \
         -DVERSION=\"$(VERSION)\"
 
-libnm_openvpn_properties_la_CFLAGS =                    \
+libnm_vpn_plugin_openvpn_la_CFLAGS =                    \
         $(common_CFLAGS)                                \
         $(LIBNM_CFLAGS)                                 \
         $(LIBNMA_CFLAGS)
 
-libnm_openvpn_properties_old_la_CFLAGS =                \
+libnm_openvpn_properties_la_CFLAGS =                \
         -DNM_OPENVPN_OLD                                \
         $(common_CFLAGS)                                \
         $(LIBNM_GLIB_CFLAGS)                            \
         $(LIBNM_GTK_CFLAGS)
 
-libnm_openvpn_properties_la_LIBADD =                    \
+libnm_vpn_plugin_openvpn_la_LIBADD =                    \
         $(GTK_LIBS)                                     \
         $(LIBNM_LIBS)                                   \
         $(LIBNMA_LIBS)                                  \
-        $(top_builddir)/common/libnm-openvpn-common.la
+        $(top_builddir)/common/libnm-vpn-plugin-openvpn-common.la
 
-libnm_openvpn_properties_old_la_LIBADD =                \
+libnm_openvpn_properties_la_LIBADD =                \
         $(GTK_LIBS)                                     \
         $(LIBNM_GLIB_LIBS)                              \
         $(LIBNM_GTK_LIBS)                               \
-        $(top_builddir)/common/libnm-openvpn-common-old.la
+        $(top_builddir)/common/libnm-openvpn-common.la
 
-libnm_openvpn_properties_la_LDFLAGS =                   \
+libnm_vpn_plugin_openvpn_la_LDFLAGS =                   \
         -avoid-version
 
-libnm_openvpn_properties_old_la_LDFLAGS =               \
-        $(libnm_openvpn_properties_la_LDFLAGS)
+libnm_openvpn_properties_la_LDFLAGS =               \
+        $(libnm_vpn_plugin_openvpn_la_LDFLAGS)
 
 CLEANFILES = *.bak *~
 
diff --git a/properties/tests/Makefile.am b/properties/tests/Makefile.am
index 214b3a5..767ca9e 100644
--- a/properties/tests/Makefile.am
+++ b/properties/tests/Makefile.am
@@ -18,7 +18,7 @@ test_import_export_LDADD = \
        $(GTK_LIBS) \
        $(LIBNM_LIBS) \
        $(LIBNMA_LIBS) \
-       $(top_builddir)/properties/libnm-openvpn-properties.la
+       $(top_builddir)/properties/libnm-vpn-plugin-openvpn.la
 
 if WITH_TESTS
 
diff --git a/src/Makefile.am b/src/Makefile.am
index 6ef53b8..43217bc 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -22,7 +22,7 @@ nm_openvpn_service_SOURCES = \
 
 nm_openvpn_service_LDADD = \
        $(LIBNM_LIBS) \
-        $(top_builddir)/common/libnm-openvpn-common.la
+        $(top_builddir)/common/libnm-vpn-plugin-openvpn-common.la
 
 nm_openvpn_service_openvpn_helper_SOURCES = \
        nm-openvpn-service-openvpn-helper.c


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]