Add dogecoin backend package
This commit is contained in:
parent
dfee2b0f78
commit
a77dd7529b
@ -1,4 +1,4 @@
|
||||
TARGETS = bitcoin zcash bcash ethereum bgold dash litecoin
|
||||
TARGETS = bitcoin zcash bcash ethereum bgold dash litecoin dogecoin
|
||||
IMAGE = blockbook-backend-build-deb
|
||||
NO_CACHE = false
|
||||
|
||||
|
||||
13
contrib/backends/dogecoin/Makefile
Normal file
13
contrib/backends/dogecoin/Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
DOGECOIN_VERSION := 1.10.0
|
||||
|
||||
all:
|
||||
wget https://github.com/dogecoin/dogecoin/releases/download/v${DOGECOIN_VERSION}/dogecoin-${DOGECOIN_VERSION}-linux64.tar.gz
|
||||
tar -xf dogecoin-${DOGECOIN_VERSION}-linux64.tar.gz
|
||||
mv dogecoin-${DOGECOIN_VERSION} dogecoin
|
||||
rm dogecoin/bin/dogecoin-qt
|
||||
rm dogecoin/bin/test_dogecoin*
|
||||
|
||||
|
||||
clean:
|
||||
rm -rf dogecoin
|
||||
rm -f dogecoin-${DOGECOIN_VERSION}-linux64.tar.gz
|
||||
@ -0,0 +1 @@
|
||||
/opt/coins/nodes/dogecoin/dogecoin.conf
|
||||
1
contrib/backends/dogecoin/debian/backend-dogecoin.dirs
Normal file
1
contrib/backends/dogecoin/debian/backend-dogecoin.dirs
Normal file
@ -0,0 +1 @@
|
||||
/opt/coins/data/dogecoin/backend
|
||||
@ -0,0 +1,2 @@
|
||||
dogecoin/* /opt/coins/nodes/dogecoin
|
||||
dogecoin.conf /opt/coins/nodes/dogecoin
|
||||
10
contrib/backends/dogecoin/debian/backend-dogecoin.logrotate
Normal file
10
contrib/backends/dogecoin/debian/backend-dogecoin.logrotate
Normal file
@ -0,0 +1,10 @@
|
||||
/opt/coins/data/dogecoin/backend/debug.log
|
||||
/opt/coins/data/dogecoin/backend/db.log
|
||||
{
|
||||
rotate 7
|
||||
daily
|
||||
compress
|
||||
missingok
|
||||
notifempty
|
||||
copytruncate
|
||||
}
|
||||
20
contrib/backends/dogecoin/debian/backend-dogecoin.postinst
Normal file
20
contrib/backends/dogecoin/debian/backend-dogecoin.postinst
Normal file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
|
||||
configure)
|
||||
if ! id -u dogecoin &> /dev/null
|
||||
then
|
||||
useradd --system -M -U dogecoin -s /bin/false
|
||||
fi
|
||||
|
||||
if [ "$(stat -c '%U' /opt/coins/data/dogecoin/backend)" != "dogecoin" ]
|
||||
then
|
||||
chown -R dogecoin:dogecoin /opt/coins/data/dogecoin/backend
|
||||
fi
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
47
contrib/backends/dogecoin/debian/backend-dogecoin.service
Normal file
47
contrib/backends/dogecoin/debian/backend-dogecoin.service
Normal file
@ -0,0 +1,47 @@
|
||||
# It is not recommended to modify this file in-place, because it will
|
||||
# be overwritten during package upgrades. If you want to add further
|
||||
# options or overwrite existing ones then use
|
||||
# $ systemctl edit dogecoin.service
|
||||
# See "man systemd.service" for details.
|
||||
|
||||
# Note that almost all daemon options could be specified in
|
||||
# /opt/coins/nodes/dogecoin/dogecoin.conf
|
||||
|
||||
[Unit]
|
||||
Description=Dogecoin daemon (mainnet)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/coins/nodes/dogecoin/bin/dogecoind -datadir=/opt/coins/data/dogecoin/backend -conf=/opt/coins/nodes/dogecoin/dogecoin.conf -pid=/run/dogecoind/dogecoin.pid
|
||||
# Creates /run/dogecoind owned by dogecoin
|
||||
RuntimeDirectory=dogecoind
|
||||
User=dogecoin
|
||||
Type=forking
|
||||
PIDFile=/run/dogecoind/dogecoin.pid
|
||||
Restart=on-failure
|
||||
|
||||
# Resource limits
|
||||
LimitNOFILE=500000
|
||||
|
||||
# Hardening measures
|
||||
####################
|
||||
|
||||
# Provide a private /tmp and /var/tmp.
|
||||
PrivateTmp=true
|
||||
|
||||
# Mount /usr, /boot/ and /etc read-only for the process.
|
||||
ProtectSystem=full
|
||||
|
||||
# Disallow the process and all of its children to gain
|
||||
# new privileges through execve().
|
||||
NoNewPrivileges=true
|
||||
|
||||
# Use a new /dev namespace only populated with API pseudo devices
|
||||
# such as /dev/null, /dev/zero and /dev/random.
|
||||
PrivateDevices=true
|
||||
|
||||
# Deny the creation of writable and executable memory mappings.
|
||||
MemoryDenyWriteExecute=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
5
contrib/backends/dogecoin/debian/changelog
Normal file
5
contrib/backends/dogecoin/debian/changelog
Normal file
@ -0,0 +1,5 @@
|
||||
dogecoin (1.10.0-satoshilabs1) unstable; urgency=medium
|
||||
|
||||
* Initial build
|
||||
|
||||
-- Martin Bohm <martin.bohm@satoshilabs.com> Thu, 14 Jun 2018 11:12:13 +0200
|
||||
1
contrib/backends/dogecoin/debian/compat
Normal file
1
contrib/backends/dogecoin/debian/compat
Normal file
@ -0,0 +1 @@
|
||||
9
|
||||
11
contrib/backends/dogecoin/debian/control
Normal file
11
contrib/backends/dogecoin/debian/control
Normal file
@ -0,0 +1,11 @@
|
||||
Source: dogecoin
|
||||
Section: satoshilabs
|
||||
Priority: optional
|
||||
Maintainer: martin.bohm@satoshilabs.com
|
||||
Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd, dh-exec
|
||||
Standards-Version: 3.9.5
|
||||
|
||||
Package: backend-dogecoin
|
||||
Architecture: amd64
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate
|
||||
Description: Satoshilabs packaged dogecoin server
|
||||
11
contrib/backends/dogecoin/debian/rules
Executable file
11
contrib/backends/dogecoin/debian/rules
Executable file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
DH_VERBOSE = 1
|
||||
|
||||
%:
|
||||
dh $@ --with=systemd
|
||||
|
||||
override_dh_systemd_start:
|
||||
dh_systemd_start --no-start
|
||||
|
||||
override_dh_installinit:
|
||||
17
contrib/backends/dogecoin/dogecoin.conf
Normal file
17
contrib/backends/dogecoin/dogecoin.conf
Normal file
@ -0,0 +1,17 @@
|
||||
daemon=1
|
||||
server=1
|
||||
nolisten=1
|
||||
rpcuser=rpc
|
||||
rpcpassword=rpc
|
||||
rpcport=8038
|
||||
txindex=1
|
||||
whitelist=127.0.0.1
|
||||
|
||||
zmqpubhashtx=tcp://127.0.0.1:38338
|
||||
zmqpubhashblock=tcp://127.0.0.1:38338
|
||||
|
||||
rpcworkqueue=1100
|
||||
maxmempool=2000
|
||||
dbcache=1000
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user