Initial packaging for Debian
This adds some source files, a script and skeleton for building a Debian package that installs the zcash daemon and CLI tool. Also removes unused Bitcoin files.
This commit is contained in:
5
contrib/DEBIAN/changelog
Normal file
5
contrib/DEBIAN/changelog
Normal file
@@ -0,0 +1,5 @@
|
||||
zcash (1.0.0-rc1) UNRELEASED; urgency=medium
|
||||
|
||||
* Initial packaging for Debian.
|
||||
|
||||
-- Zcash Company <team@z.cash> Tue, 27 Sep 2016 12:05:17 -0700
|
||||
1
contrib/DEBIAN/compat
Normal file
1
contrib/DEBIAN/compat
Normal file
@@ -0,0 +1 @@
|
||||
9
|
||||
20
contrib/DEBIAN/control
Normal file
20
contrib/DEBIAN/control
Normal file
@@ -0,0 +1,20 @@
|
||||
Source: zcash
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: Zcash Company <team@z.cash>
|
||||
Homepage: https://z.cash
|
||||
Build-Depends: autoconf, automake, bsdmainutils, build-essential
|
||||
git, g++-multilib, libc6-dev, libtool
|
||||
m4, ncurses-dev, pkg-config, python
|
||||
unzip, wget, zlib1g-dev
|
||||
Vcs-Git: git@github.com:zcash/zcash.git
|
||||
Vcs-Browser: https://github.com/zcash/zcash
|
||||
Package: zcash
|
||||
Version: 1.0.0-rc1
|
||||
Architecture: amd64
|
||||
Description: Zcash is an implementation of the "Zerocash" protocol.
|
||||
Based on Bitcoin's code, it intends to offer a far higher standard
|
||||
of privacy and anonymity through a sophisticiated zero-knowledge
|
||||
proving scheme which preserves confidentiality of transaction metadata.
|
||||
This package provides the daemon, zcashd, and the CLI tool,
|
||||
zcash-cli, to interact with the daemon.
|
||||
37
contrib/DEBIAN/postinst
Executable file
37
contrib/DEBIAN/postinst
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
# postinst script for zcash
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
set -e
|
||||
set -x
|
||||
# summary of how this script can be called:
|
||||
# * <postinst> `configure' <most-recently-configured-version>
|
||||
# * <old-postinst> `abort-upgrade' <new version>
|
||||
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
|
||||
# <new-version>
|
||||
# * <postinst> `abort-remove'
|
||||
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
|
||||
# <failed-install-package> <version> `removing'
|
||||
# <conflicting-package> <version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
43
contrib/DEBIAN/postrm
Executable file
43
contrib/DEBIAN/postrm
Executable file
@@ -0,0 +1,43 @@
|
||||
#!/bin/sh
|
||||
# postrm script for zcash
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
#set -x
|
||||
# summary of how this script can be called:
|
||||
# * <postrm> `remove'
|
||||
# * <postrm> `purge'
|
||||
# * <old-postrm> `upgrade' <new-version>
|
||||
# * <new-postrm> `failed-upgrade' <old-version>
|
||||
# * <new-postrm> `abort-install'
|
||||
# * <new-postrm> `abort-install' <old-version>
|
||||
# * <new-postrm> `abort-upgrade' <old-version>
|
||||
# * <disappearer's-postrm> `disappear' <overwriter>
|
||||
# <overwriter-version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
case "$1" in
|
||||
upgrade|failed-upgrade)
|
||||
;;
|
||||
|
||||
remove|abort-install|abort-upgrade|disappear)
|
||||
;;
|
||||
|
||||
purge)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postrm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
37
contrib/DEBIAN/preinst
Executable file
37
contrib/DEBIAN/preinst
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
# preinst script for zcash
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
#set -x
|
||||
# summary of how this script can be called:
|
||||
# * <new-preinst> `install'
|
||||
# * <new-preinst> `install' <old-version>
|
||||
# * <new-preinst> `upgrade' <old-version>
|
||||
# * <old-preinst> `abort-upgrade' <new-version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
case "$1" in
|
||||
install)
|
||||
;;
|
||||
|
||||
upgrade)
|
||||
;;
|
||||
|
||||
abort-upgrade)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "preinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
41
contrib/DEBIAN/prerm
Executable file
41
contrib/DEBIAN/prerm
Executable file
@@ -0,0 +1,41 @@
|
||||
#!/bin/sh
|
||||
# prerm script for zcash
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <prerm> `remove'
|
||||
# * <old-prerm> `upgrade' <new-version>
|
||||
# * <new-prerm> `failed-upgrade' <old-version>
|
||||
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
|
||||
# * <deconfigured's-prerm> `deconfigure' `in-favour'
|
||||
# <package-being-installed> <version> `removing'
|
||||
# <conflicting-package> <version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
|
||||
case "$1" in
|
||||
remove|deconfigure)
|
||||
;;
|
||||
|
||||
upgrade)
|
||||
;;
|
||||
|
||||
failed-upgrade)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "prerm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
3
contrib/DEBIAN/zcash.install
Normal file
3
contrib/DEBIAN/zcash.install
Normal file
@@ -0,0 +1,3 @@
|
||||
usr/bin/zcashd
|
||||
usr/bin/zcash-cli
|
||||
usr/local/bin/zcash-fetch-params
|
||||
Reference in New Issue
Block a user