From d9e1ed70f3e512a6ad42e4060549b9247f711041 Mon Sep 17 00:00:00 2001 From: bentley Date: Mon, 10 Sep 2018 11:11:29 +0000 Subject: [PATCH] Give the _bitcoind user the correct home directory. Previous versions of the package give _bitcoind a nonexistent home directory, causing errors when using the rc script in certain situations. This can't be fixed by updating the package alone. N.B.: if you've EVER installed bitcoin, wait for the package mirrors to update with bitcoin-0.16.2p1, and then run the following: # pkg_delete bitcoin # userdel _bitcoind After doing so, you can safely re-add the package. noticed by tb@ --- net/bitcoin/Makefile | 4 ++-- net/bitcoin/pkg/PLIST | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net/bitcoin/Makefile b/net/bitcoin/Makefile index 38a73f1c07f..e75fe98b41c 100644 --- a/net/bitcoin/Makefile +++ b/net/bitcoin/Makefile @@ -1,11 +1,11 @@ -# $OpenBSD: Makefile,v 1.4 2018/09/04 12:46:16 espie Exp $ +# $OpenBSD: Makefile,v 1.5 2018/09/10 11:11:29 bentley Exp $ COMMENT = P2P payment system GH_ACCOUNT = bitcoin GH_PROJECT = bitcoin GH_TAGNAME = v0.16.2 -REVISION = 0 +REVISION = 1 SHARED_LIBS += bitcoinconsensus 0.0 # 0.0 SHARED_LIBS += secp256k1 0.0 # 0.0 diff --git a/net/bitcoin/pkg/PLIST b/net/bitcoin/pkg/PLIST index 03bf4069972..3b53e500e82 100644 --- a/net/bitcoin/pkg/PLIST +++ b/net/bitcoin/pkg/PLIST @@ -1,6 +1,6 @@ -@comment $OpenBSD: PLIST,v 1.2 2018/09/04 12:46:16 espie Exp $ +@comment $OpenBSD: PLIST,v 1.3 2018/09/10 11:11:29 bentley Exp $ @newgroup _bitcoind:813 -@newuser _bitcoind:813:813:daemon:Bitcoind Account:${VARBASE}/empty:/sbin/nologin +@newuser _bitcoind:813:813:daemon:Bitcoind Account:/var/empty:/sbin/nologin @rcscript ${RCDIR}/bitcoind @mode 750 @owner _bitcoind