ports/net-p2p/bitcoin-daemon/Makefile
Li-Wen Hsu 67ff391152 - net-p2p/bitcoin: fix path error in startup script files/bitcoin.in also
removes reliance on unnecessary cli script.

- net-p2p/bitcoin-daemon: create the user/group for the daemon to use also
  install a sample configuration file.

With these two patches a "pkg install bitcoin-daemon" followed by "service
start bitcoind" will be sufficient to run as a non-privileged user and
automatically connect to bitcoin live network; using /var/db/bitcoin to store
blockchain data.

PR:		215059
Submitted by:	Christopher Hall <hsw@bitmark.com>
Approved by:	<robbak@robbak.com> (maintainer)
2017-08-01 16:45:32 +00:00

33 lines
693 B
Makefile

# $FreeBSD$
MASTERDIR= ${.CURDIR}/../bitcoin
PORTREVISION= 7
PKGNAMESUFFIX= -daemon
COMMENT= Virtual Peer-to-Peer Currency (Daemon)
SLAVE_PORT= yes
ONLY_FOR_ARCHS= amd64 i386
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 \
--without-qrencode \
--without-utils
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"