View | Details | Raw Unified | Return to bug 225239 | Differences between
and this patch

Collapse All | Expand All

(-)UIDs (-1 / +1 lines)
Lines 728-734 Link Here
728
bitcoin:*:779:779::0:0:bitcoin Daemon:/var/db/bitcoin:/usr/sbin/nologin
728
bitcoin:*:779:779::0:0:bitcoin Daemon:/var/db/bitcoin:/usr/sbin/nologin
729
zetacoin:*:780:780::0:0:ZetaCoin Daemon:/nonexistent:/usr/sbin/nologin
729
zetacoin:*:780:780::0:0:ZetaCoin Daemon:/nonexistent:/usr/sbin/nologin
730
monero:*:781:781::0:0:Monero Daemon:/var/db/monero:/usr/sbin/nologin
730
monero:*:781:781::0:0:Monero Daemon:/var/db/monero:/usr/sbin/nologin
731
# free: 782
731
bitcoingold:*:782:782::0:0:bitcoingold Daemon:/var/db/bitcoingold:/usr/sbin/nologin
732
# free: 783
732
# free: 783
733
# free: 784
733
# free: 784
734
# free: 785
734
# free: 785
(-)GIDs (-1 / +1 lines)
Lines 722-728 Link Here
722
bitcoin:*:779:
722
bitcoin:*:779:
723
zetacoin:*:780:
723
zetacoin:*:780:
724
monero:*:781:
724
monero:*:781:
725
# free: 782
725
bitcoingold:*:782:
726
# free: 783
726
# free: 783
727
# free: 784
727
# free: 784
728
# free: 785
728
# free: 785
(-)net-p2p/Makefile (+3 lines)
Lines 8-13 Link Here
8
    SUBDIR += bitcoin
8
    SUBDIR += bitcoin
9
    SUBDIR += bitcoin-daemon
9
    SUBDIR += bitcoin-daemon
10
    SUBDIR += bitcoin-utils
10
    SUBDIR += bitcoin-utils
11
    SUBDIR += bitcoingold
12
    SUBDIR += bitcoingold-daemon
13
    SUBDIR += bitcoingold-utils
11
    SUBDIR += bitflu
14
    SUBDIR += bitflu
12
    SUBDIR += bitmessage
15
    SUBDIR += bitmessage
13
    SUBDIR += bnbt
16
    SUBDIR += bnbt
(-)net-p2p/bitcoingold/Makefile (+126 lines)
Line 0 Link Here
1
# Created by: Shaun Amott <shaun@FreeBSD.org>
2
# $FreeBSD$
3
4
PORTNAME=	bitcoingold
5
PORTVERSION=	0.15.0.2
6
DISTVERSIONPREFIX=	v
7
CATEGORIES=	net-p2p finance
8
9
MAINTAINER=	milios@ccsys.com
10
COMMENT?=	Virtual Peer-to-Peer Currency Client (QT)
11
12
LICENSE=	MIT
13
14
BROKEN_powerpc64=	fails to compile: util.cpp: undefined reference to boost::program_options::to_internal
15
16
LIB_DEPENDS=	libboost_date_time.so:devel/boost-libs \
17
		libsodium.so:security/libsodium \
18
		libevent.so:devel/libevent
19
20
USES=		autoreconf compiler:c++11-lib gmake libtool pkgconfig shebangfix ssl
21
USE_GITHUB=	yes
22
GNU_CONFIGURE=	yes
23
24
SLAVE_PORT?=	no
25
26
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no"
27
USES+=		desktop-file-utils
28
USE_QT5=	core gui network widgets \
29
		buildtools_build linguisttools_build qmake_build
30
31
BUILD_DEPENDS+=	protoc:devel/protobuf
32
LIB_DEPENDS+=	libprotobuf.so:devel/protobuf
33
34
TESTS_USE=		QT5=testlib
35
TESTS_PLIST_FILES=	bin/test_bitcoingold-qt \
36
			bin/test_bitcoingold
37
.endif
38
39
OPTIONS_DEFINE?=	DBUS DEBUG HARDENING QRCODES TESTS UPNP WALLET ZMQ
40
OPTIONS_DEFAULT?=	DBUS HARDENING QRCODES UPNP WALLET
41
OPTIONS_SUB=		yes
42
43
HARDENING_DESC=	Attempt to harden binaries (PIE for ASLR, NX Stack)
44
QRCODES_DESC=	Display QR Codes
45
TESTS_DESC=	Build test binary and unit tests
46
WALLET_DESC=	Wallet Management Support
47
ZMQ_DESC=	Block and transaction broadcasting with ZeroMQ
48
49
DBUS_CONFIGURE_WITH=	dbus
50
DBUS_USE=		QT5=dbus
51
52
DEBUG_CONFIGURE_ENABLE=		debug
53
DEBUG_INSTALL_TARGET_OFF=	install-strip
54
55
HARDENING_CONFIGURE_ENABLE=	hardening
56
57
TESTS_CONFIGURE_ENABLE=	tests bench
58
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "yes"
59
TESTS_PLIST_FILES=	bin/test_bitcoingold
60
.endif
61
TESTS_PLIST_FILES+=	bin/bench_bitcoingold
62
63
UPNP_CONFIGURE_WITH=	miniupnpc
64
UPNP_LIB_DEPENDS=	libminiupnpc.so:net/miniupnpc
65
UPNP_CPPFLAGS=		-I${LOCALBASE}/include
66
UPNP_LIBS=		-L${LOCALBASE}/lib
67
68
QRCODES_CONFIGURE_WITH=	qrencode
69
QRCODES_LIB_DEPENDS=	libqrencode.so:graphics/libqrencode
70
71
WALLET_CONFIGURE_ENABLE=	wallet
72
WALLET_CXXFLAGS=		-I${BDB_INCLUDE_DIR}
73
WALLET_LIBS=			-L${BDB_LIB_DIR}
74
WALLET_USES=			bdb:48
75
76
ZMQ_CONFIGURE_ENABLE=	zmq
77
ZMQ_BUILD_DEPENDS=	libzmq4>0:net/libzmq4
78
ZMQ_RUN_DEPENDS=	libzmq4>0:net/libzmq4
79
80
GH_ACCOUNT=	BTCGPU
81
GH_PROJECT=	BTCGPU
82
83
CPPFLAGS+=	-I${LOCALBASE}/include
84
85
CONFIGURE_ARGS?=	--without-libs \
86
			--with-gui=qt5 \
87
			--without-daemon \
88
			--without-utils
89
90
CONFIGURE_ENV=	LIBS="-L${LOCALBASE}/lib -lsodium" \
91
		CRYPTO_CFLAGS="-I${OPENSSLINC}" CRYPTO_LIBS="-L${OPENSSLLIB} -lcrypto" \
92
		SSL_CFLAGS="-I${OPENSSLINC}" SSL_LIBS="-L${OPENSSLLIB} -lssl" \
93
		OBJCXX="${CXX}" OBJCXXFLAGS="${CXXFLAGS}"
94
MAKE_ENV+=	V=1
95
96
PLIST_FILES?=	bin/bitcoingold-qt man/man1/bitcoingold-qt.1.gz \
97
		share/applications/bitcoingold-qt.desktop share/pixmaps/bitcoingold128.png
98
99
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no"
100
101
post-install:
102
	${REINPLACE_CMD} -e 's,=/usr,=${PREFIX},;s/Exec=bitcoin-qt/Exec=bitcoingold-qt/;s/Icon=bitcoin128/Icon=bitcoingold128/' \
103
		${WRKSRC}/contrib/debian/bitcoin-qt.desktop
104
	${MV} ${STAGEDIR}${PREFIX}/bin/bitcoin-qt ${STAGEDIR}${PREFIX}/bin/bitcoingold-qt
105
	${MV} ${STAGEDIR}${PREFIX}/man/man1/bitcoin-qt.1 ${STAGEDIR}${PREFIX}/man/man1/bitcoingold-qt.1
106
	${INSTALL} ${WRKSRC}/contrib/debian/bitcoin-qt.desktop \
107
		${STAGEDIR}${PREFIX}/share/applications/bitcoingold-qt.desktop
108
	${INSTALL} ${WRKSRC}/share/pixmaps/bitcoin128.png \
109
		${STAGEDIR}${PREFIX}/share/pixmaps/bitcoingold128.png
110
111
.endif
112
113
post-install-TESTS-on:
114
.if defined(SLAVE_PORT) && ${SLAVE_PORT} == "no"
115
	${MV} ${STAGEDIR}${PREFIX}/bin/test_bitcoin-qt ${STAGEDIR}${PREFIX}/bin/test_bitcoingold-qt
116
.endif
117
	${MV} ${STAGEDIR}${PREFIX}/bin/test_bitcoin ${STAGEDIR}${PREFIX}/bin/test_bitcoingold
118
	${MV} ${STAGEDIR}${PREFIX}/bin/bench_bitcoin ${STAGEDIR}${PREFIX}/bin/bench_bitcoingold
119
120
regression-test: build
121
	# To use this sucessfully, remove --without-daemon and --without-utils
122
	# from CONFIGURE_ARGS above.
123
124
	@cd ${WRKSRC} && ${GMAKE} check
125
126
.include <bsd.port.mk>
(-)net-p2p/bitcoingold/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1515809510
2
SHA256 (BTCGPU-BTCGPU-v0.15.0.2_GH0.tar.gz) = 5f673f2849b1c92424ef87881d76483bdae3da4b7590a8e7eded48557fc3ce16
3
SIZE (BTCGPU-BTCGPU-v0.15.0.2_GH0.tar.gz) = 7179420
(-)net-p2p/bitcoingold/files/bitcoingoldd.in (+174 lines)
Line 0 Link Here
1
#!/bin/sh
2
# $FreeBSD$
3
4
# PROVIDE: bitcoingoldd
5
# REQUIRE: LOGIN cleanvar
6
# KEYWORD: shutdown
7
8
#
9
# Add the following lines to /etc/rc.conf to enable :
10
# bitcoindgold_enable (bool):	Set to "NO" by default.
11
#				Set it to "YES" to enable bitcoind
12
# bitcoingoldd_user (str)	Set to "bitcoingold" by default.
13
# bitcoingoldd_group (str)		Set to "bitcoingold" by default.
14
# bitcoingoldd_conf (str)		Set to "%%PREFIX%%/etc/bitcoingoldd.conf" by default.
15
# bitcoingoldd_data_dir (str)	Set to "/var/db/bitcoingold" by default.
16
# bitcoingolddlimits_enable (bool)	Set to "NO" by default.
17
#					Set it to "YES" to enable bitcoindlimits
18
# bitcoingolddlimits_args		Set to "-e -U ${bitcoingoldd_user}" by default
19
20
21
. /etc/rc.subr
22
23
name="bitcoingoldd"
24
rcvar=bitcoingoldd_enable
25
26
start_precmd="bitcoingoldd_precmd"
27
start_cmd="bitcoingoldd_start"
28
restart_precmd="bitcoingoldd_checkconfig"
29
reload_precmd="bitcoingoldd_checkconfig"
30
configtest_cmd="bitcoingoldd_checkconfig"
31
status_cmd="bitcoingoldd_status"
32
stop_cmd="bitcoingoldd_stop"
33
stop_postcmd="bitcoingoldd_wait"
34
command="%%PREFIX%%/bin/bitcoingoldd"
35
daemon_command="/usr/sbin/daemon"
36
#pidfile="/var/run/${name}.pid"
37
extra_commands="configtest"
38
39
40
: ${bitcoingoldd_enable:="NO"}
41
: ${bitcoingolddlimits_enable:="NO"}
42
43
load_rc_config ${name}
44
45
: ${bitcoingoldd_user:="bitcoingold"}
46
: ${bitcoingoldd_group:="bitcoingold"}
47
: ${bitcoingoldd_data_dir:="/var/db/bitcoingold"}
48
: ${bitcoingoldd_config_file:="%%PREFIX%%/etc/bitcoingold.conf"}
49
: ${bitcoingolddlimits_args:="-e -U ${bitcoingoldd_user}"}
50
51
# set up dependant variables
52
procname="${command}"
53
pidfile="${bitcoingoldd_data_dir}/bitcoingoldd.pid"
54
required_files="${bitcoingoldd_config_file}"
55
56
57
bitcoingoldd_checkconfig()
58
{
59
  echo "Performing sanity check on bitcoingoldd configuration:"
60
  if [ ! -d "${bitcoingoldd_data_dir}" ]
61
  then
62
    echo "Missing data directory: ${bitcoingoldd_data_dir}"
63
    exit 1
64
  fi
65
  chown -R "${bitcoingoldd_user}:${bitcoingoldd_group}" "${bitcoingoldd_data_dir}"
66
67
  if [ ! -f "${bitcoingoldd_config_file}" ]
68
  then
69
    echo "Missing configuration file: ${bitcoingoldd_config_file}"
70
    exit 1
71
  fi
72
  if [ ! -x "${command}" ]
73
  then
74
    echo "Missing executable: ${command}"
75
    exit 1
76
  fi
77
  return 0
78
}
79
80
bitcoingoldd_cleanup()
81
{
82
  rm -f "${pidfile}"
83
}
84
85
bitcoingoldd_precmd()
86
{
87
  bitcoingoldd_checkconfig
88
89
  pid=$(check_pidfile "${pidfile}" "${procname}")
90
  if [ -z "${pid}" ]
91
  then
92
    echo "Bitcoingoldd is not running"
93
    rm -f "${pidfile}"
94
  fi
95
96
  if checkyesno bitcoingolddlimits_enable
97
  then
98
    eval $(/usr/bin/limits ${bitcoingolddlimits_args}) 2>/dev/null
99
  else
100
    return 0
101
  fi
102
}
103
104
bitcoingoldd_status()
105
{
106
  local pid
107
  pid=$(check_pidfile "${pidfile}" "${procname}")
108
  if [ -z "${pid}" ]
109
  then
110
    echo "Bitcoingoldd is not running"
111
    return 1
112
  else
113
    echo "Bitcoingoldd running, pid: ${pid}"
114
  fi
115
}
116
117
bitcoingoldd_start()
118
{
119
  echo "Starting bitcoingoldd:"
120
  cd "${bitcoingoldd_data_dir}" || return 1
121
  ${daemon_command} -u "${bitcoingoldd_user}" -p "${pidfile}" \
122
    ${command} \
123
    -conf="${bitcoingoldd_config_file}" \
124
    -datadir="${bitcoingoldd_data_dir}" \
125
    2> "${bitcoingoldd_data_dir}/bitcoingoldd.stderr" \
126
    > "${bitcoingoldd_data_dir}/bitcoingoldd.stdout"
127
}
128
129
bitcoingoldd_stop()
130
{
131
  echo "Stopping bitcoingoldd:"
132
  pid=$(check_pidfile "${pidfile}" "${procname}")
133
  if [ -z "${pid}" ]
134
  then
135
    echo "Bitcoingoldd is not running"
136
    return 1
137
  else
138
    kill ${pid}
139
  fi
140
}
141
142
bitcoingoldd_wait()
143
{
144
  local n=60
145
  echo "Waiting for bitcoingoldd shutdown:"
146
  while :
147
  do
148
    printf '.'
149
    pid=$(check_pidfile "${pidfile}" "${procname}")
150
    if [ -z "${pid}" ]
151
    then
152
      printf '\n'
153
      break
154
    fi
155
    sleep 1
156
    n=$((${n} - 1))
157
    if [ ${n} -eq 0 -a -f "${pidfile}" ]
158
    then
159
      printf "\nForce shutdown"
160
      kill -9 $(cat "${pidfile}")
161
      for n in 1 2 3
162
      do
163
        printf '.'
164
        sleep 1
165
      done
166
      printf '\n'
167
      break
168
    fi
169
  done
170
  rm -f "${pidfile}"
171
  echo "Shutdown complete"
172
}
173
174
run_rc_command "$1"
(-)net-p2p/bitcoingold/pkg-descr (+8 lines)
Line 0 Link Here
1
Bitcoin Gold is a fork of the Bitcoin project with a different
2
proof-of-work algorithm which caused a bifurcation of the Bitcoin
3
blockchain. The original Bitcoin blockchain continues on unaltered,
4
but the new fork is a distinct blockchain with the same transaction
5
history as Bitcoin up until the fork (block 491407) where it then
6
diverged from it. As a result a new cryptocurrency was born.
7
8
WWW: https://bitcoingold.org/
(-)net-p2p/bitcoingold-daemon/Makefile (+36 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
MASTERDIR=	${.CURDIR}/../bitcoingold
4
PKGNAMESUFFIX=	-daemon
5
6
COMMENT=	Virtual Peer-to-Peer Currency (Daemon)
7
8
SLAVE_PORT=	yes
9
10
NOT_FOR_ARCHS=		powerpc powerpc64 sparc64
11
NOT_FOR_ARCHS_REASON=	does not support big-endian architectures
12
13
OPTIONS_DEFINE=		DEBUG HARDENING TESTS UPNP WALLET ZMQ
14
OPTIONS_DEFAULT=	HARDENING UPNP WALLET
15
16
USERS=		bitcoingold
17
GROUPS=		bitcoingold
18
19
CONFIGURE_ARGS=	--with-daemon \
20
		--without-gui \
21
		--without-libs \
22
		--without-qrencode \
23
		--without-utils
24
25
PLIST_FILES=	bin/bitcoingoldd \
26
		man/man1/bitcoingoldd.1.gz \
27
		etc/bitcoingold.conf.sample
28
29
USE_RC_SUBR=	bitcoingoldd
30
31
post-install:
32
	${INSTALL_DATA} ${WRKSRC}/contrib/debian/examples/bitcoingold.conf ${STAGEDIR}${PREFIX}/etc/bitcoingold.conf.sample
33
	${MV} ${STAGEDIR}${PREFIX}/bin/bgoldd ${STAGEDIR}${PREFIX}/bin/bitcoingoldd
34
	${MV} ${STAGEDIR}${PREFIX}/man/man1/bitcoind.1 ${STAGEDIR}${PREFIX}/man/man1/bitcoingoldd.1
35
36
.include "${MASTERDIR}/Makefile"
(-)net-p2p/bitcoingold-utils/Makefile (+32 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
MASTERDIR=	${.CURDIR}/../bitcoingold
4
PKGNAMESUFFIX=	-utils
5
6
COMMENT=	Virtual Peer-to-Peer Currency (CLI and Utilities)
7
SLAVE_PORT=	yes
8
9
NOT_FOR_ARCHS=		powerpc powerpc64 sparc64
10
NOT_FOR_ARCHS_REASON=	does not support big-endian architectures
11
12
OPTIONS_DEFINE=		DEBUG HARDENING TESTS
13
OPTIONS_DEFAULT=	HARDENING TESTS
14
15
CONFIGURE_ARGS=	--without-daemon \
16
		--without-gui \
17
		--without-libs \
18
		--without-qrencode \
19
		--without-miniupnpc \
20
		--with-utils \
21
		--disable-wallet
22
23
PLIST_FILES=	bin/bitcoingold-cli bin/bitcoingold-tx \
24
		man/man1/bitcoingold-cli.1.gz man/man1/bitcoingold-tx.1.gz
25
26
post-install:
27
	${MV} ${STAGEDIR}${PREFIX}/bin/bgold-cli ${STAGEDIR}${PREFIX}/bin/bitcoingold-cli
28
	${MV} ${STAGEDIR}${PREFIX}/man/man1/bitcoin-cli.1 ${STAGEDIR}${PREFIX}/man/man1/bitcoingold-cli.1
29
	${MV} ${STAGEDIR}${PREFIX}/bin/bitcoin-tx ${STAGEDIR}${PREFIX}/bin/bitcoingold-tx
30
	${MV} ${STAGEDIR}${PREFIX}/man/man1/bitcoin-tx.1 ${STAGEDIR}${PREFIX}/man/man1/bitcoingold-tx.1
31
32
.include "${MASTERDIR}/Makefile"

Return to bug 225239