View | Details | Raw Unified | Return to bug 215059
Collapse All | Expand All

(-)net-p2p/bitcoin/files/bitcoind.in (-4 / +3 lines)
Lines 12-18 Link Here
12
# bitcoind_user (str)		Set to "bitcoin" by default.
12
# bitcoind_user (str)		Set to "bitcoin" by default.
13
# bitcoind_group (str)		Set to "bitcoin" by default.
13
# bitcoind_group (str)		Set to "bitcoin" by default.
14
# bitcoind_conf (str)		Set to "%%PREFIX%%/etc/bitcoind.conf" by default.
14
# bitcoind_conf (str)		Set to "%%PREFIX%%/etc/bitcoind.conf" by default.
15
# bitcoind_data (str)		Set to "/var/lib/bitcoind" by default.
15
# bitcoind_data (str)		Set to "/var/lib/bitcoin" by default.
16
# bitcoindlimits_enable (bool)	Set to "NO" by default.
16
# bitcoindlimits_enable (bool)	Set to "NO" by default.
17
#				Set it to "YES" to enable bitcoindlimits
17
#				Set it to "YES" to enable bitcoindlimits
18
# bitcoindlimits_args		Set to "-e -U ${bitcoind_user}" by default
18
# bitcoindlimits_args		Set to "-e -U ${bitcoind_user}" by default
Lines 32-38 Link Here
32
stop_cmd="bitcoind_stop"
32
stop_cmd="bitcoind_stop"
33
stop_postcmd="bitcoind_wait"
33
stop_postcmd="bitcoind_wait"
34
command="%%PREFIX%%/bin/bitcoind"
34
command="%%PREFIX%%/bin/bitcoind"
35
cli_command="%%PREFIX%%/bin/bitcoin-cli"
36
daemon_command="/usr/sbin/daemon"
35
daemon_command="/usr/sbin/daemon"
37
#pidfile="/var/run/${name}.pid"
36
#pidfile="/var/run/${name}.pid"
38
extra_commands="configtest"
37
extra_commands="configtest"
Lines 45-51 Link Here
45
44
46
: ${bitcoind_user:="bitcoin"}
45
: ${bitcoind_user:="bitcoin"}
47
: ${bitcoind_group:="bitcoin"}
46
: ${bitcoind_group:="bitcoin"}
48
: ${bitcoind_data_dir:="/var/db/bitcoind"}
47
: ${bitcoind_data_dir:="/var/db/bitcoin"}
49
: ${bitcoind_config_file:="%%PREFIX%%/etc/bitcoin.conf"}
48
: ${bitcoind_config_file:="%%PREFIX%%/etc/bitcoin.conf"}
50
: ${bitcoindlimits_args:="-e -U ${bitcoind_user}"}
49
: ${bitcoindlimits_args:="-e -U ${bitcoind_user}"}
51
50
Lines 134-140 Link Here
134
    echo "Bitcoind is not running"
133
    echo "Bitcoind is not running"
135
    return 1
134
    return 1
136
  else
135
  else
137
    ${cli_command} -conf="${bitcoind_config_file}" -datadir="${bitcoind_data_dir}" stop
136
    kill ${pid}
138
  fi
137
  fi
139
}
138
}
140
139
(-)net-p2p/bitcoin-daemon/Makefile (+7 lines)
Lines 14-19 Link Here
14
OPTIONS_DEFINE=		DEBUG HARDENING TESTS UPNP WALLET ZMQ
14
OPTIONS_DEFINE=		DEBUG HARDENING TESTS UPNP WALLET ZMQ
15
OPTIONS_DEFAULT=	HARDENING UPNP WALLET
15
OPTIONS_DEFAULT=	HARDENING UPNP WALLET
16
16
17
USERS=		bitcoin
18
GROUPS=		bitcoin
19
17
CONFIGURE_ARGS=	--with-daemon \
20
CONFIGURE_ARGS=	--with-daemon \
18
		--without-gui \
21
		--without-gui \
19
		--without-libs \
22
		--without-libs \
Lines 21-27 Link Here
21
		--without-utils
24
		--without-utils
22
25
23
PLIST_FILES=	bin/bitcoind
26
PLIST_FILES=	bin/bitcoind
27
PLIST_FILES+=	"@sample etc/bitcoin.conf.sample"
24
28
25
USE_RC_SUBR=	bitcoind
29
USE_RC_SUBR=	bitcoind
26
30
31
post-install:
32
	${INSTALL_DATA} ${WRKSRC}/contrib/debian/examples/bitcoin.conf ${STAGEDIR}${PREFIX}/etc/bitcoin.conf.sample
33
27
.include "${MASTERDIR}/Makefile"
34
.include "${MASTERDIR}/Makefile"

Return to bug 215059