From 1084afc3c4d9c83e61620de60ba59a4393a33cb0 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 20 Apr 2022 22:40:49 +0000 Subject: fixed create to work within env --- skip/cacert-utils.xibuild | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 skip/cacert-utils.xibuild (limited to 'skip/cacert-utils.xibuild') diff --git a/skip/cacert-utils.xibuild b/skip/cacert-utils.xibuild new file mode 100644 index 0000000..2f21aeb --- /dev/null +++ b/skip/cacert-utils.xibuild @@ -0,0 +1,36 @@ +#!/bin/sh + +MAKEDEPS="" +DEPS="bash sbase findutils libp11-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" + +} -- cgit v1.2.1