1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
5 ;;; This file is part of GNU Guix.
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20 (define-module (gnu packages vpn)
21 #:use-module ((guix licenses)
22 #:renamer (symbol-prefix-proc 'license:))
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix build-system gnu)
26 #:use-module (gnu packages)
27 #:use-module (gnu packages compression)
28 #:use-module (gnu packages gettext)
29 #:use-module (gnu packages gnupg)
30 #:use-module (gnu packages openssl)
31 #:use-module (gnu packages perl)
32 #:use-module (gnu packages pkg-config)
33 #:use-module (gnu packages xml))
41 (uri (string-append "mirror://gnu/gvpe/gvpe-"
45 "1gsipcysvsk80gvyn9jnk9g0xg4ng9yd5zp066jnmpgs52d2vhvk"))))
46 (build-system gnu-build-system)
47 (home-page "http://software.schmorp.de/pkg/gvpe.html")
48 (inputs `(("openssl" ,openssl)
50 (synopsis "Secure VPN among multiple nodes over an untrusted network")
52 "The GNU Virtual Private Ethernet creates a virtual network
53 with multiple nodes using a variety of transport protocols. It works
54 by creating encrypted host-to-host tunnels between multiple
56 (license license:gpl3+)))
64 (uri (string-append "http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-"
67 "1128860lis89g1s21hqxvap2nq426c9j4bvgghncc1zj0ays7kj6"))
68 (patches (list (search-patch "vpnc-script.patch")))))
69 (build-system gnu-build-system)
70 (inputs `(("libgcrypt" ,libgcrypt)
73 `(#:tests? #f ; there is no check target
77 (lambda* (#:key outputs #:allow-other-keys)
78 (let ((out (assoc-ref outputs "out")))
79 (substitute* "Makefile"
80 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
81 (substitute* "Makefile"
82 (("ETCDIR=/etc/vpnc") (string-append "ETCDIR=" out "/etc/vpnc")))))
84 (synopsis "Client for Cisco VPN concentrators")
86 "vpnc is a VPN client compatible with Cisco's EasyVPN equipment.
87 It supports IPSec (ESP) with Mode Configuration and Xauth. It supports only
88 shared-secret IPSec authentication with Xauth, AES (256, 192, 128), 3DES,
89 1DES, MD5, SHA1, DH1/2/5 and IP tunneling. It runs entirely in userspace.
90 Only \"Universal TUN/TAP device driver support\" is needed in the kernel.")
91 (license license:gpl2+) ; some file are bsd-2, see COPYING
92 (home-page "http://www.unix-ag.uni-kl.de/~massar/vpnc/")))
95 (define-public openconnect
101 (uri (string-append "ftp://ftp.infradead.org/pub/openconnect/openconnect-"
104 "1rd8pap455wzkx19i0sy3cqap524b6fwcjvqynxp6lhm01di4bd6"))))
105 (build-system gnu-build-system)
107 `(("libxml2" ,libxml2)
112 `(("gettext" ,gnu-gettext)
113 ("pkg-config" ,pkg-config)))
118 (lambda* (#:key inputs #:allow-other-keys #:rest args)
119 (let ((vpnc (assoc-ref inputs "vpnc"))
120 (configure (assoc-ref %standard-phases 'configure)))
123 (list '#:configure-flags
124 (list (string-append "--with-vpnc-script="
126 "/etc/vpnc/vpnc-script")))))))
128 (synopsis "Client for Cisco VPN")
130 "OpenConnect is a client for Cisco's AnyConnect SSL VPN, which is
131 supported by the ASA5500 Series, by IOS 12.4(9)T or later on Cisco SR500,
132 870, 880, 1800, 2800, 3800, 7200 Series and Cisco 7301 Routers,
133 and probably others.")
134 (license license:lgpl2.1)
135 (home-page "http://www.infradead.org/openconnect/")))