Generate Debian control file to fix shlibs lint
This commit is contained in:
parent
6a62bff3e0
commit
b50b4d5c38
|
@ -123,3 +123,6 @@ qa/pull-tester/test.*/*
|
|||
/doc/doxygen/
|
||||
|
||||
libzcashconsensus.pc
|
||||
|
||||
contrib/debian/files
|
||||
contrib/debian/substvars
|
||||
|
|
|
@ -3,16 +3,16 @@ 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
|
||||
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
|
||||
|
||||
Package: zcash
|
||||
Version: 1.0.4
|
||||
Architecture: amd64
|
||||
Depends: libgomp1
|
||||
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
|
|
@ -35,7 +35,6 @@ previous release:
|
|||
README.md
|
||||
src/clientversion.h
|
||||
configure.ac
|
||||
contrib/DEBIAN/control
|
||||
contrib/gitian-descriptors/gitian-linux.yml
|
||||
|
||||
Build and commit to update versions, and then perform the following commands:
|
||||
|
|
|
@ -8,7 +8,7 @@ set -x
|
|||
BUILD_PATH="/tmp/zcbuild"
|
||||
PACKAGE_NAME="zcash"
|
||||
SRC_PATH=`pwd`
|
||||
SRC_DEB=$SRC_PATH/contrib/DEBIAN
|
||||
SRC_DEB=$SRC_PATH/contrib/debian
|
||||
|
||||
umask 022
|
||||
|
||||
|
@ -16,7 +16,7 @@ if [ ! -d $BUILD_PATH ]; then
|
|||
mkdir $BUILD_PATH
|
||||
fi
|
||||
|
||||
PACKAGE_VERSION=$(grep Version $SRC_PATH/contrib/DEBIAN/control | cut -d: -f2 | tr -d ' ')
|
||||
PACKAGE_VERSION=$($SRC_PATH/src/zcashd --version | grep version | cut -d' ' -f4 | tr -d v)
|
||||
BUILD_DIR="$BUILD_PATH/$PACKAGE_NAME-$PACKAGE_VERSION-amd64"
|
||||
|
||||
if [ -d $BUILD_DIR ]; then
|
||||
|
@ -30,8 +30,6 @@ DEB_MAN=$BUILD_DIR/usr/share/man/man1
|
|||
mkdir -p $BUILD_DIR/DEBIAN $DEB_CMP $DEB_BIN $DEB_DOC $DEB_MAN
|
||||
chmod 0755 -R $BUILD_DIR/*
|
||||
|
||||
# Copy control file
|
||||
cp $SRC_DEB/control $BUILD_DIR/DEBIAN
|
||||
# Package maintainer scripts (currently empty)
|
||||
#cp $SRC_DEB/postinst $BUILD_DIR/DEBIAN
|
||||
#cp $SRC_DEB/postrm $BUILD_DIR/DEBIAN
|
||||
|
@ -60,6 +58,12 @@ 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-gencontrol -P$BUILD_DIR
|
||||
|
||||
# Create the Debian package
|
||||
fakeroot dpkg-deb --build $BUILD_DIR
|
||||
cp $BUILD_PATH/$PACKAGE_NAME-$PACKAGE_VERSION-amd64.deb $SRC_PATH
|
||||
|
|
Loading…
Reference in New Issue