| git.druid.rocks | index | druid520 | ports | ports/ | ssl/ | libressl/ | del.sh |
ports/ssl/libressl/del.sh
set -e
# add.sh's own "make clean || true" keeps the checkout around normally
# (unlike gnu-m4/curl-family, which rm -rf it outright) so a plain
# "make uninstall" is usually enough - but if the stage was cleaned out
# from under it (mp clean, or a build that never finished), there's
# nothing to configure/uninstall from. re-clone in that case rather than
# hand-listing libressl's own ~3400 installed files.
if ! test -d libressl; then
git clone https://github.com/libressl/portable.git libressl
cd libressl
./autogen.sh || { cp ../ltmain.sh . 2>/dev/null && ./autogen.sh; }
./configure --prefix=$MP_PREFIX
else
cd libressl
fi
make uninstall
cd ..
rm -f $MP_PREFIX/etc/ssl/certs/ca-certificates.crt
rm -rf libressl