Commit b7381526 authored by Sergei Golubchik's avatar Sergei Golubchik

Always require OpenSSL 1.0 on Debian

auto-detecting whether it's called libssl-dev or libssl1.0-dev
parent 1093c0f2
...@@ -44,6 +44,15 @@ else ...@@ -44,6 +44,15 @@ else
sed -i -e "s/\\\${MAYBE_LIBCRACK}/${MAYBE_LIBCRACK}/g" debian/control sed -i -e "s/\\\${MAYBE_LIBCRACK}/${MAYBE_LIBCRACK}/g" debian/control
fi fi
# same for OpenSSL. Use the correct dependency
if apt-cache madison libssl-dev|grep 'libssl-dev *| *1\.1\.' >/dev/null 2>&1
then
LIBSSL='libssl1.0-dev'
else
LIBSSL='libssl-dev'
fi
sed -i -e "s/\\\${LIBSSL}/${LIBSSL}/g" debian/control
# Adjust changelog, add new version. # Adjust changelog, add new version.
# #
echo "Incrementing changelog and starting build scripts" echo "Incrementing changelog and starting build scripts"
......
...@@ -17,7 +17,7 @@ Build-Depends: bison, ...@@ -17,7 +17,7 @@ Build-Depends: bison,
libncurses5-dev (>= 5.0-6~), libncurses5-dev (>= 5.0-6~),
libpam0g-dev, libpam0g-dev,
libreadline-gplv2-dev, libreadline-gplv2-dev,
libssl-dev, ${LIBSSL},
lsb-release, lsb-release,
perl (>= 5.6.0), perl (>= 5.6.0),
po-debconf, po-debconf,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment