62 lines
2.4 KiB
Bash
62 lines
2.4 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgbase=ca-certificates
|
|
pkgname=(ca-certificates-utils ca-certificates)
|
|
pkgver=20210603
|
|
pkgrel=01
|
|
pkgdesc="Common CA certificates"
|
|
url="https://src.fedoraproject.org/rpms/ca-certificates"
|
|
arch=(any)
|
|
makedepends=(asciidoc p11-kit)
|
|
source=(update-ca-trust update-ca-trust.8.txt 40-update-ca-trust.hook)
|
|
|
|
build() {
|
|
asciidoc.py -v -d manpage -b docbook update-ca-trust.8.txt
|
|
xsltproc --nonet -o update-ca-trust.8 /etc/asciidoc/docbook-xsl/manpage.xsl update-ca-trust.8.xml
|
|
}
|
|
|
|
package_ca-certificates-utils() {
|
|
pkgdesc+=" (utilities)"
|
|
depends=(bash coreutils findutils 'p11-kit>=0.24.0')
|
|
provides=(ca-certificates ca-certificates-java)
|
|
conflicts=(ca-certificates-java)
|
|
replaces=(ca-certificates-java)
|
|
install=ca-certificates-utils.install
|
|
|
|
install -Dt "$pkgdir/usr/bin" update-ca-trust
|
|
install -Dt "$pkgdir/usr/share/man/man8" -m644 update-ca-trust.8
|
|
install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 *.hook
|
|
|
|
# Trust source directories
|
|
# Upstream also adds "blocklist" but that's useless without support in p11-kit
|
|
install -d "$pkgdir"/{etc,usr/share}/$pkgbase/trust-source/{anchors,blocklist}
|
|
|
|
# Directories used by update-ca-trust (aka "trust extract-compat")
|
|
install -d "$pkgdir"/etc/{ssl/certs/{edk2,java},$pkgbase/extracted}
|
|
|
|
# Compatibility link for OpenSSL using /etc/ssl as CAdir
|
|
# Used in preference to the individual links in /etc/ssl/certs
|
|
ln -sr "$pkgdir/etc/$pkgbase/extracted/tls-ca-bundle.pem" "$pkgdir/etc/ssl/cert.pem"
|
|
|
|
# Compatiblity link for legacy bundle
|
|
ln -sr "$pkgdir/etc/$pkgbase/extracted/tls-ca-bundle.pem" "$pkgdir/etc/ssl/certs/ca-certificates.crt"
|
|
}
|
|
|
|
package_ca-certificates() {
|
|
pkgdesc+=" (default providers)"
|
|
depends=(ca-certificates-mozilla)
|
|
conflicts=('ca-certificates-cacert<=20140824-4')
|
|
replaces=("${conflicts[@]}")
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=(GPL2)
|
|
|
|
sha256sums=(ba98e00f80f94e2648b66252119d1b0da2339b8c83860cd69738e5c4e2d0fcc3 # update-ca-trust
|
|
acf571f7d7a9df2149a373017280e8f22d07a2d36600256fa48159d22ab74751 # update-ca-trust.8.txt
|
|
3a3833ebd6f9cdef2e534a273653f973a4354d4f9368577d0d73236b014b7748) # 40-update-ca-trust.hook
|