diff options
author | khorben <khorben@pkgsrc.org> | 2017-10-01 15:07:14 +0000 |
---|---|---|
committer | khorben <khorben@pkgsrc.org> | 2017-10-01 15:07:14 +0000 |
commit | 9e98dd7af291f8a41e356ba16fa763b94009dbf7 (patch) | |
tree | a4f07d6693369bcf0ce6c79eece6a2a5796f70e8 /finance | |
parent | bf9a89d19dbe2dec5dc2fd5825f25670152202e5 (diff) | |
download | pkgsrc-9e98dd7af291f8a41e356ba16fa763b94009dbf7.tar.gz |
Import cpuminer version 2.5.0
Multi-threaded CPU miner for Litecoin and Bitcoin, fork of Jeff Garzik's
reference cpuminer.
Diffstat (limited to 'finance')
-rw-r--r-- | finance/cpuminer/DESCR | 2 | ||||
-rw-r--r-- | finance/cpuminer/Makefile | 35 | ||||
-rw-r--r-- | finance/cpuminer/PLIST | 4 | ||||
-rw-r--r-- | finance/cpuminer/distinfo | 6 | ||||
-rw-r--r-- | finance/cpuminer/files/minerd.conf | 6 | ||||
-rw-r--r-- | finance/cpuminer/files/minerd.sh | 18 |
6 files changed, 71 insertions, 0 deletions
diff --git a/finance/cpuminer/DESCR b/finance/cpuminer/DESCR new file mode 100644 index 00000000000..48bbf1a0d0e --- /dev/null +++ b/finance/cpuminer/DESCR @@ -0,0 +1,2 @@ +Multi-threaded CPU miner for Litecoin and Bitcoin, fork of Jeff Garzik's +reference cpuminer. diff --git a/finance/cpuminer/Makefile b/finance/cpuminer/Makefile new file mode 100644 index 00000000000..ba778a63c5d --- /dev/null +++ b/finance/cpuminer/Makefile @@ -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 +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 --git a/finance/cpuminer/PLIST b/finance/cpuminer/PLIST new file mode 100644 index 00000000000..21288ba3130 --- /dev/null +++ b/finance/cpuminer/PLIST @@ -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 --git a/finance/cpuminer/distinfo b/finance/cpuminer/distinfo new file mode 100644 index 00000000000..00552ed0642 --- /dev/null +++ b/finance/cpuminer/distinfo @@ -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 --git a/finance/cpuminer/files/minerd.conf b/finance/cpuminer/files/minerd.conf new file mode 100644 index 00000000000..fca17d8e5fe --- /dev/null +++ b/finance/cpuminer/files/minerd.conf @@ -0,0 +1,6 @@ +{ + "url": "stratum+tcp://example.com:3333", + "userpass": "foo:bar", + "retry-pause": "10", + "quiet": true +} diff --git a/finance/cpuminer/files/minerd.sh b/finance/cpuminer/files/minerd.sh new file mode 100644 index 00000000000..c102bbdb37a --- /dev/null +++ b/finance/cpuminer/files/minerd.sh @@ -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" |