pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/finance/cpuminer Import cpuminer version 2.5.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c862608b69ea
branches:  trunk
changeset: 369578:c862608b69ea
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Sun Oct 01 15:07:14 2017 +0000

description:
Import cpuminer version 2.5.0

Multi-threaded CPU miner for Litecoin and Bitcoin, fork of Jeff Garzik's
reference cpuminer.

diffstat:

 finance/cpuminer/DESCR             |   2 ++
 finance/cpuminer/Makefile          |  35 +++++++++++++++++++++++++++++++++++
 finance/cpuminer/PLIST             |   4 ++++
 finance/cpuminer/distinfo          |   6 ++++++
 finance/cpuminer/files/minerd.conf |   6 ++++++
 finance/cpuminer/files/minerd.sh   |  18 ++++++++++++++++++
 6 files changed, 71 insertions(+), 0 deletions(-)

diffs (95 lines):

diff -r 17bfdd14fc4a -r c862608b69ea finance/cpuminer/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/cpuminer/DESCR    Sun Oct 01 15:07:14 2017 +0000
@@ -0,0 +1,2 @@
+Multi-threaded CPU miner for Litecoin and Bitcoin, fork of Jeff Garzik's
+reference cpuminer.
diff -r 17bfdd14fc4a -r c862608b69ea finance/cpuminer/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/cpuminer/Makefile Sun Oct 01 15:07:14 2017 +0000
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2017/10/01 15:07:14 khorben Exp $
+
+DISTNAME=      ${GITHUB_PROJECT}-${PKGVERSION_NOREV}
+PKGNAME=       cpuminer-2.5.0
+CATEGORIES=    finance
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=pooler/}
+
+MAINTAINER=    khorben%defora.org@localhost
+HOMEPAGE=      https://github.com/pooler/cpuminer/
+COMMENT=       CPU miner for Litecoin and Bitcoin
+LICENSE=       gnu-gpl-v2
+
+GITHUB_PROJECT=        cpuminer
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+GNU_CONFIGURE= yes
+USE_TOOLS+=    autoconf autoheader automake
+
+RCD_SCRIPTS=   minerd
+
+CONF_FILES+=   ${PREFIX}/share/examples/cpuminer/minerd.conf \
+               ${PKG_SYSCONFDIR}/minerd.conf
+
+INSTALLATION_DIRS+=    share/examples/cpuminer
+
+pre-configure:
+       cd ${WRKSRC} && ${SH} ./autogen.sh
+
+post-install:
+       ${INSTALL_DATA} ${FILESDIR}/minerd.conf \
+               ${DESTDIR}${PREFIX}/share/examples/cpuminer
+
+.include "../../textproc/jansson/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 17bfdd14fc4a -r c862608b69ea finance/cpuminer/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/cpuminer/PLIST    Sun Oct 01 15:07:14 2017 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2017/10/01 15:07:14 khorben Exp $
+bin/minerd
+man/man1/minerd.1
+share/examples/cpuminer/minerd.conf
diff -r 17bfdd14fc4a -r c862608b69ea finance/cpuminer/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/cpuminer/distinfo Sun Oct 01 15:07:14 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/10/01 15:07:14 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
diff -r 17bfdd14fc4a -r c862608b69ea finance/cpuminer/files/minerd.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/cpuminer/files/minerd.conf        Sun Oct 01 15:07:14 2017 +0000
@@ -0,0 +1,6 @@
+{
+       "url": "stratum+tcp://example.com:3333",
+       "userpass": "foo:bar",
+       "retry-pause": "10",
+       "quiet": true
+}
diff -r 17bfdd14fc4a -r c862608b69ea finance/cpuminer/files/minerd.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/cpuminer/files/minerd.sh  Sun Oct 01 15:07:14 2017 +0000
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $NetBSD: minerd.sh,v 1.1 2017/10/01 15:07:14 khorben Exp $
+#
+
+# PROVIDE: minerd
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="minerd"
+rcvar=$name
+command="@PREFIX@/bin/${name}"
+required_files="@PKG_SYSCONFDIR@/minerd.conf"
+minerd_flags="-B -S -c @PKG_SYSCONFDIR@/minerd.conf"
+
+load_rc_config $name
+run_rc_command "$1"



Home | Main Index | Thread Index | Old Index