aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2014-06-24 22:42:15 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-06-25 14:48:50 +0000
commit23416aa0131a4ac39a11b5d97497564003138966 (patch)
treebb2ff12f1d963ce0ef79231a380660e427daca38 /testing
parent0e05b58d1e8dfe579949be7ab83b4ba698214bf3 (diff)
downloadaports-23416aa0131a4ac39a11b5d97497564003138966.tar.bz2
aports-23416aa0131a4ac39a11b5d97497564003138966.tar.xz
testing/namecoin: update to 0.3.75 +QT5
Also patched to build with QT5
Diffstat (limited to 'testing')
-rw-r--r--testing/namecoin/10-use-latest-UPnP-lib.patch11
-rw-r--r--testing/namecoin/12-fix-miniupnpc.patch61
-rw-r--r--testing/namecoin/20-boost-multithread-dynamic.patch24
-rw-r--r--testing/namecoin/30-set-default-env.patch38
-rw-r--r--testing/namecoin/31-set-default-env-function.patch61
-rw-r--r--testing/namecoin/40-build-qt5.patch259
-rw-r--r--testing/namecoin/APKBUILD42
-rw-r--r--testing/namecoin/namecoin.post-install2
8 files changed, 415 insertions, 83 deletions
diff --git a/testing/namecoin/10-use-latest-UPnP-lib.patch b/testing/namecoin/10-use-latest-UPnP-lib.patch
deleted file mode 100644
index 70607bdcaf..0000000000
--- a/testing/namecoin/10-use-latest-UPnP-lib.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/src/net.cpp
-+++ b/src/net.cpp
-@@ -1087,7 +1087,7 @@
-
- #ifndef __WXMSW__
- r = UPNP_AddPortMapping(urls.controlURL, data.first.servicetype,
-- port, port, lanaddr, 0, "TCP", 0);
-+ port, port, lanaddr, 0, "TCP", 0, "0");
- #else
- r = UPNP_AddPortMapping(urls.controlURL, data.first.servicetype,
- port, port, lanaddr, 0, "TCP", 0, "0");
diff --git a/testing/namecoin/12-fix-miniupnpc.patch b/testing/namecoin/12-fix-miniupnpc.patch
new file mode 100644
index 0000000000..c911f0a8b0
--- /dev/null
+++ b/testing/namecoin/12-fix-miniupnpc.patch
@@ -0,0 +1,61 @@
+--- namecoin-nc0.3.75/src/net.cpp
++++ namecoin-nc0.3.75/src/net.cpp.new
+@@ -19,10 +19,10 @@
+ #endif
+
+ #ifdef USE_UPNP
+-#include <miniwget.h>
+-#include <miniupnpc.h>
+-#include <upnpcommands.h>
+-#include <upnperrors.h>
++#include <miniupnpc/miniwget.h>
++#include <miniupnpc/miniupnpc.h>
++#include <miniupnpc/upnpcommands.h>
++#include <miniupnpc/upnperrors.h>
+ #endif
+
+ using namespace std;
+@@ -1088,8 +1088,7 @@
+ {
+ printf("ThreadMapPort started\n");
+
+- char port[6];
+- sprintf(port, "%d", GetListenPort());
++ std::string port = strprintf("%u", GetListenPort());
+
+ const char * rootdescurl = 0;
+ const char * multicastif = 0;
+@@ -1113,25 +1112,26 @@
+ r = UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr));
+ if (r == 1)
+ {
+- char intClient[16];
+- char intPort[6];
++ string strDesc = "Namecoin " + FormatFullVersion();
+
+-#if !defined(__WXMSW__) && !defined(MAC_OSX)
++#ifndef UPNPDISCOVER_SUCCESS
++ /* miniupnpc 1.5 */
+ r = UPNP_AddPortMapping(urls.controlURL, data.first.servicetype,
+- port, port, lanaddr, 0, "TCP", 0);
++ port.c_str(), port.c_str(), lanaddr, strDesc.c_str(), "TCP", 0);
+ #else
++ /* miniupnpc 1.6 */
+ r = UPNP_AddPortMapping(urls.controlURL, data.first.servicetype,
+- port, port, lanaddr, 0, "TCP", 0, "0");
++ port.c_str(), port.c_str(), lanaddr, strDesc.c_str(), "TCP", 0, "0");
+ #endif
+ if(r!=UPNPCOMMAND_SUCCESS)
+ printf("AddPortMapping(%s, %s, %s) failed with code %d (%s)\n",
+- port, port, lanaddr, r, strupnperror(r));
++ port.c_str(), port.c_str(), lanaddr, r, strupnperror(r));
+ else
+ printf("UPnP Port Mapping successful.\n");
+ loop {
+ if (fShutdown || !fUseUPnP)
+ {
+- r = UPNP_DeletePortMapping(urls.controlURL, data.first.servicetype, port, "TCP", 0);
++ r = UPNP_DeletePortMapping(urls.controlURL, data.first.servicetype, port.c_str(), "TCP", 0);
+ printf("UPNP_DeletePortMapping() returned : %d\n", r);
+ freeUPNPDevlist(devlist); devlist = 0;
+ FreeUPNPUrls(&urls);
diff --git a/testing/namecoin/20-boost-multithread-dynamic.patch b/testing/namecoin/20-boost-multithread-dynamic.patch
index d6cdc2f043..7a92b5b51c 100644
--- a/testing/namecoin/20-boost-multithread-dynamic.patch
+++ b/testing/namecoin/20-boost-multithread-dynamic.patch
@@ -1,22 +1,22 @@
---- a/src/Makefile
-+++ b/src/Makefile
-@@ -9,27 +9,23 @@
+--- namecoin-nc0.3.75/src/Makefile
++++ namecoin-nc0.3.75/src/Makefile
+@@ -9,24 +9,20 @@
DEFS += -DBOOST_THREAD_USE_LIB
-
+
INCLUDEPATHS= \
-- -I../libs/openssl-1.0.1e/include \
+- -I../libs/openssl-1.0.1h/include \
- -I../libs/db-4.7.25.NC/build_unix \
- -I../libs/boost_1_50_0
+ -I/usr/include
-
+
LIBPATHS= \
-- -L../libs/openssl-1.0.1e \
+- -L../libs/openssl-1.0.1h \
- -L../libs/db-4.7.25.NC/build_unix \
- -L../libs/boost_1_50_0/stage/lib
+ -L/usr/lib
-
+
LIBBOOST_SUFFIX=
-
+
LIBS= \
- -Wl,-Bstatic \
+ -Wl,-Bdynamic \
@@ -30,8 +30,4 @@
+ -l boost_chrono-mt$(LIBBOOST_SUFFIX) \
-l db_cxx \
-l ssl \
-- -l crypto
-+ -l crypto
-
- namecoin: USE_UPNP:=1
- ifdef USE_UPNP
+ -l crypto
diff --git a/testing/namecoin/30-set-default-env.patch b/testing/namecoin/30-set-default-env.patch
deleted file mode 100644
index 5ff0162dc9..0000000000
--- a/testing/namecoin/30-set-default-env.patch
+++ /dev/null
@@ -1,38 +0,0 @@
---- a/src/init.cpp
-+++ b/src/init.cpp
-@@ -98,6 +98,16 @@
- #ifndef GUI
- int main(int argc, char* argv[])
- {
-+ #ifndef WIN32
-+ try
-+ {
-+ boost::filesystem::path::codecvt(); // Raises runtime error if current locale is invalid
-+ } catch(std::runtime_error &e)
-+ {
-+ setenv("LC_ALL", "C", 1); // Force C locale
-+ }
-+ #endif
-+
- bool fRet = false;
- fRet = AppInit(argc, argv);
-
---- a/src/qt/bitcoin.cpp
-+++ b/src/qt/bitcoin.cpp
-@@ -122,6 +122,16 @@
- #ifndef BITCOIN_QT_TEST
- int main(int argc, char *argv[])
- {
-+ #ifndef WIN32
-+ try
-+ {
-+ boost::filesystem::path::codecvt(); // Raises runtime error if current locale is invalid
-+ } catch(std::runtime_error &e)
-+ {
-+ setenv("LC_ALL", "C", 1); // Force C locale
-+ }
-+ #endif
-+
- // Command-line options take precedence:
- ParseParameters(argc, argv);
-
diff --git a/testing/namecoin/31-set-default-env-function.patch b/testing/namecoin/31-set-default-env-function.patch
new file mode 100644
index 0000000000..6615ffb3bb
--- /dev/null
+++ b/testing/namecoin/31-set-default-env-function.patch
@@ -0,0 +1,61 @@
+--- namecoin-vQ.3.72/src/init.cpp
++++ namecoin-vQ.3.72/src/init.cpp
+@@ -98,6 +98,10 @@
+ #ifndef GUI
+ int main(int argc, char* argv[])
+ {
++ #ifndef WIN32
++ SetupEnvironment();
++ #endif
++
+ bool fRet = false;
+ fRet = AppInit(argc, argv);
+
+--- namecoin-vQ.3.72/src/qt/bitcoin.cpp
++++ namecoin-vQ.3.72/src/qt/bitcoin.cpp
+@@ -122,6 +122,10 @@
+ #ifndef BITCOIN_QT_TEST
+ int main(int argc, char *argv[])
+ {
++ #ifndef WIN32
++ SetupEnvironment();
++ #endif
++
+ // Command-line options take precedence:
+ ParseParameters(argc, argv);
+
+--- namecoin-vQ.3.72/src/util.cpp
++++ namecoin-vQ.3.72/src/util.cpp
+@@ -1101,3 +1101,20 @@
+ else
+ return SoftSetArg(strArg, std::string("0"));
+ }
++
++#ifndef WIN32
++void SetupEnvironment()
++{
++ try
++ {
++ #if BOOST_FILESYSTEM_VERSION == 3
++ boost::filesystem::path::codecvt(); // Raises runtime error if current locale is invalid
++ #else // boost filesystem v2
++ std::locale(); // Raises runtime error if current locale is invalid
++ #endif
++ } catch(std::runtime_error &e)
++ {
++ setenv("LC_ALL", "C", 1); // Force C locale
++ }
++}
++#endif
+--- namecoin-vQ.3.72/src/util.h
++++ namecoin-vQ.3.72/src/util.h
+@@ -198,6 +198,8 @@
+
+ void RandAddSeed();
+ void RandAddSeedPerfmon();
++void SetupEnvironment();
++
+ int OutputDebugStringF(const char* pszFormat, ...);
+ int my_snprintf(char* buffer, size_t limit, const char* format, ...);
+
+
diff --git a/testing/namecoin/40-build-qt5.patch b/testing/namecoin/40-build-qt5.patch
new file mode 100644
index 0000000000..1232e1d952
--- /dev/null
+++ b/testing/namecoin/40-build-qt5.patch
@@ -0,0 +1,259 @@
+--- namecoin-nc0.3.75/namecoin-qt.pro
++++ namecoin-nc0.3.75/namecoin-qt.pro
+@@ -3,7 +3,8 @@
+ macx:TARGET = "Namecoin-Qt"
+ VERSION = 0.3.75
+ INCLUDEPATH += src src/json src/qt
+-QT += network
++QT += core gui network
++greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
+ DEFINES += GUI QT_GUI BOOST_THREAD_USE_LIB BOOST_SPIRIT_THREADSAFE
+ CONFIG += no_include_pwd
+ CONFIG += thread
+@@ -118,30 +119,27 @@
+ # Input
+ DEPENDPATH += src src/json src/cryptopp src/qt
+
+-NAMECOIN_HEADERS = headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h \
+- script.h allocators.h db.h walletdb.h crypter.h net.h irc.h keystore.h main.h wallet.h bitcoinrpc.h uibase.h ui.h noui.h init.h auxpow.h
++HEADERS += src/headers.h src/strlcpy.h src/serialize.h src/uint256.h src/util.h src/key.h src/bignum.h src/base58.h \
++ src/script.h src/allocators.h src/db.h src/walletdb.h src/crypter.h src/net.h src/irc.h src/keystore.h src/main.h src/wallet.h src/bitcoinrpc.h src/uibase.h src/ui.h src/noui.h src/init.h src/auxpow.h
+
+-NAMECOIN_SOURCES = \
+- auxpow.cpp \
+- util.cpp \
+- key.cpp \
+- script.cpp \
+- db.cpp \
+- walletdb.cpp \
+- crypter.cpp \
+- net.cpp \
+- irc.cpp \
+- keystore.cpp \
+- main.cpp \
+- wallet.cpp \
+- bitcoinrpc.cpp \
+- init.cpp \
+- cryptopp/sha.cpp \
+- cryptopp/cpu.cpp \
+- namecoin.cpp
+-
+-HEADERS += $$join(NAMECOIN_HEADERS, " src/", " src/",)
+-SOURCES += $$join(NAMECOIN_SOURCES, " src/", " src/",)
++SOURCES += \
++ src/auxpow.cpp \
++ src/util.cpp \
++ src/key.cpp \
++ src/script.cpp \
++ src/db.cpp \
++ src/walletdb.cpp \
++ src/crypter.cpp \
++ src/net.cpp \
++ src/irc.cpp \
++ src/keystore.cpp \
++ src/main.cpp \
++ src/wallet.cpp \
++ src/bitcoinrpc.cpp \
++ src/init.cpp \
++ src/cryptopp/sha.cpp \
++ src/cryptopp/cpu.cpp \
++ src/namecoin.cpp
+
+ HEADERS += \
+ src/qt/netbase.h \
+--- namecoin-nc0.3.75/src/qt/addressbookpage.cpp
++++ namecoin-nc0.3.75.new/src/qt/addressbookpage.cpp
+@@ -140,8 +140,13 @@
+ // Set column widths
+ ui->tableView->horizontalHeader()->resizeSection(
+ AddressTableModel::Address, 320);
++#if QT_VERSION < 0x050000
+ ui->tableView->horizontalHeader()->setResizeMode(
+ AddressTableModel::Label, QHeaderView::Stretch);
++#else
++ ui->tableView->horizontalHeader()->setSectionResizeMode(
++ AddressTableModel::Label, QHeaderView::Stretch);
++#endif
+
+ connect(ui->tableView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
+ this, SLOT(selectionChanged()));
+--- namecoin-nc0.3.75/src/qt/bitcoin.cpp
++++ namecoin-nc0.3.75.new/src/qt/bitcoin.cpp
+@@ -20,7 +20,9 @@
+ #include <boost/filesystem.hpp>
+
+ #include <QMessageBox>
++#if QT_VERSION < 0x050000
+ #include <QTextCodec>
++#endif
+ #include <QLocale>
+ #include <QTimer>
+ #include <QTranslator>
+@@ -122,16 +124,14 @@
+ #ifndef BITCOIN_QT_TEST
+ int main(int argc, char *argv[])
+ {
+- #ifndef WIN32
+- SetupEnvironment();
+- #endif
+-
+ // Command-line options take precedence:
+ ParseParameters(argc, argv);
+
++#if QT_VERSION < 0x050000
+ // Internal string conversion is all UTF-8
+ QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
+ QTextCodec::setCodecForCStrings(QTextCodec::codecForTr());
++#endif
+
+ Q_INIT_RESOURCE(bitcoin);
+ QApplication app(argc, argv);
+--- namecoin-nc0.3.75/src/qt/bitcoingui.cpp
++++ namecoin-nc0.3.75.new/src/qt/bitcoingui.cpp
+@@ -49,10 +49,16 @@
+ #include <QDateTime>
+ #include <QMovie>
+ #include <QFileDialog>
++#if QT_VERSION < 0x050000
+ #include <QDesktopServices>
++#else
++#include <QStandardPaths>
++#endif
+ #include <QTimer>
+ #include <QDragEnterEvent>
++#if QT_VERSION < 0x050000
+ #include <QUrl>
++#endif
+ #include <QMimeData>
+ #include <QStyle>
+
+@@ -933,7 +939,11 @@
+
+ void BitcoinGUI::backupWallet()
+ {
++#if QT_VERSION < 0x050000
+ QString saveDir = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
++#else
++ QString saveDir = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation);
++#endif
+ QString filename = QFileDialog::getSaveFileName(this, tr("Backup Wallet"), saveDir, tr("Wallet Data (*.dat)"));
+ if(!filename.isEmpty()) {
+ if(!walletModel->backupWallet(filename)) {
+--- namecoin-nc0.3.75/src/qt/guiutil.cpp
++++ namecoin-nc0.3.75.new/src/qt/guiutil.cpp
+@@ -14,8 +14,12 @@
+ #include <QDoubleValidator>
+ #include <QFont>
+ #include <QLineEdit>
++#if QT_VERSION >= 0x050000
++#include <QUrlQuery>
++#else
+ #include <QUrl>
+-#include <QTextDocument> // For Qt::escape
++#endif
++#include <QTextDocument> // For Qt::mightBeRichText
+ #include <QAbstractItemView>
+ #include <QClipboard>
+ #include <QFileDialog>
+@@ -87,7 +91,12 @@
+ SendCoinsRecipient rv;
+ rv.address = uri.path();
+ rv.amount = 0;
++#if QT_VERSION < 0x050000
+ QList<QPair<QString, QString> > items = uri.queryItems();
++#else
++ QUrlQuery uriQuery(uri);
++ QList<QPair<QString, QString> > items = uriQuery.queryItems();
++#endif
+ for (QList<QPair<QString, QString> >::iterator i = items.begin(); i != items.end(); i++)
+ {
+ bool fShouldReturnFalse = false;
+@@ -140,7 +149,11 @@
+
+ QString HtmlEscape(const QString& str, bool fMultiLine)
+ {
++#if QT_VERSION < 0x050000
+ QString escaped = Qt::escape(str);
++#else
++ QString escaped = str.toHtmlEscaped();
++#endif
+ if(fMultiLine)
+ {
+ escaped = escaped.replace("\n", "<br>\n");
+@@ -175,7 +188,11 @@
+ QString myDir;
+ if(dir.isEmpty()) // Default to user documents location
+ {
++#if QT_VERSION < 0x050000
+ myDir = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
++#else
++ myDir = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation);
++#endif
+ }
+ else
+ {
+@@ -474,4 +491,4 @@
+ printf("SHGetSpecialFolderPathA() failed, could not obtain requested path.\n");
+ return fs::path("");
+ }
+-#endif
+\ No newline at end of file
++#endif
+--- namecoin-nc0.3.75/src/qt/managenamespage.cpp
++++ namecoin-nc0.3.75.new/src/qt/managenamespage.cpp
+@@ -162,8 +162,13 @@
+ // Set column widths
+ ui->tableView->horizontalHeader()->resizeSection(
+ NameTableModel::Name, COLUMN_WIDTH_NAME);
++#if QT_VERSION < 0x050000
+ ui->tableView->horizontalHeader()->setResizeMode(
+ NameTableModel::Value, QHeaderView::Stretch);
++#else
++ ui->tableView->horizontalHeader()->setSectionResizeMode(
++ NameTableModel::Value, QHeaderView::Stretch);
++#endif
+ ui->tableView->horizontalHeader()->resizeSection(
+ NameTableModel::Address, COLUMN_WIDTH_ADDRESS);
+ ui->tableView->horizontalHeader()->resizeSection(
+--- namecoin-nc0.3.75/src/qt/overviewpage.cpp
++++ namecoin-nc0.3.75.new/src/qt/overviewpage.cpp
+@@ -46,7 +46,11 @@
+ bool confirmed = index.data(TransactionTableModel::ConfirmedRole).toBool();
+ QVariant value = index.data(Qt::ForegroundRole);
+ QColor foreground = option.palette.color(QPalette::Text);
++#if QT_VERSION < 0x050000
+ if(qVariantCanConvert<QColor>(value))
++#else
++ if(value.canConvert(QMetaType::QColor))
++#endif
+ {
+ foreground = qvariant_cast<QColor>(value);
+ }
+--- namecoin-nc0.3.75/src/qt/sendcoinsdialog.cpp
++++ namecoin-nc0.3.75.new/src/qt/sendcoinsdialog.cpp
+@@ -94,7 +94,11 @@
+ QStringList formatted;
+ foreach(const SendCoinsRecipient &rcp, recipients)
+ {
++#if QT_VERSION < 0x050000
+ formatted.append(tr("<b>%1</b> to %2 (%3)").arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, rcp.amount), Qt::escape(rcp.label), rcp.address));
++#else
++ formatted.append(tr("<b>%1</b> to %2 (%3)").arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, rcp.amount), rcp.label.toHtmlEscaped(), rcp.address));
++#endif
+ }
+
+ fNewRecipientAllowed = false;
+--- namecoin-nc0.3.75/src/qt/transactionview.cpp
++++ namecoin-nc0.3.75.new/src/qt/transactionview.cpp
+@@ -174,7 +174,11 @@
+ transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Status, 23);
+ transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Date, 120);
+ transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Type, 120);
++#if QT_VERSION < 0x050000
+ transactionView->horizontalHeader()->setResizeMode(TransactionTableModel::ToAddress, QHeaderView::Stretch);
++#else
++ transactionView->horizontalHeader()->setSectionResizeMode(TransactionTableModel::ToAddress, QHeaderView::Stretch);
++#endif
+ transactionView->horizontalHeader()->resizeSection(TransactionTableModel::Amount, 100);
+ }
+ }
diff --git a/testing/namecoin/APKBUILD b/testing/namecoin/APKBUILD
index f852378963..82436a9670 100644
--- a/testing/namecoin/APKBUILD
+++ b/testing/namecoin/APKBUILD
@@ -1,26 +1,27 @@
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=namecoin
-pkgver=3.72
+pkgver=3.75
pkgrel=0
pkgdesc="Namecoin is a peer to peer DNS based on bitcoin"
url="https://github.com/namecoin/namecoin"
arch="all"
license="GPL"
depends=""
-depends_dev="openssl-dev db-dev boost-dev miniupnpc-dev glib-dev qt-dev"
+depends_dev="openssl-dev db-dev boost-dev miniupnpc-dev glib-dev qt5-qtbase-dev qt5-qttools-dev"
makedepends="$depends_dev"
install="$pkgname.post-install $pkgname.pre-install"
subpackages="$pkgname-qt"
-source="$pkgname-$pkgver.tar.gz::https://github.com/namecoin/namecoin/archive/vQ.$pkgver.tar.gz
- 10-use-latest-UPnP-lib.patch
+source="$pkgname-$pkgver.tar.gz::https://github.com/namecoin/namecoin/archive/nc0.$pkgver.tar.gz
+ 12-fix-miniupnpc.patch
20-boost-multithread-dynamic.patch
- 30-set-default-env.patch
+ 31-set-default-env-function.patch
+ 40-build-qt5.patch
$pkgname.initd
$pkgname.conf
"
-_builddir="$srcdir"/namecoin-vQ.$pkgver
+_builddir="$srcdir"/namecoin-nc0.$pkgver
prepare() {
local i
cd "$_builddir"
@@ -47,9 +48,9 @@ build() {
package() {
cd "$_builddir"/src
+ install -Dm755 namecoind "$pkgdir"/usr/bin/namecoind || return 1
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname || return 1
install -m600 -D "$srcdir"/$pkgname.conf "$pkgdir"/etc/$pkgname.conf || return 1
- install -Dm755 namecoind "$pkgdir"/usr/bin/namecoind || return 1
}
qt() {
@@ -59,21 +60,24 @@ qt() {
install -Dm755 namecoin-qt "$subpkgdir"/usr/bin/namecoin-qt || return 1
}
-md5sums="dc1cc80bcf0833f0bf7239e7ae6c1399 namecoin-3.72.tar.gz
-d7fdd69e1918b3ab7887e55043807aed 10-use-latest-UPnP-lib.patch
-c77c66d690ba5d1c35e5362809737c75 20-boost-multithread-dynamic.patch
-a1dde84304c5792a39264b5a02f902e8 30-set-default-env.patch
+md5sums="ee67ce5cc01cbf4dae4c76f56933c465 namecoin-3.75.tar.gz
+83a1465c87097c871f92b1518a66dbf8 12-fix-miniupnpc.patch
+9d5c1c0945e7dd825c0070cc3c7e0583 20-boost-multithread-dynamic.patch
+adcb5d3142435cc278f4f90d2f796094 31-set-default-env-function.patch
+8e0dea0fbb6c4582b45a4f8934f7354f 40-build-qt5.patch
9ecdbd9e17240075d064498a80fd50bd namecoin.initd
59b2e0e765738ba48f632051fb6917ae namecoin.conf"
-sha256sums="8c30214186bf0baf4f779235e82715a99686c8c358524ffa352b88e2a3d98725 namecoin-3.72.tar.gz
-08eebd4cd4c021fafcb90146661950214c07aaf420cb6d14f76bb853712344f2 10-use-latest-UPnP-lib.patch
-a605ee805cd2de213188bbe87b43929134538646797daf9a8635fa7824b5c20e 20-boost-multithread-dynamic.patch
-e05690acce74a1eb0a2f28d45b6190218b61f4a759f0e53e2837816da3a6ba09 30-set-default-env.patch
+sha256sums="6ca938951f408828a3b3d2c3ec3078956aa8a060405eb8f0632f4bfd824d7f98 namecoin-3.75.tar.gz
+403bdbad00961620eac497191302448e33b5f7f307b6f10e94089984fbdddafa 12-fix-miniupnpc.patch
+17a7aaabd71cc826d58851d58e81e978d2a5134953d477b11ef85292360de5a5 20-boost-multithread-dynamic.patch
+48dbfc38b9d2130b2c57ed265d037096d24554c870b56eda65d2e43a614bffc9 31-set-default-env-function.patch
+06c1bf0f780fdbc6df2dde73fe6aa3ae185e635ce581664e6a3663f046709f3f 40-build-qt5.patch
04ae66115343aa8ed7343139a2370b1e570c8ab4397d09457f5f157dd906a204 namecoin.initd
4b413833527929ea863351469a5a4fc1e0ac365fe9df5e8a8304d8667acf8cea namecoin.conf"
-sha512sums="fac3b0cb3d02ccb438869752581ab57df6dd8e47201e613e73c64459009d9d20358f6595400938e61bf795f679466a098bbc77f1b2940591ec93d04cc387ea32 namecoin-3.72.tar.gz
-f33c9080c462550030a559f0a5564d67150712151ffcb2be75474b56e0083c561dbe4d9f5d6699fe1fb915f54bda342c0e217502594035da6afd3c92cf9ab0b2 10-use-latest-UPnP-lib.patch
-c98027c1f51f411053c64279a9740ee66002f7dc13618363ec64b9f9a77a47ee535b95d810c50057a86d63c370b86bb7108f46cf6db5dfb627da80fdd1cb38ab 20-boost-multithread-dynamic.patch
-b3a074f3c3e5a0e4c22e75894b0b2d3152b4b22853b27621aa2e325ba274adec4562577779d63dd795ef0fd543699ecb3474329cec6e20347f6122446746a77b 30-set-default-env.patch
+sha512sums="96c823aa05ba9cf2f8cc92ebdf71c8c0377baa14f7192c4e6d577f6f9f421dc55b17f35a8d1019d1da917209c2773d78c114e986c2c56f4af5b6b7e2f8867d1c namecoin-3.75.tar.gz
+fdf06dcf40d2333728b89c9dcdc6ac0f7330c865578cfccb5daea008d572901d5efc48784bb308c9b0f8e778c0c6e179816e2357e9d92f64c15f6482f9a1b698 12-fix-miniupnpc.patch
+f4555776c9bb34bb3e805e07ceb702199df8f07bdc1358e5035a1f05e995a5999dfcc45d24bc79e66b9a40e3f0b3789878816073d5adacd7aa848c4429224da7 20-boost-multithread-dynamic.patch
+2ad327f21e685b86ca6767cf4545af29ad82d3593f5e3cc6cf6a64036408fe7bdd05cde98571c1747ece2ccd2fe88b5e77c59594a12a5377486d4e40b16c6096 31-set-default-env-function.patch
+ae4651f7695a4efb68859875c1628e552ef6b46721e625bc43618d8142551704d4c85226bd053a14e5f577e438dec45bd61170d529f28ab83944b7e209c11381 40-build-qt5.patch
3048248b3da7300b0b3cb5667283badc17b41e6c90573604fd9ea9eb9933e93f9b1d6288846793b4e7a001a4cae5e52d2ce42e4bdc83e48f72aca6ee0e8ddd43 namecoin.initd
3f92cb9a5f66d0e9e3792691b2e62b929c092030273bb87ebd9564e0c02196a5a9f69c458162f1b35099ac28e9b79b1c4035144b9d2dae4ad3e87d05a40d7ed4 namecoin.conf"
diff --git a/testing/namecoin/namecoin.post-install b/testing/namecoin/namecoin.post-install
index 78fa9e6103..ee8b756b40 100644
--- a/testing/namecoin/namecoin.post-install
+++ b/testing/namecoin/namecoin.post-install
@@ -28,7 +28,7 @@ print_green() {
printf "${prompt}%s"
}
-if grep -Fz "changeme" $config; then
+if grep -F "changeme" $config 1>/dev/null; then
GenPasswd
fi