From a7fd7b68a6727ea168ae69893a01d7731e9073cf Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Fri, 3 Jul 2015 21:41:22 +0200 Subject: gnu: Rename module gnutls to tls. * gnu/packages/gnutls.scm: Rename to... * gnu/packages/tls.scm: ... this. Change module name accordingly. * gnu/packages/{admin.scm, cups.scm, curl.scm, dc.scm, dns.scm, emacs.scm, ftp.scm, gnome.scm, gnunet.scm, gnupg.scm, gsasl.scm, lynx.scm, mail.scm, messaging.scm, package-management.scm, shishi.scm, task-management.scm, version-control.scm, video.scm, vpn.scm, webkit.scm, weechat.scm, wget.scm, wine.scm, xml.scm}: Adapt module import to new name. * gnu-system.am (GNU_SYSTEM_MODULES): Rename gnutls module to tls. --- gnu/packages/admin.scm | 2 +- gnu/packages/cups.scm | 4 +- gnu/packages/curl.scm | 4 +- gnu/packages/dc.scm | 2 +- gnu/packages/dns.scm | 2 +- gnu/packages/emacs.scm | 2 +- gnu/packages/ftp.scm | 2 +- gnu/packages/gnome.scm | 2 +- gnu/packages/gnunet.scm | 2 +- gnu/packages/gnupg.scm | 2 +- gnu/packages/gnutls.scm | 175 ------------------------------------ gnu/packages/gsasl.scm | 2 +- gnu/packages/lynx.scm | 2 +- gnu/packages/mail.scm | 2 +- gnu/packages/messaging.scm | 4 +- gnu/packages/package-management.scm | 4 +- gnu/packages/shishi.scm | 2 +- gnu/packages/task-management.scm | 2 +- gnu/packages/tls.scm | 175 ++++++++++++++++++++++++++++++++++++ gnu/packages/version-control.scm | 2 +- gnu/packages/video.scm | 2 +- gnu/packages/vpn.scm | 2 +- gnu/packages/webkit.scm | 2 +- gnu/packages/weechat.scm | 2 +- gnu/packages/wget.scm | 2 +- gnu/packages/wine.scm | 2 +- gnu/packages/xml.scm | 2 +- 27 files changed, 204 insertions(+), 204 deletions(-) delete mode 100644 gnu/packages/gnutls.scm create mode 100644 gnu/packages/tls.scm (limited to 'gnu') diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 960264bc2d..bc9214e9d8 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -41,7 +41,7 @@ #:use-module (gnu packages tcl) #:use-module (gnu packages compression) #:use-module ((gnu packages openssl) #:prefix o:) - #:use-module (gnu packages gnutls) + #:use-module (gnu packages tls) #:use-module (gnu packages gnupg) #:use-module (gnu packages bison) #:use-module (gnu packages flex) diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm index 8d86cd6bad..68302ffa82 100644 --- a/gnu/packages/cups.scm +++ b/gnu/packages/cups.scm @@ -30,9 +30,9 @@ #:use-module (gnu packages fontutils) #:use-module (gnu packages ghostscript) #:use-module (gnu packages glib) - #:use-module (gnu packages gnutls) #:use-module (gnu packages pdf) - #:use-module (gnu packages pkg-config)) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages tls)) (define-public cups-filters (package diff --git a/gnu/packages/curl.scm b/gnu/packages/curl.scm index 1e72a57a07..f5cb503f8d 100644 --- a/gnu/packages/curl.scm +++ b/gnu/packages/curl.scm @@ -25,7 +25,6 @@ #:use-module (guix build-system gnu) #:use-module (gnu packages) #:use-module (gnu packages compression) - #:use-module (gnu packages gnutls) #:use-module (gnu packages groff) #:use-module (gnu packages gsasl) #:use-module (gnu packages libidn) @@ -33,7 +32,8 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) - #:use-module (gnu packages ssh)) + #:use-module (gnu packages ssh) + #:use-module (gnu packages tls)) (define-public curl (package diff --git a/gnu/packages/dc.scm b/gnu/packages/dc.scm index 4692244de6..de4cda1fad 100644 --- a/gnu/packages/dc.scm +++ b/gnu/packages/dc.scm @@ -20,10 +20,10 @@ #:use-module (gnu packages) #:use-module (gnu packages compression) #:use-module (gnu packages glib) - #:use-module (gnu packages gnutls) #:use-module (gnu packages ncurses) #:use-module (gnu packages pkg-config) #:use-module (gnu packages databases) + #:use-module (gnu packages tls) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index f0c103ab2d..1b7fc8b1f0 100644 --- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -18,10 +18,10 @@ (define-module (gnu packages dns) #:use-module (gnu packages databases) - #:use-module (gnu packages gnutls) #:use-module (gnu packages linux) #:use-module (gnu packages openssl) #:use-module (gnu packages perl) + #:use-module (gnu packages tls) #:use-module (gnu packages xml) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 2502f2935d..d8d6e7ba79 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -33,7 +33,7 @@ #:use-module (gnu packages gnome) #:use-module (gnu packages ncurses) #:use-module (gnu packages texinfo) - #:use-module (gnu packages gnutls) + #:use-module (gnu packages tls) #:use-module (gnu packages pkg-config) #:use-module (gnu packages guile) #:use-module (gnu packages xorg) diff --git a/gnu/packages/ftp.scm b/gnu/packages/ftp.scm index 790ffc66c2..acd69adcd0 100644 --- a/gnu/packages/ftp.scm +++ b/gnu/packages/ftp.scm @@ -27,7 +27,7 @@ #:use-module (gnu packages ncurses) #:use-module (gnu packages readline) #:use-module (gnu packages pkg-config) - #:use-module (gnu packages gnutls) + #:use-module (gnu packages tls) #:use-module (gnu packages compression)) (define-public lftp diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 3882a7a324..0ec5ea2e96 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -52,7 +52,6 @@ #:use-module (gnu packages polkit) #:use-module (gnu packages popt) #:use-module (gnu packages ghostscript) - #:use-module (gnu packages gnutls) #:use-module (gnu packages iso-codes) #:use-module (gnu packages libcanberra) #:use-module (gnu packages linux) @@ -69,6 +68,7 @@ #:use-module (gnu packages qt) ; for libxkbcommon #:use-module (gnu packages compression) #:use-module (gnu packages texlive) + #:use-module (gnu packages tls) #:use-module (gnu packages web) #:use-module (gnu packages webkit) #:use-module (gnu packages xorg) diff --git a/gnu/packages/gnunet.scm b/gnu/packages/gnunet.scm index 78279b0243..162bf83fe5 100644 --- a/gnu/packages/gnunet.scm +++ b/gnu/packages/gnunet.scm @@ -28,7 +28,6 @@ #:use-module (gnu packages gettext) #:use-module (gnu packages glib) #:use-module (gnu packages gnupg) - #:use-module (gnu packages gnutls) #:use-module (gnu packages groff) #:use-module (gnu packages gstreamer) #:use-module (gnu packages libidn) @@ -41,6 +40,7 @@ #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages databases) + #:use-module (gnu packages tls) #:use-module (gnu packages video) #:use-module (gnu packages xiph) #:use-module ((guix licenses) #:prefix license:) diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm index 637212afa4..432409b81f 100644 --- a/gnu/packages/gnupg.scm +++ b/gnu/packages/gnupg.scm @@ -22,7 +22,6 @@ (define-module (gnu packages gnupg) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages curl) - #:use-module (gnu packages gnutls) #:use-module (gnu packages openldap) #:use-module (gnu packages perl) #:use-module (gnu packages pth) @@ -33,6 +32,7 @@ #:use-module (gnu packages glib) #:use-module (gnu packages pkg-config) #:use-module (gnu packages ncurses) + #:use-module (gnu packages tls) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu)) diff --git a/gnu/packages/gnutls.scm b/gnu/packages/gnutls.scm deleted file mode 100644 index 415ea7a11e..0000000000 --- a/gnu/packages/gnutls.scm +++ /dev/null @@ -1,175 +0,0 @@ -;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès -;;; Copyright © 2014, 2015 Mark H Weaver -;;; Copyright © 2014 Ian Denhardt -;;; Copyright © 2015 Andreas Enge -;;; -;;; This file is part of GNU Guix. -;;; -;;; GNU Guix is free software; you can redistribute it and/or modify it -;;; under the terms of the GNU General Public License as published by -;;; the Free Software Foundation; either version 3 of the License, or (at -;;; your option) any later version. -;;; -;;; GNU Guix is distributed in the hope that it will be useful, but -;;; WITHOUT ANY WARRANTY; without even the implied warranty of -;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;;; GNU General Public License for more details. -;;; -;;; You should have received a copy of the GNU General Public License -;;; along with GNU Guix. If not, see . - -(define-module (gnu packages gnutls) - #:use-module ((guix licenses) #:select (lgpl2.0+ lgpl2.1+ bsd-3)) - #:use-module (guix packages) - #:use-module (guix download) - #:use-module (guix utils) - #:use-module (guix build-system gnu) - #:use-module (gnu packages compression) - #:use-module (gnu packages) - #:use-module (gnu packages guile) - #:use-module (gnu packages libffi) - #:use-module (gnu packages libidn) - #:use-module (gnu packages nettle) - #:use-module (gnu packages perl) - #:use-module (gnu packages pkg-config) - #:use-module (gnu packages texinfo) - #:use-module (gnu packages base)) - -(define-public libtasn1 - (package - (name "libtasn1") - (version "4.5") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://gnu/libtasn1/libtasn1-" - version ".tar.gz")) - (sha256 - (base32 - "1nhvnznhg2aqfrfjxc8v008hjlzkh5831jsfahqk89qrw7fbbcw9")))) - (build-system gnu-build-system) - (native-inputs `(("perl" ,perl) - - ;; XXX: For some reason, libtasn1.info wants to be - ;; rebuilt, so we must provide 'makeinfo'. - ("texinfo" ,texinfo))) - (home-page "http://www.gnu.org/software/libtasn1/") - (synopsis "ASN.1 library") - (description - "GNU libtasn1 is a library implementing the ASN.1 notation. It is used -for transmitting machine-neutral encodings of data objects in computer -networking, allowing for formal validation of data according to some -specifications.") - (license lgpl2.0+))) - -(define-public p11-kit - (package - (name "p11-kit") - (version "0.23.1") - (source - (origin - (method url-fetch) - (uri (string-append "http://p11-glue.freedesktop.org/releases/p11-kit-" - version ".tar.gz")) - (sha256 - (base32 - "1i3a1wdpagm0p3y1bwaz5x5rjhcpqbcrnhkcp10p259vkxk72wz5")) - (modules '((guix build utils))) ; for substitute* - (snippet - '(begin - ;; Drop one test that fails, also when trying to compile manually. - ;; Reported upstream at - ;; https://bugs.freedesktop.org/show_bug.cgi?id=89027 - (substitute* "Makefile.in" - (("test-module\\$\\(EXEEXT\\) ") "")))))) - (build-system gnu-build-system) - (native-inputs - `(("pkg-config" ,pkg-config))) - (inputs - `(("libffi" ,libffi) - ("libtasn1" ,libtasn1))) - (arguments - `(#:configure-flags '("--without-trust-paths"))) - (home-page "http://p11-glue.freedesktop.org/p11-kit.html") - (synopsis "PKCS#11 library") - (description - "p11-kit provides a way to load and enumerate PKCS#11 modules. It -provides a standard configuration setup for installing PKCS#11 modules -in such a way that they are discoverable. It also solves problems with -coordinating the use of PKCS#11 by different components or libraries -living in the same process.") - (license bsd-3))) - -(define-public gnutls - (package - (name "gnutls") - (version "3.4.1") - (source (origin - (method url-fetch) - (uri - ;; Note: Releases are no longer on ftp.gnu.org since the - ;; schism (after version 3.1.5). - (string-append "mirror://gnupg/gnutls/v" - (version-major+minor version) - "/gnutls-" version ".tar.xz")) - (sha256 - (base32 - "0bmih0zyiplr4v8798w0v9g3215zmganq18n8935cizkxj5zbdg9")))) - (build-system gnu-build-system) - (arguments - '(#:configure-flags - (list (string-append "--with-guile-site-dir=" - (assoc-ref %outputs "out") - "/share/guile/site/2.0") - ;; GnuTLS doesn't consult any environment variables to specify - ;; the location of the system-wide trust store. Instead it has a - ;; configure-time option. Unless specified, its configure script - ;; attempts to auto-detect the location by looking for common - ;; places in the filesystem, none of which are present in our - ;; chroot build environment. If not found, then no default trust - ;; store is used, so each program has to provide its own - ;; fallback, and users have to configure each program - ;; independently. This seems suboptimal. - "--with-default-trust-store-dir=/etc/ssl/certs" - - ;; FIXME: Temporarily disable p11-kit support since it is not - ;; working on mips64el. - "--without-p11-kit") - - #:phases (modify-phases %standard-phases - (add-after - 'install 'move-doc - (lambda* (#:key outputs #:allow-other-keys) - ;; Copy the 4.1 MiB of section 3 man pages to "doc". - (let* ((out (assoc-ref outputs "out")) - (doc (assoc-ref outputs "doc")) - (mandir (string-append doc "/share/man")) - (oldman (string-append out "/share/man/man3"))) - (mkdir-p mandir) - (copy-recursively oldman mandir) - (delete-file-recursively oldman) - #t)))))) - (outputs '("out" ;4.4 MiB - "debug" - "doc")) ;4.1 MiB of man pages - (native-inputs - `(("pkg-config" ,pkg-config) - ("which" ,which))) - (inputs - `(("guile" ,guile-2.0) - ("perl" ,perl))) - (propagated-inputs - ;; These are all in the 'Requires.private' field of gnutls.pc. - `(("libtasn1" ,libtasn1) - ("libidn" ,libidn) - ("nettle" ,nettle) - ("zlib" ,zlib))) - (home-page "http://www.gnu.org/software/gnutls/") - (synopsis "Transport layer security library") - (description - "GnuTLS is a secure communications library implementing the SSL, TLS -and DTLS protocols. It is provided in the form of a C library to support the -protocols, as well as to parse and write X.5009, PKCS 12, OpenPGP and other -required structures.") - (license lgpl2.1+))) diff --git a/gnu/packages/gsasl.scm b/gnu/packages/gsasl.scm index d5de2f2ee8..3caeb1a200 100644 --- a/gnu/packages/gsasl.scm +++ b/gnu/packages/gsasl.scm @@ -19,10 +19,10 @@ (define-module (gnu packages gsasl) #:use-module (gnu packages) #:use-module (gnu packages compression) - #:use-module (gnu packages gnutls) #:use-module (gnu packages libidn) #:use-module (gnu packages nettle) #:use-module (gnu packages shishi) + #:use-module (gnu packages tls) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) diff --git a/gnu/packages/lynx.scm b/gnu/packages/lynx.scm index ebca50d34f..713f5d5625 100644 --- a/gnu/packages/lynx.scm +++ b/gnu/packages/lynx.scm @@ -25,8 +25,8 @@ #:use-module (gnu packages perl) #:use-module (gnu packages ncurses) #:use-module (gnu packages libidn) - #:use-module (gnu packages gnutls) #:use-module (gnu packages gnupg) + #:use-module (gnu packages tls) #:use-module (gnu packages zip) #:use-module (gnu packages compression)) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index d14fdc7619..00f31b0d06 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -41,7 +41,6 @@ #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) - #:use-module (gnu packages gnutls) #:use-module (gnu packages gsasl) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) @@ -64,6 +63,7 @@ #:use-module (gnu packages flex) #:use-module (gnu packages gdb) #:use-module (gnu packages samba) + #:use-module (gnu packages tls) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) #:use-module ((guix licenses) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 50d59cfcc5..a71b112ad3 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -35,14 +35,14 @@ #:use-module (gnu packages gnupg) #:use-module (gnu packages pkg-config) #:use-module (gnu packages glib) - #:use-module (gnu packages gnutls) #:use-module (gnu packages python) #:use-module (gnu packages perl) #:use-module (gnu packages tcl) #:use-module (gnu packages compression) #:use-module (gnu packages check) #:use-module (gnu packages admin) - #:use-module (gnu packages linux)) + #:use-module (gnu packages linux) + #:use-module (gnu packages tls)) (define-public libotr (package diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 3da9df92cc..f0ccf6a31e 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -29,7 +29,6 @@ #:use-module (gnu packages compression) #:use-module (gnu packages gnupg) #:use-module (gnu packages databases) - #:use-module (gnu packages gnutls) #:use-module (gnu packages graphviz) #:use-module (gnu packages pkg-config) #:use-module (gnu packages autotools) @@ -41,7 +40,8 @@ #:use-module (gnu packages man) #:use-module (gnu packages emacs) #:use-module (gnu packages openssl) - #:use-module (gnu packages bdw-gc)) + #:use-module (gnu packages bdw-gc) + #:use-module (gnu packages tls)) (define (boot-guile-uri arch) "Return the URI for the bootstrap Guile tarball for ARCH." diff --git a/gnu/packages/shishi.scm b/gnu/packages/shishi.scm index 47e7802213..30351fb517 100644 --- a/gnu/packages/shishi.scm +++ b/gnu/packages/shishi.scm @@ -21,12 +21,12 @@ (define-module (gnu packages shishi) #:use-module ((guix licenses) #:select (gpl3+)) #:use-module (gnu packages) - #:use-module (gnu packages gnutls) #:use-module (gnu packages gnupg) #:use-module (gnu packages libidn) #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config) #:use-module (gnu packages compression) + #:use-module (gnu packages tls) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu)) diff --git a/gnu/packages/task-management.scm b/gnu/packages/task-management.scm index e77aecb957..340475c666 100644 --- a/gnu/packages/task-management.scm +++ b/gnu/packages/task-management.scm @@ -19,9 +19,9 @@ (define-module (gnu packages task-management) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) - #:use-module (gnu packages gnutls) #:use-module (gnu packages linux) #:use-module (gnu packages lua) + #:use-module (gnu packages tls) #:use-module (guix download) #:use-module (guix build-system cmake)) diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm new file mode 100644 index 0000000000..31ce1b3910 --- /dev/null +++ b/gnu/packages/tls.scm @@ -0,0 +1,175 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès +;;; Copyright © 2014, 2015 Mark H Weaver +;;; Copyright © 2014 Ian Denhardt +;;; Copyright © 2015 Andreas Enge +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages tls) + #:use-module ((guix licenses) #:select (lgpl2.0+ lgpl2.1+ bsd-3)) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix utils) + #:use-module (guix build-system gnu) + #:use-module (gnu packages compression) + #:use-module (gnu packages) + #:use-module (gnu packages guile) + #:use-module (gnu packages libffi) + #:use-module (gnu packages libidn) + #:use-module (gnu packages nettle) + #:use-module (gnu packages perl) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages texinfo) + #:use-module (gnu packages base)) + +(define-public libtasn1 + (package + (name "libtasn1") + (version "4.5") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://gnu/libtasn1/libtasn1-" + version ".tar.gz")) + (sha256 + (base32 + "1nhvnznhg2aqfrfjxc8v008hjlzkh5831jsfahqk89qrw7fbbcw9")))) + (build-system gnu-build-system) + (native-inputs `(("perl" ,perl) + + ;; XXX: For some reason, libtasn1.info wants to be + ;; rebuilt, so we must provide 'makeinfo'. + ("texinfo" ,texinfo))) + (home-page "http://www.gnu.org/software/libtasn1/") + (synopsis "ASN.1 library") + (description + "GNU libtasn1 is a library implementing the ASN.1 notation. It is used +for transmitting machine-neutral encodings of data objects in computer +networking, allowing for formal validation of data according to some +specifications.") + (license lgpl2.0+))) + +(define-public p11-kit + (package + (name "p11-kit") + (version "0.23.1") + (source + (origin + (method url-fetch) + (uri (string-append "http://p11-glue.freedesktop.org/releases/p11-kit-" + version ".tar.gz")) + (sha256 + (base32 + "1i3a1wdpagm0p3y1bwaz5x5rjhcpqbcrnhkcp10p259vkxk72wz5")) + (modules '((guix build utils))) ; for substitute* + (snippet + '(begin + ;; Drop one test that fails, also when trying to compile manually. + ;; Reported upstream at + ;; https://bugs.freedesktop.org/show_bug.cgi?id=89027 + (substitute* "Makefile.in" + (("test-module\\$\\(EXEEXT\\) ") "")))))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("libffi" ,libffi) + ("libtasn1" ,libtasn1))) + (arguments + `(#:configure-flags '("--without-trust-paths"))) + (home-page "http://p11-glue.freedesktop.org/p11-kit.html") + (synopsis "PKCS#11 library") + (description + "p11-kit provides a way to load and enumerate PKCS#11 modules. It +provides a standard configuration setup for installing PKCS#11 modules +in such a way that they are discoverable. It also solves problems with +coordinating the use of PKCS#11 by different components or libraries +living in the same process.") + (license bsd-3))) + +(define-public gnutls + (package + (name "gnutls") + (version "3.4.1") + (source (origin + (method url-fetch) + (uri + ;; Note: Releases are no longer on ftp.gnu.org since the + ;; schism (after version 3.1.5). + (string-append "mirror://gnupg/gnutls/v" + (version-major+minor version) + "/gnutls-" version ".tar.xz")) + (sha256 + (base32 + "0bmih0zyiplr4v8798w0v9g3215zmganq18n8935cizkxj5zbdg9")))) + (build-system gnu-build-system) + (arguments + '(#:configure-flags + (list (string-append "--with-guile-site-dir=" + (assoc-ref %outputs "out") + "/share/guile/site/2.0") + ;; GnuTLS doesn't consult any environment variables to specify + ;; the location of the system-wide trust store. Instead it has a + ;; configure-time option. Unless specified, its configure script + ;; attempts to auto-detect the location by looking for common + ;; places in the filesystem, none of which are present in our + ;; chroot build environment. If not found, then no default trust + ;; store is used, so each program has to provide its own + ;; fallback, and users have to configure each program + ;; independently. This seems suboptimal. + "--with-default-trust-store-dir=/etc/ssl/certs" + + ;; FIXME: Temporarily disable p11-kit support since it is not + ;; working on mips64el. + "--without-p11-kit") + + #:phases (modify-phases %standard-phases + (add-after + 'install 'move-doc + (lambda* (#:key outputs #:allow-other-keys) + ;; Copy the 4.1 MiB of section 3 man pages to "doc". + (let* ((out (assoc-ref outputs "out")) + (doc (assoc-ref outputs "doc")) + (mandir (string-append doc "/share/man")) + (oldman (string-append out "/share/man/man3"))) + (mkdir-p mandir) + (copy-recursively oldman mandir) + (delete-file-recursively oldman) + #t)))))) + (outputs '("out" ;4.4 MiB + "debug" + "doc")) ;4.1 MiB of man pages + (native-inputs + `(("pkg-config" ,pkg-config) + ("which" ,which))) + (inputs + `(("guile" ,guile-2.0) + ("perl" ,perl))) + (propagated-inputs + ;; These are all in the 'Requires.private' field of gnutls.pc. + `(("libtasn1" ,libtasn1) + ("libidn" ,libidn) + ("nettle" ,nettle) + ("zlib" ,zlib))) + (home-page "http://www.gnu.org/software/gnutls/") + (synopsis "Transport layer security library") + (description + "GnuTLS is a secure communications library implementing the SSL, TLS +and DTLS protocols. It is provided in the form of a C library to support the +protocols, as well as to parse and write X.5009, PKCS 12, OpenPGP and other +required structures.") + (license lgpl2.1+))) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 15e6fb6eb3..09f5a89c34 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -44,7 +44,6 @@ #:use-module (gnu packages gettext) #:use-module (gnu packages groff) #:use-module (gnu packages linux) -;; #:use-module (gnu packages gnutls) #:use-module (gnu packages nano) #:use-module (gnu packages ncurses) #:use-module (gnu packages openssl) @@ -60,6 +59,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages swig) #:use-module (gnu packages tcl) +;; #:use-module (gnu packages tls) #:use-module (gnu packages) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 83434bea36..5d1e9fa51e 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -49,7 +49,6 @@ #:use-module (gnu packages glib) #:use-module (gnu packages guile) #:use-module (gnu packages gnupg) - #:use-module (gnu packages gnutls) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages linux) @@ -69,6 +68,7 @@ #:use-module (gnu packages texinfo) #:use-module (gnu packages texlive) #:use-module (gnu packages textutils) + #:use-module (gnu packages tls) #:use-module (gnu packages version-control) #:use-module (gnu packages web) #:use-module (gnu packages xdisorg) diff --git a/gnu/packages/vpn.scm b/gnu/packages/vpn.scm index 62036d9ef7..91448121b4 100644 --- a/gnu/packages/vpn.scm +++ b/gnu/packages/vpn.scm @@ -27,11 +27,11 @@ #:use-module (gnu packages compression) #:use-module (gnu packages gettext) #:use-module (gnu packages gnupg) - #:use-module (gnu packages gnutls) #:use-module (gnu packages linux) #:use-module (gnu packages openssl) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages tls) #:use-module (gnu packages xml)) (define-public gvpe diff --git a/gnu/packages/webkit.scm b/gnu/packages/webkit.scm index 0f3a44b063..7fbb985527 100644 --- a/gnu/packages/webkit.scm +++ b/gnu/packages/webkit.scm @@ -34,7 +34,6 @@ #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) - #:use-module (gnu packages gnutls) #:use-module (gnu packages gperf) #:use-module (gnu packages gstreamer) #:use-module (gnu packages gtk) @@ -44,6 +43,7 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages ruby) + #:use-module (gnu packages tls) #:use-module (gnu packages video) #:use-module (gnu packages xml) #:use-module (gnu packages xorg)) diff --git a/gnu/packages/weechat.scm b/gnu/packages/weechat.scm index a2e53481c3..6976586f4e 100644 --- a/gnu/packages/weechat.scm +++ b/gnu/packages/weechat.scm @@ -31,13 +31,13 @@ #:use-module (gnu packages tcl) #:use-module (gnu packages aspell) #:use-module (gnu packages curl) - #:use-module (gnu packages gnutls) #:use-module (gnu packages guile) #:use-module (gnu packages openssl) #:use-module (gnu packages cyrus-sasl) #:use-module (gnu packages autogen) #:use-module (gnu packages autotools) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages tls) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) diff --git a/gnu/packages/wget.scm b/gnu/packages/wget.scm index 0cdb4964fa..d1413a7e71 100644 --- a/gnu/packages/wget.scm +++ b/gnu/packages/wget.scm @@ -19,12 +19,12 @@ (define-module (gnu packages wget) #:use-module (guix licenses) - #:use-module (gnu packages gnutls) #:use-module (gnu packages libidn) #:use-module (gnu packages python) #:use-module (gnu packages perl) #:use-module (gnu packages web) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages tls) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu)) diff --git a/gnu/packages/wine.scm b/gnu/packages/wine.scm index 5b0758c6b2..938c8cb799 100644 --- a/gnu/packages/wine.scm +++ b/gnu/packages/wine.scm @@ -32,7 +32,6 @@ #:use-module (gnu packages ghostscript) #:use-module (gnu packages gl) #:use-module (gnu packages glib) - #:use-module (gnu packages gnutls) #:use-module (gnu packages linux) #:use-module (gnu packages openldap) #:use-module (gnu packages perl) @@ -42,6 +41,7 @@ #:use-module (gnu packages photo) #:use-module (gnu packages samba) #:use-module (gnu packages scanner) + #:use-module (gnu packages tls) #:use-module (gnu packages xml) #:use-module (gnu packages xorg)) diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index c4ec33e2d7..0fc51c5501 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -25,9 +25,9 @@ #:use-module (gnu packages autotools) #:use-module (gnu packages compression) #:use-module (gnu packages gnupg) - #:use-module (gnu packages gnutls) #:use-module (gnu packages perl) #:use-module (gnu packages python) + #:use-module (gnu packages tls) #:use-module (gnu packages web) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) -- cgit 1.4.1