summaryrefslogtreecommitdiff
path: root/repo/cacerts/cacerts.xibuild
blob: 2ff5dda988f4cc01b2fd0ad200296fbd3cde445a (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="toybox 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-toybox-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
}