41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
# Template file for 'ca-certificates'
|
|
pkgname=ca-certificates
|
|
version=20211016+3.86
|
|
revision=1
|
|
_nss_version=${version#*+}
|
|
bootstrap=yes
|
|
conf_files="/etc/ca-certificates.conf"
|
|
create_wrksrc=yes
|
|
build_wrksrc="work"
|
|
hostmakedepends="openssl"
|
|
depends="openssl run-parts"
|
|
short_desc="Common CA certificates for SSL/TLS from Mozilla"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later, MPL-2.0"
|
|
homepage="https://wiki.mozilla.org/NSS:Root_certs"
|
|
distfiles="${DEBIAN_SITE}/main/c/${pkgname}/${pkgname}_${version%+*}.tar.xz
|
|
${MOZILLA_SITE}/security/nss/releases/NSS_${_nss_version//\./_}_RTM/src/nss-${_nss_version}.tar.gz"
|
|
checksum="2ae9b6dc5f40c25d6d7fe55e07b54f12a8967d1955d3b7b2f42ee46266eeef88
|
|
3f385fc686476bbba811035fa6821b542475d55747b18c20c221d4d66573b975"
|
|
|
|
post_extract() {
|
|
cp ${FILESDIR}/* $build_wrksrc/mozilla
|
|
cp nss-${_nss_version}/nss/lib/ckfw/builtins/certdata.txt \
|
|
nss-${_nss_version}/nss/lib/ckfw/builtins/nssckbi.h \
|
|
$build_wrksrc/mozilla
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/share/${pkgname}
|
|
vmkdir etc/ssl/certs
|
|
make install DESTDIR=${DESTDIR} SBINDIR=/usr/bin
|
|
vman sbin/update-ca-certificates.8
|
|
cd ${DESTDIR}/usr/share/ca-certificates
|
|
find . -name '*.crt' | sort | cut -b3- > ${DESTDIR}/etc/ca-certificates.conf
|
|
ln -s /etc/ssl/certs/ca-certificates.crt ${DESTDIR}/etc/ssl/certs.pem
|
|
}
|