aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--UPDATING8
-rw-r--r--net-p2p/bitcoin-daemon/Makefile8
-rw-r--r--net-p2p/bitcoin/Makefile2
-rw-r--r--net-p2p/bitcoin/files/bitcoind.in7
4 files changed, 19 insertions, 6 deletions
diff --git a/UPDATING b/UPDATING
index 648ae2074002..843a73c12221 100644
--- a/UPDATING
+++ b/UPDATING
@@ -6,6 +6,14 @@ You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
20170729:
+ AFFECTS: users of net-p2p/bitcoin
+ AUTHOR: lwhsu@FreeBSD.org
+
+ Bitcoin data directory has been changed from /var/db/bitcoind to
+ /var/db/bitcoin. Users of previous versions may want to migrate data to
+ new location or specify bitcoind_data.
+
+20170729:
AFFECTS: users of mail/mailscanner
AUTHOR: crees@FreeBSD.org
diff --git a/net-p2p/bitcoin-daemon/Makefile b/net-p2p/bitcoin-daemon/Makefile
index 95e32bf0a629..bc08adba22f2 100644
--- a/net-p2p/bitcoin-daemon/Makefile
+++ b/net-p2p/bitcoin-daemon/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
MASTERDIR= ${.CURDIR}/../bitcoin
-PORTREVISION= 6
+PORTREVISION= 7
PKGNAMESUFFIX= -daemon
COMMENT= Virtual Peer-to-Peer Currency (Daemon)
@@ -14,6 +14,9 @@ ONLY_FOR_ARCHS_REASON= does not support big-endian architectures
OPTIONS_DEFINE= DEBUG HARDENING TESTS UPNP WALLET ZMQ
OPTIONS_DEFAULT= HARDENING UPNP WALLET
+USERS= bitcoin
+GROUPS= bitcoin
+
CONFIGURE_ARGS= --with-daemon \
--without-gui \
--without-libs \
@@ -24,4 +27,7 @@ PLIST_FILES= bin/bitcoind
USE_RC_SUBR= bitcoind
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/contrib/debian/examples/bitcoin.conf ${STAGEDIR}${PREFIX}/etc/bitcoin.conf.sample
+
.include "${MASTERDIR}/Makefile"
diff --git a/net-p2p/bitcoin/Makefile b/net-p2p/bitcoin/Makefile
index 3088411d85a3..49a0efe5090c 100644
--- a/net-p2p/bitcoin/Makefile
+++ b/net-p2p/bitcoin/Makefile
@@ -4,7 +4,7 @@
PORTNAME= bitcoin
PORTVERSION= 0.12.1
DISTVERSIONPREFIX= v
-PORTREVISION= 11
+PORTREVISION= 12
CATEGORIES= net-p2p finance
MAINTAINER= robbak@robbak.com
diff --git a/net-p2p/bitcoin/files/bitcoind.in b/net-p2p/bitcoin/files/bitcoind.in
index 45bc454c171d..e620d9dcc4fb 100644
--- a/net-p2p/bitcoin/files/bitcoind.in
+++ b/net-p2p/bitcoin/files/bitcoind.in
@@ -12,7 +12,7 @@
# bitcoind_user (str) Set to "bitcoin" by default.
# bitcoind_group (str) Set to "bitcoin" by default.
# bitcoind_conf (str) Set to "%%PREFIX%%/etc/bitcoind.conf" by default.
-# bitcoind_data (str) Set to "/var/lib/bitcoind" by default.
+# bitcoind_data (str) Set to "/var/lib/bitcoin" by default.
# bitcoindlimits_enable (bool) Set to "NO" by default.
# Set it to "YES" to enable bitcoindlimits
# bitcoindlimits_args Set to "-e -U ${bitcoind_user}" by default
@@ -32,7 +32,6 @@ status_cmd="bitcoind_status"
stop_cmd="bitcoind_stop"
stop_postcmd="bitcoind_wait"
command="%%PREFIX%%/bin/bitcoind"
-cli_command="%%PREFIX%%/bin/bitcoin-cli"
daemon_command="/usr/sbin/daemon"
#pidfile="/var/run/${name}.pid"
extra_commands="configtest"
@@ -45,7 +44,7 @@ load_rc_config ${name}
: ${bitcoind_user:="bitcoin"}
: ${bitcoind_group:="bitcoin"}
-: ${bitcoind_data_dir:="/var/db/bitcoind"}
+: ${bitcoind_data_dir:="/var/db/bitcoin"}
: ${bitcoind_config_file:="%%PREFIX%%/etc/bitcoin.conf"}
: ${bitcoindlimits_args:="-e -U ${bitcoind_user}"}
@@ -134,7 +133,7 @@ bitcoind_stop()
echo "Bitcoind is not running"
return 1
else
- ${cli_command} -conf="${bitcoind_config_file}" -datadir="${bitcoind_data_dir}" stop
+ kill ${pid}
fi
}