diff options
author | W. Kosior <koszko@koszko.org> | 2024-09-20 12:16:00 +0200 |
---|---|---|
committer | W. Kosior <koszko@koszko.org> | 2025-03-21 13:59:34 +0100 |
commit | 71111f9ec7b21358162199b73f2bada45d70dce4 (patch) | |
tree | 0f56873648f8db55891f6889d55ce83eef9c8805 | |
parent | 9abb42f6faec70c93586ecdcaf5c25ec0a5eb28d (diff) | |
download | guix-71111f9ec7b21358162199b73f2bada45d70dce4.tar.gz guix-71111f9ec7b21358162199b73f2bada45d70dce4.zip |
gnu: openvpn: Make resolv.conf up/down scripts available.
* gnu/packages/vpn.scm (openvpn)[arguments]<#:phases>: Add phase to install
`client.up' and `client.down' files.
Change-Id: Ic6340721ab0ba086d0528fb3e070e3f7ecf2773e
-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) '()))) |