Subject: [PATCH] Fix installation of nm-ssh-service.name

From: Michael Biebl <[email-masked]>
Date: Tue, 10 Feb 2026 08:37:28 +0100

Followup for #1126644 which addresses its root cause.
---
 debian/network-manager-ssh.install            |  2 +-
 ...pkg-config-call-to-get-vpnservicedir.patch | 24 +++++++++++++++++++
 debian/patches/series                         |  1 +
 3 files changed, 26 insertions(+), 1 deletion(-)
 create mode 100644 debian/patches/Fix-pkg-config-call-to-get-vpnservicedir.patch

diff --git a/debian/network-manager-ssh.install b/debian/network-manager-ssh.install
index 6818e8a..659ff29 100644
--- a/debian/network-manager-ssh.install
+++ b/debian/network-manager-ssh.install
@@ -1,3 +1,3 @@
 etc
-nm-ssh-service.name usr/lib/NetworkManager/VPN
+usr/lib/NetworkManager/VPN
 usr/lib/NetworkManager/nm-ssh-service
diff --git a/debian/patches/Fix-pkg-config-call-to-get-vpnservicedir.patch b/debian/patches/Fix-pkg-config-call-to-get-vpnservicedir.patch
new file mode 100644
index 0000000..988066f
--- /dev/null
+++ b/debian/patches/Fix-pkg-config-call-to-get-vpnservicedir.patch
@@ -0,0 +1,24 @@
+From: Michael Biebl <[email-masked]>
+Date: Tue, 10 Feb 2026 08:31:27 +0100
+Subject: Fix pkg-config call to get vpnservicedir
+
+Calling $PKG_CONFIG with pkg-config as its first parameter will lead to
+a failure to resolve the vpnservicedir variable with newer versions of
+pkgconf.
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index c1f9602..83685ba 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -103,7 +103,7 @@ 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 pkg-config --define-variable prefix='\${prefix}' --variable vpnservicedir libnm`
++NM_VPN_SERVICE_DIR=`$PKG_CONFIG --define-variable prefix='\${prefix}' --variable vpnservicedir libnm`
+ AC_SUBST(NM_VPN_SERVICE_DIR)
+ 
+ NM_COMPILER_WARNINGS
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..4fd490f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Fix-pkg-config-call-to-get-vpnservicedir.patch
-- 
2.51.0