From patchwork Fri Dec 28 20:01:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 208559 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 D5EC52C00EC for ; Sat, 29 Dec 2012 07:01:24 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D9AE52FF8F; Fri, 28 Dec 2012 20:01:22 +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 sGLOPox5gAj3; Fri, 28 Dec 2012 20:01:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 821712D30A; Fri, 28 Dec 2012 20:01:20 +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 74F5F8F74B for ; Fri, 28 Dec 2012 20:01:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 888E884C3F for ; Fri, 28 Dec 2012 20:01:18 +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 nBzQzREH+Fe7 for ; Fri, 28 Dec 2012 20:01:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [78.46.79.162]) by whitealder.osuosl.org (Postfix) with ESMTPS id 195D784A7E for ; Fri, 28 Dec 2012 20:01:16 +0000 (UTC) Received: from asgard (host204.190-231-107.telecom.net.ar [190.231.107.204]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.5/8.14.5) with ESMTP id qBSK1A2x011169 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 28 Dec 2012 20:01:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1356724874; bh=kqSMlrHg64FZheeuPPjHALxHYEfBG6hIM6Zo8RrL5b8=; h=From:To:Cc:Subject:Date; b=CqatQGwtMW1WsmHZNqlOg783nWVSgny/Gv6HVrgRh/tLFnezaosqlYifJf++9VZfV SCzqeflX0Bn2Fex28FdrjdHVroT9pHkBlB0yRRgSUT8imim8y1zeLuAZxS7AAKmaoV 02o8hQVpNA4AdQ2nlTMbSNUsTnJJOcRJIdZJqYPg= Received: by asgard (sSMTP sendmail emulation); Fri, 28 Dec 2012 17:01:09 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Fri, 28 Dec 2012 17:01:08 -0300 Message-Id: <1356724868-9000-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.7.8.6 X-Virus-Scanned: clamav-milter 0.97.5 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH] nettle: add new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net Signed-off-by: Gustavo Zacarias --- package/Config.in | 1 + package/nettle/Config.in | 9 +++++++++ package/nettle/nettle.mk | 12 ++++++++++++ 3 files changed, 22 insertions(+), 0 deletions(-) create mode 100644 package/nettle/Config.in create mode 100644 package/nettle/nettle.mk diff --git a/package/Config.in b/package/Config.in index 6d64e2c..301b52a 100644 --- a/package/Config.in +++ b/package/Config.in @@ -364,6 +364,7 @@ source "package/gnutls/Config.in" source "package/libgcrypt/Config.in" source "package/libgpg-error/Config.in" source "package/libnss/Config.in" +source "package/nettle/Config.in" source "package/ocf-linux/Config.in" source "package/openssl/Config.in" source "package/polarssl/Config.in" diff --git a/package/nettle/Config.in b/package/nettle/Config.in new file mode 100644 index 0000000..5577621 --- /dev/null +++ b/package/nettle/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_NETTLE + bool "nettle" + select BR2_PACKAGE_GMP + help + Nettle is a cryptographic library that is designed to fit easily + in more or less any context: In crypto toolkits for object-oriented + languages, in applications like LSH or GNUPG, or even in kernel space + + http://www.lysator.liu.se/~nisse/nettle/ diff --git a/package/nettle/nettle.mk b/package/nettle/nettle.mk new file mode 100644 index 0000000..ef7640a --- /dev/null +++ b/package/nettle/nettle.mk @@ -0,0 +1,12 @@ +NETTLE_VERSION = 2.5 +NETTLE_SITE = http://www.lysator.liu.se/~nisse/archive +NETTLE_DEPENDENCIES = gmp +NETTLE_INSTALL_STAGING = YES + +define NETTLE_DITCH_DEBUGGING_CFLAGS + $(SED) '/CFLAGS/ s/ -ggdb3//' $(@D)/configure +endef + +NETTLE_POST_EXTRACT_HOOKS += NETTLE_DITCH_DEBUGGING_CFLAGS + +$(eval $(autotools-package))