diff options
-rw-r--r-- | gnu/packages/vpn.scm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm index 0b62e8c7cf..ec2395c1ce 100644 --- a/gnu/packages/vpn.scm +++ b/gnu/packages/vpn.scm @@ -879,7 +879,19 @@ this process. It is compatible with Fortinet VPNs.") "0a8r3bvg4aic9b7dix0h7990g3j1gq17wd3w6vqk8vk8xgfhyq8w")))) (build-system gnu-build-system) (arguments - '(#:configure-flags '("--enable-iproute2=yes"))) + (list #:configure-flags #~'("--enable-iproute2=yes") + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-resolv-conf-scripts + (lambda _ + (with-directory-excursion "contrib/pull-resolv-conf/" + (for-each (lambda (name) + (let ((dst (format #f "~a/etc/openvpn/~a" + #$output name))) + (mkdir-p (dirname dst)) + (copy-file name dst) + (chmod dst #o555))) + '("client.up" "client.down")))))))) (native-inputs (list iproute pkg-config)) (inputs (append (list lz4 lzo openssl linux-pam) (if (target-linux?) (list libcap-ng) '()))) |