blob: b2787f14f5bba3b79053eacbef187ee242ea0511 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/bash
MAKEDEPS=(make )
DEPS=(glibc libtasn1 libffi)
SOURCE=https://github.com/p11-glue/p11-kit/releases/download/0.24.1/p11-kit-0.24.1.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 -sfv $PKG_DEST/usr/libexec/p11-kit/trust-extract-compat \
$PKG_DEST/usr/bin/update-ca-certificates
}
|