mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
community/namecoin: remove
unmaintained, cryptocurrency garbage closes #14735
This commit is contained in:
parent
8ab65c0875
commit
4ebf31dbab
@ -1,108 +0,0 @@
|
||||
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
|
||||
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
|
||||
pkgname=namecoin
|
||||
pkgver=23.0
|
||||
pkgrel=2
|
||||
pkgdesc="Namecoin is a peer to peer DNS based on bitcoin"
|
||||
url="https://www.namecoin.org/"
|
||||
#x86, ppc64le: Test failures
|
||||
#s390x: Missing packages
|
||||
arch="all !s390x !x86 !ppc64le"
|
||||
license="MIT"
|
||||
makedepends="$depends_dev autoconf automake libtool boost-dev
|
||||
miniupnpc-dev qt5-qtbase-dev qt5-qttools-dev protobuf-dev
|
||||
libqrencode-dev libevent-dev chrpath"
|
||||
install="$pkgname.post-install $pkgname.pre-install"
|
||||
subpackages="$pkgname-dev $pkgname-qt $pkgname-cli $pkgname-tx $pkgname-tests $pkgname-bench
|
||||
$pkgname-doc $pkgname-openrc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/namecoin/namecoin-core/archive/nc$pkgver.tar.gz
|
||||
ssize_t.patch
|
||||
fix-missing-include.patch
|
||||
$pkgname.initd
|
||||
$pkgname.conf
|
||||
"
|
||||
builddir="$srcdir/$pkgname-core-nc$pkgver"
|
||||
|
||||
case "$CARCH" in
|
||||
"riscv64")
|
||||
options="textrels"
|
||||
;;
|
||||
esac
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--build=$CBUILD \
|
||||
--host=$CHOST \
|
||||
--prefix=/usr \
|
||||
--mandir=/usr/share/man \
|
||||
--with-gui=qt5 \
|
||||
--with-utils \
|
||||
--disable-ccache \
|
||||
--disable-static \
|
||||
--enable-hardening \
|
||||
--disable-wallet
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
export LC_ALL=C; unset LANGUAGE
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
make install DESTDIR="$pkgdir"
|
||||
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
||||
install -m600 -D "$srcdir"/$pkgname.conf "$pkgdir"/etc/$pkgname.conf
|
||||
rm -f "$pkgdir"/usr/lib/*.la
|
||||
}
|
||||
|
||||
qt() {
|
||||
pkgdesc="Namecoin with a Qt frontend & QR Code support"
|
||||
mkdir -p "$subpkgdir"/usr/bin
|
||||
mv "$pkgdir"/usr/bin/$pkgname-qt "$subpkgdir"/usr/bin/
|
||||
}
|
||||
|
||||
cli() {
|
||||
pkgdesc="Namecoin CLI"
|
||||
mkdir -p "$subpkgdir"/usr/bin
|
||||
mv "$pkgdir"/usr/bin/$pkgname-cli "$subpkgdir"/usr/bin/
|
||||
}
|
||||
|
||||
tx() {
|
||||
pkgdesc="Namecoin TX (Transaction Tool)"
|
||||
mkdir -p "$subpkgdir"/usr/bin
|
||||
mv "$pkgdir"/usr/bin/$pkgname-tx "$subpkgdir"/usr/bin/
|
||||
}
|
||||
|
||||
tests() {
|
||||
pkgdesc="Namecoin & Namecoin-QT Unit Tests)"
|
||||
mkdir -p "$subpkgdir"/usr/bin
|
||||
chrpath -d "$pkgdir"/usr/bin/test_namecoin
|
||||
mv "$pkgdir"/usr/bin/test_$pkgname-qt "$subpkgdir"/usr/bin/
|
||||
mv "$pkgdir"/usr/bin/test_$pkgname "$subpkgdir"/usr/bin/
|
||||
}
|
||||
|
||||
bench() {
|
||||
pkgdesc="Namecoin Benchmarking Tools"
|
||||
mkdir -p "$subpkgdir"/usr/bin
|
||||
mv "$pkgdir"/usr/bin/bench_$pkgname "$subpkgdir"/usr/bin/
|
||||
}
|
||||
|
||||
dev() {
|
||||
mkdir -p "$subpkgdir"/usr
|
||||
mv "$pkgdir"/usr/lib "$subpkgdir"/usr/
|
||||
mv "$pkgdir"/usr/include "$subpkgdir"/usr/
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
b119cbf3039ae544fbe694a51efcc43cbd5b4764b46783272f16422aad723abf54517fc07e220bb39658aa2ca062095c8ebd8743f896f0223e3b01c7135dd14e namecoin-23.0.tar.gz
|
||||
98aa5ad81bdb4ae961b791bc978c39117cdf2d83c2181f92bebbb0db107d9b6e86eda265fb3f93ff8a5ca8a7754d7148818b98095d57201dff9363d60b97e7dd ssize_t.patch
|
||||
a1e23ca2981a35057dd1289bdbd7ddb4d1af2efefbbd8d4ce65420ea5507fe24413d360beb91cf6ff6b31496e1b04171535971f2e23b7e529f0591fb521514cd fix-missing-include.patch
|
||||
1753132f349e02cc248a622eb17f2f98a180d561d46f2e8916b84cc26c98d546214ca305bb1ea378ae14090c0abf8d6ac257c98c6776bbe4dabd68c108f595a3 namecoin.initd
|
||||
3f92cb9a5f66d0e9e3792691b2e62b929c092030273bb87ebd9564e0c02196a5a9f69c458162f1b35099ac28e9b79b1c4035144b9d2dae4ad3e87d05a40d7ed4 namecoin.conf
|
||||
"
|
||||
@ -1,14 +0,0 @@
|
||||
|
||||
diff --git a/src/qt/buynamespage.h b/src/qt/buynamespage.h
|
||||
index 03a565c..1aa3097 100644
|
||||
--- a/src/qt/buynamespage.h
|
||||
+++ b/src/qt/buynamespage.h
|
||||
@@ -5,6 +5,8 @@
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
+#include <optional>
|
||||
+
|
||||
class WalletModel;
|
||||
|
||||
namespace Ui {
|
||||
@ -1,13 +0,0 @@
|
||||
### Namecoin configuration for Alpine Linux ###
|
||||
# #
|
||||
##### data directory is /var/lib/namecoin #####
|
||||
##### & set in /etc/init.d/namecoin not here ##
|
||||
#
|
||||
#proxy=127.0.0.1:9050 #use TOR Socks Proxy
|
||||
rpcallowip=127.0.0.1
|
||||
rpcuser=changeme
|
||||
rpcpassword=changeme
|
||||
rpcport=changeme
|
||||
daemon=1
|
||||
#gen=1 #generate namecoins
|
||||
|
||||
@ -1,38 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
# Namecoin init.d file for Alpine Linux.
|
||||
|
||||
name=namecoind
|
||||
daemon=/usr/bin/$name
|
||||
config=/etc/namecoin.conf
|
||||
user=namecoin
|
||||
group=namecoin
|
||||
## supercedes datadir set in $config ##
|
||||
datadir=/var/lib/namecoin
|
||||
pidfile=/run/namecoin/$name.pid
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after logger firewall
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting ${name}"
|
||||
# enforce permissions
|
||||
checkpath -q -d ${pidfile%/*} -o ${user}:${group}
|
||||
checkpath -q -d ${datadir} -m 0700 -o ${user}:${group}
|
||||
checkpath -q -f ${config} -m 0600 -o ${user}:${group}
|
||||
start-stop-daemon --start --quiet \
|
||||
--pidfile ${pidfile} \
|
||||
--user ${user}:${group} \
|
||||
--exec ${daemon} -- -conf=${config} -datadir=${datadir} -pid=${pidfile}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${name}"
|
||||
start-stop-daemon --stop --quiet \
|
||||
--pidfile ${pidfile} \
|
||||
--exec ${daemon}
|
||||
eend $?
|
||||
}
|
||||
@ -1,35 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
NORMAL="\033[1;0m"
|
||||
STRONG="\033[1;1m"
|
||||
GREEN="\033[1;32m"
|
||||
|
||||
config=$(grep -F 'config=' /etc/init.d/namecoin |sed 's/config=//')
|
||||
|
||||
randgen() {
|
||||
output=$(cat /dev/urandom | tr -dc '0-9a-zA-Z!@#$%^&*_+-' | head -c${1:-$1}) 2>/dev/null
|
||||
echo $output
|
||||
}
|
||||
|
||||
findRandomTcpPort(){
|
||||
port=$(( 1024 + $(( $RANDOM % $(( 65534 - 1024 )) )) ))
|
||||
while netstat -atn | grep -q :$port; do port=$(expr $port + 1); done; echo $port
|
||||
}
|
||||
|
||||
GenPasswd(){
|
||||
sed -i "/rpcuser=/ c \rpcuser=USER-"$(randgen 32)"" $config
|
||||
sed -i "/rpcpassword=/ c \rpcpassword=PW-"$(randgen 64)"" $config
|
||||
sed -i "/rpcport=/ c \rpcport="$(findRandomTcpPort)"" $config
|
||||
print_green "Generated random user / password / port in:" " $config\n"
|
||||
}
|
||||
|
||||
print_green() {
|
||||
local prompt="${STRONG}$1${GREEN}$2${NORMAL}"
|
||||
printf "${prompt}%s"
|
||||
}
|
||||
|
||||
if grep -F "changeme" $config 1>/dev/null; then
|
||||
GenPasswd
|
||||
fi
|
||||
|
||||
exit 0
|
||||
@ -1,6 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
addgroup -S namecoin 2>/dev/null
|
||||
adduser -S -D -h /var/lib/namecoin -s /sbin/nologin -G namecoin -g namecoin namecoin 2>/dev/null
|
||||
|
||||
exit 0
|
||||
@ -1,12 +0,0 @@
|
||||
diff --git a/src/leveldb/db/db_iter.cc b/src/leveldb/db/db_iter.cc
|
||||
index 071a54e..68a18f2 100644
|
||||
--- a/src/leveldb/db/db_iter.cc
|
||||
+++ b/src/leveldb/db/db_iter.cc
|
||||
@@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file. See the AUTHORS file for names of contributors.
|
||||
|
||||
+#include <sys/types.h>
|
||||
#include "db/db_iter.h"
|
||||
|
||||
#include "db/filename.h"
|
||||
Loading…
x
Reference in New Issue
Block a user