From fc110b17b945e5a2deb6e38f8446c33375645357 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 15 Mar 2025 19:53:38 +0200 Subject: [PATCH] Generate certificates through package script --- pkg.info | 2 +- post_install.sh | 3 +++ post_remove.sh | 3 +++ source.sh | 1 - 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 post_install.sh create mode 100644 post_remove.sh diff --git a/pkg.info b/pkg.info index d5ddcc6..89352a1 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: make-ca description: PKI setup script for LFS (and others) version: 1.13 -revision: 2 +revision: 3 url: https://github.com/lfs-book/make-ca license: GPL3 or MIT architecture: any diff --git a/post_install.sh b/post_install.sh new file mode 100644 index 0000000..5e06743 --- /dev/null +++ b/post_install.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +/usr/sbin/make-ca -D "$BPM_ROOT" -g diff --git a/post_remove.sh b/post_remove.sh new file mode 100644 index 0000000..d3663c2 --- /dev/null +++ b/post_remove.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +rm -rf "$BPM_ROOT"/etc/ssl/* diff --git a/source.sh b/source.sh index 06661b7..1b4f6f2 100644 --- a/source.sh +++ b/source.sh @@ -17,7 +17,6 @@ prepare() { package() { make DESTDIR="$BPM_OUTPUT" install install -vdm755 "$BPM_OUTPUT"/etc/ssl/local - /usr/sbin/make-ca -D "$BPM_OUTPUT" -g install -Dm644 LICENSE.MIT "$BPM_OUTPUT"/usr/share/licenses/LICENSE }