diff options
author | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
commit | 48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch) | |
tree | 00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/libp11-kit/libp11-kit.xibuild | |
parent | 871b2b573f01c1b3176a0f65458b3d281b41c437 (diff) |
removed idea of repos
Diffstat (limited to 'repo/libp11-kit/libp11-kit.xibuild')
-rw-r--r-- | repo/libp11-kit/libp11-kit.xibuild | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/repo/libp11-kit/libp11-kit.xibuild b/repo/libp11-kit/libp11-kit.xibuild new file mode 100644 index 0000000..11d33be --- /dev/null +++ b/repo/libp11-kit/libp11-kit.xibuild @@ -0,0 +1,33 @@ +#!/bin/sh + +MAKEDEPS="make " +DEPS="musl libtasn1 libffi" + +PKG_VER=0.24.1 +SOURCE=https://github.com/p11-glue/p11-kit/releases/download/$PKG_VER/p11-kit-$PKG_VER.tar.xz +DESC="Loads and enumerates PKCS#11 modules" + +prepare () { + 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 +} + +build () { + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --with-trust-paths=/etc/pki/anchors + make +} + +package () { + make DESTDIR=$PKG_DEST install + ln -sf $PKG_DEST/usr/libexec/p11-kit/trust-extract-compat \ + $PKG_DEST/usr/bin/update-ca-certificates +} + |