summaryrefslogtreecommitdiff
path: root/finance
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2021-08-29 22:38:58 +0000
committerkhorben <khorben@pkgsrc.org>2021-08-29 22:38:58 +0000
commit97c1d59293ef6a7de6506cb6acd5c1e90b85e10a (patch)
treeb7f59df5741408174364afbaf30e5ff26937bff0 /finance
parentc36e767e97ebd2e6822350e67a0678ebd4db646c (diff)
downloadpkgsrc-97c1d59293ef6a7de6506cb6acd5c1e90b85e10a.tar.gz
bitcoin: actually ship the RC script for bitcoind
While there, take advantage of the introduction of the SYSCONFBASE variable. Tested on NetBSD/amd64. Bumps PKGREVISION.
Diffstat (limited to 'finance')
-rw-r--r--finance/bitcoin/Makefile6
-rw-r--r--finance/bitcoin/files/bitcoind.sh13
2 files changed, 11 insertions, 8 deletions
diff --git a/finance/bitcoin/Makefile b/finance/bitcoin/Makefile
index feff4d7bb6a..0e046cbfba0 100644
--- a/finance/bitcoin/Makefile
+++ b/finance/bitcoin/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.38 2021/07/30 12:26:49 ryoon Exp $
+# $NetBSD: Makefile,v 1.39 2021/08/29 22:38:58 khorben Exp $
DISTNAME= bitcoin-0.21.1
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= finance
MASTER_SITES= https://bitcoincore.org/bin/bitcoin-core-${PKGVERSION_NOREV}/
@@ -10,6 +10,8 @@ HOMEPAGE= https://github.com/bitcoin/bitcoin
COMMENT= P2P electronic cash system
LICENSE= mit
+RCD_SCRIPTS= bitcoind
+
# bitcoin-core requires c++11 (but does not need manual -std=c++11).
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
diff --git a/finance/bitcoin/files/bitcoind.sh b/finance/bitcoin/files/bitcoind.sh
index 708234ac97c..c42cc667a73 100644
--- a/finance/bitcoin/files/bitcoind.sh
+++ b/finance/bitcoin/files/bitcoind.sh
@@ -1,14 +1,15 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: bitcoind.sh,v 1.1 2018/07/08 11:13:46 khorben Exp $
+# $NetBSD: bitcoind.sh,v 1.2 2021/08/29 22:38:58 khorben Exp $
+#
+# Startup script for bitcoind
#
-
# PROVIDE: bitcoind
-# REQUIRE: DAEMON LOGIN wscons
+# REQUIRE: DAEMON
# KEYWORD: shutdown
-if [ -f /etc/rc.subr ]; then
- . /etc/rc.subr
+if [ -f @SYSCONFBASE@/rc.subr ]; then
+ . @SYSCONFBASE@/rc.subr
fi
name="bitcoind"
@@ -18,7 +19,7 @@ pidfile="@VARBASE@/run/bitcoind.pid"
required_directory="@VARBASE@/bitcoin"
command_args="-daemon -conf=@PREFIX@/etc/bitcoin.conf -pid=${pidfile} -datadir=${required_directory}"
-if [ -f /etc/rc.subr ]; then
+if [ -f @SYSCONFBASE@/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else