pkgsrc-Changes archive

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

CVS commit: pkgsrc/finance/bitcoin



Module Name:    pkgsrc
Committed By:   khorben
Date:           Sun Aug 29 22:38:58 UTC 2021

Modified Files:
        pkgsrc/finance/bitcoin: Makefile
        pkgsrc/finance/bitcoin/files: bitcoind.sh

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 pkgsrc/finance/bitcoin/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/finance/bitcoin/files/bitcoind.sh

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

Modified files:

Index: pkgsrc/finance/bitcoin/Makefile
diff -u pkgsrc/finance/bitcoin/Makefile:1.38 pkgsrc/finance/bitcoin/Makefile:1.39
--- pkgsrc/finance/bitcoin/Makefile:1.38        Fri Jul 30 12:26:49 2021
+++ pkgsrc/finance/bitcoin/Makefile     Sun Aug 29 22:38:58 2021
@@ -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/bit
 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

Index: pkgsrc/finance/bitcoin/files/bitcoind.sh
diff -u pkgsrc/finance/bitcoin/files/bitcoind.sh:1.1 pkgsrc/finance/bitcoin/files/bitcoind.sh:1.2
--- pkgsrc/finance/bitcoin/files/bitcoind.sh:1.1        Sun Jul  8 11:13:46 2018
+++ pkgsrc/finance/bitcoin/files/bitcoind.sh    Sun Aug 29 22:38:58 2021
@@ -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



Home | Main Index | Thread Index | Old Index