|
|
|
@ -7,7 +7,7 @@ DESCRIPTION="Установка корневого сертификата для
|
|
|
|
|
HOMEPAGE="https://espd.wifi.rt.ru/settings/cert-install"
|
|
|
|
|
|
|
|
|
|
SRC_URI="
|
|
|
|
|
https://espd.wifi.rt.ru/docs/ca-root.crt -> ${P}_root.cer
|
|
|
|
|
https://espd.wifi.rt.ru/docs/ca-root.crt -> ${P}_root.crt
|
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
LICENSE=""
|
|
|
|
@ -22,7 +22,7 @@ S="${WORKDIR}"
|
|
|
|
|
CA=usr/local/share/ca-certificates
|
|
|
|
|
ESPD_TR_R=${P}_root.crt
|
|
|
|
|
|
|
|
|
|
ESPD_TR_R_NAME="CA Root Social Objects - PJSC \"Rostelecom\""
|
|
|
|
|
ESPD_TR_R_NAME="CA Root Social Objects - PJSC Rostelecom"
|
|
|
|
|
|
|
|
|
|
## Ассоциативный массив {имя сертификата:файл}
|
|
|
|
|
declare -A massiv
|
|
|
|
@ -30,6 +30,7 @@ massiv[${ESPD_TR_R_NAME}]=${ESPD_TR_R}
|
|
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
|
mkdir -p ${CA} || die
|
|
|
|
|
mv ${DISTDIR}/${A} ${CA} || die
|
|
|
|
|
default
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -43,7 +44,7 @@ pkg_postinst() {
|
|
|
|
|
# to include their stuff in the db.
|
|
|
|
|
# However it's too overzealous when the user has custom certs in place.
|
|
|
|
|
# --fresh is to clean up dangling symlinks
|
|
|
|
|
/usr/sbin/update-ca-certificates --root "${ROOT}"
|
|
|
|
|
/usr/sbin/update-ca-certificates
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -79,7 +80,7 @@ pkg_prerm() {
|
|
|
|
|
# to include their stuff in the db.
|
|
|
|
|
# However it's too overzealous when the user has custom certs in place.
|
|
|
|
|
# --fresh is to clean up dangling symlinks
|
|
|
|
|
/usr/sbin/update-ca-certificates --root "${ROOT}"
|
|
|
|
|
/usr/sbin/update-ca-certificates --fresh
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
nssdir=$(find /home/ -name "cert9.db")
|