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

MAKEDEPS="coreutils 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"
}