xbps-static-custom: Fixed security certificate verification

This commit is contained in:
Tuxliban Torvalds 2022-01-15 17:54:18 -06:00
parent 593b6ae5ca
commit ec590bb265
4 changed files with 9 additions and 10 deletions

View File

@ -2,5 +2,8 @@ case "${ACTION}" in
post)
chown root:xbuilder usr/bin/xbps-uchroot.static
chmod 4750 usr/bin/xbps-uchroot.static
# Fix certificate verification issue
ln -s /etc/ssl/certs.pem /etc/ssl/cert.pem
;;
esac

View File

@ -5,13 +5,4 @@ Since most users use the dynamically linked version, it's recommended to create
# ln -s /usr/bin/xbps-install.static /usr/local/bin/xbps-install
$ ln -s /usr/bin/xbps-install.static "$HOME"/.local/bin/xbps-install
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-static' xtraeme version
pkgname=xbps-static
version=21.1
revision=3
revision=4
# only musl
archs="*-musl"
wrksrc="xbps-${version}"