gnu: vpnc-scripts: Use WRAP-SCRIPT.
* gnu/packages/vpn.scm (vpnc-scripts)[arguments]: Use WRAP-SCRIPT instead of WRAP-PROGRAM. [inputs]: Add guile.master
parent
1e2640baac
commit
b47e083b59
|
@ -10,6 +10,7 @@
|
||||||
;;; Copyright © 2018 Meiyo Peng <meiyo.peng@gmail.com>
|
;;; Copyright © 2018 Meiyo Peng <meiyo.peng@gmail.com>
|
||||||
;;; Copyright © 2019 Leo Famulari <leo@famulari.name>
|
;;; Copyright © 2019 Leo Famulari <leo@famulari.name>
|
||||||
;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
|
;;; Copyright © 2019 Rutger Helling <rhelling@mykolab.com>
|
||||||
|
;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -42,6 +43,7 @@
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
#:use-module (gnu packages gettext)
|
#:use-module (gnu packages gettext)
|
||||||
#:use-module (gnu packages gnupg)
|
#:use-module (gnu packages gnupg)
|
||||||
|
#:use-module (gnu packages guile)
|
||||||
#:use-module (gnu packages libevent)
|
#:use-module (gnu packages libevent)
|
||||||
#:use-module (gnu packages linux)
|
#:use-module (gnu packages linux)
|
||||||
#:use-module (gnu packages nss)
|
#:use-module (gnu packages nss)
|
||||||
|
@ -134,7 +136,8 @@ Only \"Universal TUN/TAP device driver support\" is needed in the kernel.")
|
||||||
(base32
|
(base32
|
||||||
"1g41yarz2bl0f73kbjqnywr485ghanbp7nmspklfb0n07yp0z6ak"))))
|
"1g41yarz2bl0f73kbjqnywr485ghanbp7nmspklfb0n07yp0z6ak"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(inputs `(("coreutils" ,coreutils)
|
(inputs `(("guile" ,guile-2.2) ; for the wrapper scripts
|
||||||
|
("coreutils" ,coreutils)
|
||||||
("grep" ,grep)
|
("grep" ,grep)
|
||||||
("iproute2" ,iproute) ; for ‘ip’
|
("iproute2" ,iproute) ; for ‘ip’
|
||||||
("net-tools" ,net-tools) ; for ‘ifconfig’, ‘route’
|
("net-tools" ,net-tools) ; for ‘ifconfig’, ‘route’
|
||||||
|
@ -177,7 +180,7 @@ Only \"Universal TUN/TAP device driver support\" is needed in the kernel.")
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(for-each
|
(for-each
|
||||||
(lambda (script)
|
(lambda (script)
|
||||||
(wrap-program script
|
(wrap-script (string-append out "/etc/vpnc/" script)
|
||||||
`("PATH" ":" prefix
|
`("PATH" ":" prefix
|
||||||
,(map (lambda (name)
|
,(map (lambda (name)
|
||||||
(let ((input (assoc-ref inputs name)))
|
(let ((input (assoc-ref inputs name)))
|
||||||
|
@ -189,8 +192,9 @@ Only \"Universal TUN/TAP device driver support\" is needed in the kernel.")
|
||||||
"net-tools"
|
"net-tools"
|
||||||
"sed"
|
"sed"
|
||||||
"which")))))
|
"which")))))
|
||||||
(find-files (string-append out "/etc/vpnc/vpnc-script")
|
(list "vpnc-script-ptrtd"
|
||||||
"^vpnc-script"))
|
"vpnc-script-sshd"
|
||||||
|
"vpnc-script"))
|
||||||
#t))))
|
#t))))
|
||||||
#:tests? #f)) ; no tests
|
#:tests? #f)) ; no tests
|
||||||
(home-page "http://git.infradead.org/users/dwmw2/vpnc-scripts.git")
|
(home-page "http://git.infradead.org/users/dwmw2/vpnc-scripts.git")
|
||||||
|
|
Reference in New Issue