Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FL-488: new pooler-cpuminer-2.3.2 from flora with initscript. Thanks …

…to Russell York.
  • Loading branch information...
commit a1457cf1c1f93462922cd0d32fd945d7766fc55e 1 parent 5cb2837
@danielrobbins danielrobbins authored
View
1  net-misc/pooler-cpuminer/Manifest
@@ -0,0 +1 @@
+DIST pooler-cpuminer-2.2.3.tar.gz 212346 SHA256 93460fbb5b368cbf8b2f90bc915a78ced37fed8a39dd1ee2e3983101bd1fdc1f SHA512 49b736e94a1900ed4519db8178d78dd1b58d496f6470ecc8f5fa6ccbd476f0cc70351355a53118172aa92e7dd0270720ce80707ec2e6f0005ddf2d147d29eaff WHIRLPOOL 93255acdc9a296d9a344e52623837b1b37da9149054d40c3cc0ed8d280c5fbd18324901a41e47b3da156711f3eb195f796cad5e5310840df25f53fd296a14208
View
13 net-misc/pooler-cpuminer/files/minerd.confd
@@ -0,0 +1,13 @@
+# Config file for /etc/init.d/minerd
+
+# owner of minerd process
+MINERD_USER="root"
+
+MINERD_USERPASS="funtoo.public:p"
+MINERD_URL="http://ltc.kattare.com:9332/"
+
+MINERD_OPTS="${MINERD_OPTS} --syslog --algo scrypt -s 45 --retry-pause 5 --url ${MINERD_URL} --userpass ${MINERD_USERPASS}"
+
+# nice level
+NICELEVEL="19"
+
View
32 net-misc/pooler-cpuminer/files/minerd.initd
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting Miner daemon"
+ start-stop-daemon \
+ --start --user "${MINERD_USER}" --name minerd \
+ --pidfile /var/run/minerd.pid --make-pidfile \
+ --env HOME="${VARDIR}" --exec /usr/bin/minerd \
+ --nicelevel "${NICELEVEL}" \
+ --background \
+ --wait 2000 \
+ -- ${MINERD_OPTS}
+ eend $?
+
+}
+
+stop() {
+ ebegin "Stopping Miner daemon"
+ start-stop-daemon --stop --user "${MINERD_USER}" \
+ --name minerd --pidfile /var/run/minerd.pid \
+ --wait 30000 \
+ --progress
+ eend $?
+}
+
View
9 net-misc/pooler-cpuminer/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>funtoo</herd>
+ <maintainer>
+ <email>jeanfrancis@funtoo.org</email>
+ <name>Jean-Francis Roy</name>
+ </maintainer>
+</pkgmetadata>
View
25 net-misc/pooler-cpuminer/pooler-cpuminer-2.3.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 2008-2012 Funtoo Technologies
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="Pooler's multi-threaded CPU miner for Litecoin and Bitcoin, fork of Jeff Garzik's reference cpuminer"
+HOMEPAGE="https://github.com/pooler/cpuminer/"
+SRC_URI="https://sourceforge.net/projects/cpuminer/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="*"
+IUSE=""
+
+DEPEND="net-misc/curl"
+RDEPEND="${DEPEND}"
+
+MY_P="cpuminer-${PV}"
+S=${WORKDIR}/${MY_P}
+
+src_install() {
+ make DESTDIR="${D}" install
+ newconfd ${FILESDIR}/minerd.confd minerd
+ newinitd ${FILESDIR}/minerd.initd minerd
+}
Please sign in to comment.
Something went wrong with that request. Please try again.