aboutsummaryrefslogtreecommitdiff
path: root/net-p2p
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2013-11-03 21:21:01 +0000
committerMartin Matuska <mm@FreeBSD.org>2013-11-03 21:21:01 +0000
commit947e7d09cc995f9396d63bc7a367beda7406fc3f (patch)
treebc8eb388fd2503f64b2e526f646d7bb942652900 /net-p2p
parentb5da36bb9339862704702a7e28ed10384d90d3f2 (diff)
downloadports-947e7d09cc995f9396d63bc7a367beda7406fc3f.tar.gz
ports-947e7d09cc995f9396d63bc7a367beda7406fc3f.zip
Notes
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/Makefile1
-rw-r--r--net-p2p/cpuminer/Makefile41
-rw-r--r--net-p2p/cpuminer/distinfo2
-rw-r--r--net-p2p/cpuminer/pkg-descr4
-rw-r--r--net-p2p/cpuminer/pkg-plist1
5 files changed, 49 insertions, 0 deletions
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 <mm@FreeBSD.org>
+# $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 <bsd.port.options.mk>
+
+.include <bsd.port.pre.mk>
+
+.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 <bsd.port.post.mk>
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