| 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 compression) |
| 27 | #:use-module ((gnu packages gettext) |
| 28 | #:renamer (symbol-prefix-proc 'gnu:)) |
| 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)) |
| 34 | |
| 35 | (define-public vpnc |
| 36 | (package |
| 37 | (name "vpnc") |
| 38 | (version "0.5.3") |
| 39 | (source (origin |
| 40 | (method url-fetch) |
| 41 | (uri (string-append "http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-" |
| 42 | version ".tar.gz")) |
| 43 | (sha256 (base32 |
| 44 | "1128860lis89g1s21hqxvap2nq426c9j4bvgghncc1zj0ays7kj6")))) |
| 45 | (build-system gnu-build-system) |
| 46 | (inputs `(("libgcrypt" ,libgcrypt) |
| 47 | ("perl" ,perl) |
| 48 | ("patch/script" |
| 49 | ,(search-patch "vpnc-script.patch")))) |
| 50 | (arguments |
| 51 | `(#:tests? #f ; there is no check target |
| 52 | #:patches (list (assoc-ref %build-inputs |
| 53 | "patch/script")) |
| 54 | #:phases |
| 55 | (alist-replace |
| 56 | 'configure |
| 57 | (lambda* (#:key outputs #:allow-other-keys) |
| 58 | (let ((out (assoc-ref outputs "out"))) |
| 59 | (substitute* "Makefile" |
| 60 | (("PREFIX=/usr/local") (string-append "PREFIX=" out))) |
| 61 | (substitute* "Makefile" |
| 62 | (("ETCDIR=/etc/vpnc") (string-append "ETCDIR=" out "/etc/vpnc"))))) |
| 63 | %standard-phases))) |
| 64 | (synopsis "vpnc, a client for cisco vpn concentrators") |
| 65 | (description |
| 66 | "vpnc is a VPN client compatible with Cisco's EasyVPN equipment. |
| 67 | It supports IPSec (ESP) with Mode Configuration and Xauth. It supports only |
| 68 | shared-secret IPSec authentication with Xauth, AES (256, 192, 128), 3DES, |
| 69 | 1DES, MD5, SHA1, DH1/2/5 and IP tunneling. It runs entirely in userspace. |
| 70 | Only \"Universal TUN/TAP device driver support\" is needed in the kernel.") |
| 71 | (license license:gpl2+) ; some file are bsd-2, see COPYING |
| 72 | (home-page "http://www.unix-ag.uni-kl.de/~massar/vpnc/"))) |
| 73 | |
| 74 | |
| 75 | (define-public openconnect |
| 76 | (package |
| 77 | (name "openconnect") |
| 78 | (version "4.99") |
| 79 | (source (origin |
| 80 | (method url-fetch) |
| 81 | (uri (string-append "ftp://ftp.infradead.org/pub/openconnect/openconnect-" |
| 82 | version ".tar.gz")) |
| 83 | (sha256 (base32 |
| 84 | "1rd8pap455wzkx19i0sy3cqap524b6fwcjvqynxp6lhm01di4bd6")))) |
| 85 | (build-system gnu-build-system) |
| 86 | (inputs |
| 87 | `(("gettext" ,gnu:gettext) |
| 88 | ("libxml2" ,libxml2) |
| 89 | ("openssl" ,openssl) |
| 90 | ("pkg-config" ,pkg-config) |
| 91 | ("vpnc" ,vpnc) |
| 92 | ("zlib" ,zlib))) |
| 93 | (arguments |
| 94 | `(#:phases |
| 95 | (alist-replace |
| 96 | 'configure |
| 97 | (lambda* (#:key inputs #:allow-other-keys #:rest args) |
| 98 | (let ((vpnc (assoc-ref inputs "vpnc")) |
| 99 | (configure (assoc-ref %standard-phases 'configure))) |
| 100 | (apply configure |
| 101 | (append args |
| 102 | (list '#:configure-flags |
| 103 | (list (string-append "--with-vpnc-script=" |
| 104 | vpnc |
| 105 | "/etc/vpnc/vpnc-script"))))))) |
| 106 | %standard-phases))) |
| 107 | (synopsis "client for cisco vpn") |
| 108 | (description |
| 109 | "OpenConnect is a client for Cisco's AnyConnect SSL VPN, which is |
| 110 | supported by the ASA5500 Series, by IOS 12.4(9)T or later on Cisco SR500, |
| 111 | 870, 880, 1800, 2800, 3800, 7200 Series and Cisco 7301 Routers, |
| 112 | and probably others.") |
| 113 | (license license:lgpl2.1) |
| 114 | (home-page "http://www.infradead.org/openconnect/"))) |