summaryrefslogtreecommitdiff
path: root/repo/system/cacerts.xibuild
blob: 9c0198da24036ae175e8c5e3b90179ca26230bf3 (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
#!/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"
}