From 718dbdc504ae3bcd89193ddd4dbbb2db62bc96cf Mon Sep 17 00:00:00 2001 From: EnumDev Date: Wed, 9 Apr 2025 22:19:49 +0300 Subject: [PATCH] Update package version to 1.16 --- pkg.info | 3 +-- post_install.sh | 2 +- post_remove.sh | 2 +- post_update.sh | 3 +++ source.sh | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 post_update.sh diff --git a/pkg.info b/pkg.info index 9d7a1c0..09c9bae 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: make-ca description: PKI setup script for LFS (and others) -version: 1.13 -revision: 4 +version: 1.16 url: https://github.com/lfs-book/make-ca license: GPL3 or MIT architecture: any diff --git a/post_install.sh b/post_install.sh index 5e06743..afa01f6 100644 --- a/post_install.sh +++ b/post_install.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/bin/sh /usr/sbin/make-ca -D "$BPM_ROOT" -g diff --git a/post_remove.sh b/post_remove.sh index d3663c2..885d4c4 100644 --- a/post_remove.sh +++ b/post_remove.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/bin/sh rm -rf "$BPM_ROOT"/etc/ssl/* diff --git a/post_update.sh b/post_update.sh new file mode 100644 index 0000000..be2cbd9 --- /dev/null +++ b/post_update.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +/usr/sbin/make-ca -D "$BPM_ROOT" -r diff --git a/source.sh b/source.sh index e43180c..f7a49fd 100644 --- a/source.sh +++ b/source.sh @@ -2,7 +2,7 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -DOWNLOAD="https://github.com/lfs-book/make-ca/releases/download/v${BPM_PKG_VERSION}/make-ca-${BPM_PKG_VERSION}.tar.xz" +DOWNLOAD="https://github.com/lfs-book/make-ca/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz" FILENAME="${DOWNLOAD##*/}" # The prepare function is executed in the root of the temp directory