Skip to content

Commit

Permalink
Always require OpenSSL 1.0 on Debian
Browse files Browse the repository at this point in the history
auto-detecting whether it's called libssl-dev or libssl1.0-dev
  • Loading branch information
vuvova committed Aug 8, 2017
1 parent 1093c0f commit b738152
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions debian/autobake-deb.sh
Expand Up @@ -44,6 +44,15 @@ else
sed -i -e "s/\\\${MAYBE_LIBCRACK}/${MAYBE_LIBCRACK}/g" debian/control
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.
#
echo "Incrementing changelog and starting build scripts"
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Expand Up @@ -17,7 +17,7 @@ Build-Depends: bison,
libncurses5-dev (>= 5.0-6~),
libpam0g-dev,
libreadline-gplv2-dev,
libssl-dev,
${LIBSSL},
lsb-release,
perl (>= 5.6.0),
po-debconf,
Expand Down

0 comments on commit b738152

Please sign in to comment.