pkgsrc-WIP-changes archive

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

Add an RC script for minerd



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Wed Sep 20 19:30:53 2017 +0200
Changeset:	cee51a30a75b8d35b35bfe332f26a8e2e5ef6572

Modified Files:
	cpuminer/Makefile
Added Files:
	cpuminer/files/minerd.sh

Log Message:
Add an RC script for minerd

The miner is still unable to start from this alone; it needs either a
URL to be supplied in the flags, or a configuration file to be set.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cee51a30a75b8d35b35bfe332f26a8e2e5ef6572

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 cpuminer/Makefile        |  2 ++
 cpuminer/files/minerd.sh | 17 +++++++++++++++++
 2 files changed, 19 insertions(+)

diffs:
diff --git a/cpuminer/Makefile b/cpuminer/Makefile
index e944e98ba7..b656005496 100644
--- a/cpuminer/Makefile
+++ b/cpuminer/Makefile
@@ -15,5 +15,7 @@ GITHUB_TAG=	v${PKGVERSION_NOREV}
 
 GNU_CONFIGURE=	yes
 
+RCD_SCRIPTS=	minerd
+
 .include "../../www/curl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/cpuminer/files/minerd.sh b/cpuminer/files/minerd.sh
new file mode 100644
index 0000000000..43588d0baa
--- /dev/null
+++ b/cpuminer/files/minerd.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $NetBSD$
+#
+
+# PROVIDE: minerd
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="minerd"
+rcvar=$name
+command="/usr/pkg/bin/${name}"
+minerd_flags="-B"
+
+load_rc_config $name
+run_rc_command "$1"


Home | Main Index | Thread Index | Old Index