pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/finance/cpuminer cpuminer: update to version 2.5.1
details: https://anonhg.NetBSD.org/pkgsrc/rev/3b6d13443dba
branches: trunk
changeset: 453415:3b6d13443dba
user: khorben <khorben%pkgsrc.org@localhost>
date: Sat May 29 19:30:57 2021 +0000
description:
cpuminer: update to version 2.5.1
This release adds support for bech32 addresses (BIP 173).
While there, this applies a patch from upstream to fix the build on Aarch64,
and improves the RC script provided.
diffstat:
finance/cpuminer/Makefile | 5 ++---
finance/cpuminer/distinfo | 11 ++++++-----
finance/cpuminer/files/minerd.sh | 20 ++++++++++++++++----
finance/cpuminer/patches/patch-miner.h | 15 +++++++++++++++
4 files changed, 39 insertions(+), 12 deletions(-)
diffs (84 lines):
diff -r fb5f73ef29bd -r 3b6d13443dba finance/cpuminer/Makefile
--- a/finance/cpuminer/Makefile Sat May 29 17:49:12 2021 +0000
+++ b/finance/cpuminer/Makefile Sat May 29 19:30:57 2021 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.14 2021/04/21 13:24:38 adam Exp $
+# $NetBSD: Makefile,v 1.15 2021/05/29 19:30:57 khorben Exp $
DISTNAME= ${GITHUB_PROJECT}-${PKGVERSION_NOREV}
-PKGNAME= cpuminer-2.5.0
-PKGREVISION= 13
+PKGNAME= cpuminer-2.5.1
CATEGORIES= finance
MASTER_SITES= ${MASTER_SITE_GITHUB:=pooler/}
diff -r fb5f73ef29bd -r 3b6d13443dba finance/cpuminer/distinfo
--- a/finance/cpuminer/distinfo Sat May 29 17:49:12 2021 +0000
+++ b/finance/cpuminer/distinfo Sat May 29 19:30:57 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2017/10/01 15:07:14 khorben Exp $
+$NetBSD: distinfo,v 1.2 2021/05/29 19:30:57 khorben Exp $
-SHA1 (cpuminer-2.5.0.tar.gz) = 502e7edfa3ff7fe4300065c68f660acd8fb63476
-RMD160 (cpuminer-2.5.0.tar.gz) = 954d68d8a59665364844d4c1e89e67fdb2ab9124
-SHA512 (cpuminer-2.5.0.tar.gz) = e635e346cc5dd4e5159b5d0c9dd8f44e642c626da934638a73b9da8421b70c97ce0f5671cc35be3f5ad5711c38164e7e7ed94c0b593892b32203f0527b4ffdc1
-Size (cpuminer-2.5.0.tar.gz) = 117655 bytes
+SHA1 (cpuminer-2.5.1.tar.gz) = 07d863e1e88de8387986ea9ef76dd9100d4fb409
+RMD160 (cpuminer-2.5.1.tar.gz) = f408fddd6e16ad8d54115e6b3d8fd0f0a6fae5d1
+SHA512 (cpuminer-2.5.1.tar.gz) = 9b5b34018e1b480aceb3f6e7ebea58800da6bf7f07c8effe0bb65bb4732a24686aa7db14a45f6f595df5b6d0334205c2a43f00fa576d42ef9f108ca3f519393b
+Size (cpuminer-2.5.1.tar.gz) = 118893 bytes
+SHA1 (patch-miner.h) = 58bfef90b3c600e94d5b1ff81d87eb5e6c149dbc
diff -r fb5f73ef29bd -r 3b6d13443dba finance/cpuminer/files/minerd.sh
--- a/finance/cpuminer/files/minerd.sh Sat May 29 17:49:12 2021 +0000
+++ b/finance/cpuminer/files/minerd.sh Sat May 29 19:30:57 2021 +0000
@@ -1,15 +1,27 @@
-#!/bin/sh
+#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: minerd.sh,v 1.1 2017/10/01 15:07:14 khorben Exp $
+# $NetBSD: minerd.sh,v 1.2 2021/05/29 19:30:57 khorben Exp $
#
-
+# Startup script for cpuminer
+#
# PROVIDE: minerd
# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# You will need to set some variables in /etc/rc.conf to start minerd:
+#
+# minerd=YES
+#
+# Optionally, "minerd_flags" contains options for the , e.g.
+# minerd_flags="-a scrypt" # used by Litecoin
+# minerd_flags="-o URL" # sets the URL of the server
+# minerd_flags="-O username:password" # sets the credentials to use
+# See minerd(1) for possible options.
. /etc/rc.subr
name="minerd"
-rcvar=$name
+rcvar=${name}
command="@PREFIX@/bin/${name}"
required_files="@PKG_SYSCONFDIR@/minerd.conf"
minerd_flags="-B -S -c @PKG_SYSCONFDIR@/minerd.conf"
diff -r fb5f73ef29bd -r 3b6d13443dba finance/cpuminer/patches/patch-miner.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/cpuminer/patches/patch-miner.h Sat May 29 19:30:57 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-miner.h,v 1.1 2021/05/29 19:30:57 khorben Exp $
+
+Fix build on Aarch64 (from upstream)
+
+--- miner.h.orig 2020-06-25 15:02:57.000000000 +0000
++++ miner.h
+@@ -137,7 +137,7 @@ void sha256_transform(uint32_t *state, c
+ void sha256d(unsigned char *hash, const unsigned char *data, int len);
+
+ #ifdef USE_ASM
+-#if defined(__ARM_NEON__) || defined(__ALTIVEC__) || defined(__i386__) || defined(__x86_64__)
++#if (defined(__APCS_32__) && defined(__ARM_NEON__)) || defined(__ALTIVEC__) || defined(__i386__) || defined(__x86_64__)
+ #define HAVE_SHA256_4WAY 1
+ int sha256_use_4way();
+ void sha256_init_4way(uint32_t *state);
Home |
Main Index |
Thread Index |
Old Index