Debian package for komodo

1. tweaks in control file (name, url, git, etc)
2. package script
3. changelog
This commit is contained in:
Max Lapan
2017-07-23 16:34:31 +02:00
parent ef350c34e6
commit 9069e4addf
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.

View File

@@ -1,21 +1,21 @@
Source: zcash
Source: komodo
Section: utils
Priority: optional
Maintainer: Zcash Company <team@z.cash>
Homepage: https://z.cash
Homepage: https://komodoplatform.com/
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: https://github.com/zcash/zcash.git
Vcs-Browser: https://github.com/zcash/zcash
Vcs-Git: https://github.com/jl777/komodo
Vcs-Browser: https://github.com/jl777/komodo
Package: zcash
Package: komodo
Architecture: amd64
Depends: ${shlibs:Depends}
Description: HTTPS for money.
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.
This package provides the daemon, komodod, and the CLI tool,
komodo-cli, to interact with the daemon.

View File

@@ -5,8 +5,8 @@
set -e
set -x
BUILD_PATH="/tmp/zcbuild"
PACKAGE_NAME="zcash"
BUILD_PATH="/tmp/kmdbuild"
PACKAGE_NAME="komodo"
SRC_PATH=`pwd`
SRC_DEB=$SRC_PATH/contrib/debian
SRC_DOC=$SRC_PATH/doc
@@ -17,7 +17,7 @@ if [ ! -d $BUILD_PATH ]; then
mkdir $BUILD_PATH
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"
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_DOC=$BUILD_DIR/usr/share/doc/$PACKAGE_NAME
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/*
# Package maintainer scripts (currently empty)
@@ -37,32 +37,32 @@ chmod 0755 -R $BUILD_DIR/*
#cp $SRC_DEB/preinst $BUILD_DIR/DEBIAN
#cp $SRC_DEB/prerm $BUILD_DIR/DEBIAN
# Copy binaries
cp $SRC_PATH/src/zcashd $DEB_BIN
cp $SRC_PATH/src/zcash-cli $DEB_BIN
cp $SRC_PATH/zcutil/fetch-params.sh $DEB_BIN/zcash-fetch-params
cp $SRC_PATH/src/komodod $DEB_BIN
cp $SRC_PATH/src/komodo-cli $DEB_BIN
cp $SRC_PATH/zcutil/fetch-params.sh $DEB_BIN/komodo-fetch-params
# Copy docs
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/copyright $DEB_DOC
cp -r $SRC_DEB/examples $DEB_DOC
# Copy manpages
cp $SRC_DOC/man/zcashd.1 $DEB_MAN
cp $SRC_DOC/man/zcash-cli.1 $DEB_MAN
cp $SRC_DOC/man/zcash-fetch-params.1 $DEB_MAN
# Copy bash completion files
cp $SRC_PATH/contrib/bitcoind.bash-completion $DEB_CMP/zcashd
cp $SRC_PATH/contrib/bitcoin-cli.bash-completion $DEB_CMP/zcash-cli
#cp $SRC_DOC/man/zcashd.1 $DEB_MAN
#cp $SRC_DOC/man/zcash-cli.1 $DEB_MAN
#cp $SRC_DOC/man/zcash-fetch-params.1 $DEB_MAN
# Copy bash completion files TODO: fix them for komodo
#cp $SRC_PATH/contrib/bitcoind.bash-completion $DEB_CMP/komodod
#cp $SRC_PATH/contrib/bitcoin-cli.bash-completion $DEB_CMP/komodod-cli
# Gzip files
gzip --best -n $DEB_DOC/changelog
gzip --best -n $DEB_DOC/changelog.Debian
gzip --best -n $DEB_MAN/zcashd.1
gzip --best -n $DEB_MAN/zcash-cli.1
gzip --best -n $DEB_MAN/zcash-fetch-params.1
#gzip --best -n $DEB_MAN/zcashd.1
#gzip --best -n $DEB_MAN/zcash-cli.1
#gzip --best -n $DEB_MAN/zcash-fetch-params.1
cd $SRC_PATH/contrib
# 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
# Create the Debian package