Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6633 from EOSIO/revise-deb-package-dependencies
Browse files Browse the repository at this point in the history
Set minimum dependencies for Debian packages.
  • Loading branch information
spoonincode authored Jan 29, 2019
2 parents e25241b + 0d4d4bc commit 4e9e327
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion scripts/generate_deb.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,31 @@ fi

NAME="${PROJECT}_${VERSION_NO_SUFFIX}-${RELEASE}_amd64"

if [[ -f /etc/upstream-release/lsb-release ]]; then
source /etc/upstream-release/lsb-release
elif [[ -f /etc/lsb-release ]]; then
source /etc/lsb-release
else
echo "Unrecognized Debian derivative. Not generating .deb file."
exit 1
fi

if [ ${DISTRIB_RELEASE} = "16.04" ]; then
LIBSSL="libssl1.0.0"
elif [ ${DISTRIB_RELEASE} = "18.04" ]; then
LIBSSL="libssl1.1"
else
echo "Unrecognized Ubuntu version. Update generate_deb.sh. Not generating .deb file."
exit 1
fi

mkdir -p ${PROJECT}/DEBIAN
chmod 0755 ${PROJECT}/DEBIAN
echo "Package: ${PROJECT}
Version: ${VERSION_NO_SUFFIX}-${RELEASE}
Section: devel
Priority: optional
Depends: libbz2-dev (>= 1.0), libssl-dev (>= 1.0), libgmp3-dev, build-essential, libicu-dev, zlib1g-dev, libtinfo5
Depends: libc6, libgcc1, ${LIBSSL}, libstdc++6, libtinfo5, zlib1g
Architecture: amd64
Homepage: ${URL}
Maintainer: ${EMAIL}
Expand Down

0 comments on commit 4e9e327

Please sign in to comment.