xbps-custom: Fixed security certificate verification

This commit is contained in:
Tuxliban Torvalds 2022-01-15 17:52:10 -06:00
parent 981b5efe13
commit 593b6ae5ca
4 changed files with 9 additions and 13 deletions

View File

@ -7,6 +7,9 @@ post)
for f in usr/bin/xbps-*; do
ln -sr $f usr/sbin/$(basename $f)
done
# Fix certificate verification issue
ln -s /etc/ssl/certs.pem /etc/ssl/cert.pem
fi
;;
esac

View File

@ -1,12 +0,0 @@
To correct the certificate verification problem, do either of the following two suggestions:
# echo "export SSL_CA_CERT_FILE=/etc/ssl/certs.pem" >> /etc/profile
$ echo "export SSL_CA_CERT_FILE=/etc/ssl/certs.pem" >> "$HOME"/.profile
Once you have done the above, restart the session for the change to take effect.
NOTE:
The first option will be effective for the entire system and will work for all users who use the computer.
The second option will only work for the current user session.

View File

@ -0,0 +1,5 @@
case "${ACTION}" in
pre)
unlink /etc/ssl/cert.pem
;;
esac

View File

@ -1,7 +1,7 @@
# Template file for 'xbps'
pkgname=xbps
version=21.1
revision=3
revision=4
archs="i686 x86_64 x86_64-musl"
bootstrap=yes
build_style=configure