diff --git a/.gitignore b/.gitignore index a0061456..4f23b5df 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,8 @@ notes.txt debug* .vscode docker/blockbook +build +!build/templates +!build/docker +.bin-image +.deb-image \ No newline at end of file diff --git a/Makefile b/Makefile index 0698ed8f..69798c62 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,8 @@ NO_CACHE = false UPDATE_VENDOR = 1 ARGS ?= +TARGETS=$(subst .json,, $(shell ls configs/coins)) + .PHONY: build build-debug test deb build: .bin-image @@ -19,24 +21,29 @@ test: .bin-image test-all: .bin-image docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src --network="host" $(BIN_IMAGE) make test-all ARGS="$(ARGS)" -deb: .deb-image clean-deb - docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(DEB_IMAGE) /build/build-deb.sh $(ARGS) +deb-backend-%: .deb-image + docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(DEB_IMAGE) /build/build-deb.sh backend $* $(ARGS) -tools: - docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(BIN_IMAGE) make tools ARGS="$(ARGS)" +deb-blockbook-%: .deb-image + docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(DEB_IMAGE) /build/build-deb.sh blockbook $* $(ARGS) -all: build-images deb +deb-%: .deb-image + docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v $(CURDIR):/src -v $(CURDIR)/build:/out $(DEB_IMAGE) /build/build-deb.sh all $* $(ARGS) + +$(addprefix all-, $(TARGETS)): all-%: clean-deb build-images deb-% + +all: clean-deb build-images $(addprefix deb-, $(TARGETS)) build-images: rm -f .bin-image .deb-image $(MAKE) .bin-image .deb-image .bin-image: - docker build --no-cache=$(NO_CACHE) -t $(BIN_IMAGE) build/bin + docker build --no-cache=$(NO_CACHE) -t $(BIN_IMAGE) build/docker/bin @ docker images -q $(BIN_IMAGE) > $@ .deb-image: .bin-image - docker build --no-cache=$(NO_CACHE) -t $(DEB_IMAGE) build/deb + docker build --no-cache=$(NO_CACHE) -t $(DEB_IMAGE) build/docker/deb @ docker images -q $(DEB_IMAGE) > $@ clean: clean-bin clean-deb @@ -47,6 +54,7 @@ clean-bin: find build -maxdepth 1 -type f -executable -delete clean-deb: + rm -rf build/pkg-defs rm -f build/*.deb clean-images: clean-bin-image clean-deb-image diff --git a/bchain/coins/btc/bitcoinrpc.go b/bchain/coins/btc/bitcoinrpc.go index c8a9f476..a6305106 100644 --- a/bchain/coins/btc/bitcoinrpc.go +++ b/bchain/coins/btc/bitcoinrpc.go @@ -38,19 +38,20 @@ type BitcoinRPC struct { type Configuration struct { CoinName string `json:"coin_name"` - RPCURL string `json:"rpcURL"` - RPCUser string `json:"rpcUser"` - RPCPass string `json:"rpcPass"` - RPCTimeout int `json:"rpcTimeout"` + CoinShortcut string `json:"coin_shortcut"` + RPCURL string `json:"rpc_url"` + RPCUser string `json:"rpc_user"` + RPCPass string `json:"rpc_pass"` + RPCTimeout int `json:"rpc_timeout"` Parse bool `json:"parse"` - ZeroMQBinding string `json:"zeroMQBinding"` + MessageQueueBinding string `json:"message_queue_binding"` Subversion string `json:"subversion"` - BlockAddressesToKeep int `json:"blockAddressesToKeep"` - MempoolWorkers int `json:"mempoolWorkers"` - MempoolSubWorkers int `json:"mempoolSubWorkers"` - AddressFormat string `json:"addressFormat"` - SupportsEstimateFee bool `json:"supportsEstimateFee"` - SupportsEstimateSmartFee bool `json:"supportsEstimateSmartFee"` + BlockAddressesToKeep int `json:"block_addresses_to_keep"` + MempoolWorkers int `json:"mempool_workers"` + MempoolSubWorkers int `json:"mempool_sub_workers"` + AddressFormat string `json:"address_format"` + SupportsEstimateFee bool `json:"supports_estimate_fee"` + SupportsEstimateSmartFee bool `json:"supports_estimate_smart_fee"` } // NewBitcoinRPC returns new BitcoinRPC instance. @@ -106,7 +107,7 @@ func (b *BitcoinRPC) GetChainInfoAndInitializeMempool(bc bchain.BlockChain) (str return "", err } - mq, err := bchain.NewMQ(b.ChainConfig.ZeroMQBinding, b.pushHandler) + mq, err := bchain.NewMQ(b.ChainConfig.MessageQueueBinding, b.pushHandler) if err != nil { glog.Error("mq: ", err) return "", err diff --git a/bchain/coins/eth/ethrpc.go b/bchain/coins/eth/ethrpc.go index 2dda7005..0a19e10b 100644 --- a/bchain/coins/eth/ethrpc.go +++ b/bchain/coins/eth/ethrpc.go @@ -30,9 +30,10 @@ const ( ) type Configuration struct { - CoinName string `json:"coin_name"` - RPCURL string `json:"rpcURL"` - RPCTimeout int `json:"rpcTimeout"` + CoinName string `json:"coin_name"` + CoinShortcut string `json:"coin_shortcut"` + RPCURL string `json:"rpc_url"` + RPCTimeout int `json:"rpc_timeout"` } // EthereumRPC is an interface to JSON-RPC eth service. diff --git a/build/deb/build-deb.sh b/build/deb/build-deb.sh deleted file mode 100755 index f39e48d1..00000000 --- a/build/deb/build-deb.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -set -e - -cp -r /src/build/deb/debian . -cp -r /src/configs . -cp -r /src/static static -mkdir cert && cp /src/server/testcert.* cert - -export VERSION=$(dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)([-+~].+)?$/\1/p') - -dpkg-buildpackage -us -uc $@ -mv ../*.deb /out -chown $PACKAGER /out/*.deb diff --git a/build/deb/debian/blockbook-bcash-testnet.conffiles b/build/deb/debian/blockbook-bcash-testnet.conffiles deleted file mode 100644 index 47da7625..00000000 --- a/build/deb/debian/blockbook-bcash-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/bcash_testnet/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-bcash-testnet.cron.daily b/build/deb/debian/blockbook-bcash-testnet.cron.daily deleted file mode 100644 index ffc5baf8..00000000 --- a/build/deb/debian/blockbook-bcash-testnet.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/bcash_testnet/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-bcash-testnet.dirs b/build/deb/debian/blockbook-bcash-testnet.dirs deleted file mode 100644 index 194e9726..00000000 --- a/build/deb/debian/blockbook-bcash-testnet.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/bcash_testnet/blockbook -/opt/coins/blockbook/bcash_testnet/logs diff --git a/build/deb/debian/blockbook-bcash-testnet.install b/build/deb/debian/blockbook-bcash-testnet.install deleted file mode 100755 index e212e59a..00000000 --- a/build/deb/debian/blockbook-bcash-testnet.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/bcash_testnet/bin -cert /opt/coins/blockbook/bcash_testnet -static /opt/coins/blockbook/bcash_testnet -configs/bcash_testnet.json => /opt/coins/blockbook/bcash_testnet/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/bcash_testnet/bin diff --git a/build/deb/debian/blockbook-bcash-testnet.links b/build/deb/debian/blockbook-bcash-testnet.links deleted file mode 100644 index 99a18b69..00000000 --- a/build/deb/debian/blockbook-bcash-testnet.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/bcash_testnet/cert/testcert.crt /opt/coins/blockbook/bcash_testnet/cert/blockbook.crt -/opt/coins/blockbook/bcash_testnet/cert/testcert.key /opt/coins/blockbook/bcash_testnet/cert/blockbook.key diff --git a/build/deb/debian/blockbook-bcash-testnet.postinst b/build/deb/debian/blockbook-bcash-testnet.postinst deleted file mode 100644 index 58ef2f9f..00000000 --- a/build/deb/debian/blockbook-bcash-testnet.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-bcash &> /dev/null - then - useradd --system -M -U blockbook-bcash -s /bin/false - fi - - for dir in /opt/coins/data/bcash_testnet/blockbook /opt/coins/blockbook/bcash_testnet/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-bcash" ] - then - chown -R blockbook-bcash:blockbook-bcash $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-bcash-testnet.service b/build/deb/debian/blockbook-bcash-testnet.service deleted file mode 100644 index 165fe74c..00000000 --- a/build/deb/debian/blockbook-bcash-testnet.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-bcash-testnet.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Bcash testnet) -After=network.target -Wants=backend-bcash-testnet.service - -[Service] -ExecStart=/opt/coins/blockbook/bcash_testnet/bin/blockbook -blockchaincfg=/opt/coins/blockbook/bcash_testnet/config/blockchaincfg.json -datadir=/opt/coins/data/bcash_testnet/blockbook/db -sync -internal=:19031 -public=:19131 -certfile=/opt/coins/blockbook/bcash_testnet/cert/blockbook -explorer=https://bitcoincash.blockexplorer.com/ -log_dir=/opt/coins/blockbook/bcash_testnet/logs -User=blockbook-bcash -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/bcash_testnet - -# 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 diff --git a/build/deb/debian/blockbook-bcash.conffiles b/build/deb/debian/blockbook-bcash.conffiles deleted file mode 100644 index 684c0294..00000000 --- a/build/deb/debian/blockbook-bcash.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/bcash/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-bcash.cron.daily b/build/deb/debian/blockbook-bcash.cron.daily deleted file mode 100644 index 4a66059f..00000000 --- a/build/deb/debian/blockbook-bcash.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/bcash/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-bcash.dirs b/build/deb/debian/blockbook-bcash.dirs deleted file mode 100644 index 5cf39a34..00000000 --- a/build/deb/debian/blockbook-bcash.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/bcash/blockbook -/opt/coins/blockbook/bcash/logs diff --git a/build/deb/debian/blockbook-bcash.install b/build/deb/debian/blockbook-bcash.install deleted file mode 100755 index ccd90741..00000000 --- a/build/deb/debian/blockbook-bcash.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/bcash/bin -cert /opt/coins/blockbook/bcash -static /opt/coins/blockbook/bcash -configs/bcash.json => /opt/coins/blockbook/bcash/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/bcash/bin diff --git a/build/deb/debian/blockbook-bcash.links b/build/deb/debian/blockbook-bcash.links deleted file mode 100644 index 3d1bc911..00000000 --- a/build/deb/debian/blockbook-bcash.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/bcash/cert/testcert.crt /opt/coins/blockbook/bcash/cert/blockbook.crt -/opt/coins/blockbook/bcash/cert/testcert.key /opt/coins/blockbook/bcash/cert/blockbook.key diff --git a/build/deb/debian/blockbook-bcash.postinst b/build/deb/debian/blockbook-bcash.postinst deleted file mode 100644 index 52f36399..00000000 --- a/build/deb/debian/blockbook-bcash.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-bcash &> /dev/null - then - useradd --system -M -U blockbook-bcash -s /bin/false - fi - - for dir in /opt/coins/data/bcash/blockbook /opt/coins/blockbook/bcash/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-bcash" ] - then - chown -R blockbook-bcash:blockbook-bcash $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-bcash.service b/build/deb/debian/blockbook-bcash.service deleted file mode 100644 index 6c2121a5..00000000 --- a/build/deb/debian/blockbook-bcash.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-bcash.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Bcash mainnet) -After=network.target -Wants=backend-bcash.service - -[Service] -ExecStart=/opt/coins/blockbook/bcash/bin/blockbook -blockchaincfg=/opt/coins/blockbook/bcash/config/blockchaincfg.json -datadir=/opt/coins/data/bcash/blockbook/db -sync -internal=:9031 -public=:9131 -certfile=/opt/coins/blockbook/bcash/cert/blockbook -explorer=https://bitcoincash.blockexplorer.com/ -log_dir=/opt/coins/blockbook/bcash/logs -User=blockbook-bcash -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/bcash - -# 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 diff --git a/build/deb/debian/blockbook-bgold.conffiles b/build/deb/debian/blockbook-bgold.conffiles deleted file mode 100644 index ae1dd9e3..00000000 --- a/build/deb/debian/blockbook-bgold.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/bgold/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-bgold.cron.daily b/build/deb/debian/blockbook-bgold.cron.daily deleted file mode 100644 index e35bc5f6..00000000 --- a/build/deb/debian/blockbook-bgold.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/bgold/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-bgold.dirs b/build/deb/debian/blockbook-bgold.dirs deleted file mode 100644 index c9763c5b..00000000 --- a/build/deb/debian/blockbook-bgold.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/bgold/blockbook -/opt/coins/blockbook/bgold/logs diff --git a/build/deb/debian/blockbook-bgold.install b/build/deb/debian/blockbook-bgold.install deleted file mode 100755 index 0da6bda1..00000000 --- a/build/deb/debian/blockbook-bgold.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/bgold/bin -cert /opt/coins/blockbook/bgold -static /opt/coins/blockbook/bgold -configs/bgold.json => /opt/coins/blockbook/bgold/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/bgold/bin diff --git a/build/deb/debian/blockbook-bgold.links b/build/deb/debian/blockbook-bgold.links deleted file mode 100644 index 2e7f975b..00000000 --- a/build/deb/debian/blockbook-bgold.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/bgold/cert/testcert.crt /opt/coins/blockbook/bgold/cert/blockbook.crt -/opt/coins/blockbook/bgold/cert/testcert.key /opt/coins/blockbook/bgold/cert/blockbook.key diff --git a/build/deb/debian/blockbook-bgold.postinst b/build/deb/debian/blockbook-bgold.postinst deleted file mode 100644 index c51d2164..00000000 --- a/build/deb/debian/blockbook-bgold.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-bgold &> /dev/null - then - useradd --system -M -U blockbook-bgold -s /bin/false - fi - - for dir in /opt/coins/data/bgold/blockbook /opt/coins/blockbook/bgold/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-bgold" ] - then - chown -R blockbook-bgold:blockbook-bgold $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-bgold.service b/build/deb/debian/blockbook-bgold.service deleted file mode 100644 index 83e0b5f6..00000000 --- a/build/deb/debian/blockbook-bgold.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-bgold.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Bitcoin Gold mainnet) -After=network.target -Wants=backend-bgold.service - -[Service] -ExecStart=/opt/coins/blockbook/bgold/bin/blockbook -blockchaincfg=/opt/coins/blockbook/bgold/config/blockchaincfg.json -datadir=/opt/coins/data/bgold/blockbook/db -sync -internal=:9035 -public=:9135 -certfile=/opt/coins/blockbook/bgold/cert/blockbook -explorer=/explorer -log_dir=/opt/coins/blockbook/bgold/logs -User=blockbook-bgold -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/bgold - -# 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 diff --git a/build/deb/debian/blockbook-bitcoin-testnet.conffiles b/build/deb/debian/blockbook-bitcoin-testnet.conffiles deleted file mode 100644 index 92125db8..00000000 --- a/build/deb/debian/blockbook-bitcoin-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/bitcoin_testnet/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-bitcoin-testnet.cron.daily b/build/deb/debian/blockbook-bitcoin-testnet.cron.daily deleted file mode 100644 index df131d31..00000000 --- a/build/deb/debian/blockbook-bitcoin-testnet.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/bitcoin_testnet/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-bitcoin-testnet.dirs b/build/deb/debian/blockbook-bitcoin-testnet.dirs deleted file mode 100644 index a18466ea..00000000 --- a/build/deb/debian/blockbook-bitcoin-testnet.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/bitcoin_testnet/blockbook -/opt/coins/blockbook/bitcoin_testnet/logs diff --git a/build/deb/debian/blockbook-bitcoin-testnet.install b/build/deb/debian/blockbook-bitcoin-testnet.install deleted file mode 100755 index aae85658..00000000 --- a/build/deb/debian/blockbook-bitcoin-testnet.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/bitcoin_testnet/bin -cert /opt/coins/blockbook/bitcoin_testnet -static /opt/coins/blockbook/bitcoin_testnet -configs/bitcoin_testnet.json => /opt/coins/blockbook/bitcoin_testnet/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/bitcoin_testnet/bin diff --git a/build/deb/debian/blockbook-bitcoin-testnet.links b/build/deb/debian/blockbook-bitcoin-testnet.links deleted file mode 100644 index f60dbadf..00000000 --- a/build/deb/debian/blockbook-bitcoin-testnet.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/bitcoin_testnet/cert/testcert.crt /opt/coins/blockbook/bitcoin_testnet/cert/blockbook.crt -/opt/coins/blockbook/bitcoin_testnet/cert/testcert.key /opt/coins/blockbook/bitcoin_testnet/cert/blockbook.key diff --git a/build/deb/debian/blockbook-bitcoin-testnet.postinst b/build/deb/debian/blockbook-bitcoin-testnet.postinst deleted file mode 100644 index 8f4637ce..00000000 --- a/build/deb/debian/blockbook-bitcoin-testnet.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-bitcoin &> /dev/null - then - useradd --system -M -U blockbook-bitcoin -s /bin/false - fi - - for dir in /opt/coins/data/bitcoin_testnet/blockbook /opt/coins/blockbook/bitcoin_testnet/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-bitcoin" ] - then - chown -R blockbook-bitcoin:blockbook-bitcoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-bitcoin-testnet.service b/build/deb/debian/blockbook-bitcoin-testnet.service deleted file mode 100644 index 53030fb8..00000000 --- a/build/deb/debian/blockbook-bitcoin-testnet.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-bitcoin-testnet.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Bitcoin testnet) -After=network.target -Wants=backend-bitcoin-testnet.service - -[Service] -ExecStart=/opt/coins/blockbook/bitcoin_testnet/bin/blockbook -blockchaincfg=/opt/coins/blockbook/bitcoin_testnet/config/blockchaincfg.json -datadir=/opt/coins/data/bitcoin_testnet/blockbook/db -sync -internal=:19030 -public=:19130 -certfile=/opt/coins/blockbook/bitcoin_testnet/cert/blockbook -explorer=/explorer -log_dir=/opt/coins/blockbook/bitcoin_testnet/logs -User=blockbook-bitcoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/bitcoin_testnet - -# 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 diff --git a/build/deb/debian/blockbook-bitcoin.conffiles b/build/deb/debian/blockbook-bitcoin.conffiles deleted file mode 100644 index bfdf0a35..00000000 --- a/build/deb/debian/blockbook-bitcoin.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/bitcoin/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-bitcoin.cron.daily b/build/deb/debian/blockbook-bitcoin.cron.daily deleted file mode 100644 index 87303379..00000000 --- a/build/deb/debian/blockbook-bitcoin.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/bitcoin/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-bitcoin.dirs b/build/deb/debian/blockbook-bitcoin.dirs deleted file mode 100644 index 342d1763..00000000 --- a/build/deb/debian/blockbook-bitcoin.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/bitcoin/blockbook -/opt/coins/blockbook/bitcoin/logs diff --git a/build/deb/debian/blockbook-bitcoin.install b/build/deb/debian/blockbook-bitcoin.install deleted file mode 100755 index 23cf878e..00000000 --- a/build/deb/debian/blockbook-bitcoin.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/bitcoin/bin -cert /opt/coins/blockbook/bitcoin -static /opt/coins/blockbook/bitcoin -configs/bitcoin.json => /opt/coins/blockbook/bitcoin/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/bitcoin/bin diff --git a/build/deb/debian/blockbook-bitcoin.links b/build/deb/debian/blockbook-bitcoin.links deleted file mode 100644 index 322c6cf1..00000000 --- a/build/deb/debian/blockbook-bitcoin.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/bitcoin/cert/testcert.crt /opt/coins/blockbook/bitcoin/cert/blockbook.crt -/opt/coins/blockbook/bitcoin/cert/testcert.key /opt/coins/blockbook/bitcoin/cert/blockbook.key diff --git a/build/deb/debian/blockbook-bitcoin.postinst b/build/deb/debian/blockbook-bitcoin.postinst deleted file mode 100644 index 87945f88..00000000 --- a/build/deb/debian/blockbook-bitcoin.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-bitcoin &> /dev/null - then - useradd --system -M -U blockbook-bitcoin -s /bin/false - fi - - for dir in /opt/coins/data/bitcoin/blockbook /opt/coins/blockbook/bitcoin/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-bitcoin" ] - then - chown -R blockbook-bitcoin:blockbook-bitcoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-bitcoin.service b/build/deb/debian/blockbook-bitcoin.service deleted file mode 100644 index 6a8f9d80..00000000 --- a/build/deb/debian/blockbook-bitcoin.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-bitcoin.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Bitcoin mainnet) -After=network.target -Wants=backend-bitcoin.service - -[Service] -ExecStart=/opt/coins/blockbook/bitcoin/bin/blockbook -blockchaincfg=/opt/coins/blockbook/bitcoin/config/blockchaincfg.json -datadir=/opt/coins/data/bitcoin/blockbook/db -sync -internal=:9030 -public=:9130 -certfile=/opt/coins/blockbook/bitcoin/cert/blockbook -explorer=/explorer -log_dir=/opt/coins/blockbook/bitcoin/logs -User=blockbook-bitcoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/bitcoin - -# 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 diff --git a/build/deb/debian/blockbook-dash-testnet.conffiles b/build/deb/debian/blockbook-dash-testnet.conffiles deleted file mode 100644 index e08c4c86..00000000 --- a/build/deb/debian/blockbook-dash-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/dash_testnet/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-dash-testnet.cron.daily b/build/deb/debian/blockbook-dash-testnet.cron.daily deleted file mode 100644 index 9c293fb2..00000000 --- a/build/deb/debian/blockbook-dash-testnet.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/dash_testnet/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-dash-testnet.dirs b/build/deb/debian/blockbook-dash-testnet.dirs deleted file mode 100644 index fa8b8ee8..00000000 --- a/build/deb/debian/blockbook-dash-testnet.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/dash_testnet/blockbook -/opt/coins/blockbook/dash_testnet/logs diff --git a/build/deb/debian/blockbook-dash-testnet.install b/build/deb/debian/blockbook-dash-testnet.install deleted file mode 100755 index a581ae9f..00000000 --- a/build/deb/debian/blockbook-dash-testnet.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/dash_testnet/bin -cert /opt/coins/blockbook/dash_testnet -static /opt/coins/blockbook/dash_testnet -configs/dash_testnet.json => /opt/coins/blockbook/dash_testnet/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/dash_testnet/bin diff --git a/build/deb/debian/blockbook-dash-testnet.links b/build/deb/debian/blockbook-dash-testnet.links deleted file mode 100644 index 1d915f43..00000000 --- a/build/deb/debian/blockbook-dash-testnet.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/dash_testnet/cert/testcert.crt /opt/coins/blockbook/dash_testnet/cert/blockbook.crt -/opt/coins/blockbook/dash_testnet/cert/testcert.key /opt/coins/blockbook/dash_testnet/cert/blockbook.key diff --git a/build/deb/debian/blockbook-dash-testnet.postinst b/build/deb/debian/blockbook-dash-testnet.postinst deleted file mode 100644 index fb2ff016..00000000 --- a/build/deb/debian/blockbook-dash-testnet.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-dash &> /dev/null - then - useradd --system -M -U blockbook-dash -s /bin/false - fi - - for dir in /opt/coins/data/dash_testnet/blockbook /opt/coins/blockbook/dash_testnet/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-dash" ] - then - chown -R blockbook-dash:blockbook-dash $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-dash-testnet.service b/build/deb/debian/blockbook-dash-testnet.service deleted file mode 100644 index 45f0e3b6..00000000 --- a/build/deb/debian/blockbook-dash-testnet.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-dash-testnet.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Dash testnet) -After=network.target -Wants=backend-dash-testnet.service - -[Service] -ExecStart=/opt/coins/blockbook/dash_testnet/bin/blockbook -blockchaincfg=/opt/coins/blockbook/dash_testnet/config/blockchaincfg.json -datadir=/opt/coins/data/dash_testnet/blockbook/db -sync -internal=:19033 -public=:19133 -certfile=/opt/coins/blockbook/dash_testnet/cert/blockbook -explorer=https://dash-explorer.trezor.io/ -log_dir=/opt/coins/blockbook/dash_testnet/logs -User=blockbook-dash -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/dash_testnet - -# 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 diff --git a/build/deb/debian/blockbook-dash.conffiles b/build/deb/debian/blockbook-dash.conffiles deleted file mode 100644 index e228f725..00000000 --- a/build/deb/debian/blockbook-dash.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/dash/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-dash.cron.daily b/build/deb/debian/blockbook-dash.cron.daily deleted file mode 100644 index 0dd836dc..00000000 --- a/build/deb/debian/blockbook-dash.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/dash/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-dash.dirs b/build/deb/debian/blockbook-dash.dirs deleted file mode 100644 index 5b20974e..00000000 --- a/build/deb/debian/blockbook-dash.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/dash/blockbook -/opt/coins/blockbook/dash/logs diff --git a/build/deb/debian/blockbook-dash.install b/build/deb/debian/blockbook-dash.install deleted file mode 100755 index aaee4542..00000000 --- a/build/deb/debian/blockbook-dash.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/dash/bin -cert /opt/coins/blockbook/dash -static /opt/coins/blockbook/dash -configs/dash.json => /opt/coins/blockbook/dash/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/dash/bin diff --git a/build/deb/debian/blockbook-dash.links b/build/deb/debian/blockbook-dash.links deleted file mode 100644 index 5df68a1c..00000000 --- a/build/deb/debian/blockbook-dash.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/dash/cert/testcert.crt /opt/coins/blockbook/dash/cert/blockbook.crt -/opt/coins/blockbook/dash/cert/testcert.key /opt/coins/blockbook/dash/cert/blockbook.key diff --git a/build/deb/debian/blockbook-dash.postinst b/build/deb/debian/blockbook-dash.postinst deleted file mode 100644 index 4e259841..00000000 --- a/build/deb/debian/blockbook-dash.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-dash &> /dev/null - then - useradd --system -M -U blockbook-dash -s /bin/false - fi - - for dir in /opt/coins/data/dash/blockbook /opt/coins/blockbook/dash/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-dash" ] - then - chown -R blockbook-dash:blockbook-dash $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-dash.service b/build/deb/debian/blockbook-dash.service deleted file mode 100644 index 7bc2936f..00000000 --- a/build/deb/debian/blockbook-dash.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-dash.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Dash mainnet) -After=network.target -Wants=backend-dash.service - -[Service] -ExecStart=/opt/coins/blockbook/dash/bin/blockbook -blockchaincfg=/opt/coins/blockbook/dash/config/blockchaincfg.json -datadir=/opt/coins/data/dash/blockbook/db -sync -internal=:9033 -public=:9133 -certfile=/opt/coins/blockbook/dash/cert/blockbook -explorer=https://dash-explorer.trezor.io/ -log_dir=/opt/coins/blockbook/dash/logs -User=blockbook-dash -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/dash - -# 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 diff --git a/build/deb/debian/blockbook-dogecoin.conffiles b/build/deb/debian/blockbook-dogecoin.conffiles deleted file mode 100644 index b2cd43e9..00000000 --- a/build/deb/debian/blockbook-dogecoin.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/dogecoin/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-dogecoin.cron.daily b/build/deb/debian/blockbook-dogecoin.cron.daily deleted file mode 100644 index 2e3cd8f4..00000000 --- a/build/deb/debian/blockbook-dogecoin.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/dogecoin/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-dogecoin.dirs b/build/deb/debian/blockbook-dogecoin.dirs deleted file mode 100644 index 734baa69..00000000 --- a/build/deb/debian/blockbook-dogecoin.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/dogecoin/blockbook -/opt/coins/blockbook/dogecoin/logs diff --git a/build/deb/debian/blockbook-dogecoin.install b/build/deb/debian/blockbook-dogecoin.install deleted file mode 100755 index ee846bf9..00000000 --- a/build/deb/debian/blockbook-dogecoin.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/dogecoin/bin -cert /opt/coins/blockbook/dogecoin -static /opt/coins/blockbook/dogecoin -configs/dogecoin.json => /opt/coins/blockbook/dogecoin/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/dogecoin/bin diff --git a/build/deb/debian/blockbook-dogecoin.links b/build/deb/debian/blockbook-dogecoin.links deleted file mode 100644 index b8c6ebe5..00000000 --- a/build/deb/debian/blockbook-dogecoin.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/dogecoin/cert/testcert.crt /opt/coins/blockbook/dogecoin/cert/blockbook.crt -/opt/coins/blockbook/dogecoin/cert/testcert.key /opt/coins/blockbook/dogecoin/cert/blockbook.key diff --git a/build/deb/debian/blockbook-dogecoin.postinst b/build/deb/debian/blockbook-dogecoin.postinst deleted file mode 100644 index 383110d5..00000000 --- a/build/deb/debian/blockbook-dogecoin.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-dogecoin &> /dev/null - then - useradd --system -M -U blockbook-dogecoin -s /bin/false - fi - - for dir in /opt/coins/data/dogecoin/blockbook /opt/coins/blockbook/dogecoin/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-dogecoin" ] - then - chown -R blockbook-dogecoin:blockbook-dogecoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-dogecoin.service b/build/deb/debian/blockbook-dogecoin.service deleted file mode 100644 index 00f7c647..00000000 --- a/build/deb/debian/blockbook-dogecoin.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-dogecoin.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Dogecoin mainnet) -After=network.target -Wants=backend-dogecoin.service - -[Service] -ExecStart=/opt/coins/blockbook/dogecoin/bin/blockbook -blockchaincfg=/opt/coins/blockbook/dogecoin/config/blockchaincfg.json -datadir=/opt/coins/data/dogecoin/blockbook/db -sync -internal=:9038 -public=:9138 -certfile=/opt/coins/blockbook/dogecoin/cert/blockbook -explorer=https://dogechain.info/ -resyncindexperiod=30011 -resyncmempoolperiod=2011 -log_dir=/opt/coins/blockbook/dogecoin/logs -User=blockbook-dogecoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/dogecoin - -# 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 diff --git a/build/deb/debian/blockbook-ethereum-testnet-ropsten.conffiles b/build/deb/debian/blockbook-ethereum-testnet-ropsten.conffiles deleted file mode 100644 index 1de1ede3..00000000 --- a/build/deb/debian/blockbook-ethereum-testnet-ropsten.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/ethereum_testnet_ropsten/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-ethereum-testnet-ropsten.cron.daily b/build/deb/debian/blockbook-ethereum-testnet-ropsten.cron.daily deleted file mode 100644 index 90b88dea..00000000 --- a/build/deb/debian/blockbook-ethereum-testnet-ropsten.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/ethereum_testnet_ropsten/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-ethereum-testnet-ropsten.dirs b/build/deb/debian/blockbook-ethereum-testnet-ropsten.dirs deleted file mode 100644 index b197ca12..00000000 --- a/build/deb/debian/blockbook-ethereum-testnet-ropsten.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/ethereum_testnet_ropsten/blockbook -/opt/coins/blockbook/ethereum_testnet_ropsten/logs diff --git a/build/deb/debian/blockbook-ethereum-testnet-ropsten.install b/build/deb/debian/blockbook-ethereum-testnet-ropsten.install deleted file mode 100755 index d5116464..00000000 --- a/build/deb/debian/blockbook-ethereum-testnet-ropsten.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/ethereum_testnet_ropsten/bin -cert /opt/coins/blockbook/ethereum_testnet_ropsten -static /opt/coins/blockbook/ethereum_testnet_ropsten -configs/ethereum_testnet_ropsten.json => /opt/coins/blockbook/ethereum_testnet_ropsten/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/ethereum_testnet_ropsten/bin diff --git a/build/deb/debian/blockbook-ethereum-testnet-ropsten.links b/build/deb/debian/blockbook-ethereum-testnet-ropsten.links deleted file mode 100644 index 81565550..00000000 --- a/build/deb/debian/blockbook-ethereum-testnet-ropsten.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/ethereum_testnet_ropsten/cert/testcert.crt /opt/coins/blockbook/ethereum_testnet_ropsten/cert/blockbook.crt -/opt/coins/blockbook/ethereum_testnet_ropsten/cert/testcert.key /opt/coins/blockbook/ethereum_testnet_ropsten/cert/blockbook.key diff --git a/build/deb/debian/blockbook-ethereum-testnet-ropsten.postinst b/build/deb/debian/blockbook-ethereum-testnet-ropsten.postinst deleted file mode 100644 index 738dc5f7..00000000 --- a/build/deb/debian/blockbook-ethereum-testnet-ropsten.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-ethereum &> /dev/null - then - useradd --system -M -U blockbook-ethereum -s /bin/false - fi - - for dir in /opt/coins/data/ethereum_testnet_ropsten/blockbook /opt/coins/blockbook/ethereum_testnet_ropsten/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-ethereum" ] - then - chown -R blockbook-ethereum:blockbook-ethereum $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-ethereum-testnet-ropsten.service b/build/deb/debian/blockbook-ethereum-testnet-ropsten.service deleted file mode 100644 index 35c9f45f..00000000 --- a/build/deb/debian/blockbook-ethereum-testnet-ropsten.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-ethereum-testnet-ropsten.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Ethereum testnet ropsten) -After=network.target -Wants=backend-ethereum-testnet-ropsten.service - -[Service] -ExecStart=/opt/coins/blockbook/ethereum_testnet_ropsten/bin/blockbook -blockchaincfg=/opt/coins/blockbook/ethereum_testnet_ropsten/config/blockchaincfg.json -datadir=/opt/coins/data/ethereum_testnet_ropsten/blockbook/db -sync -internal=:19036 -public=:19136 -certfile=/opt/coins/blockbook/ethereum_testnet_ropsten/cert/blockbook -explorer=https://ropsten.etherscan.io/ -log_dir=/opt/coins/blockbook/ethereum_testnet_ropsten/logs -User=blockbook-ethereum -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/ethereum_testnet_ropsten - -# 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 diff --git a/build/deb/debian/blockbook-ethereum.conffiles b/build/deb/debian/blockbook-ethereum.conffiles deleted file mode 100644 index 9d3fed9c..00000000 --- a/build/deb/debian/blockbook-ethereum.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/ethereum/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-ethereum.cron.daily b/build/deb/debian/blockbook-ethereum.cron.daily deleted file mode 100644 index a90741d2..00000000 --- a/build/deb/debian/blockbook-ethereum.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/ethereum/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-ethereum.dirs b/build/deb/debian/blockbook-ethereum.dirs deleted file mode 100644 index 9dd4ebc4..00000000 --- a/build/deb/debian/blockbook-ethereum.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/ethereum/blockbook -/opt/coins/blockbook/ethereum/logs diff --git a/build/deb/debian/blockbook-ethereum.install b/build/deb/debian/blockbook-ethereum.install deleted file mode 100755 index 0bda1fbc..00000000 --- a/build/deb/debian/blockbook-ethereum.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/ethereum/bin -cert /opt/coins/blockbook/ethereum -static /opt/coins/blockbook/ethereum -configs/ethereum.json => /opt/coins/blockbook/ethereum/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/ethereum/bin diff --git a/build/deb/debian/blockbook-ethereum.links b/build/deb/debian/blockbook-ethereum.links deleted file mode 100644 index 9a5c6965..00000000 --- a/build/deb/debian/blockbook-ethereum.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/ethereum/cert/testcert.crt /opt/coins/blockbook/ethereum/cert/blockbook.crt -/opt/coins/blockbook/ethereum/cert/testcert.key /opt/coins/blockbook/ethereum/cert/blockbook.key diff --git a/build/deb/debian/blockbook-ethereum.postinst b/build/deb/debian/blockbook-ethereum.postinst deleted file mode 100644 index 87fd699b..00000000 --- a/build/deb/debian/blockbook-ethereum.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-ethereum &> /dev/null - then - useradd --system -M -U blockbook-ethereum -s /bin/false - fi - - for dir in /opt/coins/data/ethereum/blockbook /opt/coins/blockbook/ethereum/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-ethereum" ] - then - chown -R blockbook-ethereum:blockbook-ethereum $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-ethereum.service b/build/deb/debian/blockbook-ethereum.service deleted file mode 100644 index 627c00e4..00000000 --- a/build/deb/debian/blockbook-ethereum.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-ethereum.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Ethereum mainnet) -After=network.target -Wants=backend-ethereum.service - -[Service] -ExecStart=/opt/coins/blockbook/ethereum/bin/blockbook -blockchaincfg=/opt/coins/blockbook/ethereum/config/blockchaincfg.json -datadir=/opt/coins/data/ethereum/blockbook/db -sync -internal=:9036 -public=:9136 -certfile=/opt/coins/blockbook/ethereum/cert/blockbook -explorer=https://etherscan.io/ -log_dir=/opt/coins/blockbook/ethereum/logs -User=blockbook-ethereum -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/ethereum - -# 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 diff --git a/build/deb/debian/blockbook-litecoin-testnet.conffiles b/build/deb/debian/blockbook-litecoin-testnet.conffiles deleted file mode 100644 index 37c23600..00000000 --- a/build/deb/debian/blockbook-litecoin-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/litecoin_testnet/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-litecoin-testnet.cron.daily b/build/deb/debian/blockbook-litecoin-testnet.cron.daily deleted file mode 100644 index dc020b29..00000000 --- a/build/deb/debian/blockbook-litecoin-testnet.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/litecoin_testnet/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-litecoin-testnet.dirs b/build/deb/debian/blockbook-litecoin-testnet.dirs deleted file mode 100644 index 13a2895e..00000000 --- a/build/deb/debian/blockbook-litecoin-testnet.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/litecoin_testnet/blockbook -/opt/coins/blockbook/litecoin_testnet/logs diff --git a/build/deb/debian/blockbook-litecoin-testnet.install b/build/deb/debian/blockbook-litecoin-testnet.install deleted file mode 100755 index be526a7c..00000000 --- a/build/deb/debian/blockbook-litecoin-testnet.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/litecoin_testnet/bin -cert /opt/coins/blockbook/litecoin_testnet -static /opt/coins/blockbook/litecoin_testnet -configs/litecoin_testnet.json => /opt/coins/blockbook/litecoin_testnet/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/litecoin_testnet/bin diff --git a/build/deb/debian/blockbook-litecoin-testnet.links b/build/deb/debian/blockbook-litecoin-testnet.links deleted file mode 100644 index fbc8ec69..00000000 --- a/build/deb/debian/blockbook-litecoin-testnet.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/litecoin_testnet/cert/testcert.crt /opt/coins/blockbook/litecoin_testnet/cert/blockbook.crt -/opt/coins/blockbook/litecoin_testnet/cert/testcert.key /opt/coins/blockbook/litecoin_testnet/cert/blockbook.key diff --git a/build/deb/debian/blockbook-litecoin-testnet.postinst b/build/deb/debian/blockbook-litecoin-testnet.postinst deleted file mode 100644 index 97600e76..00000000 --- a/build/deb/debian/blockbook-litecoin-testnet.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-litecoin &> /dev/null - then - useradd --system -M -U blockbook-litecoin -s /bin/false - fi - - for dir in /opt/coins/data/litecoin_testnet/blockbook /opt/coins/blockbook/litecoin_testnet/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-litecoin" ] - then - chown -R blockbook-litecoin:blockbook-litecoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-litecoin-testnet.service b/build/deb/debian/blockbook-litecoin-testnet.service deleted file mode 100644 index f7a7dfc6..00000000 --- a/build/deb/debian/blockbook-litecoin-testnet.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-litecoin-testnet.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Litecoin testnet) -After=network.target -Wants=backend-litecoin-testnet.service - -[Service] -ExecStart=/opt/coins/blockbook/litecoin_testnet/bin/blockbook -blockchaincfg=/opt/coins/blockbook/litecoin_testnet/config/blockchaincfg.json -datadir=/opt/coins/data/litecoin_testnet/blockbook/db -sync -internal=:19034 -public=:19134 -certfile=/opt/coins/blockbook/litecoin_testnet/cert/blockbook -explorer=http://explorer.litecointools.com/ -log_dir=/opt/coins/blockbook/litecoin_testnet/logs -User=blockbook-litecoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/litecoin_testnet - -# 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 diff --git a/build/deb/debian/blockbook-litecoin.conffiles b/build/deb/debian/blockbook-litecoin.conffiles deleted file mode 100644 index bd1d3b15..00000000 --- a/build/deb/debian/blockbook-litecoin.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/litecoin/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-litecoin.cron.daily b/build/deb/debian/blockbook-litecoin.cron.daily deleted file mode 100644 index 17534506..00000000 --- a/build/deb/debian/blockbook-litecoin.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/litecoin/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-litecoin.dirs b/build/deb/debian/blockbook-litecoin.dirs deleted file mode 100644 index 64a24800..00000000 --- a/build/deb/debian/blockbook-litecoin.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/litecoin/blockbook -/opt/coins/blockbook/litecoin/logs diff --git a/build/deb/debian/blockbook-litecoin.install b/build/deb/debian/blockbook-litecoin.install deleted file mode 100755 index cbde7919..00000000 --- a/build/deb/debian/blockbook-litecoin.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/litecoin/bin -cert /opt/coins/blockbook/litecoin -static /opt/coins/blockbook/litecoin -configs/litecoin.json => /opt/coins/blockbook/litecoin/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/litecoin/bin diff --git a/build/deb/debian/blockbook-litecoin.links b/build/deb/debian/blockbook-litecoin.links deleted file mode 100644 index 412f2c9d..00000000 --- a/build/deb/debian/blockbook-litecoin.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/litecoin/cert/testcert.crt /opt/coins/blockbook/litecoin/cert/blockbook.crt -/opt/coins/blockbook/litecoin/cert/testcert.key /opt/coins/blockbook/litecoin/cert/blockbook.key diff --git a/build/deb/debian/blockbook-litecoin.postinst b/build/deb/debian/blockbook-litecoin.postinst deleted file mode 100644 index de2f7ecc..00000000 --- a/build/deb/debian/blockbook-litecoin.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-litecoin &> /dev/null - then - useradd --system -M -U blockbook-litecoin -s /bin/false - fi - - for dir in /opt/coins/data/litecoin/blockbook /opt/coins/blockbook/litecoin/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-litecoin" ] - then - chown -R blockbook-litecoin:blockbook-litecoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-litecoin.service b/build/deb/debian/blockbook-litecoin.service deleted file mode 100644 index 614bdf46..00000000 --- a/build/deb/debian/blockbook-litecoin.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-litecoin.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Litecoin mainnet) -After=network.target -Wants=backend-litecoin.service - -[Service] -ExecStart=/opt/coins/blockbook/litecoin/bin/blockbook -blockchaincfg=/opt/coins/blockbook/litecoin/config/blockchaincfg.json -datadir=/opt/coins/data/litecoin/blockbook/db -sync -internal=:9034 -public=:9134 -certfile=/opt/coins/blockbook/litecoin/cert/blockbook -explorer=/explorer -log_dir=/opt/coins/blockbook/litecoin/logs -User=blockbook-litecoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/litecoin - -# 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 diff --git a/build/deb/debian/blockbook-namecoin.conffiles b/build/deb/debian/blockbook-namecoin.conffiles deleted file mode 100644 index 0a22d717..00000000 --- a/build/deb/debian/blockbook-namecoin.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/namecoin/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-namecoin.cron.daily b/build/deb/debian/blockbook-namecoin.cron.daily deleted file mode 100644 index dd3a2d73..00000000 --- a/build/deb/debian/blockbook-namecoin.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/namecoin/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-namecoin.dirs b/build/deb/debian/blockbook-namecoin.dirs deleted file mode 100644 index 83f92862..00000000 --- a/build/deb/debian/blockbook-namecoin.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/namecoin/blockbook -/opt/coins/blockbook/namecoin/logs diff --git a/build/deb/debian/blockbook-namecoin.install b/build/deb/debian/blockbook-namecoin.install deleted file mode 100755 index 603f1500..00000000 --- a/build/deb/debian/blockbook-namecoin.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/namecoin/bin -cert /opt/coins/blockbook/namecoin -static /opt/coins/blockbook/namecoin -configs/namecoin.json => /opt/coins/blockbook/namecoin/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/namecoin/bin diff --git a/build/deb/debian/blockbook-namecoin.links b/build/deb/debian/blockbook-namecoin.links deleted file mode 100644 index 12f9e387..00000000 --- a/build/deb/debian/blockbook-namecoin.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/namecoin/cert/testcert.crt /opt/coins/blockbook/namecoin/cert/blockbook.crt -/opt/coins/blockbook/namecoin/cert/testcert.key /opt/coins/blockbook/namecoin/cert/blockbook.key diff --git a/build/deb/debian/blockbook-namecoin.postinst b/build/deb/debian/blockbook-namecoin.postinst deleted file mode 100644 index 81a4a97a..00000000 --- a/build/deb/debian/blockbook-namecoin.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-namecoin &> /dev/null - then - useradd --system -M -U blockbook-namecoin -s /bin/false - fi - - for dir in /opt/coins/data/namecoin/blockbook /opt/coins/blockbook/namecoin/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-namecoin" ] - then - chown -R blockbook-namecoin:blockbook-namecoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-namecoin.service b/build/deb/debian/blockbook-namecoin.service deleted file mode 100644 index a8f2b1c1..00000000 --- a/build/deb/debian/blockbook-namecoin.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-namecoin.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Namecoin mainnet) -After=network.target -Wants=backend-namecoin.service - -[Service] -ExecStart=/opt/coins/blockbook/namecoin/bin/blockbook -blockchaincfg=/opt/coins/blockbook/namecoin/config/blockchaincfg.json -datadir=/opt/coins/data/namecoin/blockbook/db -sync -internal=:9039 -public=:9139 -certfile=/opt/coins/blockbook/namecoin/cert/blockbook -explorer=https://namecha.in/ -log_dir=/opt/coins/blockbook/namecoin/logs -User=blockbook-namecoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/namecoin - -# 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 diff --git a/build/deb/debian/blockbook-tools.install b/build/deb/debian/blockbook-tools.install deleted file mode 100644 index 6dda8cf4..00000000 --- a/build/deb/debian/blockbook-tools.install +++ /dev/null @@ -1,2 +0,0 @@ -ldb /opt/coins/blockbook/tools -sst_dump /opt/coins/blockbook/tools diff --git a/build/deb/debian/blockbook-tools.links b/build/deb/debian/blockbook-tools.links deleted file mode 100644 index e72bfe7f..00000000 --- a/build/deb/debian/blockbook-tools.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/tools/ldb /usr/bin/ldb -/opt/coins/blockbook/tools/sst_dump /usr/bin/sst_dump diff --git a/build/deb/debian/blockbook-vertcoin-testnet.conffiles b/build/deb/debian/blockbook-vertcoin-testnet.conffiles deleted file mode 100644 index bd430e24..00000000 --- a/build/deb/debian/blockbook-vertcoin-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/vertcoin_testnet/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-vertcoin-testnet.cron.daily b/build/deb/debian/blockbook-vertcoin-testnet.cron.daily deleted file mode 100644 index fa2948c5..00000000 --- a/build/deb/debian/blockbook-vertcoin-testnet.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/vertcoin_testnet/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-vertcoin-testnet.dirs b/build/deb/debian/blockbook-vertcoin-testnet.dirs deleted file mode 100644 index 56e480b5..00000000 --- a/build/deb/debian/blockbook-vertcoin-testnet.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/vertcoin_testnet/blockbook -/opt/coins/blockbook/vertcoin_testnet/logs diff --git a/build/deb/debian/blockbook-vertcoin-testnet.install b/build/deb/debian/blockbook-vertcoin-testnet.install deleted file mode 100755 index 31fd887c..00000000 --- a/build/deb/debian/blockbook-vertcoin-testnet.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/vertcoin_testnet/bin -cert /opt/coins/blockbook/vertcoin_testnet -static /opt/coins/blockbook/vertcoin_testnet -configs/vertcoin_testnet.json => /opt/coins/blockbook/vertcoin_testnet/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/vertcoin_testnet/bin diff --git a/build/deb/debian/blockbook-vertcoin-testnet.links b/build/deb/debian/blockbook-vertcoin-testnet.links deleted file mode 100644 index c5f3c713..00000000 --- a/build/deb/debian/blockbook-vertcoin-testnet.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/vertcoin_testnet/cert/testcert.crt /opt/coins/blockbook/vertcoin_testnet/cert/blockbook.crt -/opt/coins/blockbook/vertcoin_testnet/cert/testcert.key /opt/coins/blockbook/vertcoin_testnet/cert/blockbook.key diff --git a/build/deb/debian/blockbook-vertcoin-testnet.postinst b/build/deb/debian/blockbook-vertcoin-testnet.postinst deleted file mode 100644 index 158bd67c..00000000 --- a/build/deb/debian/blockbook-vertcoin-testnet.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-vertcoin &> /dev/null - then - useradd --system -M -U blockbook-vertcoin -s /bin/false - fi - - for dir in /opt/coins/data/vertcoin_testnet/blockbook /opt/coins/blockbook/vertcoin_testnet/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-vertcoin" ] - then - chown -R blockbook-vertcoin:blockbook-vertcoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-vertcoin-testnet.service b/build/deb/debian/blockbook-vertcoin-testnet.service deleted file mode 100644 index 1d5d2aed..00000000 --- a/build/deb/debian/blockbook-vertcoin-testnet.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-vertcoin-testnet.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Vertcoin testnet) -After=network.target -Wants=backend-vertcoin-testnet.service - -[Service] -ExecStart=/opt/coins/blockbook/vertcoin_testnet/bin/blockbook -blockchaincfg=/opt/coins/blockbook/vertcoin_testnet/config/blockchaincfg.json -datadir=/opt/coins/data/vertcoin_testnet/blockbook/db -sync -internal=:19040 -public=:19140 -certfile=/opt/coins/blockbook/vertcoin_testnet/cert/blockbook -explorer=http://explorer.vertcointools.com/ -log_dir=/opt/coins/blockbook/vertcoin_testnet/logs -User=blockbook-vertcoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/vertcoin_testnet - -# 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 diff --git a/build/deb/debian/blockbook-vertcoin.conffiles b/build/deb/debian/blockbook-vertcoin.conffiles deleted file mode 100644 index 50db5a5b..00000000 --- a/build/deb/debian/blockbook-vertcoin.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/vertcoin/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-vertcoin.cron.daily b/build/deb/debian/blockbook-vertcoin.cron.daily deleted file mode 100644 index f4a8a2c9..00000000 --- a/build/deb/debian/blockbook-vertcoin.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/vertcoin/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-vertcoin.dirs b/build/deb/debian/blockbook-vertcoin.dirs deleted file mode 100644 index 5b381887..00000000 --- a/build/deb/debian/blockbook-vertcoin.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/vertcoin/blockbook -/opt/coins/blockbook/vertcoin/logs diff --git a/build/deb/debian/blockbook-vertcoin.install b/build/deb/debian/blockbook-vertcoin.install deleted file mode 100755 index 7fdafb01..00000000 --- a/build/deb/debian/blockbook-vertcoin.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec -blockbook /opt/coins/blockbook/vertcoin/bin -cert /opt/coins/blockbook/vertcoin -static /opt/coins/blockbook/vertcoin -configs/vertcoin.json => /opt/coins/blockbook/vertcoin/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/vertcoin/bin diff --git a/build/deb/debian/blockbook-vertcoin.links b/build/deb/debian/blockbook-vertcoin.links deleted file mode 100644 index bf9efb36..00000000 --- a/build/deb/debian/blockbook-vertcoin.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/vertcoin/cert/testcert.crt /opt/coins/blockbook/vertcoin/cert/blockbook.crt -/opt/coins/blockbook/vertcoin/cert/testcert.key /opt/coins/blockbook/vertcoin/cert/blockbook.key diff --git a/build/deb/debian/blockbook-vertcoin.postinst b/build/deb/debian/blockbook-vertcoin.postinst deleted file mode 100644 index 772ac44e..00000000 --- a/build/deb/debian/blockbook-vertcoin.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-vertcoin &> /dev/null - then - useradd --system -M -U blockbook-vertcoin -s /bin/false - fi - - for dir in /opt/coins/data/vertcoin/blockbook /opt/coins/blockbook/vertcoin/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-vertcoin" ] - then - chown -R blockbook-vertcoin:blockbook-vertcoin $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-vertcoin.service b/build/deb/debian/blockbook-vertcoin.service deleted file mode 100644 index cd849216..00000000 --- a/build/deb/debian/blockbook-vertcoin.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-vertcoin.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Vertcoin mainnet) -After=network.target -Wants=backend-vertcoin.service - -[Service] -ExecStart=/opt/coins/blockbook/vertcoin/bin/blockbook -blockchaincfg=/opt/coins/blockbook/vertcoin/config/blockchaincfg.json -datadir=/opt/coins/data/vertcoin/blockbook/db -sync -internal=:9040 -public=:9140 -certfile=/opt/coins/blockbook/vertcoin/cert/blockbook -explorer=https://insight.vertcoin.org/ -log_dir=/opt/coins/blockbook/vertcoin/logs -User=blockbook-vertcoin -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/vertcoin - -# 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 diff --git a/build/deb/debian/blockbook-zcash-testnet.conffiles b/build/deb/debian/blockbook-zcash-testnet.conffiles deleted file mode 100644 index eead94ec..00000000 --- a/build/deb/debian/blockbook-zcash-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/zcash_testnet/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-zcash-testnet.cron.daily b/build/deb/debian/blockbook-zcash-testnet.cron.daily deleted file mode 100644 index 7a1c1565..00000000 --- a/build/deb/debian/blockbook-zcash-testnet.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/zcash_testnet/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-zcash-testnet.dirs b/build/deb/debian/blockbook-zcash-testnet.dirs deleted file mode 100644 index a0192aa5..00000000 --- a/build/deb/debian/blockbook-zcash-testnet.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/zcash_testnet/blockbook -/opt/coins/blockbook/zcash_testnet/logs diff --git a/build/deb/debian/blockbook-zcash-testnet.install b/build/deb/debian/blockbook-zcash-testnet.install deleted file mode 100755 index 7b3a38bb..00000000 --- a/build/deb/debian/blockbook-zcash-testnet.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec --with=install -blockbook /opt/coins/blockbook/zcash_testnet/bin -cert /opt/coins/blockbook/zcash_testnet -static /opt/coins/blockbook/zcash_testnet -configs/zcash_testnet.json => /opt/coins/blockbook/zcash_testnet/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/zcash_testnet/bin diff --git a/build/deb/debian/blockbook-zcash-testnet.links b/build/deb/debian/blockbook-zcash-testnet.links deleted file mode 100644 index 91974b23..00000000 --- a/build/deb/debian/blockbook-zcash-testnet.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/zcash_testnet/cert/testcert.crt /opt/coins/blockbook/zcash_testnet/cert/blockbook.crt -/opt/coins/blockbook/zcash_testnet/cert/testcert.key /opt/coins/blockbook/zcash_testnet/cert/blockbook.key diff --git a/build/deb/debian/blockbook-zcash-testnet.postinst b/build/deb/debian/blockbook-zcash-testnet.postinst deleted file mode 100644 index 992d1cc7..00000000 --- a/build/deb/debian/blockbook-zcash-testnet.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-zcash &> /dev/null - then - useradd --system -M -U blockbook-zcash -s /bin/false - fi - - for dir in /opt/coins/data/zcash_testnet/blockbook /opt/coins/blockbook/zcash_testnet/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-zcash" ] - then - chown -R blockbook-zcash:blockbook-zcash $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-zcash-testnet.service b/build/deb/debian/blockbook-zcash-testnet.service deleted file mode 100644 index dc460551..00000000 --- a/build/deb/debian/blockbook-zcash-testnet.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-zcash-testnet.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Zcash Testnet) -After=network.target -Wants=backend-zcash-testnet.service - -[Service] -ExecStart=/opt/coins/blockbook/zcash_testnet/bin/blockbook -blockchaincfg=/opt/coins/blockbook/zcash_testnet/config/blockchaincfg.json -datadir=/opt/coins/data/zcash_testnet/blockbook/db -sync -internal=:19032 -public=:19132 -certfile=/opt/coins/blockbook/zcash_testnet/cert/blockbook -explorer=https://explorer.testnet.z.cash/ -log_dir=/opt/coins/blockbook/zcash_testnet/logs -User=blockbook-zcash -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/zcash_testnet - -# 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 diff --git a/build/deb/debian/blockbook-zcash.conffiles b/build/deb/debian/blockbook-zcash.conffiles deleted file mode 100644 index fe178b66..00000000 --- a/build/deb/debian/blockbook-zcash.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/blockbook/zcash/config/blockchaincfg.json diff --git a/build/deb/debian/blockbook-zcash.cron.daily b/build/deb/debian/blockbook-zcash.cron.daily deleted file mode 100644 index 1d5ffc06..00000000 --- a/build/deb/debian/blockbook-zcash.cron.daily +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -/opt/coins/blockbook/zcash/bin/logrotate.sh diff --git a/build/deb/debian/blockbook-zcash.dirs b/build/deb/debian/blockbook-zcash.dirs deleted file mode 100644 index 9f54ae06..00000000 --- a/build/deb/debian/blockbook-zcash.dirs +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/data/zcash/blockbook -/opt/coins/blockbook/zcash/logs diff --git a/build/deb/debian/blockbook-zcash.install b/build/deb/debian/blockbook-zcash.install deleted file mode 100755 index 5305ac28..00000000 --- a/build/deb/debian/blockbook-zcash.install +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/dh-exec --with=install -blockbook /opt/coins/blockbook/zcash/bin -cert /opt/coins/blockbook/zcash -static /opt/coins/blockbook/zcash -configs/zcash.json => /opt/coins/blockbook/zcash/config/blockchaincfg.json -logrotate.sh /opt/coins/blockbook/zcash/bin diff --git a/build/deb/debian/blockbook-zcash.links b/build/deb/debian/blockbook-zcash.links deleted file mode 100644 index 4184e473..00000000 --- a/build/deb/debian/blockbook-zcash.links +++ /dev/null @@ -1,2 +0,0 @@ -/opt/coins/blockbook/zcash/cert/testcert.crt /opt/coins/blockbook/zcash/cert/blockbook.crt -/opt/coins/blockbook/zcash/cert/testcert.key /opt/coins/blockbook/zcash/cert/blockbook.key diff --git a/build/deb/debian/blockbook-zcash.postinst b/build/deb/debian/blockbook-zcash.postinst deleted file mode 100644 index a3b70cbd..00000000 --- a/build/deb/debian/blockbook-zcash.postinst +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u blockbook-zcash &> /dev/null - then - useradd --system -M -U blockbook-zcash -s /bin/false - fi - - for dir in /opt/coins/data/zcash/blockbook /opt/coins/blockbook/zcash/logs - do - if [ "$(stat -c '%U' $dir)" != "blockbook-zcash" ] - then - chown -R blockbook-zcash:blockbook-zcash $dir - fi - done - ;; - -esac - -#DEBHELPER# diff --git a/build/deb/debian/blockbook-zcash.service b/build/deb/debian/blockbook-zcash.service deleted file mode 100644 index d2de00cc..00000000 --- a/build/deb/debian/blockbook-zcash.service +++ /dev/null @@ -1,43 +0,0 @@ -# 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 blockbook-zcash.service -# See "man systemd.service" for details. - -[Unit] -Description=Blockbook daemon (Zcash mainnet) -After=network.target -Wants=backend-zcash.service - -[Service] -ExecStart=/opt/coins/blockbook/zcash/bin/blockbook -blockchaincfg=/opt/coins/blockbook/zcash/config/blockchaincfg.json -datadir=/opt/coins/data/zcash/blockbook/db -sync -internal=:9032 -public=:9132 -certfile=/opt/coins/blockbook/zcash/cert/blockbook -explorer=https://zcash.blockexplorer.com/ -log_dir=/opt/coins/blockbook/zcash/logs -User=blockbook-zcash -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/blockbook/zcash - -# 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 diff --git a/build/deb/debian/changelog b/build/deb/debian/changelog deleted file mode 100644 index 145f129d..00000000 --- a/build/deb/debian/changelog +++ /dev/null @@ -1,35 +0,0 @@ -blockbook (0.0.6) unstable; urgency=medium - - * v0.0.6 - - -- Martin Bohm Fri, 08 Jun 2018 11:12:13 +0200 - -blockbook (0.0.5) unstable; urgency=medium - - * v0.0.5, renamed packages and coins - - -- Martin Bohm Wed, 06 Jun 2018 11:12:13 +0200 - -blockbook (0.0.4) unstable; urgency=medium - - * v0.0.4 - - -- Martin Bohm Wed, 30 May 2018 14:47:21 +0200 - -blockbook (0.0.3) unstable; urgency=medium - - * v0.0.3 - - -- Jakub Matys Wed, 23 May 2018 11:19:59 +0200 - -blockbook (0.0.2) unstable; urgency=medium - - * v0.0.2 - - -- Jakub Matys Mon, 14 May 2018 15:53:15 +0200 - -blockbook (0.0.1-satoshilabs1) unstable; urgency=medium - - * Initial build - - -- Jakub Matys Fri, 06 Apr 2018 12:44:25 +0200 diff --git a/build/deb/debian/compat b/build/deb/debian/compat deleted file mode 100644 index ec635144..00000000 --- a/build/deb/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/build/deb/debian/control b/build/deb/debian/control deleted file mode 100644 index 949767ff..00000000 --- a/build/deb/debian/control +++ /dev/null @@ -1,96 +0,0 @@ -Source: blockbook -Section: satoshilabs -Priority: optional -Maintainer: jakub.matys@satoshilabs.com -Build-Depends: debhelper, dh-systemd, dh-exec -Standards-Version: 3.9.5 - -Package: blockbook-tools -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends} -Description: Satoshilabs blockbook server (tools) - -Package: blockbook-bitcoin -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-bitcoin -Description: Satoshilabs blockbook server (Bitcoin mainnet) - -Package: blockbook-bitcoin-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-bitcoin-testnet -Description: Satoshilabs blockbook server (Bitcoin testnet) - -Package: blockbook-zcash -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-zcash -Description: Satoshilabs blockbook server (ZCash mainnet) - -Package: blockbook-zcash-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-zcash-testnet -Description: Satoshilabs blockbook server (ZCash testnet) - -Package: blockbook-bcash -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-bcash -Description: Satoshilabs blockbook server (Bitcoin Cash mainnet) - -Package: blockbook-bcash-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-bcash-testnet -Description: Satoshilabs blockbook server (Bitcoin Cash testnet) - -Package: blockbook-bgold -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-bgold -Description: Satoshilabs blockbook server (Bitcoin Gold mainnet) - -Package: blockbook-dash -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-dash -Description: Satoshilabs blockbook server (Dash mainnet) - -Package: blockbook-dash-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-dash-testnet -Description: Satoshilabs blockbook server (Dash testnet) - -Package: blockbook-litecoin -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-litecoin -Description: Satoshilabs blockbook server (Litecoin mainnet) - -Package: blockbook-litecoin-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-litecoin-testnet -Description: Satoshilabs blockbook server (Litecoin testnet) - -Package: blockbook-ethereum -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-ethereum -Description: Satoshilabs blockbook server (Ethereum mainnet) - -Package: blockbook-ethereum-testnet-ropsten -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-ethereum-testnet-ropsten -Description: Satoshilabs blockbook server (Ethereum testnet ropsten) - -Package: blockbook-dogecoin -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-dogecoin -Description: Satoshilabs blockbook server (Dogecoin mainnet) - -Package: blockbook-vertcoin -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-vertcoin -Description: Satoshilabs blockbook server (Vertcoin mainnet) - -Package: blockbook-vertcoin-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-vertcoin-testnet -Description: Satoshilabs blockbook server (Vertcoin testnet) - -Package: blockbook-namecoin -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-namecoin -Description: Satoshilabs blockbook server (Namecoin mainnet) diff --git a/build/deb/debian/rules b/build/deb/debian/rules deleted file mode 100755 index 12271a0c..00000000 --- a/build/deb/debian/rules +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/make -f - -DH_VERBOSE = 1 - -%: - dh $@ --with=systemd - -override_dh_strip: - -override_dh_systemd_start: - dh_systemd_start --no-start - -override_dh_installinit: diff --git a/build/bin/Dockerfile b/build/docker/bin/Dockerfile similarity index 100% rename from build/bin/Dockerfile rename to build/docker/bin/Dockerfile diff --git a/build/bin/Makefile b/build/docker/bin/Makefile similarity index 100% rename from build/bin/Makefile rename to build/docker/bin/Makefile diff --git a/build/deb/Dockerfile b/build/docker/deb/Dockerfile similarity index 80% rename from build/deb/Dockerfile rename to build/docker/deb/Dockerfile index c924f02f..a20c219f 100644 --- a/build/deb/Dockerfile +++ b/build/docker/deb/Dockerfile @@ -7,7 +7,9 @@ RUN apt-get update && \ apt-get install -y devscripts debhelper make dh-systemd dh-exec && \ apt-get clean +ADD gpg-keys /tmp/gpg-keys +RUN gpg --import /tmp/gpg-keys/* + ADD build-deb.sh /build/build-deb.sh -ADD logrotate.sh /build/logrotate.sh WORKDIR /build diff --git a/build/docker/deb/build-deb.sh b/build/docker/deb/build-deb.sh new file mode 100755 index 00000000..e51f88f7 --- /dev/null +++ b/build/docker/deb/build-deb.sh @@ -0,0 +1,36 @@ +#!/bin/bash +set -e + +if [ $# -lt 2 ]; then + echo "Missing arugments" 1>&2 + echo "Usage: $(basename $0) [build opts]" 1>&2 + exit 1 +fi + +package=$1 +coin=$2 +shift 2 + +mkdir build +cp -r /src/build/templates build +cp -r /src/configs . +go run build/templates/generate.go $coin + +# backend +if [ $package = "backend" ] || [ $package = "all" ]; then + (cd build/pkg-defs/backend && dpkg-buildpackage -us -uc $@) +fi + +# blockbook +if [ $package = "blockbook" ] || [ $package = "all" ]; then + export VERSION=$(cd build/pkg-defs/blockbook && dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+)([-+~].+)?$/\1/p') + + cp Makefile ldb sst_dump build/pkg-defs/blockbook + cp -r /src/static build/pkg-defs/blockbook + mkdir build/pkg-defs/blockbook/cert && cp /src/server/testcert.* build/pkg-defs/blockbook/cert + (cd build/pkg-defs/blockbook && dpkg-buildpackage -us -uc $@) +fi + +# copy packages +mv build/pkg-defs/*.deb /out +chown $PACKAGER /out/*.deb diff --git a/contrib/backends/docker/gpg-keys/bgold-releases.asc b/build/docker/deb/gpg-keys/bgold-releases.asc similarity index 100% rename from contrib/backends/docker/gpg-keys/bgold-releases.asc rename to build/docker/deb/gpg-keys/bgold-releases.asc diff --git a/contrib/backends/docker/gpg-keys/bitcoin-releases.asc b/build/docker/deb/gpg-keys/bitcoin-releases.asc similarity index 100% rename from contrib/backends/docker/gpg-keys/bitcoin-releases.asc rename to build/docker/deb/gpg-keys/bitcoin-releases.asc diff --git a/contrib/backends/docker/gpg-keys/dash-releases.asc b/build/docker/deb/gpg-keys/dash-releases.asc similarity index 100% rename from contrib/backends/docker/gpg-keys/dash-releases.asc rename to build/docker/deb/gpg-keys/dash-releases.asc diff --git a/contrib/backends/docker/gpg-keys/eth-releases.asc b/build/docker/deb/gpg-keys/eth-releases.asc similarity index 100% rename from contrib/backends/docker/gpg-keys/eth-releases.asc rename to build/docker/deb/gpg-keys/eth-releases.asc diff --git a/contrib/backends/docker/gpg-keys/litecoin-releases.asc b/build/docker/deb/gpg-keys/litecoin-releases.asc similarity index 100% rename from contrib/backends/docker/gpg-keys/litecoin-releases.asc rename to build/docker/deb/gpg-keys/litecoin-releases.asc diff --git a/contrib/backends/docker/gpg-keys/vertcoin-releases.asc b/build/docker/deb/gpg-keys/vertcoin-releases.asc similarity index 100% rename from contrib/backends/docker/gpg-keys/vertcoin-releases.asc rename to build/docker/deb/gpg-keys/vertcoin-releases.asc diff --git a/contrib/backends/docker/gpg-keys/zcash-releases.asc b/build/docker/deb/gpg-keys/zcash-releases.asc similarity index 100% rename from contrib/backends/docker/gpg-keys/zcash-releases.asc rename to build/docker/deb/gpg-keys/zcash-releases.asc diff --git a/build/templates/backend/Makefile b/build/templates/backend/Makefile new file mode 100644 index 00000000..5b9e0bd4 --- /dev/null +++ b/build/templates/backend/Makefile @@ -0,0 +1,29 @@ +{{define "main" -}} +ARCHIVE := $(shell basename {{.Backend.BinaryURL}}) + +all: + wget {{.Backend.BinaryURL}} +{{- if eq .Backend.VerificationType "gpg"}} + wget {{.Backend.VerificationSource}} -O checksum + gpg --verify checksum ${ARCHIVE} +{{- else if eq .Backend.VerificationType "gpg-sha256"}} + wget {{.Backend.VerificationSource}} -O checksum + gpg --verify checksum + sha256sum -c --ignore-missing checksum +{{- else if eq .Backend.VerificationType "sha256"}} + [ "$$(sha256sum ${ARCHIVE} | cut -d ' ' -f 1)" = "{{.Backend.VerificationSource}}" ] +{{- end}} + mkdir backend + {{.Backend.ExtractCommand}} ${ARCHIVE} +{{- if .Backend.ExcludeFiles}} + # generated from exclude_files +{{- range $index, $name := .Backend.ExcludeFiles}} + rm backend/{{$name}} +{{- end}} +{{- end}} + +clean: + rm -rf backend + rm -f ${ARCHIVE} + rm -f checksum +{{end}} diff --git a/build/templates/backend/config/bitcoin.conf b/build/templates/backend/config/bitcoin.conf new file mode 100644 index 00000000..640aec2f --- /dev/null +++ b/build/templates/backend/config/bitcoin.conf @@ -0,0 +1,30 @@ +{{define "main" -}} +daemon=1 +server=1 +{{if .Backend.Mainnet}}mainnet=1{{else}}testnet=1{{end}} +nolisten=1 +rpcuser={{.IPC.RPCUser}} +rpcpassword={{.IPC.RPCPass}} +rpcport={{.Ports.BackendRPC}} +txindex=1 + +zmqpubhashtx={{template "IPC.MessageQueueBindingTemplate" .}} +zmqpubhashblock={{template "IPC.MessageQueueBindingTemplate" .}} + +rpcworkqueue=1100 +maxmempool=2000 +dbcache=1000 + +{{- if .Backend.AdditionalParams}} +# generated from additional_params +{{- range $name, $value := .Backend.AdditionalParams}} +{{- if eq $name "addnode"}} +{{- range $index, $node := $value}} +addnode={{$node}} +{{- end}} +{{- else}} +{{$name}}={{$value}} +{{- end}} +{{- end}} +{{- end}} +{{end}} diff --git a/build/templates/backend/debian/changelog b/build/templates/backend/debian/changelog new file mode 100644 index 00000000..a9b83a77 --- /dev/null +++ b/build/templates/backend/debian/changelog @@ -0,0 +1,7 @@ +{{define "main" -}} +backend ({{.Backend.Version}}{{if .Backend.PackageRevision}}-{{.Backend.PackageRevision}}{{end}}) unstable; urgency=medium + + * {{.Coin.Name}} backend daemon version {{.Backend.Version}} + + -- {{.Meta.PackageMaintainer}} <{{.Meta.PackageMaintainerEmail}}> {{.Meta.BuildDatetime}} +{{end}} diff --git a/build/templates/backend/debian/compat b/build/templates/backend/debian/compat new file mode 100644 index 00000000..2bbd4a85 --- /dev/null +++ b/build/templates/backend/debian/compat @@ -0,0 +1,3 @@ +{{define "main" -}} +9 +{{end}} diff --git a/build/templates/backend/debian/conffiles b/build/templates/backend/debian/conffiles new file mode 100644 index 00000000..d1d3266b --- /dev/null +++ b/build/templates/backend/debian/conffiles @@ -0,0 +1,3 @@ +{{define "main" -}} +{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf +{{end}} diff --git a/contrib/backends/dogecoin/debian/control b/build/templates/backend/debian/control similarity index 53% rename from contrib/backends/dogecoin/debian/control rename to build/templates/backend/debian/control index a5ded050..049d4000 100644 --- a/contrib/backends/dogecoin/debian/control +++ b/build/templates/backend/debian/control @@ -1,11 +1,13 @@ -Source: dogecoin +{{define "main" -}} +Source: backend Section: satoshilabs Priority: optional -Maintainer: martin.bohm@satoshilabs.com +Maintainer: {{.Meta.PackageMaintainerEmail}} Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd, dh-exec Standards-Version: 3.9.5 -Package: backend-dogecoin +Package: {{.Backend.PackageName}} Architecture: amd64 Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged dogecoin server +Description: Satoshilabs packaged {{.Coin.Name}} server +{{end}} diff --git a/build/templates/backend/debian/dirs b/build/templates/backend/debian/dirs new file mode 100644 index 00000000..32632c87 --- /dev/null +++ b/build/templates/backend/debian/dirs @@ -0,0 +1,3 @@ +{{define "main" -}} +{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend +{{end}} diff --git a/build/templates/backend/debian/install b/build/templates/backend/debian/install new file mode 100755 index 00000000..e163234c --- /dev/null +++ b/build/templates/backend/debian/install @@ -0,0 +1,5 @@ +{{define "main" -}} +#!/usr/bin/dh-exec +backend/* {{.Env.BackendInstallPath}}/{{.Coin.Alias}} +backend.conf => {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf +{{end}} diff --git a/contrib/backends/ethereum/debian/backend-ethereum.logrotate b/build/templates/backend/debian/logrotate similarity index 59% rename from contrib/backends/ethereum/debian/backend-ethereum.logrotate rename to build/templates/backend/debian/logrotate index 3ca48f1a..26d003a9 100644 --- a/contrib/backends/ethereum/debian/backend-ethereum.logrotate +++ b/build/templates/backend/debian/logrotate @@ -1,4 +1,5 @@ -/opt/coins/data/ethereum/backend/ethereum.log +{{define "main" -}} +{{template "Backend.LogrotateFilesTemplate" .}} { rotate 7 daily @@ -7,3 +8,4 @@ notifempty copytruncate } +{{end}} diff --git a/build/templates/backend/debian/postinst b/build/templates/backend/debian/postinst new file mode 100644 index 00000000..e74a57b5 --- /dev/null +++ b/build/templates/backend/debian/postinst @@ -0,0 +1,27 @@ +{{define "main" -}} +#!/bin/bash +set -e + +case "$1" in + + configure) + if ! id -u {{.Backend.SystemUser}} &> /dev/null + then + useradd --system -M -U {{.Backend.SystemUser}} -s /bin/false + fi + + if [ "$(stat -c '%U' {{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend)" != "{{.Backend.SystemUser}}" ] + then + chown -R {{.Backend.SystemUser}}:{{.Backend.SystemUser}} {{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend + fi + +{{if .Backend.PostinstScriptTemplate}} + # generated from postinst_template + {{template "Backend.PostinstScriptTemplate" .}} +{{end}} + ;; + +esac + +#DEBHELPER# +{{end}} diff --git a/contrib/backends/bgold/debian/rules b/build/templates/backend/debian/rules similarity index 87% rename from contrib/backends/bgold/debian/rules rename to build/templates/backend/debian/rules index b992848e..2b091547 100755 --- a/contrib/backends/bgold/debian/rules +++ b/build/templates/backend/debian/rules @@ -1,3 +1,4 @@ +{{define "main" -}} #!/usr/bin/make -f DH_VERBOSE = 1 @@ -12,3 +13,4 @@ override_dh_installinit: override_dh_strip: dh_strip --no-automatic-dbgsym +{{end}} diff --git a/contrib/backends/dash/debian/backend-dash.service b/build/templates/backend/debian/service similarity index 51% rename from contrib/backends/dash/debian/backend-dash.service rename to build/templates/backend/debian/service index 151491a1..b494c22c 100644 --- a/contrib/backends/dash/debian/backend-dash.service +++ b/build/templates/backend/debian/service @@ -1,24 +1,21 @@ -# 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 dash.service -# See "man systemd.service" for details. - -# Note that almost all daemon options could be specified in -# /opt/coins/nodes/dash/dash.conf - +{{define "main" -}} [Unit] -Description=DASH daemon (mainnet) +Description={{.Coin.Name}} backend daemon After=network.target [Service] -ExecStart=/opt/coins/nodes/dash/bin/dashd -datadir=/opt/coins/data/dash/backend -conf=/opt/coins/nodes/dash/dash.conf -pid=/run/dashd/dash.pid -# Creates /run/dashd owned by dash -RuntimeDirectory=dashd -User=dash -Type=forking -PIDFile=/run/dashd/dash.pid +ExecStart={{template "Backend.ExecCommandTemplate" .}} +User={{.Backend.SystemUser}} Restart=on-failure +WorkingDirectory={{.Env.BackendInstallPath}}/{{.Coin.Alias}} +{{if eq .Backend.ServiceType "forking" -}} +Type=forking +RuntimeDirectory={{.Coin.Alias}} +PIDFile=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid +{{else -}} +Type=simple +{{end}} +{{template "Backend.ServiceAdditionalParamsTemplate" .}} # Resource limits LimitNOFILE=500000 @@ -40,8 +37,11 @@ NoNewPrivileges=true # such as /dev/null, /dev/zero and /dev/random. PrivateDevices=true +{{if .Backend.ProtectMemory -}} # Deny the creation of writable and executable memory mappings. MemoryDenyWriteExecute=true +{{end}} [Install] WantedBy=multi-user.target +{{end}} diff --git a/build/templates/blockbook/blockchaincfg.json b/build/templates/blockbook/blockchaincfg.json new file mode 100644 index 00000000..f8acb70b --- /dev/null +++ b/build/templates/blockbook/blockchaincfg.json @@ -0,0 +1,23 @@ +{{define "main" -}} +{ +{{- if .Blockbook.BlockChain.AdditionalParams}} +{{- range $name, $value := .Blockbook.BlockChain.AdditionalParams}} + "{{$name}}": {{jsonToString $value}}, +{{- end}} +{{end}} + + "coin_name": "{{.Coin.Name}}", + "coin_shortcut": "{{.Coin.Shortcut}}", + "rpc_url": "{{template "IPC.RPCURLTemplate" .}}", + "rpc_user": "{{.IPC.RPCUser}}", + "rpc_pass": "{{.IPC.RPCPass}}", + "rpc_timeout": {{.IPC.RPCTimeout}}, + "parse": {{.Blockbook.BlockChain.Parse}}, + "message_queue_binding": "{{template "IPC.MessageQueueBindingTemplate" .}}", + "subversion": "{{.Blockbook.BlockChain.Subversion}}", + "address_format": "{{.Blockbook.BlockChain.AddressFormat}}", + "mempool_workers": {{.Blockbook.BlockChain.MempoolWorkers}}, + "mempool_sub_workers": {{.Blockbook.BlockChain.MempoolSubWorkers}}, + "block_addresses_to_keep": {{.Blockbook.BlockChain.BlockAddressesToKeep}} +} +{{end}} diff --git a/build/templates/blockbook/debian/changelog b/build/templates/blockbook/debian/changelog new file mode 100644 index 00000000..7f43c4f5 --- /dev/null +++ b/build/templates/blockbook/debian/changelog @@ -0,0 +1,7 @@ +{{define "main" -}} +blockbook ({{.Env.Version}}) unstable; urgency=medium + + * Blockbook daemon ({{.Coin.Name}}) version {{.Env.Version}} + + -- {{.Meta.PackageMaintainer}} <{{.Meta.PackageMaintainerEmail}}> {{.Meta.BuildDatetime}} +{{end}} diff --git a/build/templates/blockbook/debian/compat b/build/templates/blockbook/debian/compat new file mode 100644 index 00000000..2bbd4a85 --- /dev/null +++ b/build/templates/blockbook/debian/compat @@ -0,0 +1,3 @@ +{{define "main" -}} +9 +{{end}} diff --git a/build/templates/blockbook/debian/conffiles b/build/templates/blockbook/debian/conffiles new file mode 100644 index 00000000..ccb487ce --- /dev/null +++ b/build/templates/blockbook/debian/conffiles @@ -0,0 +1,3 @@ +{{define "main" -}} +{{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/config/blockchaincfg.json +{{end}} diff --git a/build/templates/blockbook/debian/control b/build/templates/blockbook/debian/control new file mode 100644 index 00000000..58df162a --- /dev/null +++ b/build/templates/blockbook/debian/control @@ -0,0 +1,13 @@ +{{define "main" -}} +Source: blockbook +Section: satoshilabs +Priority: optional +Maintainer: {{.Meta.PackageMaintainerEmail}} +Build-Depends: debhelper, dh-systemd, dh-exec +Standards-Version: 3.9.5 + +Package: {{.Blockbook.PackageName}} +Architecture: amd64 +Depends: ${shlibs:Depends}, ${misc:Depends}, coreutils, passwd, findutils, psmisc, backend-bitcoin +Description: Satoshilabs blockbook server ({{.Coin.Name}}) +{{end}} diff --git a/build/templates/blockbook/debian/cron.daily b/build/templates/blockbook/debian/cron.daily new file mode 100644 index 00000000..5bb508d4 --- /dev/null +++ b/build/templates/blockbook/debian/cron.daily @@ -0,0 +1,4 @@ +{{define "main" -}} +#!/bin/sh +{{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/bin/logrotate.sh +{{end}} diff --git a/build/templates/blockbook/debian/dirs b/build/templates/blockbook/debian/dirs new file mode 100644 index 00000000..9e166b12 --- /dev/null +++ b/build/templates/blockbook/debian/dirs @@ -0,0 +1,4 @@ +{{define "main" -}} +{{.Env.BlockbookDataPath}}/{{.Coin.Alias}}/blockbook +{{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/logs +{{end}} diff --git a/build/templates/blockbook/debian/install b/build/templates/blockbook/debian/install new file mode 100644 index 00000000..d2b8422c --- /dev/null +++ b/build/templates/blockbook/debian/install @@ -0,0 +1,9 @@ +{{define "main" -}} +blockbook {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/bin +cert {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}} +static {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}} +blockchaincfg.json {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/config +logrotate.sh {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/bin +ldb {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/bin +sst_dump {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/bin +{{end}} diff --git a/build/templates/blockbook/debian/links b/build/templates/blockbook/debian/links new file mode 100644 index 00000000..08769efb --- /dev/null +++ b/build/templates/blockbook/debian/links @@ -0,0 +1,4 @@ +{{define "main" -}} +{{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/cert/testcert.crt {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/cert/blockbook.crt +{{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/cert/testcert.key {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/cert/blockbook.key +{{end}} diff --git a/build/templates/blockbook/debian/postinst b/build/templates/blockbook/debian/postinst new file mode 100644 index 00000000..75715f7c --- /dev/null +++ b/build/templates/blockbook/debian/postinst @@ -0,0 +1,25 @@ +{{define "main" -}} +#!/bin/bash +set -e + +case "$1" in + + configure) + if ! id -u {{.Blockbook.SystemUser}} &> /dev/null + then + useradd --system -M -U {{.Blockbook.SystemUser}} -s /bin/false + fi + + for dir in {{.Env.BlockbookDataPath}}/{{.Coin.Alias}}/blockbook {{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/logs + do + if [ "$(stat -c '%U' $dir)" != "{{.Blockbook.SystemUser}}" ] + then + chown -R {{.Blockbook.SystemUser}}:{{.Blockbook.SystemUser}} $dir + fi + done + ;; + +esac + +#DEBHELPER# +{{end}} diff --git a/contrib/backends/ethereum/debian/rules b/build/templates/blockbook/debian/rules similarity index 85% rename from contrib/backends/ethereum/debian/rules rename to build/templates/blockbook/debian/rules index 12271a0c..6f7bd38a 100755 --- a/contrib/backends/ethereum/debian/rules +++ b/build/templates/blockbook/debian/rules @@ -1,3 +1,4 @@ +{{define "main" -}} #!/usr/bin/make -f DH_VERBOSE = 1 @@ -11,3 +12,4 @@ override_dh_systemd_start: dh_systemd_start --no-start override_dh_installinit: +{{end}} diff --git a/build/templates/blockbook/debian/service b/build/templates/blockbook/debian/service new file mode 100644 index 00000000..8a984f70 --- /dev/null +++ b/build/templates/blockbook/debian/service @@ -0,0 +1,39 @@ +{{define "main" -}} +[Unit] +Description=Blockbook daemon ({{.Coin.Name}}) +After=network.target +Wants={{.Backend.PackageName}}-service + +[Service] +ExecStart={{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/bin/blockbook -blockchaincfg={{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/config/blockchaincfg.json -datadir={{.Env.BlockbookDataPath}}/{{.Coin.Alias}}/blockbook/db -sync -internal={{template "Blockbook.InternalBindingTemplate" .}} -public={{template "Blockbook.PublicBindingTemplate" .}} -certfile={{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/cert/blockbook -explorer={{.Blockbook.ExplorerURL}} -log_dir={{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/logs {{.Blockbook.AdditionalParams}} +User={{.Blockbook.SystemUser}} +Type=simple +Restart=on-failure +WorkingDirectory={{.Env.BlockbookInstallPath}}/{{.Coin.Alias}} + +# 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 +{{end}} diff --git a/build/deb/logrotate.sh b/build/templates/blockbook/logrotate.sh similarity index 70% rename from build/deb/logrotate.sh rename to build/templates/blockbook/logrotate.sh index 8bce66bb..e8fe312c 100755 --- a/build/deb/logrotate.sh +++ b/build/templates/blockbook/logrotate.sh @@ -1,7 +1,8 @@ +{{define "main" -}} #!/bin/bash set -e -LOGS=$(readlink -f $(dirname $0)/../logs) +LOGS={{.Env.BlockbookInstallPath}}/{{.Coin.Alias}}/logs find $LOGS -mtime +30 -type f -print0 | while read -r -d $'\0' log; do # remove log if isn't opened by any process @@ -9,3 +10,4 @@ find $LOGS -mtime +30 -type f -print0 | while read -r -d $'\0' log; do rm -f $log fi done +{{end}} diff --git a/build/templates/generate.go b/build/templates/generate.go new file mode 100644 index 00000000..82db779e --- /dev/null +++ b/build/templates/generate.go @@ -0,0 +1,287 @@ +package main + +import ( + "encoding/json" + "fmt" + "io" + "os" + "path/filepath" + "strings" + "text/template" + "time" +) + +const ( + configsDir = "configs" + inputDir = "build/templates" + outputDir = "build/pkg-defs" +) + +type Config struct { + Meta struct { + BuildDatetime string // generated field + PackageMaintainer string `json:"package_maintainer"` + PackageMaintainerEmail string `json:"package_maintainer_email"` + } + Env struct { + Version string `json:"version"` + BackendInstallPath string `json:"backend_install_path"` + BackendDataPath string `json:"backend_data_path"` + BlockbookInstallPath string `json:"blockbook_install_path"` + BlockbookDataPath string `json:"blockbook_data_path"` + } `json:"env"` + Coin struct { + Name string `json:"name"` + Shortcut string `json:"shortcut"` + Label string `json:"label"` + Alias string `json:"alias"` + } `json:"coin"` + Ports struct { + BackendRPC int `json:"backend_rpc"` + BackendMessageQueue int `json:"backend_message_queue"` + BlockbookInternal int `json:"blockbook_internal"` + BlockbookPublic int `json:"blockbook_public"` + } `json:"ports"` + IPC struct { + RPCURLTemplate string `json:"rpc_url_template"` + RPCUser string `json:"rpc_user"` + RPCPass string `json:"rpc_pass"` + RPCTimeout int `json:"rpc_timeout"` + MessageQueueBindingTemplate string `json:"message_queue_binding_template"` + } `json:"ipc"` + Backend struct { + PackageName string `json:"package_name"` + PackageRevision string `json:"package_revision"` + SystemUser string `json:"system_user"` + Version string `json:"version"` + BinaryURL string `json:"binary_url"` + VerificationType string `json:"verification_type"` + VerificationSource string `json:"verification_source"` + ExtractCommand string `json:"extract_command"` + ExcludeFiles []string `json:"exclude_files"` + ExecCommandTemplate string `json:"exec_command_template"` + LogrotateFilesTemplate string `json:"logrotate_files_template"` + PostinstScriptTemplate string `json:"postinst_script_template"` + ServiceType string `json:"service_type"` + ServiceAdditionalParamsTemplate string `json:"service_additional_params_template"` + ProtectMemory bool `json:"protect_memory"` + Mainnet bool `json:"mainnet"` + ConfigFile string `json:"config_file"` + AdditionalParams interface{} `json:"additional_params"` + } `json:"backend"` + Blockbook struct { + PackageName string `json:"package_name"` + SystemUser string `json:"system_user"` + InternalBindingTemplate string `json:"internal_binding_template"` + PublicBindingTemplate string `json:"public_binding_template"` + ExplorerURL string `json:"explorer_url"` + AdditionalParams string `json:"additional_params"` + BlockChain struct { + Parse bool `json:"parse"` + Subversion string `json:"subversion"` + AddressFormat string `json:"address_format"` + MempoolWorkers int `json:"mempool_workers"` + MempoolSubWorkers int `json:"mempool_sub_workers"` + BlockAddressesToKeep int `json:"block_addresses_to_keep"` + AdditionalParams map[string]json.RawMessage `json:"additional_params"` + } `json:"block_chain"` + } `json:"blockbook"` +} + +func jsonToString(msg json.RawMessage) (string, error) { + d, err := msg.MarshalJSON() + if err != nil { + return "", err + } + return string(d), nil +} + +func (c *Config) ParseTemplate() *template.Template { + templates := map[string]string{ + "IPC.RPCURLTemplate": c.IPC.RPCURLTemplate, + "IPC.MessageQueueBindingTemplate": c.IPC.MessageQueueBindingTemplate, + "Backend.ExecCommandTemplate": c.Backend.ExecCommandTemplate, + "Backend.LogrotateFilesTemplate": c.Backend.LogrotateFilesTemplate, + "Backend.PostinstScriptTemplate": c.Backend.PostinstScriptTemplate, + "Backend.ServiceAdditionalParamsTemplate": c.Backend.ServiceAdditionalParamsTemplate, + "Blockbook.InternalBindingTemplate": c.Blockbook.InternalBindingTemplate, + "Blockbook.PublicBindingTemplate": c.Blockbook.PublicBindingTemplate, + } + + funcMap := template.FuncMap{ + "jsonToString": jsonToString, + } + + t := template.New("").Funcs(funcMap) + + for name, def := range templates { + t = template.Must(t.Parse(fmt.Sprintf(`{{define "%s"}}%s{{end}}`, name, def))) + } + + return t +} + +func main() { + if len(os.Args) < 2 { + var coins []string + filepath.Walk(filepath.Join(configsDir, "coins"), func(path string, info os.FileInfo, err error) error { + n := strings.TrimSuffix(info.Name(), ".json") + if n != info.Name() { + coins = append(coins, n) + } + return nil + }) + fmt.Fprintf(os.Stderr, "Usage: %s coin\nCoin is one of:\n%v\n", filepath.Base(os.Args[0]), coins) + os.Exit(1) + } + + coin := os.Args[1] + config := loadConfig(coin) + generatePackageDefinitions(config) + fmt.Fprintf(os.Stderr, "Package files for %v generated to %v\n", coin, outputDir) +} + +func loadConfig(coin string) *Config { + config := new(Config) + + f, err := os.Open(filepath.Join(configsDir, "coins", coin+".json")) + if err != nil { + panic(err) + } + d := json.NewDecoder(f) + err = d.Decode(config) + if err != nil { + panic(err) + } + + f, err = os.Open(filepath.Join(configsDir, "environ.json")) + if err != nil { + panic(err) + } + d = json.NewDecoder(f) + err = d.Decode(&config.Env) + if err != nil { + panic(err) + } + + config.Meta.BuildDatetime = time.Now().Format("Mon, 02 Jan 2006 15:04:05 -0700") + + switch config.Backend.ServiceType { + case "forking": + case "simple": + default: + panic("Invalid service type: " + config.Backend.ServiceType) + } + + switch config.Backend.VerificationType { + case "": + case "gpg": + case "sha256": + case "gpg-sha256": + default: + panic("Invalid verification type: " + config.Backend.VerificationType) + } + + return config +} + +func generatePackageDefinitions(config *Config) { + templ := config.ParseTemplate() + + makeOutputDir(outputDir) + + for _, subdir := range []string{"backend", "blockbook"} { + root := filepath.Join(inputDir, subdir) + + err := os.Mkdir(filepath.Join(outputDir, subdir), 0755) + if err != nil { + panic(err) + } + + err = filepath.Walk(root, func(path string, info os.FileInfo, err error) error { + if err != nil { + return fmt.Errorf("%s: %s", path, err) + } + + if path == root { + return nil + } + if filepath.Base(path)[0] == '.' { + return nil + } + + subpath := path[len(root)-len(subdir):] + + if info.IsDir() { + err = os.Mkdir(filepath.Join(outputDir, subpath), info.Mode()) + if err != nil { + return fmt.Errorf("%s: %s", path, err) + } + return nil + } + + t := template.Must(templ.Clone()) + t = template.Must(t.ParseFiles(path)) + + err = writeTemplate(filepath.Join(outputDir, subpath), info, t, config) + if err != nil { + return fmt.Errorf("%s: %s", path, err) + } + + return nil + }) + if err != nil { + panic(err) + } + } + + writeBackendConfigFile(config) +} + +func makeOutputDir(path string) { + err := os.RemoveAll(path) + if err == nil { + err = os.Mkdir(path, 0755) + } + if err != nil { + panic(err) + } +} + +func writeTemplate(path string, info os.FileInfo, templ *template.Template, config *Config) error { + f, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY, info.Mode()) + if err != nil { + return err + } + defer f.Close() + + err = templ.ExecuteTemplate(f, "main", config) + if err != nil { + return err + } + + return nil +} + +func writeBackendConfigFile(config *Config) { + out, err := os.OpenFile(filepath.Join(outputDir, "backend/backend.conf"), os.O_CREATE|os.O_WRONLY, 0644) + if err != nil { + panic(err) + } + defer out.Close() + + if config.Backend.ConfigFile == "" { + return + } else { + in, err := os.Open(filepath.Join(outputDir, "backend/config", config.Backend.ConfigFile)) + if err != nil { + panic(err) + } + defer in.Close() + + _, err = io.Copy(out, in) + if err != nil { + panic(err) + } + } +} diff --git a/configs/bcash.json b/configs/bcash.json deleted file mode 100644 index a18b5f94..00000000 --- a/configs/bcash.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "coin_name": "Bcash", - "coin_shortcut": "BCH", - "rpcURL": "http://127.0.0.1:8031", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:38331", - "subversion": "/Bitcoin ABC:0.17.1/", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300, - "addressFormat": "legacy" -} \ No newline at end of file diff --git a/configs/bcash_testnet.json b/configs/bcash_testnet.json deleted file mode 100644 index e5cdbe47..00000000 --- a/configs/bcash_testnet.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "coin_name": "Bcash Testnet", - "coin_shortcut": "TBCH", - "rpcURL": "http://localhost:18031", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:48331", - "subversion": "/Bitcoin ABC:0.17.1/", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300, - "addressFormat": "legacy" -} \ No newline at end of file diff --git a/configs/bgold.json b/configs/bgold.json deleted file mode 100644 index 52d9c098..00000000 --- a/configs/bgold.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "coin_name": "Bgold", - "coin_shortcut": "BTG", - "rpcURL": "http://127.0.0.1:8035", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:38335", - "subversion": "/Bitcoin Gold:0.15.1/", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} \ No newline at end of file diff --git a/configs/bitcoin.json b/configs/bitcoin.json deleted file mode 100644 index ffa15701..00000000 --- a/configs/bitcoin.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "coin_name": "Bitcoin", - "coin_shortcut": "BTC", - "rpcURL": "http://127.0.0.1:8030", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:38330", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} \ No newline at end of file diff --git a/configs/bitcoin_testnet.json b/configs/bitcoin_testnet.json deleted file mode 100644 index 3ca273a3..00000000 --- a/configs/bitcoin_testnet.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "coin_name": "Testnet", - "coin_shortcut": "TEST", - "rpcURL": "http://localhost:18030", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:48330", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} \ No newline at end of file diff --git a/configs/coins/bcash.json b/configs/coins/bcash.json new file mode 100644 index 00000000..e1bfe518 --- /dev/null +++ b/configs/coins/bcash.json @@ -0,0 +1,63 @@ +{ + "coin": { + "name": "Bcash", + "shortcut": "BCH", + "label": "Bitcoin Cash", + "alias": "bcash" + }, + "ports": { + "backend_rpc": 8031, + "backend_message_queue": 38331, + "blockbook_internal": 9031, + "blockbook_public": 9131 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-bcash", + "package_revision": "satoshilabs-1", + "system_user": "bcash", + "version": "0.17.1", + "binary_url": "https://download.bitcoinabc.org/0.17.1/linux/bitcoin-abc-0.17.1-x86_64-linux-gnu.tar.gz", + "verification_type": "sha256", + "verification_source": "eccf8b61ba0549f6839e586c7dc6fc4bf6d7591ac432aaea8a7df0266b113d27", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/bitcoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/bitcoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": true, + "config_file": "bitcoin.conf" + }, + "blockbook": { + "package_name": "blockbook-bcash", + "system_user": "blockbook-bcash", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://bitcoincash.blockexplorer.com", + "additional_params": "", + "block_chain": { + "parse": true, + "subversion": "/Bitcoin ABC:0.17.1/", + "address_format": "legacy", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/bcash_testnet.json b/configs/coins/bcash_testnet.json new file mode 100644 index 00000000..af58f66a --- /dev/null +++ b/configs/coins/bcash_testnet.json @@ -0,0 +1,63 @@ +{ + "coin": { + "name": "Bcash Testnet", + "shortcut": "TBCH", + "label": "Bitcoin Cash Testnet", + "alias": "bcash_testnet" + }, + "ports": { + "backend_rpc": 18031, + "backend_message_queue": 48331, + "blockbook_internal": 19031, + "blockbook_public": 19131 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-bcash-testnet", + "package_revision": "satoshilabs-1", + "system_user": "bcash", + "version": "0.17.1", + "binary_url": "https://download.bitcoinabc.org/0.17.1/linux/bitcoin-abc-0.17.1-x86_64-linux-gnu.tar.gz", + "verification_type": "sha256", + "verification_source": "eccf8b61ba0549f6839e586c7dc6fc4bf6d7591ac432aaea8a7df0266b113d27", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/bitcoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/bitcoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet3/*.log", + "postinst_script_template": "", + "service_type": "forking", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": false, + "config_file": "bitcoin.conf" + }, + "blockbook": { + "package_name": "blockbook-bcash-testnet", + "system_user": "blockbook-bcash", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://bitcoincash.blockexplorer.com", + "additional_params": "", + "block_chain": { + "parse": true, + "subversion": "/Bitcoin ABC:0.17.1/", + "address_format": "legacy", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/bgold.json b/configs/coins/bgold.json new file mode 100644 index 00000000..3eb019a6 --- /dev/null +++ b/configs/coins/bgold.json @@ -0,0 +1,257 @@ +{ + "coin": { + "name": "Bgold", + "shortcut": "BTG", + "label": "Bitcoin Gold", + "alias": "bgold" + }, + "ports": { + "backend_rpc": 8035, + "backend_message_queue": 38335, + "blockbook_internal": 9035, + "blockbook_public": 9135 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-bgold", + "package_revision": "satoshilabs-1", + "system_user": "bgold", + "version": "0.15.1", + "binary_url": "https://github.com/BTCGPU/BTCGPU/releases/download/v0.15.1/bitcoin-gold-0.15.1-x86_64-linux-gnu.tar.gz", + "verification_type": "gpg-sha256", + "verification_source": "https://github.com/BTCGPU/BTCGPU/releases/download/v0.15.1/SHA256SUMS.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/bitcoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/bgoldd -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "mempoolexpiry": 72, + "timeout": 768, + "maxconnections": 250, + "addnode": [ + "188.126.0.134", + "45.56.84.44", + "109.201.133.93:8338", + "178.63.11.246:8338", + "188.120.223.153:8338", + "79.137.64.158:8338", + "78.193.221.106:8338", + "139.59.151.13:8338", + "76.16.12.81:8338", + "172.104.157.62:8338", + "43.207.67.209:8338", + "178.63.11.246:8338", + "79.137.64.158:8338", + "78.193.221.106:8338", + "139.59.151.13:8338", + "172.104.157.62:8338", + "178.158.247.119:8338", + "109.201.133.93:8338", + "178.63.11.246:8338", + "139.59.151.13:8338", + "172.104.157.62:8338", + "188.120.223.153:8338", + "178.158.247.119:8338", + "78.193.221.106:8338", + "79.137.64.158:8338", + "76.16.12.81:8338", + "176.12.32.153:8338", + "178.158.247.122:8338", + "81.37.147.185:8338", + "176.12.32.153:8338", + "79.137.64.158:8338", + "178.158.247.122:8338", + "66.70.247.151:8338", + "89.18.27.165:8338", + "178.63.11.246:8338", + "91.222.17.86:8338", + "37.59.50.143:8338", + "91.50.219.221:8338", + "154.16.63.17:8338", + "213.136.76.42:8338", + "176.99.4.140:8338", + "176.9.48.36:8338", + "78.193.221.106:8338", + "34.236.228.99:8338", + "213.154.230.107:8338", + "111.231.66.252:8338", + "188.120.223.153:8338", + "219.89.122.82:8338", + "109.192.23.101:8338", + "98.114.91.222:8338", + "217.66.156.41:8338", + "172.104.157.62:8338", + "114.44.222.73:8338", + "91.224.140.216:8338", + "149.154.71.96:8338", + "107.181.183.242:8338", + "36.78.96.92:8338", + "46.22.7.74:8338", + "89.110.53.186:8338", + "73.243.220.85:8338", + "109.86.137.8:8338", + "77.78.12.89:8338", + "87.92.116.26:8338", + "93.78.122.48:8338", + "35.195.83.0:8338", + "46.147.75.220:8338", + "212.47.236.104:8338", + "95.220.100.230:8338", + "178.70.142.247:8338", + "45.76.136.149:8338", + "94.155.74.206:8338", + "178.70.142.247:8338", + "128.199.228.97:8338", + "77.171.144.207:8338", + "159.89.192.119:8338", + "136.63.238.170:8338", + "31.27.193.105:8338", + "176.107.192.240:8338", + "94.140.241.96:8338", + "66.108.15.5:8338", + "81.177.127.204:8338", + "88.18.69.174:8338", + "178.70.130.94:8338", + "78.98.162.140:8338", + "95.133.156.224:8338", + "46.188.16.96:8338", + "94.247.16.21:8338", + "eunode.pool.gold:8338", + "asianode.pool.gold:8338", + "45.56.84.44:8338", + "176.9.48.36:8338", + "93.57.253.121:8338", + "172.104.157.62:8338", + "176.12.32.153:8338", + "pool.serverpower.net:8338", + "213.154.229.126:8338", + "213.154.230.106:8338", + "213.154.230.107:8338", + "213.154.229.50:8338", + "145.239.0.50:8338", + "107.181.183.242:8338", + "109.201.133.93:8338", + "120.41.190.109:8338", + "120.41.191.224:8338", + "138.68.249.79:8338", + "13.95.223.202:8338", + "145.239.0.50:8338", + "149.56.95.26:8338", + "158.69.103.228:8338", + "159.89.192.119:8338", + "164.132.207.143:8338", + "171.100.141.106:8338", + "172.104.157.62:8338", + "173.176.95.92:8338", + "176.12.32.153:8338", + "178.239.54.250:8338", + "178.63.11.246:8338", + "185.139.2.140:8338", + "188.120.223.153:8338", + "190.46.2.92:8338", + "192.99.194.113:8338", + "199.229.248.218:8338", + "213.154.229.126:8338", + "213.154.229.50:8338", + "213.154.230.106:8338", + "213.154.230.107:8338", + "217.182.199.21", + "35.189.127.200:8338", + "35.195.83.0:8338", + "35.197.197.166:8338", + "35.200.168.155:8338", + "35.203.167.11:8338", + "37.59.50.143:8338", + "45.27.161.195:8338", + "45.32.234.160:8338", + "45.56.84.44:8338", + "46.188.16.96:8338", + "46.251.19.171:8338", + "5.157.119.109:8338", + "52.28.162.48:8338", + "54.153.140.202:8338", + "54.68.81.2:83388338", + "62.195.190.190:8338", + "62.216.5.136:8338", + "65.110.125.175:8338", + "67.68.226.130:8338", + "73.243.220.85:8338", + "77.78.12.89:8338", + "78.193.221.106:8338", + "78.98.162.140:8338", + "79.137.64.158:8338", + "84.144.177.238:8338", + "87.92.116.26:8338", + "89.115.139.117:8338", + "89.18.27.165:8338", + "91.50.219.221:8338", + "93.88.74.26", + "93.88.74.26:8338", + "94.155.74.206:8338", + "95.154.201.132:8338", + "98.29.248.131:8338", + "u2.my.to:8338", + "[2001:470:b:ce:dc70:83ff:fe7a:1e74]:8338", + "2001:7b8:61d:1:250:56ff:fe90:c89f:8338", + "2001:7b8:63a:1002:213:154:230:106:8338", + "2001:7b8:63a:1002:213:154:230:107:8338", + "45.56.84.44", + "109.201.133.93:8338", + "120.41.191.224:30607", + "138.68.249.79:50992", + "138.68.249.79:51314", + "172.104.157.62", + "178.63.11.246:8338", + "185.139.2.140:8338", + "199.229.248.218:28830", + "35.189.127.200:41220", + "35.189.127.200:48244", + "35.195.83.0:35172", + "35.195.83.0:35576", + "35.195.83.0:35798", + "35.197.197.166:32794", + "35.197.197.166:33112", + "35.197.197.166:33332", + "35.203.167.11:52158", + "37.59.50.143:35254", + "45.27.161.195:33852", + "45.27.161.195:36738", + "45.27.161.195:58628" + ] + } + }, + "blockbook": { + "package_name": "blockbook-bgold", + "system_user": "blockbook-bgold", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://btg-explorer.trezor.io/", + "additional_params": "", + "block_chain": { + "parse": true, + "subversion": "/Bitcoin Gold:0.15.1/", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/bitcoin.json b/configs/coins/bitcoin.json new file mode 100644 index 00000000..d5435bba --- /dev/null +++ b/configs/coins/bitcoin.json @@ -0,0 +1,64 @@ +{ + "coin": { + "name": "Bitcoin", + "shortcut": "BTC", + "label": "Bitcoin", + "alias": "bitcoin" + }, + "ports": { + "backend_rpc": 8030, + "backend_message_queue": 38330, + "blockbook_internal": 9030, + "blockbook_public": 9130 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-bitcoin", + "package_revision": "satoshilabs-1", + "system_user": "bitcoin", + "version": "0.16.1", + "binary_url": "https://bitcoin.org/bin/bitcoin-core-0.16.1/bitcoin-0.16.1-x86_64-linux-gnu.tar.gz", + "verification_type": "gpg-sha256", + "verification_source": "https://bitcoin.org/bin/bitcoin-core-0.16.1/SHA256SUMS.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/bitcoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/bitcoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "deprecatedrpc": "estimatefee" + } + }, + "blockbook": { + "package_name": "blockbook-bitcoin", + "system_user": "blockbook-bitcoin", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://btc-explorer.trezor.io/", + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/bitcoin_testnet.json b/configs/coins/bitcoin_testnet.json new file mode 100644 index 00000000..3397cb95 --- /dev/null +++ b/configs/coins/bitcoin_testnet.json @@ -0,0 +1,64 @@ +{ + "coin": { + "name": "Testnet", + "shortcut": "TEST", + "label": "Testnet", + "alias": "bitcoin_testnet" + }, + "ports": { + "backend_rpc": 18030, + "backend_message_queue": 48330, + "blockbook_internal": 19030, + "blockbook_public": 19130 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-bitcoin-testnet", + "package_revision": "satoshilabs-1", + "system_user": "bitcoin", + "version": "0.16.1", + "binary_url": "https://bitcoin.org/bin/bitcoin-core-0.16.1/bitcoin-0.16.1-x86_64-linux-gnu.tar.gz", + "verification_type": "gpg-sha256", + "verification_source": "https://bitcoin.org/bin/bitcoin-core-0.16.1/SHA256SUMS.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/bitcoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/bitcoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet3/*.log", + "postinst_script_template": "", + "service_type": "forking", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": false, + "config_file": "bitcoin.conf", + "additional_params": { + "deprecatedrpc": "estimatefee" + } + }, + "blockbook": { + "package_name": "blockbook-bitcoin-testnet", + "system_user": "blockbook-bitcoin", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://btc-testnet-explorer.trezor.io/", + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/dash.json b/configs/coins/dash.json new file mode 100644 index 00000000..d2895671 --- /dev/null +++ b/configs/coins/dash.json @@ -0,0 +1,65 @@ +{ + "coin": { + "name": "Dash", + "shortcut": "DASH", + "label": "Dash", + "alias": "dash" + }, + "ports": { + "backend_rpc": 8033, + "backend_message_queue": 38333, + "blockbook_internal": 9033, + "blockbook_public": 9133 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-dash", + "package_revision": "satoshilabs-1", + "system_user": "dash", + "version": "0.12.3", + "binary_url": "https://github.com/dashpay/dash/releases/download/v0.12.3.2/dashcore-0.12.3.2-x86_64-linux-gnu.tar.gz", + "verification_type": "gpg-sha256", + "verification_source": "https://github.com/dashpay/dash/releases/download/v0.12.3.2/SHA256SUMS.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/dash-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/dashd -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "mempoolexpiry": 72 + } + }, + "blockbook": { + "package_name": "blockbook-dash", + "system_user": "blockbook-dash", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://dash-explorer.trezor.io", + "additional_params": "", + "block_chain": { + "parse": true, + "subversion": "/Dash Core:0.12.3.2/", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/dash_testnet.json b/configs/coins/dash_testnet.json new file mode 100644 index 00000000..38407e37 --- /dev/null +++ b/configs/coins/dash_testnet.json @@ -0,0 +1,65 @@ +{ + "coin": { + "name": "Dash Testnet", + "shortcut": "tDASH", + "label": "Dash Testnet", + "alias": "dash_testnet" + }, + "ports": { + "backend_rpc": 18033, + "backend_message_queue": 48333, + "blockbook_internal": 19033, + "blockbook_public": 19133 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-dash-testnet", + "package_revision": "satoshilabs-1", + "system_user": "dash", + "version": "0.12.3", + "binary_url": "https://github.com/dashpay/dash/releases/download/v0.12.3.2/dashcore-0.12.3.2-x86_64-linux-gnu.tar.gz", + "verification_type": "gpg-sha256", + "verification_source": "https://github.com/dashpay/dash/releases/download/v0.12.3.2/SHA256SUMS.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/dash-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/dashd -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet3/*.log", + "postinst_script_template": "", + "service_type": "forking", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": false, + "config_file": "bitcoin.conf", + "additional_params": { + "mempoolexpiry": 72 + } + }, + "blockbook": { + "package_name": "blockbook-dash-testnet", + "system_user": "blockbook-dash", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://dash-explorer.trezor.io", + "additional_params": "", + "block_chain": { + "parse": true, + "subversion": "/Dash Core:0.12.3.2/", + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/dogecoin.json b/configs/coins/dogecoin.json new file mode 100644 index 00000000..cb9b7a68 --- /dev/null +++ b/configs/coins/dogecoin.json @@ -0,0 +1,67 @@ +{ + "coin": { + "name": "Dogecoin", + "shortcut": "DOGE", + "label": "Dogecoin", + "alias": "dogecoin" + }, + "ports": { + "backend_rpc": 8038, + "backend_message_queue": 38338, + "blockbook_internal": 9038, + "blockbook_public": 9138 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpcp", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-dogecoin", + "package_revision": "satoshilabs-1", + "system_user": "dogecoin", + "version": "1.10.0", + "binary_url": "https://github.com/dogecoin/dogecoin/releases/download/v1.10.0/dogecoin-1.10.0-linux64.tar.gz", + "verification_type": "sha256", + "verification_source": "2e5b61842695d74ebcd30f21014cf74b6265f0f7756e9f140f031259bb3cd656", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/dogecoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/dogecoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "service_additional_params_template": "", + "protect_memory": false, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "whitelist": "127.0.0.1", + "rpcthreads": 16, + "upnp": 0, + "discover": 0 + } + }, + "blockbook": { + "package_name": "blockbook-dogecoin", + "system_user": "blockbook-dogecoin", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://dogechain.info/", + "additional_params": "-resyncindexperiod=30011 -resyncmempoolperiod=2011", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/ethereum.json b/configs/coins/ethereum.json new file mode 100644 index 00000000..c51ccec9 --- /dev/null +++ b/configs/coins/ethereum.json @@ -0,0 +1,56 @@ +{ + "coin": { + "name": "Ethereum", + "shortcut": "ETH", + "label": "Ethereum", + "alias": "ethereum" + }, + "ports": { + "backend_rpc": 8036, + "backend_message_queue": 0, + "blockbook_internal": 9036, + "blockbook_public": 9136 + }, + "ipc": { + "rpc_url_template": "ws://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_timeout": 25 + }, + "backend": { + "package_name": "backend-ethereum", + "package_revision": "satoshilabs-1", + "system_user": "ethereum", + "version": "1.8.10-eae63c51", + "binary_url": "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.8.10-eae63c51.tar.gz", + "verification_type": "gpg", + "verification_source": "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.8.10-eae63c51.tar.gz.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [], + "exec_command_template": "/bin/sh -c '{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/geth --ipcdisable --syncmode full --cache 1024 --nat none --datadir {{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend --port 38336 --ws --wsaddr 0.0.0.0 --wsport {{.Ports.BackendRPC}} --wsorigins \"*\" --rpc --rpcport 8136 -rpcaddr 0.0.0.0 --rpccorsdomain \"*\" --rpcvhosts \"*\" 2>>{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/{{.Coin.Alias}}.log'", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/{{.Coin.Alias}}.log", + "postinst_script_template": "", + "service_type": "simple", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": true, + "config_file": "" + }, + "blockbook": { + "package_name": "blockbook-ethereum", + "system_user": "blockbook-ethereum", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://etherscan.io/", + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/ethereum_testnet_ropsten.json b/configs/coins/ethereum_testnet_ropsten.json new file mode 100644 index 00000000..cb241065 --- /dev/null +++ b/configs/coins/ethereum_testnet_ropsten.json @@ -0,0 +1,56 @@ +{ + "coin": { + "name": "Ethereum Testnet Ropsten", + "shortcut": "tETH", + "label": "Ethereum Testnet Ropsten", + "alias": "ethereum_testnet_ropsten" + }, + "ports": { + "backend_rpc": 18036, + "backend_message_queue": 0, + "blockbook_internal": 19036, + "blockbook_public": 19136 + }, + "ipc": { + "rpc_url_template": "ws://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_timeout": 25 + }, + "backend": { + "package_name": "backend-ethereum-testnet-ropsten", + "package_revision": "satoshilabs-1", + "system_user": "ethereum", + "version": "1.8.10-eae63c51", + "binary_url": "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.8.10-eae63c51.tar.gz", + "verification_type": "gpg", + "verification_source": "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.8.10-eae63c51.tar.gz.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [], + "exec_command_template": "/bin/sh -c '{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/geth --testnet --ipcdisable --cache 1024 --nat none --datadir {{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend --port 48336 --ws --wsaddr 0.0.0.0 --wsport {{.Ports.BackendRPC}} --wsorigins \"*\" 2>>{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/{{.Coin.Alias}}.log'", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/{{.Coin.Alias}}.log", + "postinst_script_template": "", + "service_type": "simple", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": false, + "config_file": "" + }, + "blockbook": { + "package_name": "blockbook-ethereum-testnet-ropsten", + "system_user": "blockbook-ethereum", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://ropsten.etherscan.io/", + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/litecoin.json b/configs/coins/litecoin.json new file mode 100644 index 00000000..e4541bf9 --- /dev/null +++ b/configs/coins/litecoin.json @@ -0,0 +1,64 @@ +{ + "coin": { + "name": "Litecoin", + "shortcut": "LTC", + "label": "Litecoin", + "alias": "litecoin" + }, + "ports": { + "backend_rpc": 8034, + "backend_message_queue": 38334, + "blockbook_internal": 9034, + "blockbook_public": 9134 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-litecoin", + "package_revision": "satoshilabs-1", + "system_user": "litecoin", + "version": "0.16.0", + "binary_url": "https://download.litecoin.org/litecoin-0.16.0/linux/litecoin-0.16.0-x86_64-linux-gnu.tar.gz", + "verification_type": "gpg-sha256", + "verification_source": "https://download.litecoin.org/litecoin-0.16.0/linux/litecoin-0.16.0-linux-signatures.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/litecoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/litecoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "whitelist": "127.0.0.1" + } + }, + "blockbook": { + "package_name": "blockbook-litecoin", + "system_user": "blockbook-litecoin", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://ltc-explorer.trezor.io/", + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/litecoin_testnet.json b/configs/coins/litecoin_testnet.json new file mode 100644 index 00000000..819ae8c0 --- /dev/null +++ b/configs/coins/litecoin_testnet.json @@ -0,0 +1,64 @@ +{ + "coin": { + "name": "Litecoin Testnet", + "shortcut": "TLTC", + "label": "Litecoin Testnet", + "alias": "litecoin_testnet" + }, + "ports": { + "backend_rpc": 18034, + "backend_message_queue": 48334, + "blockbook_internal": 19034, + "blockbook_public": 19134 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-litecoin-testnet", + "package_revision": "satoshilabs-1", + "system_user": "litecoin", + "version": "0.16.0", + "binary_url": "https://download.litecoin.org/litecoin-0.16.0/linux/litecoin-0.16.0-x86_64-linux-gnu.tar.gz", + "verification_type": "gpg-sha256", + "verification_source": "https://download.litecoin.org/litecoin-0.16.0/linux/litecoin-0.16.0-linux-signatures.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/litecoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/litecoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet4/*.log", + "postinst_script_template": "", + "service_type": "forking", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": false, + "config_file": "bitcoin.conf", + "additional_params": { + "whitelist": "127.0.0.1" + } + }, + "blockbook": { + "package_name": "blockbook-litecoin-testnet", + "system_user": "blockbook-litecoin", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://ltc-explorer.trezor.io", + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/namecoin.json b/configs/coins/namecoin.json new file mode 100644 index 00000000..754ee628 --- /dev/null +++ b/configs/coins/namecoin.json @@ -0,0 +1,71 @@ +{ + "coin": { + "name": "Namecoin", + "shortcut": "NMC", + "label": "Namecoin", + "alias": "namecoin" + }, + "ports": { + "backend_rpc": 8039, + "backend_message_queue": 38339, + "blockbook_internal": 9039, + "blockbook_public": 9139 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-namecoin", + "package_revision": "satoshilabs-1", + "system_user": "namecoin", + "version": "0.13.99", + "binary_url": "https://namecoin.org/files/namecoin-core-0.13.99-name-tab-beta1-notreproduced/namecoin-0.13.99-x86_64-linux-gnu.tar.gz", + "verification_type": "sha256", + "verification_source": "294b1106001d6ea2b9d9ee6a655021ef207a24e8f1dec8efd5899728b3849129", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bin/namecoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/namecoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "whitelist": "127.0.0.1", + "upnp": 0, + "discover": 0, + "whitelistrelay": 1, + "listenonion": 0, + "addnode": [ + "45.24.110.177:8334" + ] + } + }, + "blockbook": { + "package_name": "blockbook-namecoin", + "system_user": "blockbook-namecoin", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://namecha.in/", + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/vertcoin.json b/configs/coins/vertcoin.json new file mode 100644 index 00000000..d68a0a0f --- /dev/null +++ b/configs/coins/vertcoin.json @@ -0,0 +1,62 @@ +{ + "coin": { + "name": "Vertcoin", + "shortcut": "VTC", + "label": "Vertcoin", + "alias": "vertcoin" + }, + "ports": { + "backend_rpc": 8040, + "backend_message_queue": 38340, + "blockbook_internal": 9040, + "blockbook_public": 9140 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-vertcoin", + "package_revision": "satoshilabs-1", + "system_user": "vertcoin", + "version": "0.13.2", + "binary_url": "https://github.com/vertcoin-project/vertcoin-core/releases/download/0.13.2/vertcoind-v0.13.2-linux-amd64.zip", + "verification_type": "gpg", + "verification_source": "https://github.com/vertcoin-project/vertcoin-core/releases/download/0.13.2/vertcoind-v0.13.2-linux-amd64.zip.sig", + "extract_command": "unzip -d backend", + "exclude_files": [], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/vertcoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "whitelist": "127.0.0.1" + } + }, + "blockbook": { + "package_name": "blockbook-vertcoin", + "system_user": "blockbook-vertcoin", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://insight.vertcoin.org", + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/vertcoin_testnet.json b/configs/coins/vertcoin_testnet.json new file mode 100644 index 00000000..314929c3 --- /dev/null +++ b/configs/coins/vertcoin_testnet.json @@ -0,0 +1,62 @@ +{ + "coin": { + "name": "Vertcoin Testnet", + "shortcut": "TVTC", + "label": "Vertcoin Testnet", + "alias": "vertcoin_testnet" + }, + "ports": { + "backend_rpc": 18040, + "backend_message_queue": 48340, + "blockbook_internal": 19040, + "blockbook_public": 19140 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-vertcoin-testnet", + "package_revision": "satoshilabs-1", + "system_user": "vertcoin", + "version": "0.13.2", + "binary_url": "https://github.com/vertcoin-project/vertcoin-core/releases/download/0.13.2/vertcoind-v0.13.2-linux-amd64.zip", + "verification_type": "gpg", + "verification_source": "https://github.com/vertcoin-project/vertcoin-core/releases/download/0.13.2/vertcoind-v0.13.2-linux-amd64.zip.sig", + "extract_command": "unzip -d backend", + "exclude_files": [], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/vertcoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet3/*.log", + "postinst_script_template": "", + "service_type": "forking", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": false, + "config_file": "bitcoin.conf", + "additional_params": { + "whitelist": "127.0.0.1" + } + }, + "blockbook": { + "package_name": "blockbook-vertcoin-testnet", + "system_user": "blockbook-vertcoin", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://insight.vertcoin.org/", + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/zcash.json b/configs/coins/zcash.json new file mode 100644 index 00000000..ab65b246 --- /dev/null +++ b/configs/coins/zcash.json @@ -0,0 +1,64 @@ +{ + "coin": { + "name": "Zcash", + "shortcut": "ZEC", + "label": "Zcash", + "alias": "zcash" + }, + "ports": { + "backend_rpc": 8032, + "backend_message_queue": 38332, + "blockbook_internal": 9032, + "blockbook_public": 9132 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-zcash", + "package_revision": "satoshilabs-1", + "system_user": "zcash", + "version": "1.1.1", + "binary_url": "https://z.cash/downloads/zcash-1.1.1-linux64.tar.gz", + "verification_type": "gpg", + "verification_source": "https://z.cash/downloads/zcash-1.1.1-linux64.tar.gz.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/zcashd -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "HOME={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/zcash-fetch-params", + "service_type": "forking", + "service_additional_params_template": "Environment=\"HOME={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend\"", + "protect_memory": false, + "mainnet": true, + "config_file": "bitcoin.conf", + "additional_params": { + "addnode": [ + "mainnet.z.cash" + ] + } + }, + "blockbook": { + "package_name": "blockbook-zcash", + "system_user": "blockbook-zcash", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://zcash.blockexplorer.com/", + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 4, + "mempool_sub_workers": 8, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/coins/zcash_testnet.json b/configs/coins/zcash_testnet.json new file mode 100644 index 00000000..c2793c96 --- /dev/null +++ b/configs/coins/zcash_testnet.json @@ -0,0 +1,64 @@ +{ + "coin": { + "name": "Zcash Testnet", + "shortcut": "TAZ", + "label": "Zcash Testnet", + "alias": "zcash_testnet" + }, + "ports": { + "backend_rpc": 18032, + "backend_message_queue": 48332, + "blockbook_internal": 19032, + "blockbook_public": 19132 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-zcash-testnet", + "package_revision": "satoshilabs-1", + "system_user": "zcash", + "version": "1.1.1", + "binary_url": "https://z.cash/downloads/zcash-1.1.1-linux64.tar.gz", + "verification_type": "gpg", + "verification_source": "https://z.cash/downloads/zcash-1.1.1-linux64.tar.gz.asc", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/zcashd -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/testnet3/*.log", + "postinst_script_template": "HOME={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend {{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bin/zcash-fetch-params --testnet", + "service_type": "forking", + "service_additional_params_template": "Environment=\"HOME={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend\"", + "protect_memory": false, + "mainnet": false, + "config_file": "bitcoin.conf", + "additional_params": { + "addnode": [ + "testnet.z.cash" + ] + } + }, + "blockbook": { + "package_name": "blockbook-zcash-testnet", + "system_user": "blockbook-zcash", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "https://explorer.testnet.z.cash/", + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 4, + "mempool_sub_workers": 8, + "block_addresses_to_keep": 300, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "Jakub Matys", + "package_maintainer_email": "jakub.matys@satoshilabs.com" + } +} diff --git a/configs/dash.json b/configs/dash.json deleted file mode 100644 index fd97c74b..00000000 --- a/configs/dash.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "coin_name": "Dash", - "coin_shortcut": "DASH", - "rpcURL": "http://127.0.0.1:8033", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:38333", - "subversion": "/Dash Core:0.12.2.3/", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} diff --git a/configs/dash_testnet.json b/configs/dash_testnet.json deleted file mode 100644 index 35555196..00000000 --- a/configs/dash_testnet.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "coin_name": "Dash Testnet", - "coin_shortcut": "tDASH", - "rpcURL": "http://localhost:18033", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:48333", - "subversion": "/Dash Core:0.12.2.3/", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} \ No newline at end of file diff --git a/configs/dogecoin.json b/configs/dogecoin.json deleted file mode 100644 index 10c1b551..00000000 --- a/configs/dogecoin.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "coin_name": "Dogecoin", - "coin_shortcut": "DOGE", - "rpcURL": "http://127.0.0.1:8038", - "rpcUser": "rpc", - "rpcPass": "rpcp", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:38338", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} \ No newline at end of file diff --git a/configs/environ.json b/configs/environ.json new file mode 100644 index 00000000..1f293514 --- /dev/null +++ b/configs/environ.json @@ -0,0 +1,7 @@ +{ + "version": "0.0.6", + "backend_install_path": "/opt/coins/nodes", + "backend_data_path": "/opt/coins/data", + "blockbook_install_path": "/opt/coins/blockbook", + "blockbook_data_path": "/opt/coins/data" +} diff --git a/configs/ethereum.json b/configs/ethereum.json deleted file mode 100644 index d9b692b7..00000000 --- a/configs/ethereum.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "coin_name": "Ethereum", - "coin_shortcut": "ETH", - "rpcURL": "ws://localhost:8036", - "rpcTimeout": 25 -} diff --git a/configs/ethereum_testnet_ropsten.json b/configs/ethereum_testnet_ropsten.json deleted file mode 100644 index b7c9b41a..00000000 --- a/configs/ethereum_testnet_ropsten.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "coin_name": "Ethereum Testnet Ropsten", - "coin_shortcut": "tETH", - "rpcURL": "ws://localhost:18036", - "rpcTimeout": 25 -} \ No newline at end of file diff --git a/configs/litecoin.json b/configs/litecoin.json deleted file mode 100644 index 6899770b..00000000 --- a/configs/litecoin.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "coin_name": "Litecoin", - "coin_shortcut": "LTC", - "rpcURL": "http://localhost:8034", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://localhost:38334", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} \ No newline at end of file diff --git a/configs/litecoin_testnet.json b/configs/litecoin_testnet.json deleted file mode 100644 index 99df3d18..00000000 --- a/configs/litecoin_testnet.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "coin_name": "Litecoin Testnet", - "coin_shortcut": "TLTC", - "rpcURL": "http://localhost:18034", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://localhost:48334", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} \ No newline at end of file diff --git a/configs/namecoin.json b/configs/namecoin.json deleted file mode 100644 index b62a4489..00000000 --- a/configs/namecoin.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "coin_name": "Namecoin", - "coin_shortcut": "NMC", - "rpcURL": "http://127.0.0.1:8039", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:38339", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} \ No newline at end of file diff --git a/configs/vertcoin.json b/configs/vertcoin.json deleted file mode 100644 index 6ee09e63..00000000 --- a/configs/vertcoin.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "coin_name": "Vertcoin", - "coin_shortcut": "VTC", - "rpcURL": "http://localhost:8040", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://localhost:38340", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} \ No newline at end of file diff --git a/configs/vertcoin_testnet.json b/configs/vertcoin_testnet.json deleted file mode 100644 index 7d88ace9..00000000 --- a/configs/vertcoin_testnet.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "coin_name": "Vertcoin Testnet", - "coin_shortcut": "tVTC", - "rpcURL": "http://localhost:18040", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://localhost:48340", - "mempoolWorkers": 8, - "mempoolSubWorkers": 2, - "blockAddressesToKeep": 300 -} \ No newline at end of file diff --git a/configs/zcash.json b/configs/zcash.json deleted file mode 100644 index 96850e65..00000000 --- a/configs/zcash.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "coin_name": "Zcash", - "coin_shortcut": "ZEC", - "rpcURL": "http://127.0.0.1:8032", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:38332", - "mempoolWorkers": 4, - "mempoolSubWorkers": 8, - "blockAddressesToKeep": 300 -} \ No newline at end of file diff --git a/configs/zcash_testnet.json b/configs/zcash_testnet.json deleted file mode 100644 index 436221fd..00000000 --- a/configs/zcash_testnet.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "coin_name": "Zcash Testnet", - "coin_shortcut": "TAZ", - "rpcURL": "http://127.0.0.1:18032", - "rpcUser": "rpc", - "rpcPass": "rpc", - "rpcTimeout": 25, - "parse": true, - "zeroMQBinding": "tcp://127.0.0.1:48332", - "mempoolWorkers": 4, - "mempoolSubWorkers": 8, - "blockAddressesToKeep": 300 -} \ No newline at end of file diff --git a/contrib/backends/Makefile b/contrib/backends/Makefile deleted file mode 100644 index fc211070..00000000 --- a/contrib/backends/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -TARGETS = bitcoin zcash bcash ethereum bgold dash litecoin dogecoin vertcoin namecoin -IMAGE = blockbook-backend-build-deb -NO_CACHE = false - -.PHONY: $(TARGETS) - -all: $(TARGETS) - -$(TARGETS): .docker-image - docker run -t --rm -e PACKAGER="`id -u`:`id -g`" -v $(CURDIR)/$@:/deb/$@ $(IMAGE) $@ - mv $@/*.deb . - -build-image: - rm -f .docker-image - $(MAKE) .docker-image - -.docker-image: - docker build --no-cache=$(NO_CACHE) -t $(IMAGE) docker - @ docker images -q $(IMAGE) > $@ - -clean: clean-packages clean-image - -clean-packages: - rm -f *.deb - -clean-image: - - docker rmi $(IMAGE) - @ rm -f .docker-image diff --git a/contrib/backends/bcash/Makefile b/contrib/backends/bcash/Makefile deleted file mode 100644 index dc8cc34d..00000000 --- a/contrib/backends/bcash/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -BITCOINABC_VERSION := 0.17.1 -BITCOINABC_ARCHIVE := bitcoin-abc-${BITCOINABC_VERSION}-x86_64-linux-gnu.tar.gz -BITCOINABC_SHA256 := eccf8b61ba0549f6839e586c7dc6fc4bf6d7591ac432aaea8a7df0266b113d27 - -all: - wget https://download.bitcoinabc.org/${BITCOINABC_VERSION}/linux/${BITCOINABC_ARCHIVE} - [ "$$(sha256sum ${BITCOINABC_ARCHIVE} | cut -d ' ' -f 1)" = "${BITCOINABC_SHA256}" ] - tar -xf ${BITCOINABC_ARCHIVE} - mv bitcoin-abc-${BITCOINABC_VERSION} bitcoin-abc - rm bitcoin-abc/bin/bitcoin-qt - rm bitcoin-abc/bin/test_bitcoin - -clean: - rm -rf bitcoin-abc - rm -f ${BITCOINABC_ARCHIVE}* diff --git a/contrib/backends/bcash/bcash.conf b/contrib/backends/bcash/bcash.conf deleted file mode 100644 index b8a78547..00000000 --- a/contrib/backends/bcash/bcash.conf +++ /dev/null @@ -1,16 +0,0 @@ -daemon=1 -server=1 -nolisten=1 -rpcuser=rpc -rpcpassword=rpc -rpcport=8031 -txindex=1 - -zmqpubhashtx=tcp://127.0.0.1:38331 -zmqpubhashblock=tcp://127.0.0.1:38331 -zmqpubrawblock=tcp://127.0.0.1:38331 -zmqpubrawtx=tcp://127.0.0.1:38331 - -rpcworkqueue=1100 -maxmempool=2000 -dbcache=1000 diff --git a/contrib/backends/bcash/bcash_testnet.conf b/contrib/backends/bcash/bcash_testnet.conf deleted file mode 100644 index ad828bb5..00000000 --- a/contrib/backends/bcash/bcash_testnet.conf +++ /dev/null @@ -1,17 +0,0 @@ -daemon=1 -server=1 -testnet=1 -nolisten=1 -rpcuser=rpc -rpcpassword=rpc -rpcport=18031 -txindex=1 - -zmqpubhashtx=tcp://127.0.0.1:48331 -zmqpubhashblock=tcp://127.0.0.1:48331 -zmqpubrawblock=tcp://127.0.0.1:48331 -zmqpubrawtx=tcp://127.0.0.1:48331 - -rpcworkqueue=1100 -maxmempool=2000 -dbcache=1000 diff --git a/contrib/backends/bcash/debian/backend-bcash-testnet.conffiles b/contrib/backends/bcash/debian/backend-bcash-testnet.conffiles deleted file mode 100644 index 652afa0e..00000000 --- a/contrib/backends/bcash/debian/backend-bcash-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/nodes/bcash_testnet/bcash_testnet.conf diff --git a/contrib/backends/bcash/debian/backend-bcash-testnet.dirs b/contrib/backends/bcash/debian/backend-bcash-testnet.dirs deleted file mode 100644 index 139a2185..00000000 --- a/contrib/backends/bcash/debian/backend-bcash-testnet.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/bcash_testnet/backend diff --git a/contrib/backends/bcash/debian/backend-bcash-testnet.install b/contrib/backends/bcash/debian/backend-bcash-testnet.install deleted file mode 100644 index cc51d313..00000000 --- a/contrib/backends/bcash/debian/backend-bcash-testnet.install +++ /dev/null @@ -1,2 +0,0 @@ -bitcoin-abc/* /opt/coins/nodes/bcash_testnet -bcash_testnet.conf /opt/coins/nodes/bcash_testnet diff --git a/contrib/backends/bcash/debian/backend-bcash-testnet.logrotate b/contrib/backends/bcash/debian/backend-bcash-testnet.logrotate deleted file mode 100644 index 8230770b..00000000 --- a/contrib/backends/bcash/debian/backend-bcash-testnet.logrotate +++ /dev/null @@ -1,10 +0,0 @@ -/opt/coins/data/bcash_testnet/backend/testnet3/debug.log -/opt/coins/data/bcash_testnet/backend/testnet3/db.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/bcash/debian/backend-bcash-testnet.postinst b/contrib/backends/bcash/debian/backend-bcash-testnet.postinst deleted file mode 100644 index 92c684a5..00000000 --- a/contrib/backends/bcash/debian/backend-bcash-testnet.postinst +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u bcash &> /dev/null - then - useradd --system -M -U bcash -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/bcash_testnet/backend)" != "bcash" ] - then - chown -R bcash:bcash /opt/coins/data/bcash_testnet/backend - fi - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/bcash/debian/backend-bcash-testnet.service b/contrib/backends/bcash/debian/backend-bcash-testnet.service deleted file mode 100644 index 8dbb97e1..00000000 --- a/contrib/backends/bcash/debian/backend-bcash-testnet.service +++ /dev/null @@ -1,47 +0,0 @@ -# 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 bcash-testnet.service -# See "man systemd.service" for details. - -# Note that almost all daemon options could be specified in -# /opt/coins/nodes/bcash_testnet/bcash_testnet.conf - -[Unit] -Description=Bitcoin Cash daemon (testnet) -After=network.target - -[Service] -ExecStart=/opt/coins/nodes/bcash_testnet/bin/bitcoind -datadir=/opt/coins/data/bcash_testnet/backend -conf=/opt/coins/nodes/bcash_testnet/bcash_testnet.conf -pid=/run/bitcoin-abc/bcash_testnet.pid -# Creates /run/bitcoin-abc owned by bcash -RuntimeDirectory=bitcoin-abc -User=bcash -Type=forking -PIDFile=/run/bitcoin-abc/bcash_testnet.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 diff --git a/contrib/backends/bcash/debian/backend-bcash.conffiles b/contrib/backends/bcash/debian/backend-bcash.conffiles deleted file mode 100644 index 97e7009b..00000000 --- a/contrib/backends/bcash/debian/backend-bcash.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/nodes/bcash/bcash.conf diff --git a/contrib/backends/bcash/debian/backend-bcash.dirs b/contrib/backends/bcash/debian/backend-bcash.dirs deleted file mode 100644 index 6cb9dcd5..00000000 --- a/contrib/backends/bcash/debian/backend-bcash.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/bcash/backend diff --git a/contrib/backends/bcash/debian/backend-bcash.install b/contrib/backends/bcash/debian/backend-bcash.install deleted file mode 100644 index 6d91821e..00000000 --- a/contrib/backends/bcash/debian/backend-bcash.install +++ /dev/null @@ -1,2 +0,0 @@ -bitcoin-abc/* /opt/coins/nodes/bcash -bcash.conf /opt/coins/nodes/bcash diff --git a/contrib/backends/bcash/debian/backend-bcash.logrotate b/contrib/backends/bcash/debian/backend-bcash.logrotate deleted file mode 100644 index 03d8ec9e..00000000 --- a/contrib/backends/bcash/debian/backend-bcash.logrotate +++ /dev/null @@ -1,10 +0,0 @@ -/opt/coins/data/bcash/backend/debug.log -/opt/coins/data/bcash/backend/db.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/bcash/debian/backend-bcash.postinst b/contrib/backends/bcash/debian/backend-bcash.postinst deleted file mode 100644 index a0fc618c..00000000 --- a/contrib/backends/bcash/debian/backend-bcash.postinst +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u bcash &> /dev/null - then - useradd --system -M -U bcash -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/bcash/backend)" != "bcash" ] - then - chown -R bcash:bcash /opt/coins/data/bcash/backend - fi - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/bcash/debian/backend-bcash.service b/contrib/backends/bcash/debian/backend-bcash.service deleted file mode 100644 index f0969e11..00000000 --- a/contrib/backends/bcash/debian/backend-bcash.service +++ /dev/null @@ -1,47 +0,0 @@ -# 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 bcash.service -# See "man systemd.service" for details. - -# Note that almost all daemon options could be specified in -# /opt/coins/nodes/bcash/bcash.conf - -[Unit] -Description=Bitcoin Cash daemon (mainnet) -After=network.target - -[Service] -ExecStart=/opt/coins/nodes/bcash/bin/bitcoind -datadir=/opt/coins/data/bcash/backend -conf=/opt/coins/nodes/bcash/bcash.conf -pid=/run/bitcoin-abc/bcash.pid -# Creates /run/bitcoin-abc owned by bcash -RuntimeDirectory=bitcoin-abc -User=bcash -Type=forking -PIDFile=/run/bitcoin-abc/bcash.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 diff --git a/contrib/backends/bcash/debian/changelog b/contrib/backends/bcash/debian/changelog deleted file mode 100644 index 88846bc8..00000000 --- a/contrib/backends/bcash/debian/changelog +++ /dev/null @@ -1,29 +0,0 @@ -bcash (0.17.1-satoshilabs4) unstable; urgency=medium - - * Rename packages and directories - - -- Martin Bohm Wed, 06 Jun 2018 11:12:13 +0200 - -bcash (0.17.1-satoshilabs3) unstable; urgency=medium - - * Increased limits in backend configs - - -- Jakub Matys Wed, 30 May 2018 09:25:26 +0200 - -bcash (0.17.1-satoshilabs2) unstable; urgency=medium - - * Changed RPC and ZMQ ports - - -- Jakub Matys Wed, 23 May 2018 11:09:24 +0200 - -bcash (0.17.1-satoshilabs1) unstable; urgency=medium - - * Upgrade to 0.17.1 - - -- Jakub Matys Wed, 09 May 2018 14:06:23 +0200 - -bcash (0.17.0-satoshilabs1) unstable; urgency=medium - - * Initial build - - -- Jakub Matys Fri, 13 Apr 2018 11:31:01 +0200 diff --git a/contrib/backends/bcash/debian/compat b/contrib/backends/bcash/debian/compat deleted file mode 100644 index ec635144..00000000 --- a/contrib/backends/bcash/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/contrib/backends/bcash/debian/control b/contrib/backends/bcash/debian/control deleted file mode 100644 index 433a54f5..00000000 --- a/contrib/backends/bcash/debian/control +++ /dev/null @@ -1,16 +0,0 @@ -Source: bcash -Section: satoshilabs -Priority: optional -Maintainer: jakub.matys@satoshilabs.com -Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd, dh-exec -Standards-Version: 3.9.5 - -Package: backend-bcash -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged bitcoin-cash server - -Package: backend-bcash-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged bitcoin-cash server diff --git a/contrib/backends/bcash/debian/rules b/contrib/backends/bcash/debian/rules deleted file mode 100755 index b992848e..00000000 --- a/contrib/backends/bcash/debian/rules +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/make -f - -DH_VERBOSE = 1 - -%: - dh $@ --with=systemd - -override_dh_systemd_start: - dh_systemd_start --no-start - -override_dh_installinit: - -override_dh_strip: - dh_strip --no-automatic-dbgsym diff --git a/contrib/backends/bgold/Makefile b/contrib/backends/bgold/Makefile deleted file mode 100644 index e566b149..00000000 --- a/contrib/backends/bgold/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -BGOLD_VERSION := 0.15.1 -BUILD_VERSION := -BGOLD_ARCHIVE := bitcoin-gold-${BGOLD_VERSION}-x86_64-linux-gnu.tar.gz - -all: - wget https://github.com/BTCGPU/BTCGPU/releases/download/v${BGOLD_VERSION}${BUILD_VERSION}/${BGOLD_ARCHIVE} - wget https://github.com/BTCGPU/BTCGPU/releases/download/v${BGOLD_VERSION}/SHA256SUMS.asc - gpg --verify SHA256SUMS.asc - sha256sum -c --ignore-missing SHA256SUMS.asc - tar -xf ${BGOLD_ARCHIVE} - mv bitcoin-gold-${BGOLD_VERSION} bgold - rm bgold/bin/bitcoin-qt - rm bgold/bin/test_bitcoin - -clean: - rm -rf bgold - rm -f ${BGOLD_ARCHIVE} - rm -f SHA256SUMS.asc diff --git a/contrib/backends/bgold/bgold.conf b/contrib/backends/bgold/bgold.conf deleted file mode 100644 index fe517d90..00000000 --- a/contrib/backends/bgold/bgold.conf +++ /dev/null @@ -1,209 +0,0 @@ -daemon=1 -server=1 -nolisten=1 -rpcuser=rpc -rpcpassword=rpc -rpcport=8035 -txindex=1 - -zmqpubhashtx=tcp://127.0.0.1:38335 -zmqpubhashblock=tcp://127.0.0.1:38335 -zmqpubrawblock=tcp://127.0.0.1:38335 -zmqpubrawtx=tcp://127.0.0.1:38335 - -mempoolexpiry=72 -rpcworkqueue=1100 -maxmempool=2000 -dbcache=1000 - -timeout=768 -maxconnections=250 -addnode=188.126.0.134 -addnode=45.56.84.44 - -addnode=109.201.133.93:8338 -addnode=178.63.11.246:8338 -addnode=188.120.223.153:8338 -addnode=79.137.64.158:8338 -addnode=78.193.221.106:8338 -addnode=139.59.151.13:8338 -addnode=76.16.12.81:8338 -addnode=172.104.157.62:8338 -addnode=43.207.67.209:8338 -addnode=178.63.11.246:8338 -addnode=79.137.64.158:8338 -addnode=78.193.221.106:8338 -addnode=139.59.151.13:8338 -addnode=172.104.157.62:8338 -addnode=178.158.247.119:8338 -addnode=109.201.133.93:8338 -addnode=178.63.11.246:8338 -addnode=139.59.151.13:8338 -addnode=172.104.157.62:8338 -addnode=188.120.223.153:8338 -addnode=178.158.247.119:8338 -addnode=78.193.221.106:8338 -addnode=79.137.64.158:8338 -addnode=76.16.12.81:8338 -addnode=176.12.32.153:8338 -addnode=178.158.247.122:8338 -addnode=81.37.147.185:8338 -addnode=176.12.32.153:8338 -addnode=79.137.64.158:8338 -addnode=178.158.247.122:8338 -addnode=66.70.247.151:8338 -addnode=89.18.27.165:8338 -addnode=178.63.11.246:8338 -addnode=91.222.17.86:8338 -addnode=37.59.50.143:8338 -addnode=91.50.219.221:8338 -addnode=154.16.63.17:8338 -addnode=213.136.76.42:8338 -addnode=176.99.4.140:8338 -addnode=176.9.48.36:8338 -addnode=78.193.221.106:8338 -addnode=34.236.228.99:8338 -addnode=213.154.230.107:8338 -addnode=111.231.66.252:8338 -addnode=188.120.223.153:8338 -addnode=219.89.122.82:8338 -addnode=109.192.23.101:8338 -addnode=98.114.91.222:8338 -addnode=217.66.156.41:8338 -addnode=172.104.157.62:8338 -addnode=114.44.222.73:8338 -addnode=91.224.140.216:8338 -addnode=149.154.71.96:8338 -addnode=107.181.183.242:8338 -addnode=36.78.96.92:8338 -addnode=46.22.7.74:8338 -addnode=89.110.53.186:8338 -addnode=73.243.220.85:8338 -addnode=109.86.137.8:8338 -addnode=77.78.12.89:8338 -addnode=87.92.116.26:8338 -addnode=93.78.122.48:8338 -addnode=35.195.83.0:8338 -addnode=46.147.75.220:8338 -addnode=212.47.236.104:8338 -addnode=95.220.100.230:8338 -addnode=178.70.142.247:8338 -addnode=45.76.136.149:8338 -addnode=94.155.74.206:8338 -addnode=178.70.142.247:8338 -addnode=128.199.228.97:8338 -addnode=77.171.144.207:8338 -addnode=159.89.192.119:8338 -addnode=136.63.238.170:8338 -addnode=31.27.193.105:8338 -addnode=176.107.192.240:8338 -addnode=94.140.241.96:8338 -addnode=66.108.15.5:8338 -addnode=81.177.127.204:8338 -addnode=88.18.69.174:8338 -addnode=178.70.130.94:8338 -addnode=78.98.162.140:8338 -addnode=95.133.156.224:8338 -addnode=46.188.16.96:8338 -addnode=94.247.16.21:8338 -addnode=eunode.pool.gold:8338 -addnode=asianode.pool.gold:8338 -addnode=45.56.84.44:8338 -addnode=176.9.48.36:8338 -addnode=93.57.253.121:8338 -addnode=172.104.157.62:8338 -addnode=176.12.32.153:8338 -addnode=pool.serverpower.net:8338 -addnode=213.154.229.126:8338 -addnode=213.154.230.106:8338 -addnode=213.154.230.107:8338 -addnode=213.154.229.50:8338 -addnode=145.239.0.50:8338 -addnode=107.181.183.242:8338 -addnode=109.201.133.93:8338 -addnode=120.41.190.109:8338 -addnode=120.41.191.224:8338 -addnode=138.68.249.79:8338 -addnode=13.95.223.202:8338 -addnode=145.239.0.50:8338 -addnode=149.56.95.26:8338 -addnode=158.69.103.228:8338 -addnode=159.89.192.119:8338 -addnode=164.132.207.143:8338 -addnode=171.100.141.106:8338 -addnode=172.104.157.62:8338 -addnode=173.176.95.92:8338 -addnode=176.12.32.153:8338 -addnode=178.239.54.250:8338 -addnode=178.63.11.246:8338 -addnode=185.139.2.140:8338 -addnode=188.120.223.153:8338 -addnode=190.46.2.92:8338 -addnode=192.99.194.113:8338 -addnode=199.229.248.218:8338 -addnode=213.154.229.126:8338 -addnode=213.154.229.50:8338 -addnode=213.154.230.106:8338 -addnode=213.154.230.107:8338 -addnode=217.182.199.21 -addnode=35.189.127.200:8338 -addnode=35.195.83.0:8338 -addnode=35.197.197.166:8338 -addnode=35.200.168.155:8338 -addnode=35.203.167.11:8338 -addnode=37.59.50.143:8338 -addnode=45.27.161.195:8338 -addnode=45.32.234.160:8338 -addnode=45.56.84.44:8338 -addnode=46.188.16.96:8338 -addnode=46.251.19.171:8338 -addnode=5.157.119.109:8338 -addnode=52.28.162.48:8338 -addnode=54.153.140.202:8338 -addnode=54.68.81.2:83388338 -addnode=62.195.190.190:8338 -addnode=62.216.5.136:8338 -addnode=65.110.125.175:8338 -addnode=67.68.226.130:8338 -addnode=73.243.220.85:8338 -addnode=77.78.12.89:8338 -addnode=78.193.221.106:8338 -addnode=78.98.162.140:8338 -addnode=79.137.64.158:8338 -addnode=84.144.177.238:8338 -addnode=87.92.116.26:8338 -addnode=89.115.139.117:8338 -addnode=89.18.27.165:8338 -addnode=91.50.219.221:8338 -addnode=93.88.74.26 -addnode=93.88.74.26:8338 -addnode=94.155.74.206:8338 -addnode=95.154.201.132:8338 -addnode=98.29.248.131:8338 -addnode=u2.my.to:8338 -addnode=[2001:470:b:ce:dc70:83ff:fe7a:1e74]:8338 -addnode=2001:7b8:61d:1:250:56ff:fe90:c89f:8338 -addnode=2001:7b8:63a:1002:213:154:230:106:8338 -addnode=2001:7b8:63a:1002:213:154:230:107:8338 -addnode=45.56.84.44 -addnode=109.201.133.93:8338 -addnode=120.41.191.224:30607 -addnode=138.68.249.79:50992 -addnode=138.68.249.79:51314 -addnode=172.104.157.62 -addnode=178.63.11.246:8338 -addnode=185.139.2.140:8338 -addnode=199.229.248.218:28830 -addnode=35.189.127.200:41220 -addnode=35.189.127.200:48244 -addnode=35.195.83.0:35172 -addnode=35.195.83.0:35576 -addnode=35.195.83.0:35798 -addnode=35.197.197.166:32794 -addnode=35.197.197.166:33112 -addnode=35.197.197.166:33332 -addnode=35.203.167.11:52158 -addnode=37.59.50.143:35254 -addnode=45.27.161.195:33852 -addnode=45.27.161.195:36738 -addnode=45.27.161.195:58628 diff --git a/contrib/backends/bgold/debian/backend-bgold.conffiles b/contrib/backends/bgold/debian/backend-bgold.conffiles deleted file mode 100644 index ef72d2e3..00000000 --- a/contrib/backends/bgold/debian/backend-bgold.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/nodes/bgold/bgold.conf diff --git a/contrib/backends/bgold/debian/backend-bgold.dirs b/contrib/backends/bgold/debian/backend-bgold.dirs deleted file mode 100644 index e9c1c607..00000000 --- a/contrib/backends/bgold/debian/backend-bgold.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/bgold/backend diff --git a/contrib/backends/bgold/debian/backend-bgold.install b/contrib/backends/bgold/debian/backend-bgold.install deleted file mode 100644 index b318e341..00000000 --- a/contrib/backends/bgold/debian/backend-bgold.install +++ /dev/null @@ -1,2 +0,0 @@ -bgold/* /opt/coins/nodes/bgold -bgold.conf /opt/coins/nodes/bgold diff --git a/contrib/backends/bgold/debian/backend-bgold.logrotate b/contrib/backends/bgold/debian/backend-bgold.logrotate deleted file mode 100644 index 06b924c2..00000000 --- a/contrib/backends/bgold/debian/backend-bgold.logrotate +++ /dev/null @@ -1,10 +0,0 @@ -/opt/coins/data/bgold/backend/debug.log -/opt/coins/data/bgold/backend/db.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/bgold/debian/backend-bgold.postinst b/contrib/backends/bgold/debian/backend-bgold.postinst deleted file mode 100644 index a182ab0a..00000000 --- a/contrib/backends/bgold/debian/backend-bgold.postinst +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u bgold &> /dev/null - then - useradd --system -M -U bgold -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/bgold/backend)" != "bgold" ] - then - chown -R bgold:bgold /opt/coins/data/bgold/backend - fi - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/bgold/debian/backend-bgold.service b/contrib/backends/bgold/debian/backend-bgold.service deleted file mode 100644 index a40ec304..00000000 --- a/contrib/backends/bgold/debian/backend-bgold.service +++ /dev/null @@ -1,47 +0,0 @@ -# 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 bgold.service -# See "man systemd.service" for details. - -# Note that almost all daemon options could be specified in -# /opt/coins/nodes/bgold/bgold.conf - -[Unit] -Description=Bitcoin Gold daemon (mainnet) -After=network.target - -[Service] -ExecStart=/opt/coins/nodes/bgold/bin/bgoldd -datadir=/opt/coins/data/bgold/backend -conf=/opt/coins/nodes/bgold/bgold.conf -pid=/run/bgold/bgold.pid -# Creates /run/bitcoind owned by bgold -RuntimeDirectory=bgold -User=bgold -Type=forking -PIDFile=/run/bgold/bgold.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 diff --git a/contrib/backends/bgold/debian/changelog b/contrib/backends/bgold/debian/changelog deleted file mode 100644 index 2d66f9e2..00000000 --- a/contrib/backends/bgold/debian/changelog +++ /dev/null @@ -1,23 +0,0 @@ -bgold (0.15.1-satoshilabs1) unstable; urgency=medium - - * Version 0.15.1 - - -- Martin Bohm Mon, 02 Jul 2018 14:15:16 +0200 - -bgold (0.15.1-rc1-satoshilabs1) unstable; urgency=medium - - * Version 0.15.1-rc1 - - -- Martin Bohm Fri, 29 Jun 2018 14:15:16 +0200 - -bgold (0.15.0-satoshilabs2) unstable; urgency=medium - - * Renamed package and paths - - -- Jakub Matys Wed, 06 Jun 2018 14:07:15 +0200 - -bgold (0.15.0-satoshilabs1) unstable; urgency=medium - - * Initial build - - -- Jakub Matys Thu, 31 May 2018 11:46:34 +0200 diff --git a/contrib/backends/bgold/debian/compat b/contrib/backends/bgold/debian/compat deleted file mode 100644 index ec635144..00000000 --- a/contrib/backends/bgold/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/contrib/backends/bgold/debian/control b/contrib/backends/bgold/debian/control deleted file mode 100644 index 686f9e03..00000000 --- a/contrib/backends/bgold/debian/control +++ /dev/null @@ -1,11 +0,0 @@ -Source: bgold -Section: satoshilabs -Priority: optional -Maintainer: jakub.matys@satoshilabs.com -Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd, dh-exec -Standards-Version: 3.9.5 - -Package: backend-bgold -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged bitcoin-gold server diff --git a/contrib/backends/bitcoin/Makefile b/contrib/backends/bitcoin/Makefile deleted file mode 100644 index 7a30eb33..00000000 --- a/contrib/backends/bitcoin/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -BITCOIN_VERSION := 0.16.1 -BITCOIN_ARCHIVE := bitcoin-${BITCOIN_VERSION}-x86_64-linux-gnu.tar.gz - -all: - wget https://bitcoin.org/bin/bitcoin-core-${BITCOIN_VERSION}/${BITCOIN_ARCHIVE} - wget https://bitcoin.org/bin/bitcoin-core-${BITCOIN_VERSION}/SHA256SUMS.asc - gpg --verify SHA256SUMS.asc - sha256sum -c --ignore-missing SHA256SUMS.asc - tar -xf ${BITCOIN_ARCHIVE} - mv bitcoin-${BITCOIN_VERSION} bitcoin - rm bitcoin/bin/bitcoin-qt - rm bitcoin/bin/test_bitcoin - -clean: - rm -rf bitcoin - rm -f ${BITCOIN_ARCHIVE} - rm -f SHA256SUMS.asc diff --git a/contrib/backends/bitcoin/bitcoin.conf b/contrib/backends/bitcoin/bitcoin.conf deleted file mode 100644 index d1f0e4ca..00000000 --- a/contrib/backends/bitcoin/bitcoin.conf +++ /dev/null @@ -1,19 +0,0 @@ -daemon=1 -server=1 -nolisten=1 -rpcuser=rpc -rpcpassword=rpc -rpcport=8030 -txindex=1 - -zmqpubhashtx=tcp://127.0.0.1:38330 -zmqpubhashblock=tcp://127.0.0.1:38330 -zmqpubrawblock=tcp://127.0.0.1:38330 -zmqpubrawtx=tcp://127.0.0.1:38330 - -mempoolexpiry=72 -rpcworkqueue=1100 -maxmempool=2000 -dbcache=1000 - -deprecatedrpc=estimatefee diff --git a/contrib/backends/bitcoin/bitcoin_testnet.conf b/contrib/backends/bitcoin/bitcoin_testnet.conf deleted file mode 100644 index f968c775..00000000 --- a/contrib/backends/bitcoin/bitcoin_testnet.conf +++ /dev/null @@ -1,19 +0,0 @@ -daemon=1 -server=1 -testnet=1 -nolisten=1 -rpcuser=rpc -rpcpassword=rpc -rpcport=18030 -txindex=1 - -zmqpubhashtx=tcp://127.0.0.1:48330 -zmqpubhashblock=tcp://127.0.0.1:48330 -zmqpubrawblock=tcp://127.0.0.1:48330 -zmqpubrawtx=tcp://127.0.0.1:48330 - -rpcworkqueue=1100 -maxmempool=2000 -dbcache=1000 - -deprecatedrpc=estimatefee diff --git a/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.conffiles b/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.conffiles deleted file mode 100644 index 5b49d3ea..00000000 --- a/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/nodes/bitcoin_testnet/bitcoin_testnet.conf diff --git a/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.dirs b/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.dirs deleted file mode 100644 index 64476a16..00000000 --- a/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/bitcoin_testnet/backend diff --git a/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.install b/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.install deleted file mode 100644 index 35a1cbd1..00000000 --- a/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.install +++ /dev/null @@ -1,2 +0,0 @@ -bitcoin/* /opt/coins/nodes/bitcoin_testnet -bitcoin_testnet.conf /opt/coins/nodes/bitcoin_testnet diff --git a/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.logrotate b/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.logrotate deleted file mode 100644 index 204426b9..00000000 --- a/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.logrotate +++ /dev/null @@ -1,10 +0,0 @@ -/opt/coins/data/bitcoin_testnet/backend/testnet3/debug.log -/opt/coins/data/bitcoin_testnet/backend/testnet3/db.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.postinst b/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.postinst deleted file mode 100644 index db0a7dd4..00000000 --- a/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.postinst +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u bitcoin &> /dev/null - then - useradd --system -M -U bitcoin -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/bitcoin_testnet/backend)" != "bitcoin" ] - then - chown -R bitcoin:bitcoin /opt/coins/data/bitcoin_testnet/backend - fi - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.service b/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.service deleted file mode 100644 index 83746aa1..00000000 --- a/contrib/backends/bitcoin/debian/backend-bitcoin-testnet.service +++ /dev/null @@ -1,47 +0,0 @@ -# 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 bitcoin-testnet.service -# See "man systemd.service" for details. - -# Note that almost all daemon options could be specified in -# /opt/coins/nodes/bitcoin_testnet/bitcoin_testnet.conf - -[Unit] -Description=Bitcoin daemon (testnet) -After=network.target - -[Service] -ExecStart=/opt/coins/nodes/bitcoin_testnet/bin/bitcoind -datadir=/opt/coins/data/bitcoin_testnet/backend -conf=/opt/coins/nodes/bitcoin_testnet/bitcoin_testnet.conf -pid=/run/bitcoind/bitcoin_testnet.pid -# Creates /run/bitcoind owned by bitcoin -RuntimeDirectory=bitcoind -User=bitcoin -Type=forking -PIDFile=/run/bitcoind/bitcoin_testnet.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 diff --git a/contrib/backends/bitcoin/debian/backend-bitcoin.conffiles b/contrib/backends/bitcoin/debian/backend-bitcoin.conffiles deleted file mode 100644 index 84076cff..00000000 --- a/contrib/backends/bitcoin/debian/backend-bitcoin.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/nodes/bitcoin/bitcoin.conf diff --git a/contrib/backends/bitcoin/debian/backend-bitcoin.dirs b/contrib/backends/bitcoin/debian/backend-bitcoin.dirs deleted file mode 100644 index 1a64a55f..00000000 --- a/contrib/backends/bitcoin/debian/backend-bitcoin.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/bitcoin/backend diff --git a/contrib/backends/bitcoin/debian/backend-bitcoin.install b/contrib/backends/bitcoin/debian/backend-bitcoin.install deleted file mode 100644 index e986b075..00000000 --- a/contrib/backends/bitcoin/debian/backend-bitcoin.install +++ /dev/null @@ -1,2 +0,0 @@ -bitcoin/* /opt/coins/nodes/bitcoin -bitcoin.conf /opt/coins/nodes/bitcoin diff --git a/contrib/backends/bitcoin/debian/backend-bitcoin.logrotate b/contrib/backends/bitcoin/debian/backend-bitcoin.logrotate deleted file mode 100644 index a6f9c50a..00000000 --- a/contrib/backends/bitcoin/debian/backend-bitcoin.logrotate +++ /dev/null @@ -1,10 +0,0 @@ -/opt/coins/data/bitcoin/backend/debug.log -/opt/coins/data/bitcoin/backend/db.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/bitcoin/debian/backend-bitcoin.postinst b/contrib/backends/bitcoin/debian/backend-bitcoin.postinst deleted file mode 100644 index d1435dc1..00000000 --- a/contrib/backends/bitcoin/debian/backend-bitcoin.postinst +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u bitcoin &> /dev/null - then - useradd --system -M -U bitcoin -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/bitcoin/backend)" != "bitcoin" ] - then - chown -R bitcoin:bitcoin /opt/coins/data/bitcoin/backend - fi - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/bitcoin/debian/backend-bitcoin.service b/contrib/backends/bitcoin/debian/backend-bitcoin.service deleted file mode 100644 index 19281f2a..00000000 --- a/contrib/backends/bitcoin/debian/backend-bitcoin.service +++ /dev/null @@ -1,47 +0,0 @@ -# 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 bitcoin.service -# See "man systemd.service" for details. - -# Note that almost all daemon options could be specified in -# /opt/coins/nodes/bitcoin/bitcoin.conf - -[Unit] -Description=Bitcoin daemon (mainnet) -After=network.target - -[Service] -ExecStart=/opt/coins/nodes/bitcoin/bin/bitcoind -datadir=/opt/coins/data/bitcoin/backend -conf=/opt/coins/nodes/bitcoin/bitcoin.conf -pid=/run/bitcoind/bitcoin.pid -# Creates /run/bitcoind owned by bitcoin -RuntimeDirectory=bitcoind -User=bitcoin -Type=forking -PIDFile=/run/bitcoind/bitcoin.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 diff --git a/contrib/backends/bitcoin/debian/changelog b/contrib/backends/bitcoin/debian/changelog deleted file mode 100644 index 5ac0d212..00000000 --- a/contrib/backends/bitcoin/debian/changelog +++ /dev/null @@ -1,41 +0,0 @@ -bitcoin (0.16.1-satoshilabs1) unstable; urgency=medium - - * Update bitcoin core daemon version 0.16.1 - - -- Petr Kracik Mon, 18 Jun 2018 11:00:13 +0200 - -bitcoin (0.16.0-satoshilabs6) unstable; urgency=medium - - * Rename packages and directories - - -- Martin Bohm Wed, 06 Jun 2018 11:12:13 +0200 - -bitcoin (0.16.0-satoshilabs5) unstable; urgency=medium - - * Added deprecatedrpc=estimatefee option - - -- Jakub Matys Wed, 30 May 2018 13:02:19 +0200 - -bitcoin (0.16.0-satoshilabs4) unstable; urgency=medium - - * Increased limits in backend config - - -- Jakub Matys Wed, 30 May 2018 09:25:53 +0200 - -bitcoin (0.16.0-satoshilabs3) unstable; urgency=medium - - * Added nolisten=1 option - - -- Jakub Matys Wed, 23 May 2018 12:49:05 +0200 - -bitcoin (0.16.0-satoshilabs2) unstable; urgency=medium - - * Changed RPC and ZMQ ports - - -- Jakub Matys Wed, 23 May 2018 11:10:21 +0200 - -bitcoin (0.16.0-satoshilabs1) unstable; urgency=medium - - * Initial build - - -- Jakub Matys Thu, 05 Apr 2018 08:40:39 +0200 diff --git a/contrib/backends/bitcoin/debian/compat b/contrib/backends/bitcoin/debian/compat deleted file mode 100644 index ec635144..00000000 --- a/contrib/backends/bitcoin/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/contrib/backends/bitcoin/debian/control b/contrib/backends/bitcoin/debian/control deleted file mode 100644 index 3a39c52b..00000000 --- a/contrib/backends/bitcoin/debian/control +++ /dev/null @@ -1,16 +0,0 @@ -Source: bitcoin -Section: satoshilabs -Priority: optional -Maintainer: jakub.matys@satoshilabs.com -Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd, dh-exec -Standards-Version: 3.9.5 - -Package: backend-bitcoin -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged bitcoin server - -Package: backend-bitcoin-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged bitcoin server diff --git a/contrib/backends/bitcoin/debian/rules b/contrib/backends/bitcoin/debian/rules deleted file mode 100755 index b992848e..00000000 --- a/contrib/backends/bitcoin/debian/rules +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/make -f - -DH_VERBOSE = 1 - -%: - dh $@ --with=systemd - -override_dh_systemd_start: - dh_systemd_start --no-start - -override_dh_installinit: - -override_dh_strip: - dh_strip --no-automatic-dbgsym diff --git a/contrib/backends/dash/Makefile b/contrib/backends/dash/Makefile deleted file mode 100644 index 17cb709a..00000000 --- a/contrib/backends/dash/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -DASH_VERSION := 0.12.3 -DASH_BUILD := .2 -DASH_ARCHIVE := dashcore-${DASH_VERSION}${DASH_BUILD}-x86_64-linux-gnu.tar.gz - -all: - wget https://github.com/dashpay/dash/releases/download/v${DASH_VERSION}${DASH_BUILD}/${DASH_ARCHIVE} - wget https://github.com/dashpay/dash/releases/download/v${DASH_VERSION}${DASH_BUILD}/SHA256SUMS.asc - gpg --verify SHA256SUMS.asc - sha256sum -c --ignore-missing SHA256SUMS.asc - tar -xf ${DASH_ARCHIVE} - mv dashcore-${DASH_VERSION} dash - rm dash/bin/dash-qt - rm dash/bin/test_dash - - -clean: - rm -rf dash - rm -f ${DASH_ARCHIVE} - rm -f SHA256SUMS.asc diff --git a/contrib/backends/dash/dash.conf b/contrib/backends/dash/dash.conf deleted file mode 100644 index b5425fc1..00000000 --- a/contrib/backends/dash/dash.conf +++ /dev/null @@ -1,20 +0,0 @@ -daemon=1 -server=1 -nolisten=1 -rpcuser=rpc -rpcpassword=rpc -rpcport=8033 -txindex=1 -addressindex=1 -timestampindex=1 -spentindex=1 - -zmqpubhashtx=tcp://127.0.0.1:38333 -zmqpubhashblock=tcp://127.0.0.1:38333 -zmqpubrawblock=tcp://127.0.0.1:38333 -zmqpubrawtx=tcp://127.0.0.1:38333 - -mempoolexpiry=72 -rpcworkqueue=1100 -maxmempool=2000 -dbcache=1000 diff --git a/contrib/backends/dash/dash_testnet.conf b/contrib/backends/dash/dash_testnet.conf deleted file mode 100644 index ffb85a0c..00000000 --- a/contrib/backends/dash/dash_testnet.conf +++ /dev/null @@ -1,20 +0,0 @@ -daemon=1 -server=1 -testnet=1 -nolisten=1 -rpcuser=rpc -rpcpassword=rpc -rpcport=18033 -txindex=1 -addressindex=1 -timestampindex=1 -spentindex=1 - -zmqpubhashtx=tcp://127.0.0.1:48333 -zmqpubhashblock=tcp://127.0.0.1:48333 -zmqpubrawblock=tcp://127.0.0.1:48333 -zmqpubrawtx=tcp://127.0.0.1:48333 - -rpcworkqueue=1100 -maxmempool=2000 -dbcache=1000 diff --git a/contrib/backends/dash/debian/backend-dash-testnet.conffiles b/contrib/backends/dash/debian/backend-dash-testnet.conffiles deleted file mode 100644 index ca92fe83..00000000 --- a/contrib/backends/dash/debian/backend-dash-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/nodes/dash_testnet/dash_testnet.conf diff --git a/contrib/backends/dash/debian/backend-dash-testnet.dirs b/contrib/backends/dash/debian/backend-dash-testnet.dirs deleted file mode 100644 index 552e900d..00000000 --- a/contrib/backends/dash/debian/backend-dash-testnet.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/dash_testnet/backend diff --git a/contrib/backends/dash/debian/backend-dash-testnet.install b/contrib/backends/dash/debian/backend-dash-testnet.install deleted file mode 100644 index 2159f454..00000000 --- a/contrib/backends/dash/debian/backend-dash-testnet.install +++ /dev/null @@ -1,2 +0,0 @@ -dash/* /opt/coins/nodes/dash_testnet -dash_testnet.conf /opt/coins/nodes/dash_testnet diff --git a/contrib/backends/dash/debian/backend-dash-testnet.logrotate b/contrib/backends/dash/debian/backend-dash-testnet.logrotate deleted file mode 100644 index b87cf5a3..00000000 --- a/contrib/backends/dash/debian/backend-dash-testnet.logrotate +++ /dev/null @@ -1,10 +0,0 @@ -/opt/coins/data/dash_testnet/backend/testnet3/debug.log -/opt/coins/data/dash_testnet/backend/testnet3/db.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/dash/debian/backend-dash-testnet.postinst b/contrib/backends/dash/debian/backend-dash-testnet.postinst deleted file mode 100644 index 33c0a50b..00000000 --- a/contrib/backends/dash/debian/backend-dash-testnet.postinst +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u dash &> /dev/null - then - useradd --system -M -U dash -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/dash_testnet/backend)" != "dash" ] - then - chown -R dash:dash /opt/coins/data/dash_testnet/backend - fi - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/dash/debian/backend-dash-testnet.service b/contrib/backends/dash/debian/backend-dash-testnet.service deleted file mode 100644 index f2496a91..00000000 --- a/contrib/backends/dash/debian/backend-dash-testnet.service +++ /dev/null @@ -1,47 +0,0 @@ -# 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 dash-testnet.service -# See "man systemd.service" for details. - -# Note that almost all daemon options could be specified in -# /opt/coins/nodes/dash_testnet/dash_testnet.conf - -[Unit] -Description=DASH daemon (testnet) -After=network.target - -[Service] -ExecStart=/opt/coins/nodes/dash_testnet/bin/dashd -datadir=/opt/coins/data/dash_testnet/backend -conf=/opt/coins/nodes/dash_testnet/dash_testnet.conf -pid=/run/dashd/dash_testnet.pid -# Creates /run/dashd owned by dash -RuntimeDirectory=dashd -User=dash -Type=forking -PIDFile=/run/dashd/dash_testnet.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 diff --git a/contrib/backends/dash/debian/backend-dash.conffiles b/contrib/backends/dash/debian/backend-dash.conffiles deleted file mode 100644 index a760cf85..00000000 --- a/contrib/backends/dash/debian/backend-dash.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/nodes/dash/dash.conf diff --git a/contrib/backends/dash/debian/backend-dash.dirs b/contrib/backends/dash/debian/backend-dash.dirs deleted file mode 100644 index d96cc5d2..00000000 --- a/contrib/backends/dash/debian/backend-dash.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/dash/backend diff --git a/contrib/backends/dash/debian/backend-dash.install b/contrib/backends/dash/debian/backend-dash.install deleted file mode 100644 index 08e4581a..00000000 --- a/contrib/backends/dash/debian/backend-dash.install +++ /dev/null @@ -1,2 +0,0 @@ -dash/* /opt/coins/nodes/dash -dash.conf /opt/coins/nodes/dash diff --git a/contrib/backends/dash/debian/backend-dash.logrotate b/contrib/backends/dash/debian/backend-dash.logrotate deleted file mode 100644 index 689060ea..00000000 --- a/contrib/backends/dash/debian/backend-dash.logrotate +++ /dev/null @@ -1,10 +0,0 @@ -/opt/coins/data/dash/backend/debug.log -/opt/coins/data/dash/backend/db.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/dash/debian/backend-dash.postinst b/contrib/backends/dash/debian/backend-dash.postinst deleted file mode 100644 index 3e34a47b..00000000 --- a/contrib/backends/dash/debian/backend-dash.postinst +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u dash &> /dev/null - then - useradd --system -M -U dash -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/dash/backend)" != "dash" ] - then - chown -R dash:dash /opt/coins/data/dash/backend - fi - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/dash/debian/changelog b/contrib/backends/dash/debian/changelog deleted file mode 100644 index eb2fda56..00000000 --- a/contrib/backends/dash/debian/changelog +++ /dev/null @@ -1,17 +0,0 @@ -dash (0.12.3-satoshilabs2) unstable; urgency=medium - - * Update to new version - - -- Jan Hrnko Wed, 11 Jul 2018 14:15:35 +0200 - -dash (0.12.3-satoshilabs1) unstable; urgency=medium - - * Update to new version - - -- Jan Hrnko Wed, 04 Jul 2018 11:01:20 +0200 - -dash (0.12.2-satoshilabs1) unstable; urgency=medium - - * Initial build - - -- Jakub Matys Fri, 08 Jun 2018 11:27:03 +0200 diff --git a/contrib/backends/dash/debian/compat b/contrib/backends/dash/debian/compat deleted file mode 100644 index ec635144..00000000 --- a/contrib/backends/dash/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/contrib/backends/dash/debian/control b/contrib/backends/dash/debian/control deleted file mode 100644 index a4feb90b..00000000 --- a/contrib/backends/dash/debian/control +++ /dev/null @@ -1,16 +0,0 @@ -Source: dash -Section: satoshilabs -Priority: optional -Maintainer: jakub.matys@satoshilabs.com -Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd, dh-exec -Standards-Version: 3.9.5 - -Package: backend-dash -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged dash server - -Package: backend-dash-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged dash server diff --git a/contrib/backends/dash/debian/rules b/contrib/backends/dash/debian/rules deleted file mode 100755 index b992848e..00000000 --- a/contrib/backends/dash/debian/rules +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/make -f - -DH_VERBOSE = 1 - -%: - dh $@ --with=systemd - -override_dh_systemd_start: - dh_systemd_start --no-start - -override_dh_installinit: - -override_dh_strip: - dh_strip --no-automatic-dbgsym diff --git a/contrib/backends/docker/Dockerfile b/contrib/backends/docker/Dockerfile deleted file mode 100644 index 95daed38..00000000 --- a/contrib/backends/docker/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -FROM debian:9 - -ENV DEBIAN_FRONTEND noninteractive - -RUN apt-get update && \ - apt-get install -y devscripts debhelper wget tar gzip make dh-systemd && \ - apt-get clean - -ADD build.sh /deb/build.sh - -ADD gpg-keys /tmp/gpg-keys -RUN gpg --import /tmp/gpg-keys/* - -WORKDIR /deb - -ENTRYPOINT ["/deb/build.sh"] diff --git a/contrib/backends/docker/build.sh b/contrib/backends/docker/build.sh deleted file mode 100755 index 8402eb7e..00000000 --- a/contrib/backends/docker/build.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -set -e - -if [ $# -ne 1 ] -then - echo "Usage: $(basename $0) target" > /dev/stderr - exit 1 -fi - -cd $1 - -mk-build-deps -ir -t "apt-get -qq --no-install-recommends" -dpkg-buildpackage -us -uc -mv ../*.deb . -chown $PACKAGER *.deb diff --git a/contrib/backends/dogecoin/Makefile b/contrib/backends/dogecoin/Makefile deleted file mode 100644 index 0da62d68..00000000 --- a/contrib/backends/dogecoin/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -DOGECOIN_VERSION := 1.10.0 -DOGECOIN_ARCHIVE := dogecoin-${DOGECOIN_VERSION}-linux64.tar.gz -DOGECOIN_SHA256 := 2e5b61842695d74ebcd30f21014cf74b6265f0f7756e9f140f031259bb3cd656 - -all: - wget https://github.com/dogecoin/dogecoin/releases/download/v${DOGECOIN_VERSION}/${DOGECOIN_ARCHIVE} - [ "$$(sha256sum ${DOGECOIN_ARCHIVE} | cut -d ' ' -f 1)" = "${DOGECOIN_SHA256}" ] - tar -xf ${DOGECOIN_ARCHIVE} - mv dogecoin-${DOGECOIN_VERSION} dogecoin - rm dogecoin/bin/dogecoin-qt - rm dogecoin/bin/test_dogecoin* - - -clean: - rm -rf dogecoin - rm -f ${DOGECOIN_ARCHIVE} diff --git a/contrib/backends/dogecoin/debian/backend-dogecoin.conffiles b/contrib/backends/dogecoin/debian/backend-dogecoin.conffiles deleted file mode 100644 index 1e030a36..00000000 --- a/contrib/backends/dogecoin/debian/backend-dogecoin.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/nodes/dogecoin/dogecoin.conf diff --git a/contrib/backends/dogecoin/debian/backend-dogecoin.dirs b/contrib/backends/dogecoin/debian/backend-dogecoin.dirs deleted file mode 100644 index 8e1d86a8..00000000 --- a/contrib/backends/dogecoin/debian/backend-dogecoin.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/dogecoin/backend diff --git a/contrib/backends/dogecoin/debian/backend-dogecoin.install b/contrib/backends/dogecoin/debian/backend-dogecoin.install deleted file mode 100644 index 324c8702..00000000 --- a/contrib/backends/dogecoin/debian/backend-dogecoin.install +++ /dev/null @@ -1,2 +0,0 @@ -dogecoin/* /opt/coins/nodes/dogecoin -dogecoin.conf /opt/coins/nodes/dogecoin diff --git a/contrib/backends/dogecoin/debian/backend-dogecoin.logrotate b/contrib/backends/dogecoin/debian/backend-dogecoin.logrotate deleted file mode 100644 index 3233690b..00000000 --- a/contrib/backends/dogecoin/debian/backend-dogecoin.logrotate +++ /dev/null @@ -1,10 +0,0 @@ -/opt/coins/data/dogecoin/backend/debug.log -/opt/coins/data/dogecoin/backend/db.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/dogecoin/debian/backend-dogecoin.postinst b/contrib/backends/dogecoin/debian/backend-dogecoin.postinst deleted file mode 100644 index bab28e43..00000000 --- a/contrib/backends/dogecoin/debian/backend-dogecoin.postinst +++ /dev/null @@ -1,20 +0,0 @@ -#!/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# diff --git a/contrib/backends/dogecoin/debian/backend-dogecoin.service b/contrib/backends/dogecoin/debian/backend-dogecoin.service deleted file mode 100644 index 9d3c4107..00000000 --- a/contrib/backends/dogecoin/debian/backend-dogecoin.service +++ /dev/null @@ -1,47 +0,0 @@ -# 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 diff --git a/contrib/backends/dogecoin/debian/changelog b/contrib/backends/dogecoin/debian/changelog deleted file mode 100644 index 3e9adc1d..00000000 --- a/contrib/backends/dogecoin/debian/changelog +++ /dev/null @@ -1,5 +0,0 @@ -dogecoin (1.10.0-satoshilabs1) unstable; urgency=medium - - * Initial build - - -- Martin Bohm Thu, 14 Jun 2018 11:12:13 +0200 diff --git a/contrib/backends/dogecoin/debian/compat b/contrib/backends/dogecoin/debian/compat deleted file mode 100644 index ec635144..00000000 --- a/contrib/backends/dogecoin/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/contrib/backends/dogecoin/debian/rules b/contrib/backends/dogecoin/debian/rules deleted file mode 100755 index b992848e..00000000 --- a/contrib/backends/dogecoin/debian/rules +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/make -f - -DH_VERBOSE = 1 - -%: - dh $@ --with=systemd - -override_dh_systemd_start: - dh_systemd_start --no-start - -override_dh_installinit: - -override_dh_strip: - dh_strip --no-automatic-dbgsym diff --git a/contrib/backends/dogecoin/dogecoin.conf b/contrib/backends/dogecoin/dogecoin.conf deleted file mode 100644 index efa9fa21..00000000 --- a/contrib/backends/dogecoin/dogecoin.conf +++ /dev/null @@ -1,21 +0,0 @@ -daemon=1 -server=1 -nolisten=1 -rpcuser=rpc -rpcpassword=rpcp -rpcport=8038 -txindex=1 -whitelist=127.0.0.1 -upnp=0 -discover=0 - -zmqpubhashtx=tcp://127.0.0.1:38338 -zmqpubhashblock=tcp://127.0.0.1:38338 - -rpcthreads=32 - -rpcworkqueue=1100 -maxmempool=2000 -dbcache=1000 - - diff --git a/contrib/backends/ethereum/Makefile b/contrib/backends/ethereum/Makefile deleted file mode 100644 index 62d0b89b..00000000 --- a/contrib/backends/ethereum/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -GETH_VERSION := 1.8.10-eae63c51 - -all: - wget https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-${GETH_VERSION}.tar.gz - wget https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-${GETH_VERSION}.tar.gz.asc - gpg --verify geth-linux-amd64-${GETH_VERSION}.tar.gz.asc - tar -xf geth-linux-amd64-${GETH_VERSION}.tar.gz - mv geth-linux-amd64-${GETH_VERSION} ethereum - -clean: - rm -rf ethereum - rm -f geth-linux-amd64-${GETH_VERSION}.tar.gz - rm -f geth-linux-amd64-${GETH_VERSION}.tar.gz.asc diff --git a/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.conffiles b/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.conffiles deleted file mode 100644 index e69de29b..00000000 diff --git a/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.dirs b/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.dirs deleted file mode 100644 index 21b78fe7..00000000 --- a/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/ethereum_testnet_ropsten/backend \ No newline at end of file diff --git a/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.install b/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.install deleted file mode 100644 index 65c1d9dc..00000000 --- a/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.install +++ /dev/null @@ -1 +0,0 @@ -ethereum/* /opt/coins/nodes/ethereum_testnet_ropsten diff --git a/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.logrotate b/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.logrotate deleted file mode 100644 index cd024adc..00000000 --- a/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.logrotate +++ /dev/null @@ -1,9 +0,0 @@ -/opt/coins/data/ethereum_testnet_ropsten/backend/ethereum_testnet_ropsten.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.postinst b/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.postinst deleted file mode 100644 index 3aa02f01..00000000 --- a/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.postinst +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u ethereum &> /dev/null - then - useradd --system -M -U ethereum -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/ethereum_testnet_ropsten/backend)" != "ethereum" ] - then - chown -R ethereum:ethereum /opt/coins/data/ethereum_testnet_ropsten/backend - fi - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.service b/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.service deleted file mode 100644 index 58387c61..00000000 --- a/contrib/backends/ethereum/debian/backend-ethereum-testnet-ropsten.service +++ /dev/null @@ -1,42 +0,0 @@ -# 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 ethereum-testnet-ropsten.service -# See "man systemd.service" for details. - -[Unit] -Description=Ethereum daemon (ropsten testnet) -After=network.target - -[Service] -ExecStart=/bin/sh -c '/opt/coins/nodes/ethereum_testnet_ropsten/geth --ipcdisable --testnet --cache 1024 --nat none --datadir /opt/coins/data/ethereum_testnet_ropsten/backend --port 48336 --ws --wsaddr 0.0.0.0 --wsport 18036 --wsorigins "*" 2>>/opt/coins/data/ethereum_testnet_ropsten/backend/ethereum_testnet_ropsten.log' -User=ethereum -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/nodes/ethereum_testnet_ropsten - -# 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 diff --git a/contrib/backends/ethereum/debian/backend-ethereum.conffiles b/contrib/backends/ethereum/debian/backend-ethereum.conffiles deleted file mode 100644 index e69de29b..00000000 diff --git a/contrib/backends/ethereum/debian/backend-ethereum.dirs b/contrib/backends/ethereum/debian/backend-ethereum.dirs deleted file mode 100644 index 200cff98..00000000 --- a/contrib/backends/ethereum/debian/backend-ethereum.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/ethereum/backend \ No newline at end of file diff --git a/contrib/backends/ethereum/debian/backend-ethereum.install b/contrib/backends/ethereum/debian/backend-ethereum.install deleted file mode 100644 index cecaa2a1..00000000 --- a/contrib/backends/ethereum/debian/backend-ethereum.install +++ /dev/null @@ -1 +0,0 @@ -ethereum/* /opt/coins/nodes/ethereum diff --git a/contrib/backends/ethereum/debian/backend-ethereum.postinst b/contrib/backends/ethereum/debian/backend-ethereum.postinst deleted file mode 100644 index 24d1d255..00000000 --- a/contrib/backends/ethereum/debian/backend-ethereum.postinst +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u ethereum &> /dev/null - then - useradd --system -M -U ethereum -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/ethereum/backend)" != "ethereum" ] - then - chown -R ethereum:ethereum /opt/coins/data/ethereum/backend - fi - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/ethereum/debian/backend-ethereum.service b/contrib/backends/ethereum/debian/backend-ethereum.service deleted file mode 100644 index a96e698a..00000000 --- a/contrib/backends/ethereum/debian/backend-ethereum.service +++ /dev/null @@ -1,42 +0,0 @@ -# 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 ethereum.service -# See "man systemd.service" for details. - -[Unit] -Description=Ethereum daemon (mainnet) -After=network.target - -[Service] -ExecStart=/bin/sh -c '/opt/coins/nodes/ethereum/geth --ipcdisable --syncmode full --cache 1024 --nat none --datadir /opt/coins/data/ethereum/backend --port 38336 --ws --wsaddr 0.0.0.0 --wsport 8036 --wsorigins "*" --rpc --rpcport 8136 -rpcaddr 0.0.0.0 --rpccorsdomain "*" --rpcvhosts "*" 2>>/opt/coins/data/ethereum/backend/ethereum.log' -User=ethereum -Type=simple -Restart=on-failure -WorkingDirectory=/opt/coins/nodes/ethereum - -# 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 diff --git a/contrib/backends/ethereum/debian/changelog b/contrib/backends/ethereum/debian/changelog deleted file mode 100644 index b4a4d04b..00000000 --- a/contrib/backends/ethereum/debian/changelog +++ /dev/null @@ -1,11 +0,0 @@ -ethereum (1.8.10-satoshilabs2) unstable; urgency=medium - - * Rename packages and directories - - -- Martin Bohm Wed, 06 Jun 2018 11:12:13 +0200 - -ethereum (1.8.10-satoshilabs1) unstable; urgency=medium - - * Initial build - - -- Martin Bohm Thu, 31 May 2018 11:12:13 +0200 diff --git a/contrib/backends/ethereum/debian/compat b/contrib/backends/ethereum/debian/compat deleted file mode 100644 index ec635144..00000000 --- a/contrib/backends/ethereum/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/contrib/backends/ethereum/debian/control b/contrib/backends/ethereum/debian/control deleted file mode 100644 index ded5f599..00000000 --- a/contrib/backends/ethereum/debian/control +++ /dev/null @@ -1,16 +0,0 @@ -Source: ethereum -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-ethereum -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged ethereum geth server - -Package: backend-ethereum-testnet-ropsten -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged ethereum geth server diff --git a/contrib/backends/litecoin/Makefile b/contrib/backends/litecoin/Makefile deleted file mode 100644 index 77a0902a..00000000 --- a/contrib/backends/litecoin/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -LITECOIN_VERSION := 0.16.0 - -all: - wget https://download.litecoin.org/litecoin-${LITECOIN_VERSION}/linux/litecoin-${LITECOIN_VERSION}-x86_64-linux-gnu.tar.gz - wget https://download.litecoin.org/litecoin-${LITECOIN_VERSION}/linux/litecoin-${LITECOIN_VERSION}-linux-signatures.asc - gpg --verify litecoin-${LITECOIN_VERSION}-linux-signatures.asc - sha256sum -c --ignore-missing litecoin-${LITECOIN_VERSION}-linux-signatures.asc - tar -xf litecoin-${LITECOIN_VERSION}-x86_64-linux-gnu.tar.gz - mv litecoin-${LITECOIN_VERSION} litecoin - rm litecoin/bin/litecoin-qt - rm litecoin/bin/test_litecoin - - -clean: - rm -rf litecoin - rm -f litecoin-${LITECOIN_VERSION}-x86_64-linux-gnu.tar.gz - rm -f litecoin-${LITECOIN_VERSION}-linux-signatures.asc diff --git a/contrib/backends/litecoin/debian/backend-litecoin-testnet.conffiles b/contrib/backends/litecoin/debian/backend-litecoin-testnet.conffiles deleted file mode 100644 index 6e00ded9..00000000 --- a/contrib/backends/litecoin/debian/backend-litecoin-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/nodes/litecoin_testnet/litecoin_testnet.conf diff --git a/contrib/backends/litecoin/debian/backend-litecoin-testnet.dirs b/contrib/backends/litecoin/debian/backend-litecoin-testnet.dirs deleted file mode 100644 index 60844601..00000000 --- a/contrib/backends/litecoin/debian/backend-litecoin-testnet.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/litecoin_testnet/backend diff --git a/contrib/backends/litecoin/debian/backend-litecoin-testnet.install b/contrib/backends/litecoin/debian/backend-litecoin-testnet.install deleted file mode 100644 index 4a78b7e9..00000000 --- a/contrib/backends/litecoin/debian/backend-litecoin-testnet.install +++ /dev/null @@ -1,2 +0,0 @@ -litecoin/* /opt/coins/nodes/litecoin_testnet -litecoin_testnet.conf /opt/coins/nodes/litecoin_testnet diff --git a/contrib/backends/litecoin/debian/backend-litecoin-testnet.logrotate b/contrib/backends/litecoin/debian/backend-litecoin-testnet.logrotate deleted file mode 100644 index 373521f1..00000000 --- a/contrib/backends/litecoin/debian/backend-litecoin-testnet.logrotate +++ /dev/null @@ -1,10 +0,0 @@ -/opt/coins/data/litecoin_testnet/backend/testnet4/debug.log -/opt/coins/data/litecoin_testnet/backend/testnet4/db.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/litecoin/debian/backend-litecoin-testnet.postinst b/contrib/backends/litecoin/debian/backend-litecoin-testnet.postinst deleted file mode 100644 index e323208b..00000000 --- a/contrib/backends/litecoin/debian/backend-litecoin-testnet.postinst +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u litecoin &> /dev/null - then - useradd --system -M -U litecoin -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/litecoin_testnet/backend)" != "litecoin" ] - then - chown -R litecoin:litecoin /opt/coins/data/litecoin_testnet/backend - fi - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/litecoin/debian/backend-litecoin-testnet.service b/contrib/backends/litecoin/debian/backend-litecoin-testnet.service deleted file mode 100644 index fd2ddaef..00000000 --- a/contrib/backends/litecoin/debian/backend-litecoin-testnet.service +++ /dev/null @@ -1,47 +0,0 @@ -# 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 litecoin-testnet.service -# See "man systemd.service" for details. - -# Note that almost all daemon options could be specified in -# /opt/coins/nodes/litecoin_testnet/litecoin_testnet.conf - -[Unit] -Description=litecoin daemon (testnet) -After=network.target - -[Service] -ExecStart=/opt/coins/nodes/litecoin_testnet/bin/litecoind -datadir=/opt/coins/data/litecoin_testnet/backend -conf=/opt/coins/nodes/litecoin_testnet/litecoin_testnet.conf -pid=/run/litecoind/litecoin_testnet.pid -# Creates /run/litecoind owned by litecoin -RuntimeDirectory=litecoind -User=litecoin -Type=forking -PIDFile=/run/litecoind/litecoin_testnet.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 diff --git a/contrib/backends/litecoin/debian/backend-litecoin.conffiles b/contrib/backends/litecoin/debian/backend-litecoin.conffiles deleted file mode 100644 index 9808ed97..00000000 --- a/contrib/backends/litecoin/debian/backend-litecoin.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/nodes/litecoin/litecoin.conf diff --git a/contrib/backends/litecoin/debian/backend-litecoin.dirs b/contrib/backends/litecoin/debian/backend-litecoin.dirs deleted file mode 100644 index eae2c1f8..00000000 --- a/contrib/backends/litecoin/debian/backend-litecoin.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/litecoin/backend diff --git a/contrib/backends/litecoin/debian/backend-litecoin.install b/contrib/backends/litecoin/debian/backend-litecoin.install deleted file mode 100644 index 8a70cf18..00000000 --- a/contrib/backends/litecoin/debian/backend-litecoin.install +++ /dev/null @@ -1,2 +0,0 @@ -litecoin/* /opt/coins/nodes/litecoin -litecoin.conf /opt/coins/nodes/litecoin diff --git a/contrib/backends/litecoin/debian/backend-litecoin.logrotate b/contrib/backends/litecoin/debian/backend-litecoin.logrotate deleted file mode 100644 index 70ac2c16..00000000 --- a/contrib/backends/litecoin/debian/backend-litecoin.logrotate +++ /dev/null @@ -1,10 +0,0 @@ -/opt/coins/data/litecoin/backend/debug.log -/opt/coins/data/litecoin/backend/db.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/litecoin/debian/backend-litecoin.postinst b/contrib/backends/litecoin/debian/backend-litecoin.postinst deleted file mode 100644 index 3f612fae..00000000 --- a/contrib/backends/litecoin/debian/backend-litecoin.postinst +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u litecoin &> /dev/null - then - useradd --system -M -U litecoin -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/litecoin/backend)" != "litecoin" ] - then - chown -R litecoin:litecoin /opt/coins/data/litecoin/backend - fi - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/litecoin/debian/backend-litecoin.service b/contrib/backends/litecoin/debian/backend-litecoin.service deleted file mode 100644 index d825703b..00000000 --- a/contrib/backends/litecoin/debian/backend-litecoin.service +++ /dev/null @@ -1,47 +0,0 @@ -# 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 litecoin.service -# See "man systemd.service" for details. - -# Note that almost all daemon options could be specified in -# /opt/coins/nodes/litecoin/litecoin.conf - -[Unit] -Description=litecoin daemon (mainnet) -After=network.target - -[Service] -ExecStart=/opt/coins/nodes/litecoin/bin/litecoind -datadir=/opt/coins/data/litecoin/backend -conf=/opt/coins/nodes/litecoin/litecoin.conf -pid=/run/litecoind/litecoin.pid -# Creates /run/litecoind owned by litecoin -RuntimeDirectory=litecoind -User=litecoin -Type=forking -PIDFile=/run/litecoind/litecoin.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 diff --git a/contrib/backends/litecoin/debian/changelog b/contrib/backends/litecoin/debian/changelog deleted file mode 100644 index c0fb2d95..00000000 --- a/contrib/backends/litecoin/debian/changelog +++ /dev/null @@ -1,5 +0,0 @@ -litecoin (0.16.0-satoshilabs1) unstable; urgency=medium - - * Initial build - - -- Martin Bohm Mon, 11 Jun 2018 11:12:13 +0200 diff --git a/contrib/backends/litecoin/debian/compat b/contrib/backends/litecoin/debian/compat deleted file mode 100644 index ec635144..00000000 --- a/contrib/backends/litecoin/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/contrib/backends/litecoin/debian/control b/contrib/backends/litecoin/debian/control deleted file mode 100644 index 5868d2f0..00000000 --- a/contrib/backends/litecoin/debian/control +++ /dev/null @@ -1,16 +0,0 @@ -Source: litecoin -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-litecoin -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged litecoin server - -Package: backend-litecoin-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged litecoin server diff --git a/contrib/backends/litecoin/debian/rules b/contrib/backends/litecoin/debian/rules deleted file mode 100755 index b992848e..00000000 --- a/contrib/backends/litecoin/debian/rules +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/make -f - -DH_VERBOSE = 1 - -%: - dh $@ --with=systemd - -override_dh_systemd_start: - dh_systemd_start --no-start - -override_dh_installinit: - -override_dh_strip: - dh_strip --no-automatic-dbgsym diff --git a/contrib/backends/litecoin/litecoin.conf b/contrib/backends/litecoin/litecoin.conf deleted file mode 100644 index 6e226084..00000000 --- a/contrib/backends/litecoin/litecoin.conf +++ /dev/null @@ -1,17 +0,0 @@ -daemon=1 -server=1 -nolisten=1 -rpcuser=rpc -rpcpassword=rpc -rpcport=8034 -txindex=1 -whitelist=127.0.0.1 - -zmqpubhashtx=tcp://127.0.0.1:38334 -zmqpubhashblock=tcp://127.0.0.1:38334 - -rpcworkqueue=1100 -maxmempool=2000 -dbcache=1000 - - diff --git a/contrib/backends/litecoin/litecoin_testnet.conf b/contrib/backends/litecoin/litecoin_testnet.conf deleted file mode 100644 index 15af2933..00000000 --- a/contrib/backends/litecoin/litecoin_testnet.conf +++ /dev/null @@ -1,15 +0,0 @@ -daemon=1 -server=1 -testnet=1 -nolisten=1 -rpcuser=rpc -rpcpassword=rpc -rpcport=18034 -txindex=1 - -zmqpubhashtx=tcp://127.0.0.1:48334 -zmqpubhashblock=tcp://127.0.0.1:48334 - -rpcworkqueue=1100 -maxmempool=2000 -dbcache=1000 diff --git a/contrib/backends/namecoin/Makefile b/contrib/backends/namecoin/Makefile deleted file mode 100644 index d9c40e42..00000000 --- a/contrib/backends/namecoin/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -NAMECOIN_VERSION := 0.13.99 -NAMECOIN_ARCHIVE := namecoin-${NAMECOIN_VERSION}-x86_64-linux-gnu.tar.gz -NAMECOIN_SHA256 := 294b1106001d6ea2b9d9ee6a655021ef207a24e8f1dec8efd5899728b3849129 - -all: - wget https://namecoin.org/files/namecoin-core-${NAMECOIN_VERSION}-name-tab-beta1-notreproduced/${NAMECOIN_ARCHIVE} - [ "$$(sha256sum ${NAMECOIN_ARCHIVE} | cut -d ' ' -f 1)" = "${NAMECOIN_SHA256}" ] - tar -xf ${NAMECOIN_ARCHIVE} - mv namecoin-${NAMECOIN_VERSION} namecoin - rm namecoin/bin/namecoin-qt - rm namecoin/bin/test_namecoin* - - -clean: - rm -rf namecoin - rm -f ${NAMECOIN_ARCHIVE} diff --git a/contrib/backends/namecoin/debian/backend-namecoin.conffiles b/contrib/backends/namecoin/debian/backend-namecoin.conffiles deleted file mode 100644 index 723eb4b6..00000000 --- a/contrib/backends/namecoin/debian/backend-namecoin.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/nodes/namecoin/namecoin.conf diff --git a/contrib/backends/namecoin/debian/backend-namecoin.dirs b/contrib/backends/namecoin/debian/backend-namecoin.dirs deleted file mode 100644 index e5a2195f..00000000 --- a/contrib/backends/namecoin/debian/backend-namecoin.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/namecoin/backend diff --git a/contrib/backends/namecoin/debian/backend-namecoin.install b/contrib/backends/namecoin/debian/backend-namecoin.install deleted file mode 100644 index 099e6621..00000000 --- a/contrib/backends/namecoin/debian/backend-namecoin.install +++ /dev/null @@ -1,2 +0,0 @@ -namecoin/* /opt/coins/nodes/namecoin -namecoin.conf /opt/coins/nodes/namecoin diff --git a/contrib/backends/namecoin/debian/backend-namecoin.logrotate b/contrib/backends/namecoin/debian/backend-namecoin.logrotate deleted file mode 100644 index e3e59529..00000000 --- a/contrib/backends/namecoin/debian/backend-namecoin.logrotate +++ /dev/null @@ -1,10 +0,0 @@ -/opt/coins/data/namecoin/backend/debug.log -/opt/coins/data/namecoin/backend/db.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/namecoin/debian/backend-namecoin.postinst b/contrib/backends/namecoin/debian/backend-namecoin.postinst deleted file mode 100644 index 2eae5e29..00000000 --- a/contrib/backends/namecoin/debian/backend-namecoin.postinst +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u namecoin &> /dev/null - then - useradd --system -M -U namecoin -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/namecoin/backend)" != "namecoin" ] - then - chown -R namecoin:namecoin /opt/coins/data/namecoin/backend - fi - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/namecoin/debian/backend-namecoin.service b/contrib/backends/namecoin/debian/backend-namecoin.service deleted file mode 100644 index 1dd79fb7..00000000 --- a/contrib/backends/namecoin/debian/backend-namecoin.service +++ /dev/null @@ -1,47 +0,0 @@ -# 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 namecoin.service -# See "man systemd.service" for details. - -# Note that almost all daemon options could be specified in -# /opt/coins/nodes/namecoin/namecoin.conf - -[Unit] -Description=Namecoin daemon (mainnet) -After=network.target - -[Service] -ExecStart=/opt/coins/nodes/namecoin/bin/namecoind -datadir=/opt/coins/data/namecoin/backend -conf=/opt/coins/nodes/namecoin/namecoin.conf -pid=/run/namecoind/namecoin.pid -# Creates /run/namecoind owned by namecoin -RuntimeDirectory=namecoind -User=namecoin -Type=forking -PIDFile=/run/namecoind/namecoin.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 diff --git a/contrib/backends/namecoin/debian/changelog b/contrib/backends/namecoin/debian/changelog deleted file mode 100644 index 50f2bb4d..00000000 --- a/contrib/backends/namecoin/debian/changelog +++ /dev/null @@ -1,5 +0,0 @@ -namecoin (0.13.99-satoshilabs1) unstable; urgency=medium - - * Initial build - - -- Martin Bohm Mon, 18 Jun 2018 11:12:13 +0200 diff --git a/contrib/backends/namecoin/debian/compat b/contrib/backends/namecoin/debian/compat deleted file mode 100644 index ec635144..00000000 --- a/contrib/backends/namecoin/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/contrib/backends/namecoin/debian/control b/contrib/backends/namecoin/debian/control deleted file mode 100644 index 4726da03..00000000 --- a/contrib/backends/namecoin/debian/control +++ /dev/null @@ -1,11 +0,0 @@ -Source: namecoin -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-namecoin -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged namecoin server diff --git a/contrib/backends/namecoin/debian/rules b/contrib/backends/namecoin/debian/rules deleted file mode 100755 index b992848e..00000000 --- a/contrib/backends/namecoin/debian/rules +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/make -f - -DH_VERBOSE = 1 - -%: - dh $@ --with=systemd - -override_dh_systemd_start: - dh_systemd_start --no-start - -override_dh_installinit: - -override_dh_strip: - dh_strip --no-automatic-dbgsym diff --git a/contrib/backends/namecoin/namecoin.conf b/contrib/backends/namecoin/namecoin.conf deleted file mode 100644 index 2671a69e..00000000 --- a/contrib/backends/namecoin/namecoin.conf +++ /dev/null @@ -1,23 +0,0 @@ -daemon=1 -server=1 -nolisten=1 -rpcuser=rpc -rpcpassword=rpc -rpcport=8039 -txindex=1 -whitelist=127.0.0.1 -upnp=0 -discover=0 -whitelistrelay=1 -listenonion=0 - -addnode=45.24.110.177:8334 - -zmqpubhashtx=tcp://127.0.0.1:38339 -zmqpubhashblock=tcp://127.0.0.1:38339 - -rpcworkqueue=1100 -maxmempool=2000 -dbcache=1000 - - diff --git a/contrib/backends/vertcoin/Makefile b/contrib/backends/vertcoin/Makefile deleted file mode 100644 index a65730b9..00000000 --- a/contrib/backends/vertcoin/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -VERTCOIN_VERSION := 0.13.2 - -all: - wget https://github.com/vertcoin-project/vertcoin-core/releases/download/${VERTCOIN_VERSION}/vertcoind-v${VERTCOIN_VERSION}-linux-amd64.zip - wget https://github.com/vertcoin-project/vertcoin-core/releases/download/${VERTCOIN_VERSION}/vertcoind-v${VERTCOIN_VERSION}-linux-amd64.zip.sig - gpg --verify vertcoind-v${VERTCOIN_VERSION}-linux-amd64.zip.sig - mkdir vertcoin - unzip vertcoind-v${VERTCOIN_VERSION}-linux-amd64.zip -d vertcoin/ - -clean: - rm -rf vertcoin - rm -f vertcoind-v${VERTCOIN_VERSION}-linux-amd64.zip - rm -f vertcoind-v${VERTCOIN_VERSION}-linux-amd64.zip.sig diff --git a/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.conffiles b/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.conffiles deleted file mode 100644 index 8b042541..00000000 --- a/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/nodes/vertcoin_testnet/vertcoin_testnet.conf diff --git a/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.dirs b/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.dirs deleted file mode 100644 index 0ed9e6bb..00000000 --- a/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/vertcoin_testnet/backend diff --git a/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.install b/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.install deleted file mode 100644 index 3e93aa2c..00000000 --- a/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.install +++ /dev/null @@ -1,2 +0,0 @@ -vertcoin/* /opt/coins/nodes/vertcoin_testnet -vertcoin_testnet.conf /opt/coins/nodes/vertcoin_testnet diff --git a/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.logrotate b/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.logrotate deleted file mode 100644 index 5a3eed96..00000000 --- a/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.logrotate +++ /dev/null @@ -1,10 +0,0 @@ -/opt/coins/data/vertcoin_testnet/backend/testnet3/debug.log -/opt/coins/data/vertcoin_testnet/backend/testnet3/db.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.postinst b/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.postinst deleted file mode 100644 index 24ccddb2..00000000 --- a/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.postinst +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u vertcoin &> /dev/null - then - useradd --system -M -U vertcoin -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/vertcoin_testnet/backend)" != "vertcoin" ] - then - chown -R vertcoin:vertcoin /opt/coins/data/vertcoin_testnet/backend - fi - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.service b/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.service deleted file mode 100644 index c2e8443f..00000000 --- a/contrib/backends/vertcoin/debian/backend-vertcoin-testnet.service +++ /dev/null @@ -1,47 +0,0 @@ -# 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 vertcoin-testnet.service -# See "man systemd.service" for details. - -# Note that almost all daemon options could be specified in -# /opt/coins/nodes/vertcoin_testnet/vertcoin_testnet.conf - -[Unit] -Description=vertcoin daemon (testnet) -After=network.target - -[Service] -ExecStart=/opt/coins/nodes/vertcoin_testnet/vertcoind -datadir=/opt/coins/data/vertcoin_testnet/backend -conf=/opt/coins/nodes/vertcoin_testnet/vertcoin_testnet.conf -pid=/run/vertcoind/vertcoin_testnet.pid -# Creates /run/vertcoind owned by vertcoin -RuntimeDirectory=vertcoind -User=vertcoin -Type=forking -PIDFile=/run/vertcoind/vertcoin_testnet.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 diff --git a/contrib/backends/vertcoin/debian/backend-vertcoin.conffiles b/contrib/backends/vertcoin/debian/backend-vertcoin.conffiles deleted file mode 100644 index 790936f6..00000000 --- a/contrib/backends/vertcoin/debian/backend-vertcoin.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/nodes/vertcoin/vertcoin.conf diff --git a/contrib/backends/vertcoin/debian/backend-vertcoin.dirs b/contrib/backends/vertcoin/debian/backend-vertcoin.dirs deleted file mode 100644 index 4651768b..00000000 --- a/contrib/backends/vertcoin/debian/backend-vertcoin.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/vertcoin/backend diff --git a/contrib/backends/vertcoin/debian/backend-vertcoin.install b/contrib/backends/vertcoin/debian/backend-vertcoin.install deleted file mode 100644 index 26372258..00000000 --- a/contrib/backends/vertcoin/debian/backend-vertcoin.install +++ /dev/null @@ -1,2 +0,0 @@ -vertcoin/* /opt/coins/nodes/vertcoin -vertcoin.conf /opt/coins/nodes/vertcoin diff --git a/contrib/backends/vertcoin/debian/backend-vertcoin.logrotate b/contrib/backends/vertcoin/debian/backend-vertcoin.logrotate deleted file mode 100644 index 0b756cbb..00000000 --- a/contrib/backends/vertcoin/debian/backend-vertcoin.logrotate +++ /dev/null @@ -1,10 +0,0 @@ -/opt/coins/data/vertcoin/backend/debug.log -/opt/coins/data/vertcoin/backend/db.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/vertcoin/debian/backend-vertcoin.postinst b/contrib/backends/vertcoin/debian/backend-vertcoin.postinst deleted file mode 100644 index fe11d62f..00000000 --- a/contrib/backends/vertcoin/debian/backend-vertcoin.postinst +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u vertcoin &> /dev/null - then - useradd --system -M -U vertcoin -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/vertcoin/backend)" != "vertcoin" ] - then - chown -R vertcoin:vertcoin /opt/coins/data/vertcoin/backend - fi - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/vertcoin/debian/backend-vertcoin.service b/contrib/backends/vertcoin/debian/backend-vertcoin.service deleted file mode 100644 index cb533569..00000000 --- a/contrib/backends/vertcoin/debian/backend-vertcoin.service +++ /dev/null @@ -1,47 +0,0 @@ -# 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 vertcoin.service -# See "man systemd.service" for details. - -# Note that almost all daemon options could be specified in -# /opt/coins/nodes/vertcoin/vertcoin.conf - -[Unit] -Description=vertcoin daemon (mainnet) -After=network.target - -[Service] -ExecStart=/opt/coins/nodes/vertcoin/vertcoind -datadir=/opt/coins/data/vertcoin/backend -conf=/opt/coins/nodes/vertcoin/vertcoin.conf -pid=/run/vertcoind/vertcoin.pid -# Creates /run/vertcoind owned by vertcoin -RuntimeDirectory=vertcoind -User=vertcoin -Type=forking -PIDFile=/run/vertcoind/vertcoin.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 diff --git a/contrib/backends/vertcoin/debian/changelog b/contrib/backends/vertcoin/debian/changelog deleted file mode 100644 index cf4bf9e0..00000000 --- a/contrib/backends/vertcoin/debian/changelog +++ /dev/null @@ -1,5 +0,0 @@ -vertcoin (0.13.2-satoshilabs1) unstable; urgency=medium - - * Initial build - - -- Petr Kracik Thu, 21 Jun 2018 11:42:00 +0200 diff --git a/contrib/backends/vertcoin/debian/compat b/contrib/backends/vertcoin/debian/compat deleted file mode 100644 index ec635144..00000000 --- a/contrib/backends/vertcoin/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/contrib/backends/vertcoin/debian/control b/contrib/backends/vertcoin/debian/control deleted file mode 100644 index 7ac3d718..00000000 --- a/contrib/backends/vertcoin/debian/control +++ /dev/null @@ -1,16 +0,0 @@ -Source: vertcoin -Section: satoshilabs -Priority: optional -Maintainer: petr.kracik@satoshilabs.com -Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd, dh-exec -Standards-Version: 3.9.5 - -Package: backend-vertcoin -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged vertcoin server - -Package: backend-vertcoin-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged vertcoin server diff --git a/contrib/backends/vertcoin/debian/rules b/contrib/backends/vertcoin/debian/rules deleted file mode 100755 index b992848e..00000000 --- a/contrib/backends/vertcoin/debian/rules +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/make -f - -DH_VERBOSE = 1 - -%: - dh $@ --with=systemd - -override_dh_systemd_start: - dh_systemd_start --no-start - -override_dh_installinit: - -override_dh_strip: - dh_strip --no-automatic-dbgsym diff --git a/contrib/backends/vertcoin/vertcoin.conf b/contrib/backends/vertcoin/vertcoin.conf deleted file mode 100644 index 56b81bd6..00000000 --- a/contrib/backends/vertcoin/vertcoin.conf +++ /dev/null @@ -1,17 +0,0 @@ -daemon=1 -server=1 -nolisten=1 -rpcuser=rpc -rpcpassword=rpc -rpcport=8040 -txindex=1 -whitelist=127.0.0.1 - -zmqpubhashtx=tcp://127.0.0.1:38340 -zmqpubhashblock=tcp://127.0.0.1:38340 - -rpcworkqueue=1100 -maxmempool=2000 -dbcache=1000 - - diff --git a/contrib/backends/vertcoin/vertcoin_testnet.conf b/contrib/backends/vertcoin/vertcoin_testnet.conf deleted file mode 100644 index 24fdacdb..00000000 --- a/contrib/backends/vertcoin/vertcoin_testnet.conf +++ /dev/null @@ -1,15 +0,0 @@ -daemon=1 -server=1 -testnet=1 -nolisten=1 -rpcuser=rpc -rpcpassword=rpc -rpcport=18040 -txindex=1 - -zmqpubhashtx=tcp://127.0.0.1:48340 -zmqpubhashblock=tcp://127.0.0.1:48340 - -rpcworkqueue=1100 -maxmempool=2000 -dbcache=1000 diff --git a/contrib/backends/zcash/Makefile b/contrib/backends/zcash/Makefile deleted file mode 100644 index 32b0198d..00000000 --- a/contrib/backends/zcash/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -ZCASH_VERSION := 1.1.1 -ZCASH_ARCHIVE := zcash-${ZCASH_VERSION}-linux64.tar.gz - -all: - wget https://z.cash/downloads/${ZCASH_ARCHIVE} - wget https://z.cash/downloads/${ZCASH_ARCHIVE}.asc - gpg --verify ${ZCASH_ARCHIVE}.asc - tar -xf ${ZCASH_ARCHIVE} - mv zcash-${ZCASH_VERSION} zcash - -clean: - rm -rf zcash - rm -f ${ZCASH_ARCHIVE} - rm -f ${ZCASH_ARCHIVE}.asc diff --git a/contrib/backends/zcash/debian/backend-zcash-testnet.conffiles b/contrib/backends/zcash/debian/backend-zcash-testnet.conffiles deleted file mode 100644 index a3aaf070..00000000 --- a/contrib/backends/zcash/debian/backend-zcash-testnet.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/nodes/zcash_testnet/zcash_testnet.conf diff --git a/contrib/backends/zcash/debian/backend-zcash-testnet.dirs b/contrib/backends/zcash/debian/backend-zcash-testnet.dirs deleted file mode 100644 index a5269275..00000000 --- a/contrib/backends/zcash/debian/backend-zcash-testnet.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/zcash_testnet/backend diff --git a/contrib/backends/zcash/debian/backend-zcash-testnet.install b/contrib/backends/zcash/debian/backend-zcash-testnet.install deleted file mode 100644 index 92be786e..00000000 --- a/contrib/backends/zcash/debian/backend-zcash-testnet.install +++ /dev/null @@ -1,2 +0,0 @@ -zcash/* /opt/coins/nodes/zcash_testnet -zcash_testnet.conf /opt/coins/nodes/zcash_testnet diff --git a/contrib/backends/zcash/debian/backend-zcash-testnet.logrotate b/contrib/backends/zcash/debian/backend-zcash-testnet.logrotate deleted file mode 100644 index d6ebcb40..00000000 --- a/contrib/backends/zcash/debian/backend-zcash-testnet.logrotate +++ /dev/null @@ -1,10 +0,0 @@ -/opt/coins/data/zcash_testnet/backend/testnet3/debug.log -/opt/coins/data/zcash_testnet/backend/testnet3/db.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/zcash/debian/backend-zcash-testnet.postinst b/contrib/backends/zcash/debian/backend-zcash-testnet.postinst deleted file mode 100644 index 40166f69..00000000 --- a/contrib/backends/zcash/debian/backend-zcash-testnet.postinst +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u zcash &> /dev/null - then - useradd --system -M -U zcash -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/zcash_testnet/backend)" != "zcash" ] - then - chown -R zcash:zcash /opt/coins/data/zcash_testnet/backend - fi - - HOME=/opt/coins/data/zcash_testnet/backend /opt/coins/nodes/zcash_testnet/bin/zcash-fetch-params --testnet - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/zcash/debian/backend-zcash-testnet.service b/contrib/backends/zcash/debian/backend-zcash-testnet.service deleted file mode 100644 index 427438d4..00000000 --- a/contrib/backends/zcash/debian/backend-zcash-testnet.service +++ /dev/null @@ -1,48 +0,0 @@ -# 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 zcash-testnet.service -# See "man systemd.service" for details. - -# Note that almost all daemon options could be specified in -# /opt/coins/nodes/zcash_testnet/zcash_testnet.conf - -[Unit] -Description=Zcash daemon (testnet) -After=network.target - -[Service] -Environment="HOME=/opt/coins/data/zcash_testnet/backend" -ExecStart=/opt/coins/nodes/zcash_testnet/bin/zcashd -datadir=/opt/coins/data/zcash_testnet/backend -conf=/opt/coins/nodes/zcash_testnet/zcash_testnet.conf -pid=/run/zcashd/zcash_testnet.pid -# Creates /run/zcashd owned by zcash -RuntimeDirectory=zcashd -User=zcash -Type=forking -PIDFile=/run/zcashd/zcash_testnet.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 diff --git a/contrib/backends/zcash/debian/backend-zcash.conffiles b/contrib/backends/zcash/debian/backend-zcash.conffiles deleted file mode 100644 index 4bb34b1a..00000000 --- a/contrib/backends/zcash/debian/backend-zcash.conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/nodes/zcash/zcash.conf diff --git a/contrib/backends/zcash/debian/backend-zcash.dirs b/contrib/backends/zcash/debian/backend-zcash.dirs deleted file mode 100644 index d79f40cc..00000000 --- a/contrib/backends/zcash/debian/backend-zcash.dirs +++ /dev/null @@ -1 +0,0 @@ -/opt/coins/data/zcash/backend diff --git a/contrib/backends/zcash/debian/backend-zcash.install b/contrib/backends/zcash/debian/backend-zcash.install deleted file mode 100644 index a641f4db..00000000 --- a/contrib/backends/zcash/debian/backend-zcash.install +++ /dev/null @@ -1,2 +0,0 @@ -zcash/* /opt/coins/nodes/zcash -zcash.conf /opt/coins/nodes/zcash diff --git a/contrib/backends/zcash/debian/backend-zcash.logrotate b/contrib/backends/zcash/debian/backend-zcash.logrotate deleted file mode 100644 index 64c98777..00000000 --- a/contrib/backends/zcash/debian/backend-zcash.logrotate +++ /dev/null @@ -1,10 +0,0 @@ -/opt/coins/data/zcash/backend/debug.log -/opt/coins/data/zcash/backend/db.log -{ - rotate 7 - daily - compress - missingok - notifempty - copytruncate -} diff --git a/contrib/backends/zcash/debian/backend-zcash.postinst b/contrib/backends/zcash/debian/backend-zcash.postinst deleted file mode 100644 index 0ee9132b..00000000 --- a/contrib/backends/zcash/debian/backend-zcash.postinst +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in - - configure) - if ! id -u zcash &> /dev/null - then - useradd --system -M -U zcash -s /bin/false - fi - - if [ "$(stat -c '%U' /opt/coins/data/zcash/backend)" != "zcash" ] - then - chown -R zcash:zcash /opt/coins/data/zcash/backend - fi - - HOME=/opt/coins/data/zcash/backend /opt/coins/nodes/zcash/bin/zcash-fetch-params - ;; - -esac - -#DEBHELPER# diff --git a/contrib/backends/zcash/debian/backend-zcash.service b/contrib/backends/zcash/debian/backend-zcash.service deleted file mode 100644 index 2da0aba7..00000000 --- a/contrib/backends/zcash/debian/backend-zcash.service +++ /dev/null @@ -1,48 +0,0 @@ -# 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 zcash.service -# See "man systemd.service" for details. - -# Note that almost all daemon options could be specified in -# /opt/coins/nodes/zcash/zcash.conf - -[Unit] -Description=Zcash daemon (mainnet) -After=network.target - -[Service] -Environment="HOME=/opt/coins/data/zcash/backend" -ExecStart=/opt/coins/nodes/zcash/bin/zcashd -datadir=/opt/coins/data/zcash/backend -conf=/opt/coins/nodes/zcash/zcash.conf -pid=/run/zcashd/zcash.pid -# Creates /run/zcashd owned by zcash -RuntimeDirectory=zcashd -User=zcash -Type=forking -PIDFile=/run/zcashd/zcash.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 diff --git a/contrib/backends/zcash/debian/changelog b/contrib/backends/zcash/debian/changelog deleted file mode 100644 index 8f4181e1..00000000 --- a/contrib/backends/zcash/debian/changelog +++ /dev/null @@ -1,35 +0,0 @@ -zcash (1.1.1-satoshilabs1) unstable; urgency=medium - - * Update zcash daemon version 1.1.1 - - -- Petr Kracik Thu, 21 Jun 2018 10:42:00 +0200 - -zcash (1.0.15-satoshilabs5) unstable; urgency=medium - - * Rename packages and directories - - -- Martin Bohm Wed, 06 Jun 2018 11:12:13 +0200 - -zcash (1.0.15-satoshilabs4) unstable; urgency=medium - - * Increased limits in backend config - - -- Jakub Matys Wed, 30 May 2018 09:26:17 +0200 - -zcash (1.0.15-satoshilabs3) unstable; urgency=medium - - * Added nolisten=1 option - - -- Jakub Matys Wed, 23 May 2018 12:49:34 +0200 - -zcash (1.0.15-satoshilabs2) unstable; urgency=medium - - * Changed RPC and ZMQ ports - - -- Jakub Matys Wed, 23 May 2018 11:13:10 +0200 - -zcash (1.0.15-satoshilabs1) unstable; urgency=medium - - * Initial build - - -- Jakub Matys Thu, 05 Apr 2018 08:40:39 +0200 diff --git a/contrib/backends/zcash/debian/compat b/contrib/backends/zcash/debian/compat deleted file mode 100644 index ec635144..00000000 --- a/contrib/backends/zcash/debian/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/contrib/backends/zcash/debian/control b/contrib/backends/zcash/debian/control deleted file mode 100644 index 159d2279..00000000 --- a/contrib/backends/zcash/debian/control +++ /dev/null @@ -1,16 +0,0 @@ -Source: zcash -Section: satoshilabs -Priority: optional -Maintainer: jakub.matys@satoshilabs.com -Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd, dh-exec -Standards-Version: 3.9.5 - -Package: backend-zcash -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged zcash server - -Package: backend-zcash-testnet -Architecture: amd64 -Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate -Description: Satoshilabs packaged zcash server diff --git a/contrib/backends/zcash/debian/rules b/contrib/backends/zcash/debian/rules deleted file mode 100755 index b992848e..00000000 --- a/contrib/backends/zcash/debian/rules +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/make -f - -DH_VERBOSE = 1 - -%: - dh $@ --with=systemd - -override_dh_systemd_start: - dh_systemd_start --no-start - -override_dh_installinit: - -override_dh_strip: - dh_strip --no-automatic-dbgsym diff --git a/contrib/backends/zcash/zcash.conf b/contrib/backends/zcash/zcash.conf deleted file mode 100644 index a82547d2..00000000 --- a/contrib/backends/zcash/zcash.conf +++ /dev/null @@ -1,18 +0,0 @@ -daemon=1 -server=1 -nolisten=1 -rpcuser=rpc -rpcpassword=rpc -rpcport=8032 -txindex=1 -mainnet=1 -addnode=mainnet.z.cash - -zmqpubhashtx=tcp://127.0.0.1:38332 -zmqpubhashblock=tcp://127.0.0.1:38332 -zmqpubrawblock=tcp://127.0.0.1:38332 -zmqpubrawtx=tcp://127.0.0.1:38332 - -rpcworkqueue=1100 -maxmempool=2000 -dbcache=1000 diff --git a/contrib/backends/zcash/zcash_testnet.conf b/contrib/backends/zcash/zcash_testnet.conf deleted file mode 100644 index 4e96c169..00000000 --- a/contrib/backends/zcash/zcash_testnet.conf +++ /dev/null @@ -1,18 +0,0 @@ -daemon=1 -server=1 -nolisten=1 -rpcuser=rpc -rpcpassword=rpc -rpcport=18032 -txindex=1 -testnet=1 -addnode=testnet.z.cash - -zmqpubhashtx=tcp://127.0.0.1:48332 -zmqpubhashblock=tcp://127.0.0.1:48332 -zmqpubrawblock=tcp://127.0.0.1:48332 -zmqpubrawtx=tcp://127.0.0.1:48332 - -rpcworkqueue=1100 -maxmempool=2000 -dbcache=1000