[network-manager-vpnc/lr/libnm: 7/7] build: install into /usr/lib/NetworkManager/VPN as well



commit 6f2a7a9cd18dd9af4500376a2740cce9ae986734
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Fri Aug 21 11:03:08 2015 +0200

    build: install into /usr/lib/NetworkManager/VPN as well
    
    That's the preferred location now, though we can't just get rid of the old one yet.

 Makefile.am  |    7 ++++++-
 configure.ac |    3 +++
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 377c590..625c85a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,9 +9,14 @@ endif
 dbusservicedir = $(sysconfdir)/dbus-1/system.d
 dbusservice_DATA = nm-vpnc-service.conf
 
-nmvpnservicedir = $(sysconfdir)/NetworkManager/VPN
+nmvpnservicedir = $(NM_VPN_SERVICE_DIR)
 nmvpnservice_DATA = nm-vpnc-service.name
 
+if WITH_LIBNM_GLIB
+nmvpnoldservicedir = $(sysconfdir)/NetworkManager/VPN
+nmvpnoldservice_DATA = nm-vpnc-service.name
+endif
+
 nm-vpnc-service.name: $(srcdir)/nm-vpnc-service.name.in
        sed -e 's|[ ]LIBEXECDIR[@]|$(libexecdir)|g' \
            -e 's|[ ]PLUGINDIR[@]|$(libdir)/NetworkManager|g' \
diff --git a/configure.ac b/configure.ac
index d5a85d8..e0ef267 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,6 +83,9 @@ 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"
 
+NM_VPN_SERVICE_DIR=`$PKG_CONFIG --define-variable prefix='\${prefix}' --variable vpnservicedir libnm`
+AC_SUBST(NM_VPN_SERVICE_DIR)
+
 NM_COMPILER_WARNINGS
 
 dnl


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