summaryrefslogtreecommitdiff
path: root/repo/system/libp11-kit.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-16 01:23:51 +0000
committerdavidovski <david@davidovski.xyz>2022-01-16 01:23:51 +0000
commitcb447620084a20be80d116c81c2e9ec110be7118 (patch)
tree9fc0d714abbb5c6326b60616a5fd27ec9f984895 /repo/system/libp11-kit.xibuild
parent153011e9129c6055ef21c48caf65a23e74a91418 (diff)
restructured repo system
Diffstat (limited to 'repo/system/libp11-kit.xibuild')
-rw-r--r--repo/system/libp11-kit.xibuild28
1 files changed, 28 insertions, 0 deletions
diff --git a/repo/system/libp11-kit.xibuild b/repo/system/libp11-kit.xibuild
new file mode 100644
index 0000000..e9e5e4a
--- /dev/null
+++ b/repo/system/libp11-kit.xibuild
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+DEPS=(glibc libtasn1 libffi)
+
+SOURCE=https://github.com/p11-glue/p11-kit
+DESC="Loads and enumerates PKCS#11 modules"
+
+build () {
+
+ sed '20,$ d' -i trust/trust-extract-compat &&
+ cat >> trust/trust-extract-compat << "EOF"
+# Copy existing anchor modifications to /etc/ssl/local
+/usr/libexec/make-ca/copy-trust-modifications
+
+# Generate a new trust store
+/usr/sbin/make-ca -f -g
+EOF
+
+ ./autogen.sh
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-trust-paths=/etc/pki/anchors
+ make
+ make DESTDIR=$PKG_DEST install
+ ln -sfv $PKG_DEST/usr/libexec/p11-kit/trust-extract-compat \
+ $PKG_DEST/usr/bin/update-ca-certificates
+}
+