From patchwork Mon May 29 21:03:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Viard de Galbert X-Patchwork-Id: 768354 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wc8Nw4sSLz9s72 for ; Tue, 30 May 2017 07:03:59 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1D29D86D7B; Mon, 29 May 2017 21:03:58 +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 rjLhc4lEVK6E; Mon, 29 May 2017 21:03:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 85C1C86CE5; Mon, 29 May 2017 21:03:56 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 79AB21BFD54 for ; Mon, 29 May 2017 21:03:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 74F3681CFA for ; Mon, 29 May 2017 21:03: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 b9sI4kmLCGMA for ; Mon, 29 May 2017 21:03:53 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5]) by hemlock.osuosl.org (Postfix) with ESMTPS id 586A781CEB for ; Mon, 29 May 2017 21:03:53 +0000 (UTC) Received: from localhost.localdomain (unknown [82.253.127.47]) by smtp5-g21.free.fr (Postfix) with ESMTPS id 4A2CC5FEF7 for ; Mon, 29 May 2017 23:03:50 +0200 (CEST) Received: by localhost.localdomain (Postfix, from userid 1000) id C2EBB3800C6; Mon, 29 May 2017 23:03:49 +0200 (CEST) From: Julien Viard de Galbert To: buildroot@buildroot.org Date: Mon, 29 May 2017 23:03:39 +0200 Message-Id: <1496091819-27396-1-git-send-email-julien@vdg.name> X-Mailer: git-send-email 2.1.4 Cc: Julien Viard de Galbert Subject: [Buildroot] [PATCH v3 1/1] easy-rsa: 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: Julien Viard de Galbert Reviewed-by: Romain Naour --- Changes v1 -> v2 - Install missing file 'openssl-1.0.cnf' - Add select BR2_PACKAGE_OPENSSL and update description (Thanks Romain Naour) - Updated INSTALL call (Thanks Romain Naour) Changes v2 -> v3 after Thomas Petazzoni's review (Thanks!): - Moving package from Libraries->Crypto to Shell and utilities:Utilities - Indenting EASY_RSA_INSTALL_TARGET_CMDS with tabs (really don't know how I messed this up) - Update DEVELOPERS to track the easy-rsa package Signed-off-by: Julien Viard de Galbert --- DEVELOPERS | 1 + package/Config.in | 1 + package/easy-rsa/Config.in | 14 ++++++++++++++ package/easy-rsa/easy-rsa.hash | 2 ++ package/easy-rsa/easy-rsa.mk | 19 +++++++++++++++++++ 5 files changed, 37 insertions(+) create mode 100644 package/easy-rsa/Config.in create mode 100644 package/easy-rsa/easy-rsa.hash create mode 100644 package/easy-rsa/easy-rsa.mk diff --git a/DEVELOPERS b/DEVELOPERS index f80b89f..00f4a2f 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -930,6 +930,7 @@ F: package/lldpd/ N: Julien Viard de Galbert F: package/dieharder/ +F: package/easy-rsa/ N: Justin Maggard F: package/dtach/ diff --git a/package/Config.in b/package/Config.in index d57813c..1c1b95e 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1771,6 +1771,7 @@ comment "Utilities" source "package/dialog/Config.in" source "package/dtach/Config.in" source "package/file/Config.in" + source "package/easy-rsa/Config.in" source "package/gnupg/Config.in" source "package/gnupg2/Config.in" source "package/inotify-tools/Config.in" diff --git a/package/easy-rsa/Config.in b/package/easy-rsa/Config.in new file mode 100644 index 0000000..62a8ca3 --- /dev/null +++ b/package/easy-rsa/Config.in @@ -0,0 +1,14 @@ +config BR2_PACKAGE_EASY_RSA + bool "easy-rsa" + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_OPENSSL_BIN + help + Simple shell based CA utility + This package eases the creation of certificates, for example + for openvpn clients. + + This was formerly part of the openvpn package. + + easy-rsa is a wrapper script around OpenSSL binaries. + + https://github.com/OpenVPN/easy-rsa diff --git a/package/easy-rsa/easy-rsa.hash b/package/easy-rsa/easy-rsa.hash new file mode 100644 index 0000000..e2d658a --- /dev/null +++ b/package/easy-rsa/easy-rsa.hash @@ -0,0 +1,2 @@ +# Locally computed: (after verifying gpg sig) +sha512 d20f646e33ec803444dfcd446553f1d6001227fedec93280c212b34cccee11b184599f1b2ae6a3ce9cf6c9ac52f2b840ebb645536df6ddf55382fa25c22df81f EasyRSA-3.0.1.tgz diff --git a/package/easy-rsa/easy-rsa.mk b/package/easy-rsa/easy-rsa.mk new file mode 100644 index 0000000..16aff30 --- /dev/null +++ b/package/easy-rsa/easy-rsa.mk @@ -0,0 +1,19 @@ +################################################################################ +# +# easy-rsa +# +################################################################################ + +EASY_RSA_VERSION = 3.0.1 +EASY_RSA_SOURCE = EasyRSA-$(EASY_RSA_VERSION).tgz +EASY_RSA_SITE = https://github.com/OpenVPN/easy-rsa/releases/download/$(EASY_RSA_VERSION) + +define EASY_RSA_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/easyrsa $(TARGET_DIR)/usr/bin/easyrsa + $(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/easy-rsa/x509-types + $(INSTALL) -D -m 0644 $(@D)/x509-types/* $(TARGET_DIR)/etc/easy-rsa/x509-types + $(INSTALL) -D -m 0644 $(@D)/openssl-1.0.cnf $(TARGET_DIR)/etc/easy-rsa/openssl-1.0.cnf + $(INSTALL) -D -m 0644 $(@D)/vars.example $(TARGET_DIR)/etc/easy-rsa/vars +endef + +$(eval $(generic-package))