nss: update to 3.94.

This commit is contained in:
Đoàn Trần Công Danh 2023-10-03 22:42:00 +07:00 committed by Đoàn Trần Công Danh
parent 6c8d3d176e
commit 266323ac04
1 changed files with 29 additions and 14 deletions

View File

@ -3,17 +3,17 @@
_nsprver=4.35
pkgname=nss
version=3.93
version=3.94
revision=1
hostmakedepends="perl which"
makedepends="nspr-devel sqlite-devel zlib-devel"
depends="nspr>=${_nsprver}"
short_desc="Mozilla Network Security Services"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="MPL-2.0"
license="MPL-2.0, MIT, BSD-3-Clause"
homepage="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS"
distfiles="${MOZILLA_SITE}/security/nss/releases/NSS_${version//\./_}_RTM/src/nss-${version}.tar.gz"
checksum=15f54bb72048eb105f8c0e936a04b899e74c3db9a19bbc1e00acee2af9476a8a
checksum=463ae180ee9e5ee9e3ad4f629326657e236780cc865572a930a16520abad9dd8
export NS_USE_GCC=1
export LIBRUNPATH=
@ -115,24 +115,39 @@ do_install() {
install -m644 dist/*.OBJ/lib/libcrmf.a ${DESTDIR}/usr/lib
for f in certutil cmsutil crlutil modutil pk12util shlibsign \
signtool signver ssltap; do
for f in certutil cmsutil crlutil derdump modutil pk12util pp shlibsign \
signtool signver ssltap vfychain vfyserv; do
install -m755 dist/*.OBJ/bin/${f} ${DESTDIR}/usr/bin
done
vmkdir usr/libexec/nss
for f in addbuiltin chktest dbtest dbtool ecperf httpserv \
ocspclnt p7content p7env p7sign p7verify pk1sign pwdecrypt \
rsaperf selfserv strsclnt symkeyutil
do
install -m755 dist/*.OBJ/bin/${f} ${DESTDIR}/usr/libexec/nss/
done
for f in nss/doc/nroff/*.1
do
vman $f
done
install -m644 dist/public/nss/*.h ${DESTDIR}/usr/include/nss
sed -ne '/Copyright/,/SUCH DAMAGE/p' nss/lib/dbm/src/db.c >dbm.LICENSE
vlicense dbm.LICENSE
sed -ne '/The MIT License/,\!// SOFTWARE[.]$!p' \
nss/lib/freebl/ecl/curve25519_32.c >fiat.LICENSE
vlicense fiat.LICENSE
sed -ne '/The MIT License/,/ [*] SOFTWARE[.]$/p' \
nss/lib/freebl/ecl/ecp_secp384r1.c >ecckiila.LICENSE
vlicense ecckiila.LICENSE
sed -ne '/The MIT License/,/ [*] SOFTWARE[.]$/p' \
nss/lib/freebl/verified/Hacl_Chacha20.c >hacl.LICENSE
vlicense hacl.LICENSE
{
echo "The MIT License"
find nss/lib -name '*.h' -o -name '*.c' |
xargs grep -l 'MIT License' |
xargs grep -h 'Copyright' |
sed 's,^[[:space:]]*[*/]*[[:space:]]*,,' |
sort -u
sed -ne '/Permission is hereby/,/ [*] SOFTWARE[.]$/p' \
nss/lib/freebl/verified/Hacl_Chacha20.c
} >MIT.license
vlicense MIT.license
}
nss-devel_package() {