Merge pull request #452 from Shmuma/master

Debian package for komodo
This commit is contained in:
jl777
2017-07-23 16:55:10 +02:00
committed by GitHub
3 changed files with 25 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
zcash (1.0.8) jessie; urgency=medium komodo (1.0.8) jessie; urgency=medium
* 1.0.8 release. * 1.0.8 release.

View File

@@ -1,21 +1,21 @@
Source: zcash Source: komodo
Section: utils Section: utils
Priority: optional Priority: optional
Maintainer: Zcash Company <team@z.cash> Maintainer: Zcash Company <team@z.cash>
Homepage: https://z.cash Homepage: https://komodoplatform.com/
Build-Depends: autoconf, automake, bsdmainutils, build-essential, Build-Depends: autoconf, automake, bsdmainutils, build-essential,
git, g++-multilib, libc6-dev, libtool, git, g++-multilib, libc6-dev, libtool,
m4, ncurses-dev, pkg-config, python, m4, ncurses-dev, pkg-config, python,
unzip, wget, zlib1g-dev unzip, wget, zlib1g-dev
Vcs-Git: https://github.com/zcash/zcash.git Vcs-Git: https://github.com/jl777/komodo
Vcs-Browser: https://github.com/zcash/zcash Vcs-Browser: https://github.com/jl777/komodo
Package: zcash Package: komodo
Architecture: amd64 Architecture: amd64
Depends: ${shlibs:Depends} Depends: ${shlibs:Depends}
Description: HTTPS for money. Description: HTTPS for money.
Based on Bitcoin's code, it intends to offer a far higher standard Based on Bitcoin's code, it intends to offer a far higher standard
of privacy and anonymity through a sophisticiated zero-knowledge of privacy and anonymity through a sophisticiated zero-knowledge
proving scheme which preserves confidentiality of transaction metadata. proving scheme which preserves confidentiality of transaction metadata.
This package provides the daemon, zcashd, and the CLI tool, This package provides the daemon, komodod, and the CLI tool,
zcash-cli, to interact with the daemon. komodo-cli, to interact with the daemon.

View File

@@ -5,8 +5,8 @@
set -e set -e
set -x set -x
BUILD_PATH="/tmp/zcbuild" BUILD_PATH="/tmp/kmdbuild"
PACKAGE_NAME="zcash" PACKAGE_NAME="komodo"
SRC_PATH=`pwd` SRC_PATH=`pwd`
SRC_DEB=$SRC_PATH/contrib/debian SRC_DEB=$SRC_PATH/contrib/debian
SRC_DOC=$SRC_PATH/doc SRC_DOC=$SRC_PATH/doc
@@ -17,7 +17,7 @@ if [ ! -d $BUILD_PATH ]; then
mkdir $BUILD_PATH mkdir $BUILD_PATH
fi fi
PACKAGE_VERSION=$($SRC_PATH/src/zcashd --version | grep version | cut -d' ' -f4 | tr -d v) PACKAGE_VERSION=$($SRC_PATH/src/komodod --version | grep version | cut -d' ' -f4 | tr -d v)
BUILD_DIR="$BUILD_PATH/$PACKAGE_NAME-$PACKAGE_VERSION-amd64" BUILD_DIR="$BUILD_PATH/$PACKAGE_NAME-$PACKAGE_VERSION-amd64"
if [ -d $BUILD_DIR ]; then if [ -d $BUILD_DIR ]; then
@@ -28,7 +28,7 @@ DEB_BIN=$BUILD_DIR/usr/bin
DEB_CMP=$BUILD_DIR/usr/share/bash-completion/completions DEB_CMP=$BUILD_DIR/usr/share/bash-completion/completions
DEB_DOC=$BUILD_DIR/usr/share/doc/$PACKAGE_NAME DEB_DOC=$BUILD_DIR/usr/share/doc/$PACKAGE_NAME
DEB_MAN=$BUILD_DIR/usr/share/man/man1 DEB_MAN=$BUILD_DIR/usr/share/man/man1
mkdir -p $BUILD_DIR/DEBIAN $DEB_CMP $DEB_BIN $DEB_DOC $DEB_MAN mkdir -p $BUILD_DIR/DEBIAN $DEB_BIN $DEB_DOC
chmod 0755 -R $BUILD_DIR/* chmod 0755 -R $BUILD_DIR/*
# Package maintainer scripts (currently empty) # Package maintainer scripts (currently empty)
@@ -37,32 +37,32 @@ chmod 0755 -R $BUILD_DIR/*
#cp $SRC_DEB/preinst $BUILD_DIR/DEBIAN #cp $SRC_DEB/preinst $BUILD_DIR/DEBIAN
#cp $SRC_DEB/prerm $BUILD_DIR/DEBIAN #cp $SRC_DEB/prerm $BUILD_DIR/DEBIAN
# Copy binaries # Copy binaries
cp $SRC_PATH/src/zcashd $DEB_BIN cp $SRC_PATH/src/komodod $DEB_BIN
cp $SRC_PATH/src/zcash-cli $DEB_BIN cp $SRC_PATH/src/komodo-cli $DEB_BIN
cp $SRC_PATH/zcutil/fetch-params.sh $DEB_BIN/zcash-fetch-params cp $SRC_PATH/zcutil/fetch-params.sh $DEB_BIN/komodo-fetch-params
# Copy docs # Copy docs
cp $SRC_PATH/doc/release-notes/release-notes-1.0.0.md $DEB_DOC/changelog cp $SRC_PATH/doc/release-notes/release-notes-1.0.0.md $DEB_DOC/changelog
cp $SRC_DEB/changelog $DEB_DOC/changelog.Debian cp $SRC_DEB/changelog $DEB_DOC/changelog.Debian
cp $SRC_DEB/copyright $DEB_DOC cp $SRC_DEB/copyright $DEB_DOC
cp -r $SRC_DEB/examples $DEB_DOC cp -r $SRC_DEB/examples $DEB_DOC
# Copy manpages # Copy manpages
cp $SRC_DOC/man/zcashd.1 $DEB_MAN #cp $SRC_DOC/man/zcashd.1 $DEB_MAN
cp $SRC_DOC/man/zcash-cli.1 $DEB_MAN #cp $SRC_DOC/man/zcash-cli.1 $DEB_MAN
cp $SRC_DOC/man/zcash-fetch-params.1 $DEB_MAN #cp $SRC_DOC/man/zcash-fetch-params.1 $DEB_MAN
# Copy bash completion files # Copy bash completion files TODO: fix them for komodo
cp $SRC_PATH/contrib/bitcoind.bash-completion $DEB_CMP/zcashd #cp $SRC_PATH/contrib/bitcoind.bash-completion $DEB_CMP/komodod
cp $SRC_PATH/contrib/bitcoin-cli.bash-completion $DEB_CMP/zcash-cli #cp $SRC_PATH/contrib/bitcoin-cli.bash-completion $DEB_CMP/komodod-cli
# Gzip files # Gzip files
gzip --best -n $DEB_DOC/changelog gzip --best -n $DEB_DOC/changelog
gzip --best -n $DEB_DOC/changelog.Debian gzip --best -n $DEB_DOC/changelog.Debian
gzip --best -n $DEB_MAN/zcashd.1 #gzip --best -n $DEB_MAN/zcashd.1
gzip --best -n $DEB_MAN/zcash-cli.1 #gzip --best -n $DEB_MAN/zcash-cli.1
gzip --best -n $DEB_MAN/zcash-fetch-params.1 #gzip --best -n $DEB_MAN/zcash-fetch-params.1
cd $SRC_PATH/contrib cd $SRC_PATH/contrib
# Create the control file # Create the control file
dpkg-shlibdeps $DEB_BIN/zcashd $DEB_BIN/zcash-cli dpkg-shlibdeps $DEB_BIN/komodod $DEB_BIN/komodo-cli
dpkg-gencontrol -P$BUILD_DIR dpkg-gencontrol -P$BUILD_DIR
# Create the Debian package # Create the Debian package