From nobody Thu Jan 13 20:58:29 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DF32119493A8; Thu, 13 Jan 2022 20:58:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JZcGZ4CTrz3Prd; Thu, 13 Jan 2022 20:58:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642107510; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o3l9WobflzRYldm+G+D/RpJtkLV7few3gmpYgQtDnVc=; b=l2quugx3ajwu8KbpqdTqcorFRNXdU54Mepm8KIA4CuwVzuFCx9+gKRwkSi3uVLjKav787Y yy5ipD0DWBrMrgS41FP+sv2HT3xQ2VhJ1GkOpokI3EJocj8RuB7G9Hn6bsB5ih/HlzNLLI K5e205YYy7GnPVUURFMuq+sRjcLHXJ3LbWuFb8tipiJROolc8Jplw6NUE/3n6YsWXlUCFM nS80rfD7x4dBXC3onlSyqwB21eGPLarN5hhmCL1fJiFMMCncs0UanU+alyY2HGKrWItde3 yJCeBYhgTf+hEE0RJY52VdWjN0tHM/7zjSTzbG+KyfI4gyx1e7eHEZJ78r0vSQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1DBD727237; Thu, 13 Jan 2022 20:58:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20DKwTrk089910; Thu, 13 Jan 2022 20:58:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20DKwT8R089909; Thu, 13 Jan 2022 20:58:29 GMT (envelope-from git) Date: Thu, 13 Jan 2022 20:58:29 GMT Message-Id: <202201132058.20DKwT8R089909@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Neel Chauhan Subject: git: 56b72f9ebb54 - main - net-p2p/ethash: New port: C/C++ implementation of Ethash and ProgPoW List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nc X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 56b72f9ebb5406d3536a9f81b01835ee4d88f9ce Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642107510; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o3l9WobflzRYldm+G+D/RpJtkLV7few3gmpYgQtDnVc=; b=RbvmBQHlth0L6icKV/sKGWa5QCAoK4vTNrBoN+TjG7I+3gAU4X1fMdVO/jdfH//wH3Y0GB SOhSr4CwdSieFBhHuN6VZ2jAfn4DprM3yRmBTY4n38z90eM2ksM8/CMCgRbMU7KQhOlSzH M14ao9/iVfBVhGjb1oXA01vUZ+JDVARbKc3GD6/tFzkYkmxuf3F8GyrnVCrQnaKrhrxeVb sVEYGhABOWUF6Tfnj7/an3LKD3vm+xH2k/Fr9OSMl0rOPpu3zzjE4uKpYHm6enp17CNu+R WOuTOaYOL+o2fjsM6AcbCDDt5+OTj9WgNqUzSLFNsFCkJ79UsllEmVGo3KgGnQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642107510; a=rsa-sha256; cv=none; b=ROSlLkrOkf0CoTOa2lWppumrbc6B+UPpzgMyLVg1Pdm4knWopzUZZY0AHSaAn4ZlcsYhXr 2ryyr3PmkdzHcKFRqlamUKXKZhnSriKoYKzRddZZfxZZ5S9e16gKCdT5Xb2J7QBcSIM4z2 Bw0lg8fsguoECKnNQ3wDjDN/ePMngyMvYKTKVwRb5qMBOVguYrJO1oTQ5HdUe9V945ZCoo TkDVM/81EuhEO0HCecIXU30D2bbBS7qWTDZH++9WDGPbxS/Rbv4mNX9E3R5Rq6ODrVMRUZ IMl+qJ8TeVhR4EdVQbhHVViW6jcB0XdTcIWL8kJyODBnh3kG745ufjaYcfAUmw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by nc: URL: https://cgit.FreeBSD.org/ports/commit/?id=56b72f9ebb5406d3536a9f81b01835ee4d88f9ce commit 56b72f9ebb5406d3536a9f81b01835ee4d88f9ce Author: Neel Chauhan AuthorDate: 2022-01-13 20:58:42 +0000 Commit: Neel Chauhan CommitDate: 2022-01-13 20:58:42 +0000 net-p2p/ethash: New port: C/C++ implementation of Ethash and ProgPoW --- net-p2p/Makefile | 1 + net-p2p/ethash/Makefile | 22 ++++++++++++++++++++++ net-p2p/ethash/distinfo | 3 +++ .../ethash/files/patch-lib_ethash_endianness.hpp | 11 +++++++++++ net-p2p/ethash/pkg-descr | 3 +++ net-p2p/ethash/pkg-plist | 17 +++++++++++++++++ 6 files changed, 57 insertions(+) diff --git a/net-p2p/Makefile b/net-p2p/Makefile index a747f3945409..4eb6b19463b1 100644 --- a/net-p2p/Makefile +++ b/net-p2p/Makefile @@ -31,6 +31,7 @@ SUBDIR += eiskaltdcpp-data SUBDIR += eiskaltdcpp-gtk SUBDIR += eiskaltdcpp-lib + SUBDIR += ethash SUBDIR += frost SUBDIR += go-ethereum SUBDIR += go-prysm diff --git a/net-p2p/ethash/Makefile b/net-p2p/ethash/Makefile new file mode 100644 index 000000000000..6eacfae84d55 --- /dev/null +++ b/net-p2p/ethash/Makefile @@ -0,0 +1,22 @@ +PORTNAME= ethash +PORTVERSION= 0.8.0 +DISTVERSIONPREFIX= v +CATEGORIES= net-p2p + +MAINTAINER= nc@FreeBSD.org +COMMENT= C/C++ implementation of Ethash and ProgPoW + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libbenchmark.so:devel/benchmark \ + libgtest.so:devel/googletest + +USES= cmake +USE_GITHUB= yes +GH_ACCOUNT= chfast + +CMAKE_OFF= HUNTER_ENABLED + +.include + diff --git a/net-p2p/ethash/distinfo b/net-p2p/ethash/distinfo new file mode 100644 index 000000000000..b64115f52a75 --- /dev/null +++ b/net-p2p/ethash/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1642107104 +SHA256 (chfast-ethash-v0.8.0_GH0.tar.gz) = c53a39cd7b4687f1fcc6e4a561a0aaaab9ec0438ae818860dd4e98bb4ad2f153 +SIZE (chfast-ethash-v0.8.0_GH0.tar.gz) = 103991 diff --git a/net-p2p/ethash/files/patch-lib_ethash_endianness.hpp b/net-p2p/ethash/files/patch-lib_ethash_endianness.hpp new file mode 100644 index 000000000000..4a7546acd522 --- /dev/null +++ b/net-p2p/ethash/files/patch-lib_ethash_endianness.hpp @@ -0,0 +1,11 @@ +--- lib/ethash/endianness.hpp.orig 2021-11-09 08:29:42 UTC ++++ lib/ethash/endianness.hpp +@@ -24,7 +24,7 @@ + #endif + #endif + +-#if __has_builtin(__builtin_bswap64) || defined(__GNUC__) ++#if (__has_builtin(__builtin_bswap64) || defined(__GNUC__)) && !defined(__FreeBSD__) + #define bswap32 __builtin_bswap32 + #define bswap64 __builtin_bswap64 + #elif defined(_MSC_VER) diff --git a/net-p2p/ethash/pkg-descr b/net-p2p/ethash/pkg-descr new file mode 100644 index 000000000000..258d166fcc22 --- /dev/null +++ b/net-p2p/ethash/pkg-descr @@ -0,0 +1,3 @@ +C/C++ implementation of Ethash - the Ethereum Proof of Work algorithm. + +WWW: https://github.com/chfast/ethash diff --git a/net-p2p/ethash/pkg-plist b/net-p2p/ethash/pkg-plist new file mode 100644 index 000000000000..864574db3151 --- /dev/null +++ b/net-p2p/ethash/pkg-plist @@ -0,0 +1,17 @@ +include/ethash/ethash.h +include/ethash/ethash.hpp +include/ethash/global_context.h +include/ethash/global_context.hpp +include/ethash/hash_types.h +include/ethash/hash_types.hpp +include/ethash/keccak.h +include/ethash/keccak.hpp +include/ethash/progpow.hpp +include/ethash/version.h +lib/cmake/ethash/ethashConfig.cmake +lib/cmake/ethash/ethashConfigVersion.cmake +lib/cmake/ethash/ethashTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/ethash/ethashTargets.cmake +lib/libethash-global-context.a +lib/libethash.a +lib/libkeccak.a