From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/cacerts/cacerts.xibuild | 30 ++++++++++++++++++++++++++++++ repo/cacerts/fix-sbase-coreutils.patch | 12 ++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 repo/cacerts/cacerts.xibuild create mode 100644 repo/cacerts/fix-sbase-coreutils.patch (limited to 'repo/cacerts') diff --git a/repo/cacerts/cacerts.xibuild b/repo/cacerts/cacerts.xibuild new file mode 100644 index 0000000..9fef8e1 --- /dev/null +++ b/repo/cacerts/cacerts.xibuild @@ -0,0 +1,30 @@ +#!/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" + + 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 +} diff --git a/repo/cacerts/fix-sbase-coreutils.patch b/repo/cacerts/fix-sbase-coreutils.patch new file mode 100644 index 0000000..8e34376 --- /dev/null +++ b/repo/cacerts/fix-sbase-coreutils.patch @@ -0,0 +1,12 @@ +diff -Nuar a/make-ca b/make-ca +--- a/make-ca 2020-03-08 04:55:46.000000000 +0000 ++++ b/make-ca 2022-03-09 21:41:03.786961743 +0000 +@@ -809,7 +809,7 @@ + + # Install certdata.txt + if test "${REBUILD}" == "0"; then +- install -vdm755 "${DESTDIR}${SSLDIR}" ++ install -dm755 "${DESTDIR}${SSLDIR}" + install -m644 "${WORKDIR}/certdata.txt" "${DESTDIR}${SSLDIR}/certdata.txt" + fi + -- cgit v1.2.1