summaryrefslogtreecommitdiff
path: root/user/p11-kit
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-05 22:50:29 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-05 22:50:29 -0500
commit8d3bdb0e6c45f7e0793b10a3133f569c1cb4490b (patch)
treea36b81416180529a7ad69b532c39a7816d50b466 /user/p11-kit
parentd67caa56962460456d4ddf66ed2e23195f7ca7c6 (diff)
downloadpackages-8d3bdb0e6c45f7e0793b10a3133f569c1cb4490b.tar.gz
packages-8d3bdb0e6c45f7e0793b10a3133f569c1cb4490b.tar.bz2
packages-8d3bdb0e6c45f7e0793b10a3133f569c1cb4490b.tar.xz
packages-8d3bdb0e6c45f7e0793b10a3133f569c1cb4490b.zip
user/p11-kit: pull in, bump, fix up, improve -trust subpkg
Diffstat (limited to 'user/p11-kit')
-rw-r--r--user/p11-kit/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/user/p11-kit/APKBUILD b/user/p11-kit/APKBUILD
new file mode 100644
index 000000000..0f8a65a8f
--- /dev/null
+++ b/user/p11-kit/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer:
+pkgname=p11-kit
+pkgver=0.23.12
+pkgrel=0
+pkgdesc="Library for loading and sharing PKCS#11 modules"
+url="https://p11-glue.github.io/p11-glue/p11-kit.html"
+arch="all"
+license="BSD-3-Clause"
+depends=""
+makedepends="libtasn1-dev libffi-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-trust"
+source="https://github.com/p11-glue/p11-kit/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --sysconfdir=/etc \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --with-trust-paths=/etc/ssl/certs/ca-certificates.crt
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+trust() {
+ pkgdesc="System trust module from $pkgname"
+ mkdir -p "$subpkgdir"/usr/share/p11-kit/modules \
+ "$subpkgdir"/usr/lib/pkcs11
+
+ mv "$pkgdir"/usr/share/p11-kit/modules/p11-kit-trust.module \
+ "$subpkgdir"/usr/share/p11-kit/modules/
+ mv "$pkgdir"/usr/lib/pkcs11/p11-kit-trust.so \
+ "$subpkgdir"/usr/lib/pkcs11/
+}
+
+sha512sums="ae43b1f6ba5400cf5ae7b64b8c93aa47e5c7ee927196828600fd88beb6fdf6bcb6a63bc822d356757255638f9fbf10896e0604e32a1332a9a833836fa0468726 p11-kit-0.23.12.tar.gz"