pkgsrc-WIP-changes archive

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

namecoin: also ship an RC script



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Wed Jun 16 02:09:41 2021 +0200
Changeset:	51a51ea46e1fcf16116a09a9d76c0591d6a793a4

Modified Files:
	namecoin/Makefile
Added Files:
	namecoin/files/namecoind.sh
Removed Files:
	namecoin/files/bitcoind.sh

Log Message:
namecoin: also ship an RC script

While there, register the current conflict with finance/bitcoin.

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

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

diffstat:
 namecoin/Makefile           |  5 +++++
 namecoin/files/bitcoind.sh  | 27 ---------------------------
 namecoin/files/namecoind.sh | 27 +++++++++++++++++++++++++++
 3 files changed, 32 insertions(+), 27 deletions(-)

diffs:
diff --git a/namecoin/Makefile b/namecoin/Makefile
index 145d187bf5..551d677350 100644
--- a/namecoin/Makefile
+++ b/namecoin/Makefile
@@ -2,6 +2,7 @@
 
 DISTNAME=	namecoin-nc0.21.0.1
 PKGNAME=	namecoin-0.21.0.1
+PKGREVISION=	1
 CATEGORIES=	finance
 MASTER_SITES=	https://www.namecoin.org/files/namecoin-core/namecoin-core-${PKGVERSION_NOREV}/
 
@@ -10,6 +11,10 @@ HOMEPAGE=	https://github.com/namecoin/namecoin-core
 COMMENT=	Implementation of Namecoin on top of the Bitcoin Core codebase
 LICENSE=	mit
 
+CONFLICTS+=	bitcoin-[0-9]*
+
+RCD_SCRIPTS=	namecoind
+
 # namecoin-core requires c++11 (but does not need manual -std=c++11).
 USE_LANGUAGES=		c c++
 USE_LIBTOOL=		yes
diff --git a/namecoin/files/bitcoind.sh b/namecoin/files/bitcoind.sh
deleted file mode 100644
index 04b2b04b3e..0000000000
--- a/namecoin/files/bitcoind.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# $NetBSD: bitcoind.sh,v 1.1 2018/07/08 11:13:46 khorben Exp $
-#
-
-# PROVIDE: bitcoind
-# REQUIRE: DAEMON LOGIN wscons
-# KEYWORD: shutdown
-
-if [ -f @SYSCONFBASE@/rc.subr ]; then
-	. @SYSCONFBASE@/rc.subr
-fi
-
-name="bitcoind"
-rcvar=$name
-command="@PREFIX@/bin/bitcoind"
-pidfile="@VARBASE@/run/bitcoind.pid"
-required_directory="@VARBASE@/bitcoin"
-command_args="-daemon -conf=@PREFIX@/etc/bitcoin.conf -pid=${pidfile} -datadir=${required_directory}"
-
-if [ -f @SYSCONFBASE@/rc.subr ]; then
-	load_rc_config $name
-	run_rc_command "$1"
-else
-	echo -n " ${name}"
-	${command} ${bitcoin_flags} ${command_args}
-fi
diff --git a/namecoin/files/namecoind.sh b/namecoin/files/namecoind.sh
new file mode 100644
index 0000000000..cb604d64b1
--- /dev/null
+++ b/namecoin/files/namecoind.sh
@@ -0,0 +1,27 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD$
+#
+
+# PROVIDE: namecoind
+# REQUIRE: DAEMON LOGIN wscons
+# KEYWORD: shutdown
+
+if [ -f @SYSCONFBASE@/rc.subr ]; then
+	. @SYSCONFBASE@/rc.subr
+fi
+
+name="namecoind"
+rcvar=$name
+command="@PREFIX@/bin/namecoind"
+pidfile="@VARBASE@/run/namecoind.pid"
+required_directory="@VARBASE@/namecoin"
+command_args="-daemon -conf=@PREFIX@/etc/namecoin.conf -pid=${pidfile} -datadir=${required_directory}"
+
+if [ -f @SYSCONFBASE@/rc.subr ]; then
+	load_rc_config $name
+	run_rc_command "$1"
+else
+	echo -n " ${name}"
+	${command} ${namecoin_flags} ${command_args}
+fi


Home | Main Index | Thread Index | Old Index