From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/libp11-kit/libp11-kit.xibuild | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 repo/libp11-kit/libp11-kit.xibuild (limited to 'repo/libp11-kit') 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 +} + -- cgit v1.2.1