Skip to content

Commit

Permalink
fix gitian build
Browse files Browse the repository at this point in the history
  • Loading branch information
dsdsenen committed Nov 9, 2018
1 parent cfc4d30 commit ff24280
Show file tree
Hide file tree
Showing 23 changed files with 76 additions and 76 deletions.
4 changes: 2 additions & 2 deletions contrib/bitrpc/bitrpc.py
Expand Up @@ -11,9 +11,9 @@


if rpcpass == "":
access = ServiceProxy("http://127.0.0.1:51473")
access = ServiceProxy("http://127.0.0.1:19998")
else:
access = ServiceProxy("http://"+rpcuser+":"+rpcpass+"@127.0.0.1:51473")
access = ServiceProxy("http://"+rpcuser+":"+rpcpass+"@127.0.0.1:19998")
cmd = sys.argv[1].lower()

if cmd == "backupwallet":
Expand Down
4 changes: 2 additions & 2 deletions contrib/debian/control
Expand Up @@ -23,8 +23,8 @@ Build-Depends: debhelper,
libprotobuf-dev, protobuf-compiler
Standards-Version: 3.9.2
Homepage: http://www.dividendcash.org
Vcs-Git: git://github.com/Dividendcash-Project/Dividendcash.git
Vcs-Browser: http://github.com/Dividendcash-Project/Dividendcash
Vcs-Git: git://github.com/DividendCash-Project/DividendCash.git
Vcs-Browser: http://github.com/DividendCash-Project/DividendCash

Package: dividendcashd
Architecture: any
Expand Down
8 changes: 4 additions & 4 deletions contrib/debian/examples/dividendcash.conf
Expand Up @@ -38,11 +38,11 @@

# Use as many addnode= settings as you like to connect to specific peers
#addnode=69.164.218.197
#addnode=10.0.0.2:51472
#addnode=10.0.0.2:19997

# Alternatively use as many connect= settings as you like to connect ONLY to specific peers
#connect=69.164.218.197
#connect=10.0.0.1:51472
#connect=10.0.0.1:19997

# Listening mode, enabled by default except when 'connect' is being used
#listen=1
Expand Down Expand Up @@ -79,7 +79,7 @@
#rpcallowip=2001:db8:85a3:0:0:8a2e:370:7334/96

# Listen for RPC connections on this TCP port:
#rpcport=51473
#rpcport=19998

# You can use Dividendcash or dividendcashd to send commands to Dividendcash/dividendcashd
# running on another host using this option:
Expand All @@ -101,7 +101,7 @@
# both prior transactions and several dozen future transactions.
#keypool=100

# Pay an optional transaction fee every time you send PIVs. Transactions with fees
# Pay an optional transaction fee every time you send DVDs. Transactions with fees
# are more likely than free transactions to be included in generated blocks, so may
# be validated sooner.
#paytxfee=0.00
Expand Down
6 changes: 3 additions & 3 deletions contrib/debian/manpages/dividendcash-qt.1
@@ -1,4 +1,4 @@
.TH PIV-QT "1" "February 2017" "dividendcash-qt 1"
.TH DVD-QT "1" "February 2017" "dividendcash-qt 1"
.SH NAME
dividendcash-qt \- peer-to-peer network based digital currency
.SH DESCRIPTION
Expand Down Expand Up @@ -41,7 +41,7 @@ Use proxy to reach tor hidden services (default: same as \fB\-proxy\fR)
Allow DNS lookups for \fB\-addnode\fR, \fB\-seednode\fR and \fB\-connect\fR
.TP
\fB\-port=\fR<port>
Listen for connections on <port> (default: 51472 or testnet: 51474)
Listen for connections on <port> (default: 19997 or testnet: 19995)
.TP
\fB\-maxconnections=\fR<n>
Maintain at most <n> connections to peers (default: 125)
Expand Down Expand Up @@ -122,7 +122,7 @@ Username for JSON\-RPC connections
Password for JSON\-RPC connections
.TP
\fB\-rpcport=\fR<port>
Listen for JSON\-RPC connections on <port> (default: 51473 or testnet: 51475)
Listen for JSON\-RPC connections on <port> (default: 19998 or testnet: 39799)
.TP
\fB\-rpcallowip=\fR<ip>
Allow JSON\-RPC connections from specified IP address
Expand Down
14 changes: 7 additions & 7 deletions contrib/debian/manpages/dividendcash.conf.5
@@ -1,4 +1,4 @@
.TH PIV.CONF "5" "January 2011" "dividendcash.conf 3.19"
.TH DVD.CONF "5" "January 2011" "dividendcash.conf 3.19"
.SH NAME
dividendcash.conf \- dividendcash configuration file
.SH SYNOPSIS
Expand All @@ -18,10 +18,10 @@ Enable or disable run on the test network instead of the real *dividendcash* net
\fBproxy=\fR\fI'127.0.0.1:9050'\fR
Connect via a socks4 proxy.
.TP
\fBaddnode=\fR\fI'10.0.0.2:51472'\fR
\fBaddnode=\fR\fI'10.0.0.2:19997'\fR
Use as many *addnode=* settings as you like to connect to specific peers.
.TP
\fBconnect=\fR\fI'10.0.0.1:51472'\fR
\fBconnect=\fR\fI'10.0.0.1:19997'\fR
Use as many *connect=* settings as you like to connect ONLY to specific peers.
.TP
\fRmaxconnections=\fR\fI'value'\fR
Expand All @@ -40,7 +40,7 @@ You must set *rpcpassword* to secure the JSON-RPC api.
\fBrpcallowip=\fR\fI'192.168.1.*'\fR
By default, only RPC connections from localhost are allowed. Specify as many *rpcallowip=* settings as you like to allow connections from other hosts (and you may use * as a wildcard character).
.TP
\fBrpcport=\fR\fI'51473'\fR
\fBrpcport=\fR\fI'19998'\fR
Listen for RPC connections on this TCP port.
.TP
\fBrpcconnect=\fR\fI'127.0.0.1'\fR
Expand All @@ -59,16 +59,16 @@ Acceptable ciphers (default: TLSv1+HIGH:\:!SSLv2:\:!aNULL:\:!eNULL:\:!AH:\:!3DES
.SH MISCELLANEOUS OPTIONS
.TP
\fBgen=\fR[\fI'0'\fR|\fI'1'\fR]
Enable or disable attempt to generate PIVs.
Enable or disable attempt to generate DVDs.
.TP
\fB4way=\fR[\fI'0'\fR|\fI'1'\fR]
Enable or disable use SSE instructions to try to generate PIVs faster.
Enable or disable use SSE instructions to try to generate DVDs faster.
.TP
\fBkeypool=\fR\fI'100'\fR
Pre-generate this many public/private key pairs, so wallet backups will be valid for both prior transactions and several dozen future transactions.
.TP
\fBpaytxfee=\fR\fI'0.00'\fR
Pay an optional transaction fee every time you send PIVs. Transactions with fees are more likely than free transactions to be included in generated blocks, so may be validated sooner.
Pay an optional transaction fee every time you send DVDs. Transactions with fees are more likely than free transactions to be included in generated blocks, so may be validated sooner.
.TP
\fBallowreceivebyip=\fR\fI'1'\fR
Allow direct connections for the 'pay via IP address' feature.
Expand Down
6 changes: 3 additions & 3 deletions contrib/debian/manpages/dividendcashd.1
@@ -1,4 +1,4 @@
.TH PIVD "1" "February 2017" "dividendcashd 2.1.4.1"
.TH DVDD "1" "February 2017" "dividendcashd 2.1.4.1"
.SH NAME
Dividendcash \- peer-to-peer network based digital currency
.SH SYNOPSIS
Expand Down Expand Up @@ -112,7 +112,7 @@ Returns the number of connections to other nodes.
Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
.TP
\fBgetgenerate\fR
Returns boolean true if server is trying to generate PIV, false otherwise.
Returns boolean true if server is trying to generate DVD, false otherwise.
.TP
\fBsetgenerate 'generate' ['genproclimit']\fR
Generation is limited to ['genproclimit'] processors, \-1 is unlimited.
Expand Down Expand Up @@ -183,7 +183,7 @@ Returns a list of the last ['count'] transactions for 'account' \- for all accou
Moves funds between accounts.
.TP
\fBsendfrom* <'account'> <'dividendcashaddress'> <'amount'> ['minconf=1'] ['comment'] ['comment-to']\fR
Sends amount from account's balance to 'dividendcashaddress'. This method will fail if there is less than amount PIV with ['minconf'] confirmations in the account's balance (unless account is the empty-string-named default account; it behaves like the *sendtoaddress* method). Returns transaction ID on success.
Sends amount from account's balance to 'dividendcashaddress'. This method will fail if there is less than amount DVD with ['minconf'] confirmations in the account's balance (unless account is the empty-string-named default account; it behaves like the *sendtoaddress* method). Returns transaction ID on success.
.TP
\fBsendtoaddress 'dividendcashaddress' 'amount' ['comment'] ['comment-to']\fR
Sends amount from the server's available balance to 'dividendcashaddress'. amount is a real and is rounded to the nearest 0.01. Returns transaction id on success.
Expand Down
8 changes: 4 additions & 4 deletions contrib/devtools/README.md
Expand Up @@ -18,7 +18,7 @@ For example:
./github-merge.py 3077

(in any git repository) will help you merge pull request #3077 for the
Dividendcash-Project/Dividendcash repository.
DividendCash-Project/DividendCash repository.

What it does:
* Fetch master and the pull request.
Expand All @@ -36,16 +36,16 @@ couldn't mess with the sources.

Setup
---------
Configuring the github-merge tool for the Dividendcash repository is done in the following way:
Configuring the github-merge tool for the DividendCash repository is done in the following way:

git config githubmerge.repository Dividendcash-Project/Dividendcash
git config githubmerge.repository DividendCash-Project/DividendCash
git config githubmerge.testcmd "make -j4 check" (adapt to whatever you want to use for testing)
git config --global user.signingkey mykeyid (if you want to GPG sign)

optimize-pngs.py
================

A script to optimize png files in the Dividendcash
A script to optimize png files in the DividendCash
repository (requires pngcrush).

fix-copyright-headers.py
Expand Down
48 changes: 24 additions & 24 deletions contrib/gitian-build.sh
Expand Up @@ -247,7 +247,7 @@ then
fi

# Set up build
pushd ./dividendcash
pushd ./DividendCash
git fetch
git checkout ${COMMIT}
popd
Expand All @@ -256,7 +256,7 @@ popd
if [[ $build = true ]]
then
# Make output folder
mkdir -p ./dividendcash-binaries/${VERSION}
mkdir -p ./DividendCash-binaries/${VERSION}

# Build Dependencies
echo ""
Expand All @@ -266,39 +266,39 @@ then
mkdir -p inputs
wget -N -P inputs $osslPatchUrl
wget -N -P inputs $osslTarUrl
make -C ../dividendcash/depends download SOURCES_PATH=`pwd`/cache/common
make -C ../DividendCash/depends download SOURCES_PATH=`pwd`/cache/common

# Linux
if [[ $linux = true ]]
then
echo ""
echo "Compiling ${VERSION} Linux"
echo ""
./bin/gbuild -j ${proc} -m ${mem} --commit dividendcash=${COMMIT} --url dividendcash=${url} ../dividendcash/contrib/gitian-descriptors/gitian-linux.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-linux --destination ../gitian.sigs/ ../dividendcash/contrib/gitian-descriptors/gitian-linux.yml
mv build/out/dividendcash-*.tar.gz build/out/src/dividendcash-*.tar.gz ../dividendcash-binaries/${VERSION}
./bin/gbuild -j ${proc} -m ${mem} --commit dividendcash=${COMMIT} --url dividendcash=${url} ../DividendCash/contrib/gitian-descriptors/gitian-linux.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-linux --destination ../gitian.sigs/ ../DividendCash/contrib/gitian-descriptors/gitian-linux.yml
mv build/out/dividendcash-*.tar.gz build/out/src/dividendcash-*.tar.gz ../DividendCash-binaries/${VERSION}
fi
# Windows
if [[ $windows = true ]]
then
echo ""
echo "Compiling ${VERSION} Windows"
echo ""
./bin/gbuild -j ${proc} -m ${mem} --commit dividendcash=${COMMIT} --url dividendcash=${url} ../dividendcash/contrib/gitian-descriptors/gitian-win.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-win-unsigned --destination ../gitian.sigs/ ../dividendcash/contrib/gitian-descriptors/gitian-win.yml
./bin/gbuild -j ${proc} -m ${mem} --commit dividendcash=${COMMIT} --url dividendcash=${url} ../DividendCash/contrib/gitian-descriptors/gitian-win.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-win-unsigned --destination ../gitian.sigs/ ../DividendCash/contrib/gitian-descriptors/gitian-win.yml
mv build/out/dividendcash-*-win-unsigned.tar.gz inputs/dividendcash-win-unsigned.tar.gz
mv build/out/dividendcash-*.zip build/out/dividendcash-*.exe ../dividendcash-binaries/${VERSION}
mv build/out/dividendcash-*.zip build/out/dividendcash-*.exe ../DividendCash-binaries/${VERSION}
fi
# Mac OSX
if [[ $osx = true ]]
then
echo ""
echo "Compiling ${VERSION} Mac OSX"
echo ""
./bin/gbuild -j ${proc} -m ${mem} --commit dividendcash=${COMMIT} --url dividendcash=${url} ../dividendcash/contrib/gitian-descriptors/gitian-osx.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-osx-unsigned --destination ../gitian.sigs/ ../dividendcash/contrib/gitian-descriptors/gitian-osx.yml
./bin/gbuild -j ${proc} -m ${mem} --commit dividendcash=${COMMIT} --url dividendcash=${url} ../DividendCash/contrib/gitian-descriptors/gitian-osx.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-osx-unsigned --destination ../gitian.sigs/ ../DividendCash/contrib/gitian-descriptors/gitian-osx.yml
mv build/out/dividendcash-*-osx-unsigned.tar.gz inputs/dividendcash-osx-unsigned.tar.gz
mv build/out/dividendcash-*.tar.gz build/out/dividendcash-*.dmg ../dividendcash-binaries/${VERSION}
mv build/out/dividendcash-*.tar.gz build/out/dividendcash-*.dmg ../DividendCash-binaries/${VERSION}
fi
popd

Expand All @@ -325,27 +325,27 @@ then
echo ""
echo "Verifying v${VERSION} Linux"
echo ""
./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-linux ../dividendcash/contrib/gitian-descriptors/gitian-linux.yml
./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-linux ../DividendCash/contrib/gitian-descriptors/gitian-linux.yml
# Windows
echo ""
echo "Verifying v${VERSION} Windows"
echo ""
./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-win-unsigned ../dividendcash/contrib/gitian-descriptors/gitian-win.yml
./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-win-unsigned ../DividendCash/contrib/gitian-descriptors/gitian-win.yml
# Mac OSX
echo ""
echo "Verifying v${VERSION} Mac OSX"
echo ""
./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-osx-unsigned ../dividendcash/contrib/gitian-descriptors/gitian-osx.yml
./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-osx-unsigned ../DividendCash/contrib/gitian-descriptors/gitian-osx.yml
# Signed Windows
echo ""
echo "Verifying v${VERSION} Signed Windows"
echo ""
./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-osx-signed ../dividendcash/contrib/gitian-descriptors/gitian-osx-signer.yml
./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-osx-signed ../DividendCash/contrib/gitian-descriptors/gitian-osx-signer.yml
# Signed Mac OSX
echo ""
echo "Verifying v${VERSION} Signed Mac OSX"
echo ""
./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-osx-signed ../dividendcash/contrib/gitian-descriptors/gitian-osx-signer.yml
./bin/gverify -v -d ../gitian.sigs/ -r ${VERSION}-osx-signed ../DividendCash/contrib/gitian-descriptors/gitian-osx-signer.yml
popd
fi

Expand All @@ -360,20 +360,20 @@ then
echo ""
echo "Signing ${VERSION} Windows"
echo ""
./bin/gbuild -i --commit signature=${COMMIT} ../dividendcash/contrib/gitian-descriptors/gitian-win-signer.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-win-signed --destination ../gitian.sigs/ ../dividendcash/contrib/gitian-descriptors/gitian-win-signer.yml
mv build/out/dividendcash-*win64-setup.exe ../dividendcash-binaries/${VERSION}
mv build/out/dividendcash-*win32-setup.exe ../dividendcash-binaries/${VERSION}
./bin/gbuild -i --commit signature=${COMMIT} ../DividendCash/contrib/gitian-descriptors/gitian-win-signer.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-win-signed --destination ../gitian.sigs/ ../DividendCash/contrib/gitian-descriptors/gitian-win-signer.yml
mv build/out/dividendcash-*win64-setup.exe ../DividendCash-binaries/${VERSION}
mv build/out/dividendcash-*win32-setup.exe ../DividendCash-binaries/${VERSION}
fi
# Sign Mac OSX
if [[ $osx = true ]]
then
echo ""
echo "Signing ${VERSION} Mac OSX"
echo ""
./bin/gbuild -i --commit signature=${COMMIT} ../dividendcash/contrib/gitian-descriptors/gitian-osx-signer.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-osx-signed --destination ../gitian.sigs/ ../dividendcash/contrib/gitian-descriptors/gitian-osx-signer.yml
mv build/out/dividendcash-osx-signed.dmg ../dividendcash-binaries/${VERSION}/dividendcash-${VERSION}-osx.dmg
./bin/gbuild -i --commit signature=${COMMIT} ../DividendCash/contrib/gitian-descriptors/gitian-osx-signer.yml
./bin/gsign -p $signProg --signer $SIGNER --release ${VERSION}-osx-signed --destination ../gitian.sigs/ ../DividendCash/contrib/gitian-descriptors/gitian-osx-signer.yml
mv build/out/dividendcash-osx-signed.dmg ../DividendCash-binaries/${VERSION}/dividendcash-${VERSION}-osx.dmg
fi
popd

Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-linux.yml
Expand Up @@ -29,7 +29,7 @@ packages:
- "python"
reference_datetime: "2015-06-01 00:00:00"
remotes:
- "url": "https://github.com/dividendcash/DividendCash.git"
- "url": "https://github.com/dividendcash-project/dividendcash.git"
"dir": "DividendCash"
files: []
script: |
Expand Down
6 changes: 3 additions & 3 deletions contrib/gitian-descriptors/gitian-osx.yml
Expand Up @@ -5,7 +5,7 @@ suites:
- "trusty"
architectures:
- "amd64"
packages:
packages:
- "ca-certificates"
- "curl"
- "g++"
Expand All @@ -29,7 +29,7 @@ packages:
- "fonts-tuffy"
remotes:
- "url": "https://github.com/dividendcash-project/dividendcash.git"
"dir": "dividendcash"
"dir": "DividendCash"
files:
- "MacOSX10.11.sdk.tar.gz"
script: |
Expand Down Expand Up @@ -83,7 +83,7 @@ script: |
create_per-host_faketime_wrappers "2000-01-01 12:00:00"
export PATH=${WRAP_DIR}:${PATH}
cd dividendcash
cd DividendCash
BASEPREFIX=`pwd`/depends
mkdir -p ${BASEPREFIX}/SDKs
Expand Down
2 changes: 1 addition & 1 deletion contrib/gitian-descriptors/gitian-rpi2.yml
Expand Up @@ -21,7 +21,7 @@ packages:
reference_datetime: "2015-06-01 00:00:00"
remotes:
- "url": "https://github.com/dividendcash-project/dividendcash.git"
"dir": "dividendcash"
"dir": "DividendCash"
files:
- "raspberrypi-tools.tar.gz"
script: |
Expand Down
2 changes: 1 addition & 1 deletion contrib/init/dividendcashd.conf
@@ -1,4 +1,4 @@
description "Dividendcash Core Daemon"
description "DividendCash Core Daemon"

start on runlevel [2345]
stop on starting rc RUNLEVEL=[016]
Expand Down
2 changes: 1 addition & 1 deletion contrib/init/dividendcashd.init
@@ -1,6 +1,6 @@
#!/bin/bash
#
# dividendcashd The Dividendcash core server.
# dividendcashd The DividendCash core server.
#
#
# chkconfig: 345 80 20
Expand Down
4 changes: 2 additions & 2 deletions contrib/init/dividendcashd.openrc
Expand Up @@ -16,8 +16,8 @@ BITCOIND_USER=${BITCOIND_USER:-dividendcash}
BITCOIND_GROUP=${BITCOIND_GROUP:-dividendcash}
BITCOIND_BIN=${BITCOIND_BIN:-/usr/bin/dividendcashd}

name="Dividendcash Core Daemon"
description="Dividendcash crypto-currency p2p network daemon"
name="DividendCash Core Daemon"
description="DividendCash crypto-currency p2p network daemon"

command="/usr/bin/dividendcashd"
command_args="-pid=\"${BITCOIND_PIDFILE}\" \
Expand Down
2 changes: 1 addition & 1 deletion contrib/init/dividendcashd.service
@@ -1,5 +1,5 @@
[Unit]
Description=Dividendcash's distributed currency daemon
Description=DividendCash's distributed currency daemon
After=network.target
[Service]
Expand Down
2 changes: 1 addition & 1 deletion contrib/linearize/linearize-hashes.py
Expand Up @@ -96,7 +96,7 @@ def get_block_hashes(settings, max_blocks_per_call=10000):
if 'host' not in settings:
settings['host'] = '127.0.0.1'
if 'port' not in settings:
settings['port'] = 51473
settings['port'] = 19998
if 'min_height' not in settings:
settings['min_height'] = 0
if 'max_height' not in settings:
Expand Down

0 comments on commit ff24280

Please sign in to comment.