diff options
author | W. Kosior <koszko@koszko.org> | 2024-09-20 12:16:00 +0200 |
---|---|---|
committer | W. Kosior <koszko@koszko.org> | 2025-02-06 16:38:42 +0100 |
commit | 45773c6f570974adc68bae5b872bd2b5554127b9 (patch) | |
tree | b163c94c104f0bc43ce5e70b656c38943d367b2b /gnu | |
parent | 734fb3a45682fd6f2667dbc3d8841a4005584e2a (diff) | |
download | guix-45773c6f570974adc68bae5b872bd2b5554127b9.tar.gz guix-45773c6f570974adc68bae5b872bd2b5554127b9.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
Diffstat (limited to 'gnu')
-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) '()))) |