From mboxrd@z Thu Jan 1 00:00:00 1970 From: contact.ng0@cryptolab.net Subject: [PATCH 1/2] gnu: Add mbedtls-apache. Date: Fri, 27 Jan 2017 16:11:27 +0000 Message-ID: <20170127161128.26792-2-contact.ng0@cryptolab.net> References: <20170126154037.19603-1-contact.ng0@cryptolab.net> <20170127161128.26792-1-contact.ng0@cryptolab.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cX96e-0006ED-R1 for guix-devel@gnu.org; Fri, 27 Jan 2017 11:10:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cX96a-00021R-MH for guix-devel@gnu.org; Fri, 27 Jan 2017 11:10:32 -0500 Received: from aibo.runbox.com ([91.220.196.211]:57056) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cX96a-00020u-Ek for guix-devel@gnu.org; Fri, 27 Jan 2017 11:10:28 -0500 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1cX96Y-0007UF-EV for guix-devel@gnu.org; Fri, 27 Jan 2017 17:10:26 +0100 In-Reply-To: <20170127161128.26792-1-contact.ng0@cryptolab.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: ng0 From: ng0 * gnu/packages/tls.scm (mbedtls-apache): New variable. --- gnu/packages/tls.scm | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm index c3f2d9ba1..11a4fe496 100644 --- a/gnu/packages/tls.scm +++ b/gnu/packages/tls.scm @@ -7,7 +7,7 @@ ;;; Copyright © 2015, 2016 Leo Famulari ;;; Copyright © 2015, 2016, 2017 Leo Famulari ;;; Copyright © 2016 Efraim Flashner -;;; Copyright © 2016 ng0 +;;; Copyright © 2016, 2017 ng0 ;;; Copyright © 2016 Hartmut Goebel ;;; ;;; This file is part of GNU Guix. @@ -33,6 +33,7 @@ #:use-module (guix build-system gnu) #:use-module (guix build-system perl) #:use-module (guix build-system python) + #:use-module (guix build-system cmake) #:use-module (gnu packages compression) #:use-module (gnu packages) #:use-module (gnu packages guile) @@ -791,3 +792,31 @@ then ported to the GNU / Linux environment.") ;; acme-client is distributed under the ISC license, but the files 'jsmn.h' ;; and 'jsmn.c' are distributed under the Expat license. (license (list license:isc license:expat)))) + +;; The "-apache" variant is the upstreamed prefered variant. A "-gpl" +;; variant exists in addition to the "-apache" one. +(define-public mbedtls-apache + (package + (name "mbedtls-apache") + (version "2.4.0") + (source + (origin + (method url-fetch) + ;; XXX: The download links on the website are script redirection links + ;; which effectively lead to the format listed in the uri here. + (uri (string-append "https://tls.mbed.org/download/mbedtls-" + version "-apache.tgz")) + (sha256 + (base32 + "03bzbfidigljva6xj49k38q3kwlbj75lrky4a0ainylzsfg5bhy1")))) + (build-system cmake-build-system) + (native-inputs + `(("perl" ,perl))) + (synopsis "Small TLS library") + (description + "@code{mbed TLS}, formerly known as PolarSSL, makes it trivially easy +for developers to include cryptographic and SSL/TLS capabilities in their +(embedded) products, facilitating this functionality with a minimal +coding footprint.") + (home-page "https://tls.mbed.org") + (license license:asl2.0))) -- 2.11.0