summaryrefslogtreecommitdiff
path: root/repo/system/cacerts.xibuild
blob: 40a37f508afda6428a9641a7e9b2e232b2660b67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

MAKEDEPS="sbase sed"
DEPS="libnghttp"

PKG_VER=1.7
SOURCE=https://github.com/djlucas/make-ca/releases/download/v$PKG_VER/make-ca-$PKG_VER.tar.xz
DESC="Root certificates needed by ssl built using make-ca"

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

package () {
    # TODO check why this doesnt package /etc/ssl/certs the first time in some occasions
    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"
}