pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip clean-up: remove primecoin



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Fri Jul 8 22:32:12 2022 +0200
Changeset:	65caeac2e4debf846f753c0c4b9250bf2f8367d8

Modified Files:
	Makefile
Removed Files:
	primecoin/DESCR
	primecoin/Makefile
	primecoin/PLIST
	primecoin/distinfo
	primecoin/files/primecoin.conf
	primecoin/files/primecoind.sh
	primecoin/options.mk
	primecoin/patches/patch-bitcoin-qt.pro
	primecoin/patches/patch-src_db.h
	primecoin/patches/patch-src_init.cpp
	primecoin/patches/patch-src_makefile.unix
	primecoin/patches/patch-src_netbase.cpp
	primecoin/patches/patch-src_serialize.h
	primecoin/patches/patch-src_walletdb.cpp

Log Message:
wip clean-up: remove primecoin

EOL Qt4. Upstream repo flagged as malware.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=65caeac2e4debf846f753c0c4b9250bf2f8367d8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                  |   1 -
 primecoin/DESCR                           |   4 --
 primecoin/Makefile                        |  58 ----------------
 primecoin/PLIST                           |   4 --
 primecoin/distinfo                        |  12 ----
 primecoin/files/primecoin.conf            | 111 ------------------------------
 primecoin/files/primecoind.sh             |  27 --------
 primecoin/options.mk                      |  28 --------
 primecoin/patches/patch-bitcoin-qt.pro    |  43 ------------
 primecoin/patches/patch-src_db.h          |  15 ----
 primecoin/patches/patch-src_init.cpp      |  13 ----
 primecoin/patches/patch-src_makefile.unix |  75 --------------------
 primecoin/patches/patch-src_netbase.cpp   |  15 ----
 primecoin/patches/patch-src_serialize.h   |  24 -------
 primecoin/patches/patch-src_walletdb.cpp  |  17 -----
 15 files changed, 447 deletions(-)

diffs:
diff --git a/Makefile b/Makefile
index 6efbd00c2b..d6323dcc6a 100644
--- a/Makefile
+++ b/Makefile
@@ -3283,7 +3283,6 @@ SUBDIR+=	preload
 SUBDIR+=	premake
 SUBDIR+=	premake4
 SUBDIR+=	premake5
-SUBDIR+=	primecoin
 SUBDIR+=	printrun
 SUBDIR+=	probcons
 SUBDIR+=	probe
diff --git a/primecoin/DESCR b/primecoin/DESCR
deleted file mode 100644
index 51fae11475..0000000000
--- a/primecoin/DESCR
+++ /dev/null
@@ -1,4 +0,0 @@
-Primecoin is an innovative cryptocurrency, a form of digital currency secured by
-cryptography and issued through a decentralized mining market. Derived from
-Satoshi Nakamoto's Bitcoin, Primecoin introduces an unique form of proof-of-work
-based on prime numbers.
diff --git a/primecoin/Makefile b/primecoin/Makefile
deleted file mode 100644
index 2a6f71725e..0000000000
--- a/primecoin/Makefile
+++ /dev/null
@@ -1,58 +0,0 @@
-# $NetBSD$
-
-DISTNAME=	primecoin-0.1.2-linux
-PKGNAME=	${DISTNAME:S/-linux//1}
-CATEGORIES=	finance
-MASTER_SITES=	http://sourceforge.net/projects/primecoin/files/0.1.2/
-
-MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=	https://primecoin.io/
-COMMENT=	Cryptocurrency based on searching for prime numbers
-LICENSE=	mit
-
-USE_LIBTOOL=	yes
-USE_TOOLS+=	gmake pkg-config
-USE_LANGUAGES=	c c++
-WRKSRC=		${WRKDIR}/${DISTNAME}/src
-AUTO_MKDIRS=	yes
-
-CXXFLAGS+=	-DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT
-
-QMAKE_OPTIONS+=	BOOST_INCLUDE_PATH=${PREFIX}/include/boost
-QMAKE_OPTIONS+=	BDB_INCLUDE_PATH=${PREFIX}/include/db4
-QMAKE_OPTIONS+=	OPENSSL_INCLUDE_PATH=${PREFIX}/include/openssl
-
-QMAKE_OPTIONS+=	BOOST_LIB_PATH=${PREFIX}/lib
-QMAKE_OPTIONS+=	BDB_LIB_PATH=${PREFIX}/lib
-QMAKE_OPTIONS+=	OPENSSL_LIB_PATH=${PREFIX}/lib
-QMAKE_OPTIONS+=	LIB_RPATH=${PREFIX}/lib
-
-RCD_SCRIPTS=		primecoind
-OWN_DIRS=		${VARBASE}/primecoin
-EGDIR=			${PREFIX}/share/examples/primecoin
-CONF_FILES=		${EGDIR}/primecoin.conf ${PKG_SYSCONFDIR}/primecoin.conf
-CONF_FILES_PERMS=	${EGDIR}/primecoin.conf ${PKG_SYSCONFDIR}/primecoin.conf ${ROOT_USER} ${ROOT_GROUP} 0600
-INSTALLATION_DIRS+=	share/examples/primecoin
-
-do-configure:
-	(cd ${WRKSRC} && env ${CONFIGURE_ENV} ${QTDIR}/bin/qmake "PREFIX=${PREFIX}" "QMAKE_CXXFLAGS=${CXXFLAGS}" ${QMAKE_OPTIONS} bitcoin-qt.pro)
-
-do-build:
-	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE_OPTIONS} ${GMAKE};	\
-	cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} CFLAGS+=-Iobj ${QMAKE_OPTIONS} ${GMAKE} -f makefile.unix
-
-do-install:
-#	${INSTALL_PROGRAM} ${WRKSRC}/primecoin-qt ${DESTDIR}${PREFIX}/bin
-	${INSTALL_PROGRAM} ${WRKSRC}/src/primecoind ${DESTDIR}${PREFIX}/sbin
-	${INSTALL_DATA} -m 600 ${FILESDIR}/primecoin.conf ${DESTDIR}${EGDIR}
-
-.include "options.mk"
-
-.include "../../databases/db4/buildlink3.mk"
-.include "../../devel/boost-libs/buildlink3.mk"
-.include "../../security/openssl/buildlink3.mk"
-BUILDLINK_DEPMETHOD.qt4-tools=	full
-.include "../../x11/qt4-tools/buildlink3.mk"
-.include "../../x11/qt4-libs/buildlink3.mk"
-.include "../../mk/dlopen.buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/primecoin/PLIST b/primecoin/PLIST
deleted file mode 100644
index 06ac370ec3..0000000000
--- a/primecoin/PLIST
+++ /dev/null
@@ -1,4 +0,0 @@
-@comment $NetBSD$
-sbin/primecoind
-share/examples/primecoin/primecoin.conf
-share/examples/rc.d/primecoind
diff --git a/primecoin/distinfo b/primecoin/distinfo
deleted file mode 100644
index 6d4f977c67..0000000000
--- a/primecoin/distinfo
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD$
-
-RMD160 (primecoin-0.1.2-linux.tar.gz) = 84deec1c901e039f8172a226d0a81607f82e0021
-SHA512 (primecoin-0.1.2-linux.tar.gz) = cff71b0e6459c4e534e78acef9491090d05c0cb864a068c0a3cb289310a1ee13fd69c7b61a7d6cb9732af54fbcf1fa4e77db8c8528a09bbdafd36421fdf7aff1
-Size (primecoin-0.1.2-linux.tar.gz) = 16521236 bytes
-SHA1 (patch-bitcoin-qt.pro) = 065f52b10b8da1d76d3c98c5537da647665e8197
-SHA1 (patch-src_db.h) = bb24554af13e6a052835ef7a985306314119f887
-SHA1 (patch-src_init.cpp) = 252dbb34a712f1b0a533d600dfac6bcd5b719869
-SHA1 (patch-src_makefile.unix) = 7b1148f55cebb8a0c7381a0b96511b241fb9805e
-SHA1 (patch-src_netbase.cpp) = a5f11aa485070d00e635b07a75b98c45537ab401
-SHA1 (patch-src_serialize.h) = f64051b2a14e9ad0e52da0079d8781df55a0716e
-SHA1 (patch-src_walletdb.cpp) = 66bc458acac265b35473458028bd3860f96cf4fe
diff --git a/primecoin/files/primecoin.conf b/primecoin/files/primecoin.conf
deleted file mode 100644
index 582e7ddef6..0000000000
--- a/primecoin/files/primecoin.conf
+++ /dev/null
@@ -1,111 +0,0 @@
-# primecoin.conf configuration file. Lines beginning with # are comments.
-
-
-# Network-related settings:
-
-# Run on the test network instead of the real primecoin network.
-#testnet=0
-
-# Connect via a socks4 proxy
-#proxy=127.0.0.1:9050
-
-##############################################################
-##            Quick Primer on addnode vs connect            ##
-##  Let's say for instance you use addnode=4.2.2.4          ##
-##  addnode will connect you to and tell you about the      ##
-##    nodes connected to 4.2.2.4.  In addition it will tell ##
-##    the other nodes connected to it that you exist so     ##
-##    they can connect to you.                              ##
-##  connect will not do the above when you 'connect' to it. ##
-##    It will *only* connect you to 4.2.2.4 and no one else.##
-##                                                          ##
-##  So if you're behind a firewall, or have other problems  ##
-##  finding nodes, add some using 'addnode'.                ##
-##                                                          ##
-##  If you want to stay private, use 'connect' to only      ##
-##  connect to "trusted" nodes.                             ##
-##                                                          ##
-##  If you run multiple nodes on a LAN, there's no need for ##
-##  all of them to open lots of connections.  Instead       ##
-##  'connect' them all to one node that is port forwarded   ##
-##  and has lots of connections.                            ##
-##       Thanks goes to [Noodle] on Freenode.               ##
-##############################################################
-
-# Use as many addnode= settings as you like to connect to specific primes
-#addnode=69.164.218.197
-#addnode=10.0.0.2:8333
-
-# ... or use as many connect= settings as you like to connect ONLY
-# to specific primes:
-#connect=69.164.218.197
-#connect=10.0.0.1:8333
-
-
-# Maximum number of inbound+outbound connections.
-#maxconnections=
-
-
-# JSON-RPC options (for controlling a running Primecoin/primed process)
-
-# server=1 tells Primecoin-QT to accept JSON-RPC commands.
-#server=0
-
-# You must set rpcuser and rpcpassword to secure the JSON-RPC api
-#rpcuser=Ulysseys
-#rpcpassword=YourSuperGreatPasswordNumber_DO_NOT_USE_THIS_OR_YOU_WILL_GET_ROBBED_385593
-
-# How many seconds primecoin will wait for a complete RPC HTTP request.
-# after the HTTP connection is established. 
-#rpctimeout=30
-
-# By default, only RPC connections from localhost are allowed.  Specify
-# as many rpcallowip= settings as you like to allow connections from
-# other hosts (and you may use * as a wildcard character).
-# NOTE: opening up the RPC port to hosts outside your local
-# trusted network is NOT RECOMMENDED, because the rpcpassword
-# is transmitted over the network unencrypted.
-#rpcallowip=10.1.1.34
-#rpcallowip=192.168.1.*
-
-# Listen for RPC connections on this TCP port:
-#rpcport=8332
-
-# You can use Primecoin or primed to send commands to Primecoin/primed
-# running on another host using this option:
-#rpcconnect=127.0.0.1
-
-# Use Secure Sockets Layer (also known as TLS or HTTPS) to communicate
-# with Primecoin -server or primed
-#rpcssl=1
-
-# OpenSSL settings used when rpcssl=1
-#rpcsslciphers=TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH
-#rpcsslcertificatechainfile=server.cert
-#rpcsslprivatekeyfile=server.pem
-
-
-# Miscellaneous options
-
-# Set gen=1 to attempt to generate primecoins
-#gen=0
- 
-# Pre-generate this many public/private key pairs, so wallet backups will be valid for
-# both prior transactions and several dozen future transactions.
-#keypool=100
-
-# Pay an optional transaction fee every time you send primecoins.  Transactions with fees
-# are more likely than free transactions to be included in generated blocks, so may
-# be validated sooner.
-#paytxfee=0.00
-
-# Allow direct connections for the 'pay via IP address' feature.
-#allowreceivebyip=1
-  
-# User interface options
-
-# Start Primecoin minimized
-#min=1
-
-# Minimize to the system tray
-#minimizetotray=1
diff --git a/primecoin/files/primecoind.sh b/primecoin/files/primecoind.sh
deleted file mode 100644
index e5c5615e4d..0000000000
--- a/primecoin/files/primecoind.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!@RCD_SCRIPTS_SHELL@
-#
-# $NetBSD$
-#
-
-# PROVIDE: primed
-# REQUIRE: DAEMON LOGIN wscons
-# KEYWORD: shutdown
-
-if [ -f /etc/rc.subr ]; then
-	. /etc/rc.subr
-fi
-
-name="primed"
-rcvar=$name
-command="@PREFIX@/sbin/primed"
-pidfile="@VARBASE@/run/primed.pid"
-required_directory="@VARBASE@/primecoin"
-command_args="-daemon -conf=@PREFIX@/etc/primecoin.conf -pid=${pidfile} -datadir=${required_directory}"
-
-if [ -f /etc/rc.subr ]; then
-	load_rc_config $name
-	run_rc_command "$1"
-else
-	echo -n " ${name}"
-	${command} ${primecoin_flags} ${command_args}
-fi
diff --git a/primecoin/options.mk b/primecoin/options.mk
deleted file mode 100644
index 401d5582ef..0000000000
--- a/primecoin/options.mk
+++ /dev/null
@@ -1,28 +0,0 @@
-# $NetBSD$
-
-PKG_OPTIONS_VAR=		PKG_OPTIONS.primecoin
-PKG_SUPPORTED_OPTIONS+=		miniupnpc dbus qrcode
-PKG_SUGGESTED_OPTIONS+=		qrcode
-
-.include "../../mk/bsd.options.mk"
-
-.if !empty(PKG_OPTIONS:Mminiupnpc)
-QMAKE_OPTIONS+=	USE_UPNP=1
-.include "../../net/miniupnpc/buildlink3.mk"
-.else
-QMAKE_OPTIONS+=	USE_UPNP=-
-.endif
-
-.if !empty(PKG_OPTIONS:Mdbus)
-QMAKE_OPTIONS+=	USE_DBUS=1
-.include "../../x11/qt4-qdbus/buildlink3.mk"
-.endif
-
-.if !empty(PKG_OPTIONS:Mqrcode)
-QMAKE_OPTIONS+=	USE_QRCODE=1
-.include "../../converters/qrencode/buildlink3.mk"
-.endif
-
-.if !empty(PKG_OPTIONS:Minet6)
-QMAKE_OPTIONS+=	USE_IPV6=0
-.endif
diff --git a/primecoin/patches/patch-bitcoin-qt.pro b/primecoin/patches/patch-bitcoin-qt.pro
deleted file mode 100644
index 2c1143b2eb..0000000000
--- a/primecoin/patches/patch-bitcoin-qt.pro
+++ /dev/null
@@ -1,43 +0,0 @@
-$NetBSD$
-
-Use pkgsrc databases/db4.
-
---- bitcoin-qt.pro.orig	2013-08-05 12:37:14.000000000 +0000
-+++ bitcoin-qt.pro
-@@ -357,22 +357,26 @@ isEmpty(BOOST_THREAD_LIB_SUFFIX) {
- 
- isEmpty(BDB_LIB_PATH) {
-     macx:BDB_LIB_PATH = /opt/local/lib/db48
-+    unix:BDB_LIB_PATH = $$PREFIX/lib
- }
- 
- isEmpty(BDB_LIB_SUFFIX) {
--    macx:BDB_LIB_SUFFIX = -4.8
-+    macx|unix:BDB_LIB_SUFFIX = -4.8
- }
- 
- isEmpty(BDB_INCLUDE_PATH) {
-     macx:BDB_INCLUDE_PATH = /opt/local/include/db48
-+    unix:BDB_INCLUDE_PATH = $$PREFIX/include/db4
- }
- 
- isEmpty(BOOST_LIB_PATH) {
-     macx:BOOST_LIB_PATH = /opt/local/lib
-+    unix:BOOST_LIB_PATH = $$PREFIX/lib
- }
- 
- isEmpty(BOOST_INCLUDE_PATH) {
-     macx:BOOST_INCLUDE_PATH = /opt/local/include
-+    unix:BOOST_INCLUDE_PATH = $$PREFIX/include/boost
- }
- 
- win32:DEFINES += WIN32
-@@ -409,7 +413,7 @@ macx:QMAKE_INFO_PLIST = share/qt/Info.pl
- # Set libraries and includes at end, to use platform-defined defaults if not overridden
- INCLUDEPATH += $$BOOST_INCLUDE_PATH $$BDB_INCLUDE_PATH $$OPENSSL_INCLUDE_PATH $$QRENCODE_INCLUDE_PATH
- LIBS += $$join(BOOST_LIB_PATH,,-L,) $$join(BDB_LIB_PATH,,-L,) $$join(OPENSSL_LIB_PATH,,-L,) $$join(QRENCODE_LIB_PATH,,-L,)
--LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX
-+LIBS += -lssl -lcrypto -ldb4_cxx$$BDB_LIB_SUFFIX
- # -lgdi32 has to happen after -lcrypto (see  #681)
- win32:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32
- LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX
diff --git a/primecoin/patches/patch-src_db.h b/primecoin/patches/patch-src_db.h
deleted file mode 100644
index 7f34b386cb..0000000000
--- a/primecoin/patches/patch-src_db.h
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD$
-
-Use pkgsrc databases/db4.
-
---- src/db.h.orig	2013-08-05 12:37:20.000000000 +0000
-+++ src/db.h
-@@ -11,7 +11,7 @@
- #include <string>
- #include <vector>
- 
--#include <db_cxx.h>
-+#include <db4/db_cxx.h>
- 
- class CAddress;
- class CAddrMan;
diff --git a/primecoin/patches/patch-src_init.cpp b/primecoin/patches/patch-src_init.cpp
deleted file mode 100644
index 59589b273e..0000000000
--- a/primecoin/patches/patch-src_init.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD$
-
---- src/init.cpp.orig	2013-08-05 12:37:20.000000000 +0000
-+++ src/init.cpp
-@@ -537,7 +537,7 @@ bool AppInit2(boost::thread_group& threa
-     // Make sure enough file descriptors are available
-     int nBind = std::max((int)mapArgs.count("-bind"), 1);
-     nMaxConnections = GetArg("-maxconnections", 125);
--    nMaxConnections = std::max(std::min(nMaxConnections, FD_SETSIZE - nBind - MIN_CORE_FILEDESCRIPTORS), 0);
-+    nMaxConnections = std::max(std::min(nMaxConnections, (int)(FD_SETSIZE - nBind - MIN_CORE_FILEDESCRIPTORS)), 0);
-     int nFD = RaiseFileDescriptorLimit(nMaxConnections + MIN_CORE_FILEDESCRIPTORS);
-     if (nFD < MIN_CORE_FILEDESCRIPTORS)
-         return InitError(_("Not enough file descriptors available."));
diff --git a/primecoin/patches/patch-src_makefile.unix b/primecoin/patches/patch-src_makefile.unix
deleted file mode 100644
index 4dc67296ad..0000000000
--- a/primecoin/patches/patch-src_makefile.unix
+++ /dev/null
@@ -1,75 +0,0 @@
-$NetBSD$
-
-miniupnp doesn't build at the moment.
-libs.
-
---- src/makefile.unix.orig	2013-08-05 12:37:21.000000000 +0000
-+++ src/makefile.unix
-@@ -6,7 +6,7 @@
- # :=0 --> UPnP support turned off by default at runtime
- # :=1 --> UPnP support turned on by default at runtime
- # :=- --> No UPnP support - miniupnp not required
--USE_UPNP:=0
-+USE_UPNP:=-
- 
- # :=1 --> Enable IPv6 support
- # :=0 --> Disable IPv6 support
-@@ -34,14 +34,15 @@ endif
- 
- # for boost 1.37, add -mt to the boost libraries
- LIBS += \
-+ -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib \
-  -Wl,-B$(LMODE) \
--   -l boost_system$(BOOST_LIB_SUFFIX) \
--   -l boost_filesystem$(BOOST_LIB_SUFFIX) \
--   -l boost_program_options$(BOOST_LIB_SUFFIX) \
--   -l boost_thread$(BOOST_LIB_SUFFIX) \
--   -l db_cxx$(BDB_LIB_SUFFIX) \
--   -l ssl \
--   -l crypto
-+   -lboost_system$(BOOST_LIB_SUFFIX) \
-+   -lboost_filesystem$(BOOST_LIB_SUFFIX) \
-+   -lboost_program_options$(BOOST_LIB_SUFFIX) \
-+   -lboost_thread$(BOOST_LIB_SUFFIX) \
-+   -ldb4_cxx$(BDB_LIB_SUFFIX) \
-+   -lssl \
-+   -lcrypto
- 
- TESTLIBS += \
-  -Wl,-B$(LMODE) \
-@@ -51,7 +52,7 @@ ifndef USE_UPNP
- 	override USE_UPNP = -
- endif
- ifneq (${USE_UPNP}, -)
--	LIBS += -l miniupnpc
-+	LIBS += -lminiupnpc
- 	DEFS += -DUSE_UPNP=$(USE_UPNP)
- endif
- 
-@@ -61,9 +62,9 @@ endif
- 
- LIBS+= \
-  -Wl,-B$(LMODE2) \
--   -l z \
--   -l dl \
--   -l pthread
-+   -lz \
-+   ${DL_LIBS} \
-+   -lpthread
- 
- 
- # Hardening
-@@ -168,10 +169,13 @@ leveldb/libleveldb.a:
- obj/build.h: FORCE
- 	/bin/sh ../share/genbuild.sh obj/build.h
- version.cpp: obj/build.h
-+ifeq ($(wildcard obj/build.h),)
- DEFS += -DHAVE_BUILD_INFO
-+endif
- 
- obj/%.o: %.cpp
- 	$(CXX) -c $(xCXXFLAGS) -MMD -MF $(@:%.o=%.d) -o $@ $<
-+	$(CXX) -c $(xCXXFLAGS) -Iobj -MMD -MF $(@:%.o=%.d) -o $@ $<
- 	@cp $(@:%.o=%.d) $(@:%.o=%.P); \
- 	  sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
- 	      -e '/^$$/ d' -e 's/$$/ :/' < $(@:%.o=%.d) >> $(@:%.o=%.P); \
diff --git a/primecoin/patches/patch-src_netbase.cpp b/primecoin/patches/patch-src_netbase.cpp
deleted file mode 100644
index 03e0a1d06e..0000000000
--- a/primecoin/patches/patch-src_netbase.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD$
-
-be nbsd specific.
-
---- src/netbase.cpp.orig	2013-08-05 12:37:21.000000000 +0000
-+++ src/netbase.cpp
-@@ -77,7 +77,7 @@ bool static LookupIntern(const char *psz
- #else
-     aiHint.ai_family = AF_INET;
- #endif
--#ifdef WIN32
-+#if defined(WIN32) || defined(__NetBSD__)
-     aiHint.ai_flags = fAllowLookup ? 0 : AI_NUMERICHOST;
- #else
-     aiHint.ai_flags = fAllowLookup ? AI_ADDRCONFIG : AI_NUMERICHOST;
diff --git a/primecoin/patches/patch-src_serialize.h b/primecoin/patches/patch-src_serialize.h
deleted file mode 100644
index 0a50c4dd90..0000000000
--- a/primecoin/patches/patch-src_serialize.h
+++ /dev/null
@@ -1,24 +0,0 @@
-$NetBSD$
-
---- src/serialize.h.orig	2013-08-05 12:37:20.000000000 +0000
-+++ src/serialize.h
-@@ -895,19 +895,6 @@ public:
-     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);
diff --git a/primecoin/patches/patch-src_walletdb.cpp b/primecoin/patches/patch-src_walletdb.cpp
deleted file mode 100644
index fa3100c722..0000000000
--- a/primecoin/patches/patch-src_walletdb.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
---- src/walletdb.cpp~	2014-06-19 00:51:15.000000000 -0700
-+++ src/walletdb.cpp	2014-08-19 03:50:42.757367359 -0700
---- src/walletdb.cpp.orig	2013-08-05 12:37:20.000000000 +0000
-+++ src/walletdb.cpp
-@@ -569,11 +569,7 @@ bool BackupWallet(const CWallet& wallet,
-                     pathDest /= wallet.strWalletFile;
- 
-                 try {
--#if BOOST_VERSION >= 104000
--                    filesystem::copy_file(pathSrc, pathDest, filesystem::copy_option::overwrite_if_exists);
--#else
--                    filesystem::copy_file(pathSrc, pathDest);
--#endif
-+                    filesystem::copy(pathSrc, pathDest);
-                     printf("copied wallet.dat to %s\n", pathDest.string().c_str());
-                     return true;
-                 } catch(const filesystem::filesystem_error &e) {


Home | Main Index | Thread Index | Old Index