gnu: network-manager-openconnect: Patch all the 'openconnect' file names.
authorLudovic Courtès <ludo@gnu.org>
Thu, 2 Jul 2020 15:02:45 +0000 (17:02 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 2 Jul 2020 21:54:02 +0000 (23:54 +0200)
* gnu/packages/gnome.scm (network-manager-openconnect)[arguments]: Make
sure all the references to the 'openconnect' executable are patched.

gnu/packages/gnome.scm

index 55191d3..d2e452d 100644 (file)
@@ -6788,8 +6788,7 @@ Compatible with Cisco VPN concentrators configured to use IPsec.")
                                              "/bin/modprobe"))
                     (pretty-ovpn (string-append "\"" openconnect "\"")))
                (substitute* "src/nm-openconnect-service.c"
-                 (("\"/usr/local/sbin/openconnect\"") pretty-ovpn)
-                 (("\"/usr/sbin/openconnect\"") pretty-ovpn)
+                 (("\"/usr(/local)?/s?bin/openconnect\"") pretty-ovpn)
                  (("/sbin/modprobe") modprobe)))
              #t)))))
     (native-inputs