Commit | Line | Data |
---|---|---|
49f24f41 AE |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> | |
4095b413 | 3 | ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org> |
d4bf49b1 | 4 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
49f24f41 AE |
5 | ;;; |
6 | ;;; This file is part of GNU Guix. | |
7 | ;;; | |
8 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
9 | ;;; under the terms of the GNU General Public License as published by | |
10 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
11 | ;;; your option) any later version. | |
12 | ;;; | |
13 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
14 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | ;;; GNU General Public License for more details. | |
17 | ;;; | |
18 | ;;; You should have received a copy of the GNU General Public License | |
19 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
20 | ||
21 | (define-module (gnu packages vpn) | |
b5b73a82 | 22 | #:use-module ((guix licenses) #:prefix license:) |
49f24f41 AE |
23 | #:use-module (guix packages) |
24 | #:use-module (guix download) | |
25 | #:use-module (guix build-system gnu) | |
26 | #:use-module (gnu packages) | |
71f4b81a | 27 | #:use-module (gnu packages compression) |
1dba6407 | 28 | #:use-module (gnu packages gettext) |
49f24f41 | 29 | #:use-module (gnu packages gnupg) |
dc77f0d3 | 30 | #:use-module (gnu packages linux) |
71f4b81a AE |
31 | #:use-module (gnu packages openssl) |
32 | #:use-module (gnu packages perl) | |
33 | #:use-module (gnu packages pkg-config) | |
a7fd7b68 | 34 | #:use-module (gnu packages tls) |
71f4b81a | 35 | #:use-module (gnu packages xml)) |
49f24f41 | 36 | |
7af8a9b7 LC |
37 | (define-public gvpe |
38 | (package | |
39 | (name "gvpe") | |
40 | (version "2.25") | |
41 | (source (origin | |
42 | (method url-fetch) | |
43 | (uri (string-append "mirror://gnu/gvpe/gvpe-" | |
44 | version ".tar.gz")) | |
45 | (sha256 | |
46 | (base32 | |
47 | "1gsipcysvsk80gvyn9jnk9g0xg4ng9yd5zp066jnmpgs52d2vhvk")))) | |
48 | (build-system gnu-build-system) | |
49 | (home-page "http://software.schmorp.de/pkg/gvpe.html") | |
50 | (inputs `(("openssl" ,openssl) | |
51 | ("zlib" ,zlib))) | |
52 | (synopsis "Secure VPN among multiple nodes over an untrusted network") | |
53 | (description | |
54 | "The GNU Virtual Private Ethernet creates a virtual network | |
55 | with multiple nodes using a variety of transport protocols. It works | |
56 | by creating encrypted host-to-host tunnels between multiple | |
57 | endpoints.") | |
58 | (license license:gpl3+))) | |
59 | ||
49f24f41 AE |
60 | (define-public vpnc |
61 | (package | |
62 | (name "vpnc") | |
63 | (version "0.5.3") | |
64 | (source (origin | |
65 | (method url-fetch) | |
66 | (uri (string-append "http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-" | |
67 | version ".tar.gz")) | |
68 | (sha256 (base32 | |
01eafd38 LC |
69 | "1128860lis89g1s21hqxvap2nq426c9j4bvgghncc1zj0ays7kj6")) |
70 | (patches (list (search-patch "vpnc-script.patch"))))) | |
49f24f41 AE |
71 | (build-system gnu-build-system) |
72 | (inputs `(("libgcrypt" ,libgcrypt) | |
01eafd38 | 73 | ("perl" ,perl))) |
49f24f41 AE |
74 | (arguments |
75 | `(#:tests? #f ; there is no check target | |
49f24f41 AE |
76 | #:phases |
77 | (alist-replace | |
78 | 'configure | |
79 | (lambda* (#:key outputs #:allow-other-keys) | |
80 | (let ((out (assoc-ref outputs "out"))) | |
81 | (substitute* "Makefile" | |
82 | (("PREFIX=/usr/local") (string-append "PREFIX=" out))) | |
83 | (substitute* "Makefile" | |
84 | (("ETCDIR=/etc/vpnc") (string-append "ETCDIR=" out "/etc/vpnc"))))) | |
85 | %standard-phases))) | |
799dcdc4 | 86 | (synopsis "Client for Cisco VPN concentrators") |
49f24f41 AE |
87 | (description |
88 | "vpnc is a VPN client compatible with Cisco's EasyVPN equipment. | |
35b9e423 | 89 | It supports IPSec (ESP) with Mode Configuration and Xauth. It supports only |
49f24f41 | 90 | shared-secret IPSec authentication with Xauth, AES (256, 192, 128), 3DES, |
35b9e423 | 91 | 1DES, MD5, SHA1, DH1/2/5 and IP tunneling. It runs entirely in userspace. |
49f24f41 AE |
92 | Only \"Universal TUN/TAP device driver support\" is needed in the kernel.") |
93 | (license license:gpl2+) ; some file are bsd-2, see COPYING | |
94 | (home-page "http://www.unix-ag.uni-kl.de/~massar/vpnc/"))) | |
71f4b81a AE |
95 | |
96 | ||
97 | (define-public openconnect | |
98 | (package | |
99 | (name "openconnect") | |
060e365a | 100 | (version "7.05") |
71f4b81a AE |
101 | (source (origin |
102 | (method url-fetch) | |
d4bf49b1 EB |
103 | (uri (string-append "ftp://ftp.infradead.org/pub/openconnect/" |
104 | "openconnect-" version ".tar.gz")) | |
71f4b81a | 105 | (sha256 (base32 |
060e365a | 106 | "1i102yr8yp2ny587n6pd966443h1pqxyw5q0n5afq575046jj98g")))) |
71f4b81a AE |
107 | (build-system gnu-build-system) |
108 | (inputs | |
c4c4cc05 | 109 | `(("libxml2" ,libxml2) |
060e365a | 110 | ("gnutls" ,gnutls) |
71f4b81a AE |
111 | ("vpnc" ,vpnc) |
112 | ("zlib" ,zlib))) | |
c4c4cc05 JD |
113 | (native-inputs |
114 | `(("gettext" ,gnu-gettext) | |
115 | ("pkg-config" ,pkg-config))) | |
71f4b81a | 116 | (arguments |
d4bf49b1 EB |
117 | `(#:configure-flags |
118 | `(,(string-append "--with-vpnc-script=" | |
119 | (assoc-ref %build-inputs "vpnc") | |
120 | "/etc/vpnc/vpnc-script")))) | |
799dcdc4 | 121 | (synopsis "Client for Cisco VPN") |
71f4b81a AE |
122 | (description |
123 | "OpenConnect is a client for Cisco's AnyConnect SSL VPN, which is | |
124 | supported by the ASA5500 Series, by IOS 12.4(9)T or later on Cisco SR500, | |
125 | 870, 880, 1800, 2800, 3800, 7200 Series and Cisco 7301 Routers, | |
126 | and probably others.") | |
127 | (license license:lgpl2.1) | |
128 | (home-page "http://www.infradead.org/openconnect/"))) | |
dc77f0d3 DT |
129 | |
130 | (define-public openvpn | |
131 | (package | |
132 | (name "openvpn") | |
133 | (version "2.3.6") | |
134 | (source (origin | |
135 | (method url-fetch) | |
136 | (uri (string-append | |
137 | "https://swupdate.openvpn.org/community/releases/openvpn-" | |
138 | version ".tar.xz")) | |
139 | (sha256 | |
140 | (base32 | |
141 | "1v8h2nshxnvn2zyr08vzkfby1kc7ma6bi0s6hix389cj9krjxbmd")))) | |
142 | (build-system gnu-build-system) | |
143 | (arguments | |
144 | '(#:configure-flags '("--enable-iproute2=yes"))) | |
145 | (native-inputs | |
146 | `(("iproute2" ,iproute))) | |
147 | (inputs | |
148 | `(("lzo" ,lzo) | |
149 | ("openssl" ,openssl) | |
150 | ("linux-pam" ,linux-pam))) | |
151 | (home-page "https://openvpn.net/") | |
152 | (synopsis "Virtual private network daemon") | |
153 | (description "OpenVPN implements virtual private network (VPN) techniques | |
154 | for creating secure point-to-point or site-to-site connections in routed or | |
155 | bridged configurations and remote access facilities. It uses a custom | |
156 | security protocol that utilizes SSL/TLS for key exchange. It is capable of | |
157 | traversing network address translators (NATs) and firewalls. ") | |
158 | (license license:gpl2))) |