Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jan 2014 21:02:36 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340216 - in head/net-p2p: . digitalcoin digitalcoin/files
Message-ID:  <201401182102.s0IL2af9040488@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Sat Jan 18 21:02:36 2014
New Revision: 340216
URL: http://svnweb.freebsd.org/changeset/ports/340216
QAT: https://qat.redports.org/buildarchive/r340216/

Log:
  Digitalcoin is an open source digital currency, originally based on Bitcoin,
  but now heavily modified and improved. Digitalcoin works over a distributed
  peer-to-peer network to offer irreversible, low-cost, anonymous and
  decentralized monetary transactions.
  
  WWW: http://digitalcoin.co/
  
  PR:		ports/184369
  Submitted by:	myst3r10n <myst3r10n@rocketmail.com>

Added:
  head/net-p2p/digitalcoin/
  head/net-p2p/digitalcoin/Makefile   (contents, props changed)
  head/net-p2p/digitalcoin/distinfo   (contents, props changed)
  head/net-p2p/digitalcoin/files/
  head/net-p2p/digitalcoin/files/patch-src__net.cpp   (contents, props changed)
  head/net-p2p/digitalcoin/files/patch-src__qt__qtipcserver.cpp   (contents, props changed)
  head/net-p2p/digitalcoin/files/patch-src__serialize.h   (contents, props changed)
  head/net-p2p/digitalcoin/pkg-descr   (contents, props changed)
Modified:
  head/net-p2p/Makefile

Modified: head/net-p2p/Makefile
==============================================================================
--- head/net-p2p/Makefile	Sat Jan 18 21:02:02 2014	(r340215)
+++ head/net-p2p/Makefile	Sat Jan 18 21:02:36 2014	(r340216)
@@ -21,6 +21,7 @@
     SUBDIR += ctorrent
     SUBDIR += dclib
     SUBDIR += deluge
+    SUBDIR += digitalcoin
     SUBDIR += dogecoin
     SUBDIR += ed2k
     SUBDIR += edonkey-tool-hash

Added: head/net-p2p/digitalcoin/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/digitalcoin/Makefile	Sat Jan 18 21:02:36 2014	(r340216)
@@ -0,0 +1,51 @@
+# Created by: myst3r10n <myst3r10n@rocketmail.com>
+# $FreeBSD$
+
+PORTNAME=	digitalcoin
+PORTVERSION=	1.0.0.0b
+CATEGORIES=	net-p2p
+
+MAINTAINER=	myst3r10n@rocketmail.com
+COMMENT=	Alternative Bitcoin peer-to-peer currency client
+
+LIB_DEPENDS=	libboost_date_time.so:${PORTSDIR}/devel/boost-libs \
+		libminiupnpc.so:${PORTSDIR}/net/miniupnpc
+
+WRKSRC=		${WRKDIR}/${GH_ACCOUNT}-${PORTNAME}-${GH_COMMIT}
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	baritus
+GH_PROJECT=	${PORTNAME}
+GH_COMMIT=	96b098a
+GH_TAGNAME=	${GH_COMMIT}
+
+USES=		gmake
+USE_OPENSSL=	yes
+USE_BDB=	yes
+WANT_BDB_VER=	48
+USE_QT4=	corelib gui qmake_build linguist uic moc rcc
+
+PLIST_FILES=	bin/${BINARY} share/applications/digitalcoin-qt.desktop share/pixmaps/digitalcoin.png
+
+BINARY=		digitalcoin-qt
+
+.include <bsd.port.pre.mk>
+
+do-configure:
+	cd ${WRKSRC} && ${SETENV} ${QMAKE_ENV} \
+		${QMAKE} ${QMAKE_ARGS} USE_UPNP=${QMAKE_USE_UPNP} USE_QRCODE=${QMAKE_USE_QRCODE} \
+		QMAKE_LRELEASE=lrelease-qt4 PREFIX=${PREFIX} INCLUDEPATH=${BDB_INCLUDE_DIR} \
+		QMAKE_LIBDIR+=${BDB_LIB_DIR} ${PORTNAME}-qt.pro
+
+do-install:
+	@${MKDIR} ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${STAGEDIR}${PREFIX}/bin/
+	${REINPLACE_CMD} -e 's,=/usr,=${PREFIX},' \
+		-e 's,bitcoin,digitalcoin,g' \
+		-e 's,Bitcoin,Digitalcoin,g' \
+		-e 's,xpm,png,g' \
+		-e 's,80,,g' ${WRKSRC}/contrib/debian/bitcoin-qt.desktop
+	${INSTALL} ${WRKSRC}/contrib/debian/bitcoin-qt.desktop ${STAGEDIR}${PREFIX}/share/applications/digitalcoin-qt.desktop
+	${INSTALL} ${WRKSRC}/src/qt/res/icons/bitcoin.png ${STAGEDIR}${PREFIX}/share/pixmaps/digitalcoin.png
+
+.include <bsd.port.post.mk>

Added: head/net-p2p/digitalcoin/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/digitalcoin/distinfo	Sat Jan 18 21:02:36 2014	(r340216)
@@ -0,0 +1,2 @@
+SHA256 (digitalcoin-1.0.0.0b.tar.gz) = 5ef55e55eb0fc6ec6b86aa559a93cca9e23f1f0cba10b6635527d58373679f14
+SIZE (digitalcoin-1.0.0.0b.tar.gz) = 1873811

Added: head/net-p2p/digitalcoin/files/patch-src__net.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/digitalcoin/files/patch-src__net.cpp	Sat Jan 18 21:02:36 2014	(r340216)
@@ -0,0 +1,11 @@
+--- src/net.cpp.orig	2014-01-18 04:31:19.000000000 +0000
++++ src/net.cpp	2014-01-18 04:32:57.000000000 +0000
+@@ -58,7 +58,7 @@
+ static bool vfLimited[NET_MAX] = {};
+ static CNode* pnodeLocalHost = NULL;
+ uint64 nLocalHostNonce = 0;
+-array<int, THREAD_MAX> vnThreadsRunning;
++boost::array<int, THREAD_MAX> vnThreadsRunning;
+ static std::vector<SOCKET> vhListenSocket;
+ CAddrMan addrman;
+ 

Added: head/net-p2p/digitalcoin/files/patch-src__qt__qtipcserver.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/digitalcoin/files/patch-src__qt__qtipcserver.cpp	Sat Jan 18 21:02:36 2014	(r340216)
@@ -0,0 +1,11 @@
+--- src/qt/qtipcserver.cpp.orig	2014-01-18 05:21:31.335425774 +0000
++++ src/qt/qtipcserver.cpp	2014-01-18 05:22:33.976421840 +0000
+@@ -21,7 +21,7 @@
+ 
+ static void ipcThread2(void* pArg);
+ 
+-#ifdef MAC_OSX
++#if defined(MAC_OSX) || defined(__FreeBSD__)
+ // URI handling not implemented on OSX yet
+ 
+ void ipcInit() { }

Added: head/net-p2p/digitalcoin/files/patch-src__serialize.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/digitalcoin/files/patch-src__serialize.h	Sat Jan 18 21:02:36 2014	(r340216)
@@ -0,0 +1,22 @@
+--- ./src/serialize.h.orig	2013-09-24 01:50:35.661706153 +0000
++++ ./src/serialize.h	2013-09-24 01:50:52.913703572 +0000
+@@ -895,19 +895,6 @@
+     iterator insert(iterator it, const char& x=char()) { return vch.insert(it, x); }
+     void insert(iterator it, size_type n, const char& x) { vch.insert(it, n, x); }
+ 
+-    void insert(iterator it, const_iterator first, const_iterator last)
+-    {
+-        assert(last - first >= 0);
+-        if (it == vch.begin() + nReadPos && (unsigned int)(last - first) <= nReadPos)
+-        {
+-            // special case for inserting at the front when there's room
+-            nReadPos -= (last - first);
+-            memcpy(&vch[nReadPos], &first[0], last - first);
+-        }
+-        else
+-            vch.insert(it, first, last);
+-    }
+-
+     void insert(iterator it, std::vector<char>::const_iterator first, std::vector<char>::const_iterator last)
+     {
+         assert(last - first >= 0);

Added: head/net-p2p/digitalcoin/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/digitalcoin/pkg-descr	Sat Jan 18 21:02:36 2014	(r340216)
@@ -0,0 +1,6 @@
+Digitalcoin is an open source digital currency, originally based on Bitcoin,
+but now heavily modified and improved. Digitalcoin works over a distributed
+peer-to-peer network to offer irreversible, low-cost, anonymous and
+decentralized monetary transactions.
+
+WWW: http://digitalcoin.co/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401182102.s0IL2af9040488>