2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-22 07:34:19 +00:00

Fix debian build process

This commit is contained in:
Jarrod Johnson 2019-03-26 13:49:54 -04:00
parent 70690517de
commit 11ffa7a091

View File

@ -2,6 +2,7 @@
cd `dirname $0`
PKGNAME=$(basename $(pwd))
DPKGNAME=$(basename $(pwd) | sed -e s/_/-/)
OPKGNAME=$(basename $(pwd) | sed -e s/_/-/)
if grep wheezy /etc/os-release; then
DPKGNAME=python-$DPKGNAME
fi
@ -27,9 +28,9 @@ python setup.py sdist > /dev/null 2>&1
py2dsc dist/*.tar.gz
shopt -s extglob
cd deb_dist/!(*.orig)/
if [ "$DPKGNAME" = "confluent-server" ]; then
if [ "$OPKGNAME" = "confluent-server" ]; then
if grep wheezy /etc/os-release; then
sed -i 's/^\(Depends:.*\)/\1, confluent-client, python-lxml, python-eficompressor, python-pycryptodomex/' debian/control
sed -i 's/^\(Depends:.*\)/\1, python-confluent-client, python-lxml, python-eficompressor, python-pycryptodomex/' debian/control
else
sed -i 's/^\(Depends:.*\)/\1, confluent-client, python-lxml, python-eficompressor, python-pycryptodome/' debian/control
fi
@ -41,10 +42,10 @@ if [ "$DPKGNAME" = "confluent-server" ]; then
fi
head -n -1 debian/control > debian/control1
mv debian/control1 debian/control
echo 'Provides: python-'$DPKGNAME >> debian/control
#echo 'Provides: python-'$DPKGNAME >> debian/control
#echo 'Conflicts: python-'$DPKGNAME >> debian/control
echo 'Replaces: python-'$DPKGNAME' (<<2)' >> debian/control
echo 'Breaks: python-'$DPKGNAME' (<<2)' >> debian/control
#echo 'Replaces: python-'$DPKGNAME' (<<2)' >> debian/control
#echo 'Breaks: python-'$DPKGNAME' (<<2)' >> debian/control
dpkg-buildpackage -rfakeroot -uc -us -i
if [ $? -ne 0 ]; then