diff options
author | davidovski <david@davidovski.xyz> | 2022-01-17 17:46:53 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-01-17 17:46:53 +0000 |
commit | 841d5988067b971db9c102eb948c5a8a02790768 (patch) | |
tree | dcb5a72ac54fbf38594830869f82472b111d99d2 /repo/skip/cacert-utils.xibuild | |
parent | 11e590b0daa8edeeb2f75677cfb3c86a81916675 (diff) |
added skip
Diffstat (limited to 'repo/skip/cacert-utils.xibuild')
-rw-r--r-- | repo/skip/cacert-utils.xibuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/repo/skip/cacert-utils.xibuild b/repo/skip/cacert-utils.xibuild new file mode 100644 index 0000000..f88b9d2 --- /dev/null +++ b/repo/skip/cacert-utils.xibuild @@ -0,0 +1,35 @@ +#!/bin/bash + +DEPS=(bash coreutils findutils p11-kit) + +SOURCE=https://src.fedoraproject.org/rpms/ca-certificates +DESC="CA certificate utilities" + +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 () { + rm update-ca-trust + wget https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/ca-certificates/trunk/update-ca-trust + + install -Dt "$PKG_DEST/usr/bin" update-ca-trust + install -Dt "$PKG_DEST/usr/share/man/man8" -m644 update-ca-trust.8 + install -Dt "$PKG_DEST/usr/share/libalpm/hooks" -m644 *.hook + + # Trust source directories + # Upstream also adds "blocklist" but that's useless without support in p11-kit + install -d "$PKG_DEST"/{etc,usr/share}/ca-certificates/trust-source/{anchors,blocklist} + + # Directories used by update-ca-trust (aka "trust extract-compat") + install -d "$PKG_DEST"/etc/{ssl/certs/{edk2,java},ca-certificates/extracted} + + # Compatibility link for OpenSSL using /etc/ssl as CAdir + # Used in preference to the individual links in /etc/ssl/certs + ln -sr "$PKG_DEST/etc/ca-certificates/extracted/tls-ca-bundle.pem" "$PKG_DEST/etc/ssl/cert.pem" + + # Compatiblity link for legacy bundle + ln -sr "$PKG_DEST/etc/ca-certificates/extracted/tls-ca-bundle.pem" "$PKG_DEST/etc/ssl/certs/ca-certificates.crt" + +} |