gnu: Add vpnc.
[jackhill/guix/guix.git] / gnu / packages / vpn.scm
CommitLineData
49f24f41
AE
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages vpn)
20 #:use-module ((guix licenses)
21 #:renamer (symbol-prefix-proc 'license:))
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu)
25 #:use-module (gnu packages)
26 #:use-module (gnu packages gnupg)
27 #:use-module (gnu packages perl))
28
29(define-public vpnc
30 (package
31 (name "vpnc")
32 (version "0.5.3")
33 (source (origin
34 (method url-fetch)
35 (uri (string-append "http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-"
36 version ".tar.gz"))
37 (sha256 (base32
38 "1128860lis89g1s21hqxvap2nq426c9j4bvgghncc1zj0ays7kj6"))))
39 (build-system gnu-build-system)
40 (inputs `(("libgcrypt" ,libgcrypt)
41 ("perl" ,perl)
42 ("patch/script"
43 ,(search-patch "vpnc-script.patch"))))
44 (arguments
45 `(#:tests? #f ; there is no check target
46 #:patches (list (assoc-ref %build-inputs
47 "patch/script"))
48 #:phases
49 (alist-replace
50 'configure
51 (lambda* (#:key outputs #:allow-other-keys)
52 (let ((out (assoc-ref outputs "out")))
53 (substitute* "Makefile"
54 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
55 (substitute* "Makefile"
56 (("ETCDIR=/etc/vpnc") (string-append "ETCDIR=" out "/etc/vpnc")))))
57 %standard-phases)))
58 (synopsis "vpnc, a client for cisco vpn concentrators")
59 (description
60 "vpnc is a VPN client compatible with Cisco's EasyVPN equipment.
61It supports IPSec (ESP) with Mode Configuration and Xauth. It supports only
62shared-secret IPSec authentication with Xauth, AES (256, 192, 128), 3DES,
631DES, MD5, SHA1, DH1/2/5 and IP tunneling. It runs entirely in userspace.
64Only \"Universal TUN/TAP device driver support\" is needed in the kernel.")
65 (license license:gpl2+) ; some file are bsd-2, see COPYING
66 (home-page "http://www.unix-ag.uni-kl.de/~massar/vpnc/")))