From patchwork Sun Oct 12 14:39:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 398963 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 707F414003E for ; Mon, 13 Oct 2014 01:39:58 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B7E632F48B; Sun, 12 Oct 2014 14:39:57 +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 9iD+GHvBhYYP; Sun, 12 Oct 2014 14:39:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 5AB31266D6; Sun, 12 Oct 2014 14:39:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 2688E1C2254 for ; Sun, 12 Oct 2014 14:39:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 20642A1108 for ; Sun, 12 Oct 2014 14:39:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jZYWlXzsAojd for ; Sun, 12 Oct 2014 14:39:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 90FBDA0C05 for ; Sun, 12 Oct 2014 14:39:51 +0000 (UTC) Received: by mail-wi0-f178.google.com with SMTP id h11so1685004wiw.17 for ; Sun, 12 Oct 2014 07:39:50 -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=6Y9zM7J3iKNuR/aqQtCA3ITN03wr3YFpbsjrHyAlDrk=; b=ohXg4xjT3KBZON86RS5jbkHGFyaPHyeXV44iPeTCqaradbNO2ljNn/AkqS/alczQyj CSXniF8qFfng/4pBBTw99JHhrVDptb4zXsq+EcrVZnOU9/B+AjgzDWLF0gTmnKCIWtym ljc2vE1BqQ+x9iH7d0v8Lm/KBDXWo7jFpzc79g4mThLWTWNEFhckrqv46chA210LctTw 9EIphUDd0rlDdQX/Z9WK2ns3kEPqQ4cUNS+S6M6Ok1zGaFlB3op51lE4w+/g0WuhtLbi 7br+FA+kdLAbyiIln0FLuFbzQb+a3BzkFapRrDfp2bSfIz1oVo0LKXbKU03qDM0Q2v/I YuLQ== X-Received: by 10.194.216.39 with SMTP id on7mr16263868wjc.56.1413124790045; Sun, 12 Oct 2014 07:39:50 -0700 (PDT) Received: from cerise.localdomain (dsdf-4d0a7c97.pool.mediaWays.net. [77.10.124.151]) by mx.google.com with ESMTPSA id n5sm9052858wix.0.2014.10.12.07.39.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Oct 2014 07:39:49 -0700 (PDT) From: Maxime Hadjinlian To: buildroot@buildroot.org Date: Sun, 12 Oct 2014 16:39:46 +0200 Message-Id: <1413124786-14001-1-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 2.1.1 Subject: [Buildroot] [PATCH v2] 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 --- v1 -> v2: - Add INSTALL_STAGING --- package/Config.in | 1 + package/libressl/Config.in | 11 ++++++ ...essl-0001-Fix-unavailable-file-for-uClibc.patch | 40 ++++++++++++++++++++++ package/libressl/libressl.mk | 13 +++++++ 4 files changed, 65 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 94e5f90..dc3d9bc 100644 --- a/package/Config.in +++ b/package/Config.in @@ -588,6 +588,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..e72d92b --- /dev/null +++ b/package/libressl/libressl.mk @@ -0,0 +1,13 @@ +################################################################################ +# +# 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_INSTALL_STAGING = YES +LIBRESSL_LIBTOOL_PATCH = NO + +$(eval $(autotools-package))