From patchwork Fri Sep 28 13:59:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fabio Urquiza X-Patchwork-Id: 976323 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Swkzks4z"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42MD0s44rRz9s5c for ; Sat, 29 Sep 2018 00:03:25 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6940588CE7; Fri, 28 Sep 2018 14:03:22 +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 IM0VgVOgV6rs; Fri, 28 Sep 2018 14:03:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 4E78A88CD4; Fri, 28 Sep 2018 14:03:20 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 3393A1C06BE for ; Fri, 28 Sep 2018 14:03:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2EB3B30C5A for ; Fri, 28 Sep 2018 14:03:17 +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 vCoaFGep5i9A for ; Fri, 28 Sep 2018 14:03:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) by silver.osuosl.org (Postfix) with ESMTPS id 7917930C5F for ; Fri, 28 Sep 2018 14:03:16 +0000 (UTC) Received: by mail-qt1-f196.google.com with SMTP id c56-v6so1810552qtd.11 for ; Fri, 28 Sep 2018 07:03:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/ifmD1VFKX2i6cDVddfx7VPZaWuI+/68aBDKmG3+aDw=; b=Swkzks4z/Dr7iHvZPoGymQQZc09x6e1hRkqvM3bNo5vgDcgdhwa1QOzfNlMe+TNEfu w0RJPEoznTjJHVBmWRLnP0vaaupHljECl1qV6IQMtYdlBBqqRBO8zvD/NUrYClc+xcMQ lbneU6YOLDBzRUMWXn9ypV572UMuO6x0kiOrYAV+97dRvJnHcewFG/O2YqrMPK7ibjQb 3zF/MKn7UICAvrjWmh9WKuCM5HSiBDQeOI/qM7GolSN1l7J36yOuiPnghhcpce8g0OmY bik46NMa9SIgbeij1J/FXW2hF7UhAlGXuNVqy69vS+F/fPwYPMly51n/E8R2PRM26g2T dqaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/ifmD1VFKX2i6cDVddfx7VPZaWuI+/68aBDKmG3+aDw=; b=rfeKhwxsh/NmQS/k75l0CQXQ37d21ta/x4KdFU8Wq8ZQRcvikO1Zmt6oN25z+wY1Mw q+4cRvkbGfCJODDCODdAx++DOJbkrpNMJuhgqGSOLjQlbqxydRRNm4t3EMS9qVYSLOY2 53WB04kmh2J4Dtd3UWo+x+zlyrWyQjAyQwSvS3IlSd1nmIPiKjgDw1daXt2mJj0B19VA LfnDyLwNKzneM60C9BQvfdb+fDtA/Ll4faGo4BLZUNiB68y9iUcJhoT/y2GHCWkrItPg hD2f2ko/83TZc8cQeeEDrgvmcEP5A7Kg02vsAdALSlr2C4OGLidcSoKuPEfa+A23FPqo 3Qgg== X-Gm-Message-State: ABuFfogNdTSkZuolBhfEO643SJSIqA9fHz9DAHe4yCM1cCVn5hCR0yue ktDXl/f/Bty9glP8biDhRaUSyGMU X-Google-Smtp-Source: ACcGV60eTJpaWb1A6q4zBAJkP2SiMO11V+UsJA2YogJzTNZTPCG9ILhX6+lbQNcvVv1S+4I39wNBxA== X-Received: by 2002:ac8:218d:: with SMTP id 13-v6mr12068636qty.122.1538143395272; Fri, 28 Sep 2018 07:03:15 -0700 (PDT) Received: from localhost.localdomain ([200.199.23.104]) by smtp.gmail.com with ESMTPSA id z17-v6sm2543873qki.52.2018.09.28.07.03.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Sep 2018 07:03:14 -0700 (PDT) From: Fabio Urquiza To: buildroot@buildroot.org Date: Fri, 28 Sep 2018 10:59:21 -0300 Message-Id: <1538143163-20596-3-git-send-email-fabiorush@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1538143163-20596-1-git-send-email-fabiorush@gmail.com> References: <1538143163-20596-1-git-send-email-fabiorush@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/4] bitcoin: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabio Urquiza , flus@cesar.org.br Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Bitcoin Core is an open source project which maintains and releases Bitcoin client software called “Bitcoin Core”. Signed-off-by: Fabio Urquiza --- package/Config.in | 4 ++++ package/bitcoin/Config.in | 26 ++++++++++++++++++++++++++ package/bitcoin/bitcoin.hash | 3 +++ package/bitcoin/bitcoin.mk | 17 +++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 package/bitcoin/Config.in create mode 100644 package/bitcoin/bitcoin.hash create mode 100644 package/bitcoin/bitcoin.mk diff --git a/package/Config.in b/package/Config.in index 2810d04..796383a 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1971,6 +1971,10 @@ endif source "package/xtables-addons/Config.in" source "package/znc/Config.in" +menu "Blockchain Applications" + source "package/bitcoin/Config.in" +endmenu + endmenu menu "Package managers" diff --git a/package/bitcoin/Config.in b/package/bitcoin/Config.in new file mode 100644 index 0000000..cef0e73 --- /dev/null +++ b/package/bitcoin/Config.in @@ -0,0 +1,26 @@ +config BR2_PACKAGE_BITCOIN + bool "bitcoin" + select BR2_TOOLCHAIN_BUILDROOT_USE_SSP + select BR2_INSTALL_LIBSTDCPP + select BR2_PACKAGE_BOOST + select BR2_PACKAGE_BOOST_SYSTEM + select BR2_PACKAGE_BOOST_FILESYSTEM + select BR2_PACKAGE_BOOST_THREAD + select BR2_PACKAGE_BOOST_CHRONO + select BR2_PACKAGE_BOOST_PROGRAM_OPTIONS + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_LIBEVENT + help + Bitcoin Core is an open source project which maintains and + releases Bitcoin client software called “Bitcoin Core”. + + It is a direct descendant of the original Bitcoin software + client released by Satoshi Nakamoto after he published the + famous Bitcoin whitepaper. + + Bitcoin Core consists of both “full-node” software for fully + validating the blockchain as well as a bitcoin wallet. The + project also currently maintains related software such as the + cryptography library libsecp256k1 and others located at GitHub. + + https://bitcoincore.org diff --git a/package/bitcoin/bitcoin.hash b/package/bitcoin/bitcoin.hash new file mode 100644 index 0000000..96edd22 --- /dev/null +++ b/package/bitcoin/bitcoin.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 c8557b6df5f5cdf67b3ddf6fe501cfc6e0be698f175f16927dd08d6040df7d9f bitcoin-v0.16.3.tar.gz +sha256 70223369f70e8cb550e75aa74eb86bfa5220fb09c0ba0549d91c36587d15d1a0 COPYING diff --git a/package/bitcoin/bitcoin.mk b/package/bitcoin/bitcoin.mk new file mode 100644 index 0000000..58ed17b --- /dev/null +++ b/package/bitcoin/bitcoin.mk @@ -0,0 +1,17 @@ +################################################################################ +# +# bitcoin +# +################################################################################ + +BITCOIN_VERSION = v0.16.3 +BITCOIN_SITE = $(call github,bitcoin,bitcoin,$(BITCOIN_VERSION)) +BITCOIN_AUTORECONF = YES +BITCOIN_LICENSE = MIT +BITCOIN_LICENSE_FILES = COPYING +BITCOIN_CONF_OPTS = --disable-wallet --disable-tests +BITCOIN_CONF_OPTS += --with-sysroot=$(STAGING_DIR) +BITCOIN_CONF_OPTS += --with-boost-libdir=$(STAGING_DIR)/usr/lib/ +BITCOIN_DEPENDENCIES = boost openssl libevent + +$(eval $(autotools-package))