[network-manager-pptp/lr/libnm: 8/8] build: install into /usr/lib/NetworkManager/VPN as well
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-pptp/lr/libnm: 8/8] build: install into /usr/lib/NetworkManager/VPN as well
- Date: Fri, 21 Aug 2015 11:00:30 +0000 (UTC)
commit cd81cda230404736fb424586fb5ffc67c62c4d52
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Fri Aug 21 11:37:48 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 37222c6..099b5a4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,9 +9,14 @@ endif
dbusservicedir = $(sysconfdir)/dbus-1/system.d
dbusservice_DATA = nm-pptp-service.conf
-nmvpnservicedir = $(sysconfdir)/NetworkManager/VPN
+nmvpnservicedir = $(NM_VPN_SERVICE_DIR)
nmvpnservice_DATA = nm-pptp-service.name
+if WITH_LIBNM_GLIB
+nmvpnoldservicedir = $(sysconfdir)/NetworkManager/VPN
+nmvpnoldservice_DATA = nm-pptp-service.name
+endif
+
nm-pptp-service.name: $(srcdir)/nm-pptp-service.name.in
sed -e 's|[ ]LIBEXECDIR[@]|$(libexecdir)|g' \
-e 's|[ ]PLUGINDIR[@]|$(libdir)/NetworkManager|g' \
diff --git a/configure.ac b/configure.ac
index 9e013f6..59b0216 100644
--- a/configure.ac
+++ b/configure.ac
@@ -87,6 +87,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]