pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/finance/bitcoin bitcoin: actually ship the RC script f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c7f765ef47a6
branches:  trunk
changeset: 457586:c7f765ef47a6
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Sun Aug 29 22:38:58 2021 +0000

description:
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:

 finance/bitcoin/Makefile          |   6 ++++--
 finance/bitcoin/files/bitcoind.sh |  13 +++++++------
 2 files changed, 11 insertions(+), 8 deletions(-)

diffs (55 lines):

diff -r c134dd2e6564 -r c7f765ef47a6 finance/bitcoin/Makefile
--- a/finance/bitcoin/Makefile  Sun Aug 29 21:04:55 2021 +0000
+++ b/finance/bitcoin/Makefile  Sun Aug 29 22:38:58 2021 +0000
@@ -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 @@
 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 -r c134dd2e6564 -r c7f765ef47a6 finance/bitcoin/files/bitcoind.sh
--- a/finance/bitcoin/files/bitcoind.sh Sun Aug 29 21:04:55 2021 +0000
+++ b/finance/bitcoin/files/bitcoind.sh Sun Aug 29 22:38:58 2021 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index