#!/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 }