diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..78b8fce6 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +electrum-zcash (3.1.3~rc2-0ppa1~ubuntu18.04.1) bionic; urgency=medium + + * Port to ppa + + -- Maksym Yuzhakov Sun, 18 Mar 2018 00:09:53 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..f993f002 --- /dev/null +++ b/debian/control @@ -0,0 +1,76 @@ +Source: electrum-zcash +Section: utils +Priority: optional +Maintainer: Maksym Yuzhakov +Build-Depends: + debhelper (>= 9), + dh-python, + python3-all-dev, + python3-setuptools, + pyqt5-dev-tools, + python3-pyaes (>= 1.6.1), + python3-ecdsa (>= 0.10), + python3-pbkdf2 (>= 1.3), + python3-requests (>= 2.2.1), + python3-qrcode (>= 5.3), + python3-protobuf (>= 3.0.0), + python3-dnspython (>= 1.11.1), + python3-jsonrpclib-pelix (>= 0.3.1), + python3-socks (>= 1.6.5), + python3-pyblake2 (>=0.9.3), +Standards-Version: 4.1.3 +Homepage: https://github.com/zebra-lucky/electrum-zcash +X-Python3-Version: >= 3.4 + +Package: python3-electrum-zcash +Architecture: all +Section: python +Depends: + trezor (>= 0.9.1), + python3-trezor (>= 0.9.1), + keepkey (>= 4.0.2), + python3-keepkey (>= 4.0.2), + python3-btchip (>= 0.1.26), + ${misc:Depends}, + ${python3:Depends}, +Description: Easy to use Zcash client - Python module + This package provides a lightweight Zcash client which protects + you from losing your Zcash coins in a backup mistake or computer + failure. Also, Electrum-Zcash does not require waiting time because it does + not download the Zcash blockchain. + . + This package provides the "electrum_zcash" Python 3 module which can be used + to access a Zcash wallet from Python programs. + +Package: electrum-zcash +Architecture: all +Depends: + ${misc:Depends}, + ${python3:Depends}, + python3-electrum-zcash (= ${binary:Version}), +Recommends: python3-pyqt5 +Description: Easy to use Zcash client + This package provides a lightweight Zcash client which protects + you from losing your Zcash coins in a backup mistake or computer + failure. Also, Electrum-Zcash does not require waiting time because it does + not download the Zcash blockchain. + . + Features of Electrum-Zcash: + . + * Instant on: Your client does not download the blockchain. It uses a + network of specialized servers that index the blockchain. + * Forgiving: Your wallet can be recovered from a secret seed. + * Safe: Your seed and private keys are encrypted on your hard drive. + They are never sent to the servers. + * Low trust: Information received from the servers is verified using + SPV. Servers are authenticated using SSL. + * No downtimes: Your client is not tied to a particular server; it + will switch instantly if your server is down. + * Ubiquitous: You can use the same wallet on different computers, they + will synchronize automatically. + * Cold Storage: Sign transactions from a computer that is always + offline. Broadcast them using a machine that does not have your keys. + * Reachable: You can export your private keys into other Zcash + clients. + * Established: Electrum-Zcash is open source and was first released in + November 2011. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..f8152d0c --- /dev/null +++ b/debian/copyright @@ -0,0 +1,44 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: electrum-zcash +Source: https://github.com/zebra-lucky/electrum-zcash/ + +Files: * +Copyright: Electrum Team +License: Expat +Comment: + Various authors are described in the AUTHORS file, including parts on + which they worked and hold license. + +Files: lib/* +Copyright: 2011-2018 Thomas Voegtlin +License: Expat + +Files: plugins/* +Copyright: 2014-2018 Thomas Voegtlin +License: Expat + +Files: debian/* +Copyright: 2018 Maksym Yuzhakov +License: Expat + +License: Expat + The MIT License (MIT) + . + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + . + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/debian/electrum-zcash.1 b/debian/electrum-zcash.1 new file mode 100644 index 00000000..c1f448a2 --- /dev/null +++ b/debian/electrum-zcash.1 @@ -0,0 +1,75 @@ +.TH electrum-zcash 1 "23 June 2013" "electrum-zcash" +.SH NAME +electrum-zcash \- Lightweight Zcash client +.SH SYNOPSIS +.B electrum-zcash [options] command [options] +.SH DESCRIPTION +.PP +Electrum-Zcash is a lightweight Zcash client. +.br +Electrum-Zcash protects from losing zcash coins in a backup mistake or computer +failure. It allows recovery of wallet from a passphrase which you can +learn by heart or write it down on a paper. +.br +Since electrum-zcash does not download the entire blockchain there +is no waiting time when the client is started. + +.TP +\fB\-g GUI, \-\-gui=GUI\fR +Select user interface, possible values are qt, lite, gtk or text +.TP +\fB\-w WALLET_PATH, \-\-wallet=WALLET_PATH\fR +Use wallet from WALLET_PATH, default is default_wallet.dat. +.TP +\fB\-o, \-\-offline\fR +Remain offline. +.TP +\fB\-a, \-\-all\fR +Show all addresses. +.TP +\fB\-b, \-\-balance\fR +Show the balance of listed addresses +.TP +\fB\-l, \-\-labels\fR +Show the labels of listed addresses +.TP +\fB\-f TX_FEE, \-\-fee=TX_FEE\fR +set tx fee +.TP +\fB\-F FROM_ADDR, \-\-fromad +dr=FROM_ADDR\fR +.PP +set source address for payto/mktx. if it isn't in the wallet, it will +ask for the private key unless supplied in the format +public_key:private_key. It's not saved in the wallet. +.TP +\fB\-c CHANGE_ADDR, \-\-changeaddr=CHANGE_ADDR\fR +.PP +set the change address for payto/mktx. default is a spare address, or +the source address if it's not in the wallet. +.TP +\fB\-s SERVER, \-\-server=SERVER\fR +set server host:port:protocol, where protocol is t or h +.TP +\fB\-p PROXY, \-\-proxy=PROXY\fR +set proxy [type:]host[:port], where type is socks4,socks5 or http +.TP +\fB\-v, \-\-verbose\fR +show debugging information +.TP +\fB\-P, \-\-portable\fR +portable wallet +.TP +\fB\-L LANGUAGE, \-\-lang=LANGUAGE\fR +default language used in GUI +.TP +\fB\-u, \-\-usb\fR +Turn on support for hardware wallets (EXPERIMENTAL). +.SH AUTHORS +Electrum-Zcash client was initially written by ThomasV +<\fIthomasv@gitorious\fR> +.br +This manual page was written by Vasudev Kamath +<\fIkamathvasudev@gmail.com\fR> for Debian Project (but can be used by +others). + diff --git a/debian/electrum-zcash.manpages b/debian/electrum-zcash.manpages new file mode 100644 index 00000000..d74282cd --- /dev/null +++ b/debian/electrum-zcash.manpages @@ -0,0 +1 @@ +debian/electrum-zcash.1 diff --git a/debian/patches/fix-keepkey-with-trezor.diff b/debian/patches/fix-keepkey-with-trezor.diff new file mode 100644 index 00000000..711a1675 --- /dev/null +++ b/debian/patches/fix-keepkey-with-trezor.diff @@ -0,0 +1,13 @@ +Index: electrum-zcash/electrum-zcash +=================================================================== +--- electrum-zcash.orig/electrum-zcash 2018-06-12 22:15:35.699293303 +0300 ++++ electrum-zcash/electrum-zcash 2018-06-12 22:20:02.122480853 +0300 +@@ -26,6 +26,8 @@ + import os + import sys + ++os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION']='python' ++ + script_dir = os.path.dirname(os.path.realpath(__file__)) + is_bundle = getattr(sys, 'frozen', False) + is_local = not is_bundle and os.path.exists(os.path.join(script_dir, "electrum-zcash.desktop")) diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 00000000..3c948cb9 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +fix-keepkey-with-trezor.diff diff --git a/debian/py3dist-overrides b/debian/py3dist-overrides new file mode 100644 index 00000000..c748735a --- /dev/null +++ b/debian/py3dist-overrides @@ -0,0 +1,10 @@ +pyaes python3-pyaes (>= 1.6.1) +ecdsa python3-ecdsa (>= 0.10) +pbkdf2 python3-pbkdf2 (>= 1.3) +requests python3-requests (>= 2.2.1) +qrcode python3-qrcode (>= 5.3) +protobuf python3-protobuf (>= 3.0.0) +dnspython python3-dnspython (>= 1.11.1) +jsonrpclib-pelix python3-jsonrpclib-pelix (>= 0.3.1) +PySocks python3-socks (>= 1.6.5) +pyblake2 python3-pyblake2 (>= 0.9.3) diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..49e185e9 --- /dev/null +++ b/debian/rules @@ -0,0 +1,24 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=electrum-zcash + +%: + dh $@ --with python3 --buildsystem=pybuild + +override_dh_installchangelogs:: + dh_installchangelogs -k RELEASE-NOTES + +override_dh_auto_build:: + pyrcc5 icons.qrc -o gui/qt/icons_rc.py + dh_auto_build + +override_dh_auto_install:: + dh_auto_install + mkdir -p debian/electrum-zcash/usr/bin \ + debian/electrum-zcash/usr/share + mv debian/python3-electrum-zcash/usr/bin \ + debian/electrum-zcash/usr + mv debian/python3-electrum-zcash/usr/share/applications \ + debian/electrum-zcash/usr/share + mv debian/python3-electrum-zcash/usr/share/pixmaps \ + debian/electrum-zcash/usr/share diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..46ebe026 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) \ No newline at end of file diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 00000000..d81db3f8 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore="^[^/]+.egg-info/" diff --git a/lib/version.py b/lib/version.py index 3c566b04..cb2d8af5 100644 --- a/lib/version.py +++ b/lib/version.py @@ -1,4 +1,4 @@ -ELECTRUM_VERSION = '3.1.3b1' # version of the client package +ELECTRUM_VERSION = '3.1.3b2' # version of the client package PROTOCOL_VERSION = '1.2' # protocol version requested # The hash of the mnemonic seed must begin with this