pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/finance/cpuminer



Module Name:    pkgsrc
Committed By:   khorben
Date:           Sat May 29 19:30:57 UTC 2021

Modified Files:
        pkgsrc/finance/cpuminer: Makefile distinfo
        pkgsrc/finance/cpuminer/files: minerd.sh
Added Files:
        pkgsrc/finance/cpuminer/patches: patch-miner.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/finance/cpuminer/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/finance/cpuminer/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/finance/cpuminer/files/minerd.sh
cvs rdiff -u -r0 -r1.1 pkgsrc/finance/cpuminer/patches/patch-miner.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/finance/cpuminer/Makefile
diff -u pkgsrc/finance/cpuminer/Makefile:1.14 pkgsrc/finance/cpuminer/Makefile:1.15
--- pkgsrc/finance/cpuminer/Makefile:1.14       Wed Apr 21 13:24:38 2021
+++ pkgsrc/finance/cpuminer/Makefile    Sat May 29 19:30:57 2021
@@ -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/}
 

Index: pkgsrc/finance/cpuminer/distinfo
diff -u pkgsrc/finance/cpuminer/distinfo:1.1 pkgsrc/finance/cpuminer/distinfo:1.2
--- pkgsrc/finance/cpuminer/distinfo:1.1        Sun Oct  1 15:07:14 2017
+++ pkgsrc/finance/cpuminer/distinfo    Sat May 29 19:30:57 2021
@@ -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

Index: pkgsrc/finance/cpuminer/files/minerd.sh
diff -u pkgsrc/finance/cpuminer/files/minerd.sh:1.1 pkgsrc/finance/cpuminer/files/minerd.sh:1.2
--- pkgsrc/finance/cpuminer/files/minerd.sh:1.1 Sun Oct  1 15:07:14 2017
+++ pkgsrc/finance/cpuminer/files/minerd.sh     Sat May 29 19:30:57 2021
@@ -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"

Added files:

Index: pkgsrc/finance/cpuminer/patches/patch-miner.h
diff -u /dev/null pkgsrc/finance/cpuminer/patches/patch-miner.h:1.1
--- /dev/null   Sat May 29 19:30:58 2021
+++ pkgsrc/finance/cpuminer/patches/patch-miner.h       Sat May 29 19:30:57 2021
@@ -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