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

(-)GIDs (+1 lines)
Lines 202-207 Link Here
202
bnetd:*:700:
202
bnetd:*:700:
203
bopm:*:717:
203
bopm:*:717:
204
openxpki:*:777:
204
openxpki:*:777:
205
zetacoin:*:780:
205
foreman_proxy:*:812:
206
foreman_proxy:*:812:
206
puppet:*:814:
207
puppet:*:814:
207
jenkins:*:818:
208
jenkins:*:818:
(-)UIDs (+1 lines)
Lines 206-211 Link Here
206
bnetd:*:700:700::0:0:Bnetd user:/nonexistent:/usr/sbin/nologin
206
bnetd:*:700:700::0:0:Bnetd user:/nonexistent:/usr/sbin/nologin
207
bopm:*:717:717::0:0:Blitzed Open Proxy Monitor:/nonexistent:/bin/sh
207
bopm:*:717:717::0:0:Blitzed Open Proxy Monitor:/nonexistent:/bin/sh
208
openxpki:*:777:777::0:0:OpenXPKI Owner:/nonexistent:/usr/sbin/nologin
208
openxpki:*:777:777::0:0:OpenXPKI Owner:/nonexistent:/usr/sbin/nologin
209
zetacoin:*:780:780::0:0:ZetaCoin Daemon:/nonexistent:/usr/sbin/nologin
209
foreman_proxy:*:812:812::0:0:Foreman Smart Proxy:/usr/local/share/foreman-proxy:/usr/sbin/nologin
210
foreman_proxy:*:812:812::0:0:Foreman Smart Proxy:/usr/local/share/foreman-proxy:/usr/sbin/nologin
210
puppet:*:814:814::0:0:Puppet Daemon:/nonexistent:/usr/sbin/nologin
211
puppet:*:814:814::0:0:Puppet Daemon:/nonexistent:/usr/sbin/nologin
211
jenkins:*:818:818::0:0:Jenkins CI:/usr/local/jenkins:/bin/sh
212
jenkins:*:818:818::0:0:Jenkins CI:/usr/local/jenkins:/bin/sh
(-)UPDATING (+13 lines)
Lines 6-11 Link Here
6
you update your ports collection, before attempting any port upgrades.
6
you update your ports collection, before attempting any port upgrades.
7
7
8
20140413:
8
20140413:
9
  AFFECTS: users of net-p2p/zetacoin
10
  AUTHOR: daniel@morante.net
11
12
  The zetacoind process now runs as the zetacoin user.  Please make
13
  sure that this user has appropriate permissions to the blockchain
14
  database and wallet directory.
15
16
  If you are using the default path, run:
17
18
  # chown -R zetacoin:zetacoin /var/db/zetacoin
19
  # chown -R zetacoin:zetacoin /.zetacoin
20
21
20140413:
9
  AFFECTS: Users of Python and pkg >= 1.2.7_1
22
  AFFECTS: Users of Python and pkg >= 1.2.7_1
10
  AUTHOR: koobs@FreeBSD.org
23
  AUTHOR: koobs@FreeBSD.org
11
24
(-)net-p2p/zetacoin/Makefile (-7 / +10 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	zetacoin
4
PORTNAME=	zetacoin
5
PORTVERSION=	0.8.99.6
5
PORTVERSION=	0.8.99.16
6
PORTREVISION=	1
7
CATEGORIES=	net-p2p finance
6
CATEGORIES=	net-p2p finance
8
MASTER_SITES=	GH
7
MASTER_SITES=	GH
9
8
Lines 22-29 Link Here
22
USE_GITHUB=	yes
21
USE_GITHUB=	yes
23
GH_ACCOUNT=	${PORTNAME}
22
GH_ACCOUNT=	${PORTNAME}
24
GH_PROJECT=	${PORTNAME}
23
GH_PROJECT=	${PORTNAME}
25
GH_COMMIT=	e804194
24
GH_COMMIT=	9a52761
26
GH_TAGNAME=	e804194
25
GH_TAGNAME=	9a52761
27
26
28
USES=		gmake
27
USES=		gmake
29
USE_OPENSSL=	yes
28
USE_OPENSSL=	yes
Lines 39-47 Link Here
39
.if ${PORT_OPTIONS:MX11}
38
.if ${PORT_OPTIONS:MX11}
40
PLIST_SUB+=	X11=""
39
PLIST_SUB+=	X11=""
41
.else
40
.else
41
SUB_LIST+=	PORTNAME=${PORTNAME}
42
USE_RC_SUBR=	${PORTNAME}
42
USE_RC_SUBR=	${PORTNAME}
43
SUB_FILES=	pkg-message
43
SUB_FILES=	pkg-message
44
PLIST_SUB+=	X11="@comment "
44
PLIST_SUB+=	X11="@comment "
45
USERS=		${PORTNAME}
46
GROUPS=		${PORTNAME}
45
.endif
47
.endif
46
48
47
.if ${PORT_OPTIONS:MX11}
49
.if ${PORT_OPTIONS:MX11}
Lines 61-67 Link Here
61
QMAKE_USE_QRCODE=0
63
QMAKE_USE_QRCODE=0
62
.endif
64
.endif
63
65
64
PLIST_SUB+=	EXECUTABLE="bin/${BINARY}"
66
PLIST_SUB+=	EXECUTABLE="bin/${BINARY}" \
67
			PORTNAME=${PORTNAME}
65
68
66
.if ${PORT_OPTIONS:MUPNP}
69
.if ${PORT_OPTIONS:MUPNP}
67
LIB_DEPENDS+=	libminiupnpc.so:${PORTSDIR}/net/miniupnpc
70
LIB_DEPENDS+=	libminiupnpc.so:${PORTSDIR}/net/miniupnpc
Lines 98-105 Link Here
98
		-e 's,bitcoin,zetacoin,g' \
101
		-e 's,bitcoin,zetacoin,g' \
99
		-e 's,Bitcoin,Zetacoin,g' \
102
		-e 's,Bitcoin,Zetacoin,g' \
100
		-e 's,128,,g' ${WRKSRC}/contrib/debian/bitcoin-qt.desktop
103
		-e 's,128,,g' ${WRKSRC}/contrib/debian/bitcoin-qt.desktop
101
	${INSTALL} ${WRKSRC}/contrib/debian/bitcoin-qt.desktop ${STAGEDIR}${PREFIX}/share/applications/zetacoin-qt.desktop
104
	${INSTALL} ${WRKSRC}/contrib/debian/bitcoin-qt.desktop ${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}-qt.desktop
102
	${INSTALL} ${WRKSRC}/src/qt/res/icons/bitcoin.png ${STAGEDIR}${PREFIX}/share/pixmaps/zetacoin.png
105
	${INSTALL} ${WRKSRC}/src/qt/res/icons/bitcoin.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
103
106
104
.else
107
.else
105
	${INSTALL_PROGRAM} -s ${WRKSRC}/src/${BINARY} ${STAGEDIR}${PREFIX}/bin/${BINARY}
108
	${INSTALL_PROGRAM} -s ${WRKSRC}/src/${BINARY} ${STAGEDIR}${PREFIX}/bin/${BINARY}
(-)net-p2p/zetacoin/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (zetacoin-0.8.99.6.tar.gz) = c1c105330e997b2604cc8ecdef50897b79c4395915d67fdbb773c2d3b63be585
1
SHA256 (zetacoin-0.8.99.16.tar.gz) = e8e15cf23eb9498f9de61591755c2bd5673ee759ea82e6dd349397b72556d210
2
SIZE (zetacoin-0.8.99.6.tar.gz) = 2184876
2
SIZE (zetacoin-0.8.99.16.tar.gz) = 2186180
(-)net-p2p/zetacoin/files/patch-src__rpcdump.cpp (-11 lines)
Lines 1-11 Link Here
1
--- src/rpcdump.cpp.orig	2014-01-16 19:35:10.000000000 +0000
2
+++ src/rpcdump.cpp	2014-01-16 19:35:24.000000000 +0000
3
@@ -27,7 +27,7 @@
4
 }
5
 
6
 int64 static DecodeDumpTime(const std::string &str) {
7
-    static const boost::posix_time::time_input_facet facet("%Y-%m-%dT%H:%M:%SZ");
8
+    static boost::posix_time::time_input_facet facet("%Y-%m-%dT%H:%M:%SZ");
9
     static const boost::posix_time::ptime epoch = boost::posix_time::from_time_t(0);
10
     const std::locale loc(std::locale::classic(), &facet);
11
     std::istringstream iss(str);
(-)net-p2p/zetacoin/files/patch-src__serialize.h (-22 lines)
Lines 1-22 Link Here
1
--- ./src/serialize.h.orig	2013-09-24 01:50:35.661706153 +0000
2
+++ ./src/serialize.h	2013-09-24 01:50:52.913703572 +0000
3
@@ -895,19 +895,6 @@
4
     iterator insert(iterator it, const char& x=char()) { return vch.insert(it, x); }
5
     void insert(iterator it, size_type n, const char& x) { vch.insert(it, n, x); }
6
 
7
-    void insert(iterator it, const_iterator first, const_iterator last)
8
-    {
9
-        assert(last - first >= 0);
10
-        if (it == vch.begin() + nReadPos && (unsigned int)(last - first) <= nReadPos)
11
-        {
12
-            // special case for inserting at the front when there's room
13
-            nReadPos -= (last - first);
14
-            memcpy(&vch[nReadPos], &first[0], last - first);
15
-        }
16
-        else
17
-            vch.insert(it, first, last);
18
-    }
19
-
20
     void insert(iterator it, std::vector<char>::const_iterator first, std::vector<char>::const_iterator last)
21
     {
22
         assert(last - first >= 0);
(-)net-p2p/zetacoin/files/pkg-message.in (-3 / +3 lines)
Lines 1-12 Link Here
1
*******************************************************************
1
*******************************************************************
2
To configure the Zetacoin server please edit: 
2
To configure the Zetacoin server please edit: 
3
%%PREFIX%%/etc/zetacoin.conf
3
%%PREFIX%%/etc/%%PORTNAME%%.conf
4
4
5
You must at least set a "rpcpassword" in the configuration file above.
5
You must at least set a "rpcpassword" in the configuration file above.
6
6
7
To run the zetacoind server at startup, add the following
7
To run the %%PORTNAME%%d server at startup, add the following
8
settings to your /etc/rc.conf
8
settings to your /etc/rc.conf
9
9
10
zetacoin_enable="YES"
10
%%PORTNAME%%_enable="YES"
11
11
12
*******************************************************************
12
*******************************************************************
(-)net-p2p/zetacoin/files/zetacoin.in (-29 / +35 lines)
Lines 3-9 Link Here
3
# $FreeBSD$
3
# $FreeBSD$
4
#
4
#
5
5
6
# PROVIDE: zetacoin
6
# PROVIDE: %%PORTNAME%%
7
# REQUIRE: LOGIN
7
# REQUIRE: LOGIN
8
# KEYWORD: shutdown
8
# KEYWORD: shutdown
9
9
Lines 11-54 Link Here
11
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
11
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
12
# to enable this service:
12
# to enable this service:
13
#
13
#
14
# zetacoin_enable (bool):	Set to NO by default.
14
# %%PORTNAME%%_enable (bool):	Set to NO by default.
15
#				Set it to YES to enable zetacoin.
15
#				Set it to YES to enable %%PORTNAME%%.
16
# zetacoin_config (path):	Set to %%PREFIX%%/etc/zetacoin.conf
16
# %%PORTNAME%%_config (path):	Set to %%PREFIX%%/etc/%%PORTNAME%%.conf
17
#				by default.
17
#				by default.
18
# zetacoin_datadir (str):	Default to "/var/db/zetacoin"
18
# %%PORTNAME%%_user:	The user account %%PORTNAME%% daemon runs as
19
#				It uses '%%PORTNAME%%' user by default.
20
# %%PORTNAME%%_group:	The group account %%PORTNAME%% daemon runs as
21
#				It uses '%%PORTNAME%%' group by default.
22
# %%PORTNAME%%_datadir (str):	Default to "/var/db/%%PORTNAME%%"
19
#				Base data directory.
23
#				Base data directory.
20
24
21
. /etc/rc.subr
25
. /etc/rc.subr
22
26
23
name=zetacoin
27
name=%%PORTNAME%%
24
rcvar=zetacoin_enable
28
rcvar=%%PORTNAME%%_enable
25
29
26
: ${zetacoin_enable:=NO}
30
: ${%%PORTNAME%%_enable:=NO}
27
: ${zetacoin_config=%%PREFIX%%/etc/zetacoin.conf}
31
: ${%%PORTNAME%%_config=%%PREFIX%%/etc/%%PORTNAME%%.conf}
28
: ${zetacoin_datadir=/var/db/zetacoin}
32
: ${%%PORTNAME%%_datadir=/var/db/%%PORTNAME%%}
33
: ${%%PORTNAME%%_user="%%PORTNAME%%"}
34
: ${%%PORTNAME%%_group="%%PORTNAME%%"}
29
35
30
required_files=${zetacoin_config}
36
required_files=${%%PORTNAME%%_config}
31
command=%%PREFIX%%/bin/zetacoind
37
command=%%PREFIX%%/bin/%%PORTNAME%%d
32
zetacoin_chdir=${zetacoin_datadir}
38
%%PORTNAME%%_chdir=${%%PORTNAME%%_datadir}
33
pidfile="${zetacoin_datadir}/zetacoind.pid"
39
pidfile="${%%PORTNAME%%_datadir}/%%PORTNAME%%d.pid"
34
stop_cmd=zetacoin_stop
40
stop_cmd=%%PORTNAME%%_stop
35
command_args="-conf=${zetacoin_config} -datadir=${zetacoin_datadir} -noupnp -daemon -pid=${pidfile}"
41
command_args="-conf=${%%PORTNAME%%_config} -datadir=${%%PORTNAME%%_datadir} -noupnp -daemon -pid=${pidfile}"
36
start_precmd="${name}_prestart"
42
start_precmd="${name}_prestart"
37
43
38
zetacoin_create_datadir()
44
%%PORTNAME%%_create_datadir()
39
{
45
{
40
	echo "Creating data directory"
46
	echo "Creating data directory"
41
	eval mkdir -p ${zetacoin_datadir}
47
	eval mkdir -p ${%%PORTNAME%%_datadir}
48
	[ $? -eq 0 ] && chown -R ${%%PORTNAME%%_user}:${%%PORTNAME%%_group} ${%%PORTNAME%%_datadir}
49
	ln -s ${%%PORTNAME%%_datadir} /.%%PORTNAME%%
42
}
50
}
43
51
44
zetacoin_prestart()
52
%%PORTNAME%%_prestart()
45
{
53
{
46
	if [ ! -d "${zetacoin_datadir}/." ]; then
54
	if [ ! -d "${%%PORTNAME%%_datadir}/." ]; then
47
		zetacoin_create_datadir || return 1
55
		%%PORTNAME%%_create_datadir || return 1
48
	fi
56
	fi
49
}
57
}
50
58
51
zetacoin_requirepidfile()
59
%%PORTNAME%%_requirepidfile()
52
{
60
{
53
	if [ ! "0`check_pidfile ${pidfile} ${command}`" -gt 1 ]; then
61
	if [ ! "0`check_pidfile ${pidfile} ${command}`" -gt 1 ]; then
54
		echo "${name} not running? (check $pidfile)."
62
		echo "${name} not running? (check $pidfile)."
Lines 56-70 Link Here
56
	fi
64
	fi
57
}
65
}
58
66
59
zetacoin_stop()
67
%%PORTNAME%%_stop()
60
{
68
{
61
    zetacoin_requirepidfile
69
    %%PORTNAME%%_requirepidfile
62
70
63
    if checkyesno ${rcvar}; then
71
	echo "Stopping ${name}."
64
		echo "Stopping ${name}."
72
	eval ${command} -conf=${%%PORTNAME%%_config} -datadir=${%%PORTNAME%%_datadir} stop
65
		eval ${command} -conf=${zetacoin_config} -datadir=${zetacoin_datadir} stop
73
	wait_for_pids ${rc_pid}
66
		wait_for_pids ${pidfile}
67
    fi
68
}
74
}
69
75
70
load_rc_config $name
76
load_rc_config $name
(-)net-p2p/zetacoin/pkg-plist (-5 / +5 lines)
Lines 1-6 Link Here
1
%%EXECUTABLE%%
1
%%EXECUTABLE%%
2
%%X11%%share/applications/zetacoin-qt.desktop
2
%%X11%%share/applications/%%PORTNAME%%-qt.desktop
3
%%X11%%share/pixmaps/zetacoin.png
3
%%X11%%share/pixmaps/%%PORTNAME%%.png
4
%%HEADLESS%%@unexec if cmp -s %D/etc/zetacoin.conf.sample %D/etc/zetacoin.conf; then rm -f %D/etc/zetacoin.conf; fi
4
%%HEADLESS%%@unexec if cmp -s %D/etc/%%PORTNAME%%.conf.sample %D/etc/%%PORTNAME%%.conf; then rm -f %D/etc/%%PORTNAME%%.conf; fi
5
%%HEADLESS%%etc/zetacoin.conf.sample
5
%%HEADLESS%%etc/%%PORTNAME%%.conf.sample
6
%%HEADLESS%%@exec if [ ! -f %D/etc/zetacoin.conf ] ; then cp -p %D/%F %B/zetacoin.conf; fi
6
%%HEADLESS%%@exec if [ ! -f %D/etc/%%PORTNAME%%.conf ] ; then cp -p %D/%F %B/%%PORTNAME%%.conf; fi

Return to bug 188567