40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Template file for 'ca-certificates'
|
|
pkgname=ca-certificates
|
|
version=20230311+3.89.1
|
|
revision=1
|
|
_nss_version=${version#*+}
|
|
bootstrap=yes
|
|
conf_files="/etc/ca-certificates.conf"
|
|
build_wrksrc="ca-certificates"
|
|
hostmakedepends="openssl"
|
|
depends="openssl run-parts"
|
|
short_desc="Common CA certificates for SSL/TLS from Mozilla"
|
|
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
|
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="83de934afa186e279d1ed08ea0d73f5cf43a6fbfb5f00874b6db3711c64576f3
|
|
3adaedb9e70c3c5f40603bf60a01e336190a6dbe01929d395f16b01fe84a0156"
|
|
|
|
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
|
|
}
|