From patchwork Mon Sep 30 00:25:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Sanford X-Patchwork-Id: 278896 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id C18D52C00C8 for ; Mon, 30 Sep 2013 10:33:56 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 2FC9393140; Mon, 30 Sep 2013 00:33:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2b5UJfLd7xp6; Mon, 30 Sep 2013 00:33:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id A2B7393149; Mon, 30 Sep 2013 00:33:54 +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 2B9761CE6D2 for ; Mon, 30 Sep 2013 00:33:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 26D5E8B150 for ; Mon, 30 Sep 2013 00:33:53 +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 1k3qfs1K7EIa for ; Mon, 30 Sep 2013 00:33:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by whitealder.osuosl.org (Postfix) with ESMTPS id AE32E8B13A for ; Mon, 30 Sep 2013 00:33:52 +0000 (UTC) Received: by mail-pd0-f180.google.com with SMTP id y10so4868120pdj.39 for ; Sun, 29 Sep 2013 17:33:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1jLK+xMpJpHAqwUr9dv/t1yClySnVetYFEcsOpAuiAM=; b=l5KEPMJ7NoZ9LUZgXGBAOVVQ1nI9PNlY259jEXOlG6G85q5Jqpul7TdSZmesAuNaI7 j/+t6ryBu7j3p51LhS4UvLkCSfLBmCq/oP0uzL1BmpezPFJ0GbX/uVZXTjguzqJMzMqb 70W6fvGa4W2ZjfSsRX5oZP/lZXPMOaD7+cAagMhASsFPx2pytpwaLId+AltLEm56Fs3I GORdJZ8obZJW8JziHnGU2+xYdNAg++HFN+PmS2WP/No4EbveRE0RKGsx+kvt+tGLi2uB N+7K2UvBaoSV/9VvUGDsWAhAUqJN8DgMNc74id2OQqBQ74FZO1wtcI2Tas+b+sTr6AWO AGAg== X-Gm-Message-State: ALoCoQm2mrneLMHXBh1VAIjnqrQHo0zTydd8BcCqN5qgh48kSHj7JJqnOU5TEtq9y+xg4EhZhp6j X-Received: by 10.66.216.129 with SMTP id oq1mr25409731pac.75.1380500751188; Sun, 29 Sep 2013 17:25:51 -0700 (PDT) Received: from localhost.localdomain (c-98-210-198-125.hsd1.ca.comcast.net. [98.210.198.125]) by mx.google.com with ESMTPSA id va8sm23035954pbc.16.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 29 Sep 2013 17:25:50 -0700 (PDT) From: Peter Sanford To: buildroot@busybox.net Date: Sun, 29 Sep 2013 17:25:20 -0700 Message-Id: <1380500720-29245-1-git-send-email-psanford@nearbuysystems.com> X-Mailer: git-send-email 1.7.9.5 Subject: [Buildroot] [PATCH v2 1/1] gnupg: option to include RSA support. 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 gnupg is compiled with --enable-minimal flag. This produces a binary that only supports ElGamal and DSA public key algorithms. RSA has been the default for `gpg --gen-key` since 2009, so it makes sense to be able to build a gnupg binary that supports it. --- Changes v1 -> v2: - Fix tab/space issue in Config.in (suggested by Thomas Petazzoni) - Added explict else clause for --disable-rsa case --- package/gnupg/Config.in | 5 +++++ package/gnupg/gnupg.mk | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/package/gnupg/Config.in b/package/gnupg/Config.in index 8ddffaa..90f07c2 100644 --- a/package/gnupg/Config.in +++ b/package/gnupg/Config.in @@ -15,6 +15,11 @@ config BR2_PACKAGE_GNUPG if BR2_PACKAGE_GNUPG +config BR2_PACKAGE_GNUPG_RSA + bool "RSA support" + help + Support for RSA public key algorithm + config BR2_PACKAGE_GNUPG_GPGV bool "gpgv" help diff --git a/package/gnupg/gnupg.mk b/package/gnupg/gnupg.mk index f0c4b03..38604b5 100644 --- a/package/gnupg/gnupg.mk +++ b/package/gnupg/gnupg.mk @@ -31,6 +31,12 @@ else GNUPG_CONF_OPT += --without-readline endif +ifeq ($(BR2_PACKAGE_GNUPG_RSA),y) +GNUPG_CONF_OPT += --enable-rsa +else +GNUPG_CONF_OPT += --disable-rsa +endif + ifneq ($(BR2_PACKAGE_GNUPG_GPGV),y) define GNUPG_REMOVE_GPGV rm -f $(TARGET_DIR)/usr/bin/gpgv \