From patchwork Sun Oct 5 21:57:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 396706 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id D0827140111 for ; Mon, 6 Oct 2014 08:57:47 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1BF993135D; Sun, 5 Oct 2014 21:57:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1H9Oj9N4Bsnt; Sun, 5 Oct 2014 21:57:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 6274531B5A; Sun, 5 Oct 2014 21:57:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id A41411C25C3 for ; Sun, 5 Oct 2014 21:57:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9BCBC91EB1 for ; Sun, 5 Oct 2014 21:57:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wyMn640OfPZp for ; Sun, 5 Oct 2014 21:57:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9503B91EAD for ; Sun, 5 Oct 2014 21:57:42 +0000 (UTC) Received: by mail-wi0-f169.google.com with SMTP id cc10so5289087wib.4 for ; Sun, 05 Oct 2014 14:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=UupFREse/vOkNzzceHQgbjHKHXTEEHoffj/66KZoFWQ=; b=ZzhBm2fXrEhCadHg3QKpZGWUNioFatbxcWIZ0ucnUSqks4lPv3vOwlGYVOSi6vlHUE 9yO8qLQNL6feBipT7CvjNLlosuK7pjD/5r9gAoHDr32+1BaFi+9hNQZkst2541YgWLzz Zk3kdhEzUK5prQzyrclianx4dm2HmL53RSomnco2XE29Nd9k3a8OLHfYc9hNlGUX3kRJ MygvUuJBdFMC9XyzbOOOvl/6UFqzhvKSI36njWWYSjQpg2hjd5x2Lyf7FzGPq2uZayzK E/fXYJeZBhLlJSWLY7Rr0Uc6mrE110KTcY1IH9aIXrgSZhl6Uvm6JftkYitHk3jGVDmF QTnQ== X-Received: by 10.194.216.39 with SMTP id on7mr12026415wjc.56.1412546260935; Sun, 05 Oct 2014 14:57:40 -0700 (PDT) Received: from localhost.localdomain (13-105-190-109.dsl.ovh.fr. [109.190.105.13]) by mx.google.com with ESMTPSA id ba3sm9253214wib.10.2014.10.05.14.57.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 05 Oct 2014 14:57:40 -0700 (PDT) From: Maxime Hadjinlian To: buildroot@buildroot.org Date: Sun, 5 Oct 2014 23:57:39 +0200 Message-Id: <1412546259-11960-1-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 2.1.1 Subject: [Buildroot] [PATCH] libressl: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Maxime Hadjinlian --- package/Config.in | 1 + package/libressl/Config.in | 11 ++++++ ...essl-0001-Fix-unavailable-file-for-uClibc.patch | 40 ++++++++++++++++++++++ package/libressl/libressl.mk | 12 +++++++ 4 files changed, 64 insertions(+) create mode 100644 package/libressl/Config.in create mode 100644 package/libressl/libressl-0001-Fix-unavailable-file-for-uClibc.patch create mode 100644 package/libressl/libressl.mk diff --git a/package/Config.in b/package/Config.in index f488728..6bcb3f5 100644 --- a/package/Config.in +++ b/package/Config.in @@ -584,6 +584,7 @@ menu "Crypto" source "package/libsecret/Config.in" source "package/libsha1/Config.in" source "package/libssh2/Config.in" + source "package/libressl/Config.in" source "package/nettle/Config.in" source "package/openssl/Config.in" source "package/polarssl/Config.in" diff --git a/package/libressl/Config.in b/package/libressl/Config.in new file mode 100644 index 0000000..f7d847d --- /dev/null +++ b/package/libressl/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_LIBRESSL + bool "libressl" + depends on BR2_LARGEFILE + depends on BR2_TOOLCHAIN_HAS_THREADS + help + LibreSSL is a FREE version of the SSL/TLS protocol forked from OpenSSL + + http://www.libressl.org/ + +comment "libressl needs a toolchain w/ largefile, threads" + depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/libressl/libressl-0001-Fix-unavailable-file-for-uClibc.patch b/package/libressl/libressl-0001-Fix-unavailable-file-for-uClibc.patch new file mode 100644 index 0000000..12dffe7 --- /dev/null +++ b/package/libressl/libressl-0001-Fix-unavailable-file-for-uClibc.patch @@ -0,0 +1,40 @@ +From aec56aae7650399ae8103c1cff8050c5ea606425 Mon Sep 17 00:00:00 2001 +From: Maxime Hadjinlian +Date: Tue, 19 Aug 2014 21:58:15 +0200 +Subject: [PATCH] Fix unavailable file for uClibc + +This file is not available for uClibc has it does not implement getauxval(). +As specified in this discution: +https://github.com/libressl-portable/portable/pull/1 + +This will never be fixed in libressl, patch have been sent for other +libc which should work. + +Signed-off-by: Maxime Hadjinlian +--- + crypto/compat/issetugid_linux.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/crypto/compat/issetugid_linux.c b/crypto/compat/issetugid_linux.c +index 669edce..19b2b57 100644 +--- a/crypto/compat/issetugid_linux.c ++++ b/crypto/compat/issetugid_linux.c +@@ -4,7 +4,6 @@ + */ + + #include +-#include + #include + #include + #include +@@ -14,6 +13,7 @@ + * launched setuid/setgid or with additional capabilities. + */ + #ifdef HAVE_GETAUXVAL ++#include + #include + #endif + +-- +2.0.1 + diff --git a/package/libressl/libressl.mk b/package/libressl/libressl.mk new file mode 100644 index 0000000..023d3a6 --- /dev/null +++ b/package/libressl/libressl.mk @@ -0,0 +1,12 @@ +################################################################################ +# +# libressl +# +################################################################################ + +LIBRESSL_VERSION = 2.0.5 +LIBRESSL_SITE = http://ftp.openbsd.org/pub/OpenBSD/LibreSSL +LIBRESSL_LICENSE = Apache-1.0, BSD-4c, ISC License, Public Domain +LIBRESSL_LIBTOOL_PATCH = NO + +$(eval $(autotools-package))