From 947e7d09cc995f9396d63bc7a367beda7406fc3f Mon Sep 17 00:00:00 2001 From: Martin Matuska Date: Sun, 3 Nov 2013 21:21:01 +0000 Subject: [PATCH] cpuminer is a simple daemon that performs Bitcoin or Litecoin pooled or solo mining. WWW: http://sourceforge.net/projects/cpuminer/ --- net-p2p/Makefile | 1 + net-p2p/cpuminer/Makefile | 41 ++++++++++++++++++++++++++++++++++++++ net-p2p/cpuminer/distinfo | 2 ++ net-p2p/cpuminer/pkg-descr | 4 ++++ net-p2p/cpuminer/pkg-plist | 1 + 5 files changed, 49 insertions(+) create mode 100644 net-p2p/cpuminer/Makefile create mode 100644 net-p2p/cpuminer/distinfo create mode 100644 net-p2p/cpuminer/pkg-descr create mode 100644 net-p2p/cpuminer/pkg-plist diff --git a/net-p2p/Makefile b/net-p2p/Makefile index 213806d01cda..34fbc6c032a6 100644 --- a/net-p2p/Makefile +++ b/net-p2p/Makefile @@ -13,6 +13,7 @@ SUBDIR += btpd SUBDIR += btqueue SUBDIR += cdonkey + SUBDIR += cpuminer SUBDIR += createtorrent SUBDIR += ctcs SUBDIR += ctorrent diff --git a/net-p2p/cpuminer/Makefile b/net-p2p/cpuminer/Makefile new file mode 100644 index 000000000000..2706e0e57621 --- /dev/null +++ b/net-p2p/cpuminer/Makefile @@ -0,0 +1,41 @@ +# Created by: Martin Matuska +# $FreeBSD$ + +PORTNAME= cpuminer +PORTVERSION= 2.3.2 +CATEGORIES= net-p2p math + +MAINTAINER= mm@FreeBSD.org +COMMENT= CPU miner for Litecoin and Bitcoin + +LICENSE= GPLv2 + +LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl \ + jansson:${PORTSDIR}/devel/jansson + +USE_GITHUB= yes +GH_ACCOUNT= pooler +GH_TAGNAME= v${PORTVERSION} +GH_COMMIT= 8b30b7b + +USE_AUTOTOOLS= aclocal autoheader automake autoconf +AUTOMAKE_ARGS= --gnu --add-missing --copy +GNU_CONFIGURE= yes + +.include + +.include + +.if ${OSVERSION} > 1000000 +USE_GCC= yes +.endif + +post-install: +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR}/ +.for FILE in NEWS README + ${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}/ +.endfor +.endif + +.include diff --git a/net-p2p/cpuminer/distinfo b/net-p2p/cpuminer/distinfo new file mode 100644 index 000000000000..0c1645ac350d --- /dev/null +++ b/net-p2p/cpuminer/distinfo @@ -0,0 +1,2 @@ +SHA256 (cpuminer-2.3.2.tar.gz) = c5f29f293e1b23b15a29e6e3569ca8cc6e963692677b1af9f9f1402e6884ef16 +SIZE (cpuminer-2.3.2.tar.gz) = 94862 diff --git a/net-p2p/cpuminer/pkg-descr b/net-p2p/cpuminer/pkg-descr new file mode 100644 index 000000000000..dd4325255d29 --- /dev/null +++ b/net-p2p/cpuminer/pkg-descr @@ -0,0 +1,4 @@ +cpuminer is a simple daemon that performs Bitcoin or Litecoin +pooled or solo mining. + +WWW: http://sourceforge.net/projects/cpuminer/ diff --git a/net-p2p/cpuminer/pkg-plist b/net-p2p/cpuminer/pkg-plist new file mode 100644 index 000000000000..cb0a605550d2 --- /dev/null +++ b/net-p2p/cpuminer/pkg-plist @@ -0,0 +1 @@ +bin/minerd