summaryrefslogtreecommitdiff
path: root/repo/system/cacerts/cacerts.xibuild
blob: 9fef8e12954c8a323ab68d8e642ac94a9f5d44b4 (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
#!/bin/sh

MAKEDEPS="sbase bash sed"
DEPS="libnghttp libp11-kit"

PKG_VER=1.7
SOURCE=https://github.com/djlucas/make-ca/releases/download/v$PKG_VER/make-ca-$PKG_VER.tar.xz
ADDITIONAL="
    fix-sbase-coreutils.patch
"

DESC="Root certificates needed by ssl built using make-ca"


prepare () {
    apply_patches
    sed -i "s/grep/ggrep/g" make-ca

}

package () {
    mkdir -p $PKG_DEST/etc/ssl/certs
    bash make-ca -g --force -D $PKG_DEST
    chmod -R 777 $PKG_DEST || echo "couldnt change permissions for $PKG_DEST"

    install -d $PKG_DEST/usr/bin
    install -d $PKG_DEST/usr/libexec/make-ca
    install -m755 make-ca $PKG_DEST/usr/bin/
    install -m700 copy-trust-modifications $PKG_DEST/usr/libexec/make-ca
}