From 29fa855cdb2b02cb989fdd942382f2c404efbc29 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 25 Sep 2024 22:40:07 +0200 Subject: add packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- pony-initialisation/pony-initialisation.install | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pony-initialisation/pony-initialisation.install (limited to 'pony-initialisation/pony-initialisation.install') diff --git a/pony-initialisation/pony-initialisation.install b/pony-initialisation/pony-initialisation.install new file mode 100644 index 0000000..8d34bd3 --- /dev/null +++ b/pony-initialisation/pony-initialisation.install @@ -0,0 +1,23 @@ +_files=(rc.conf rc.d) + +infodir="usr/share/info" + + +post_install() { + [[ -x "usr/bin/install-info" ]] || return 0 + for file in "${_files[@]}"; do + install-info -- "${infodir}/${file}.info.gz" "${infodir}/dir" 2> /dev/null + done +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x "usr/bin/install-info" ]] || return 0 + for file in "${_files[@]}"; do + install-info --delete -- "${infodir}/${file}.info.gz" "${infodir}/dir" 2> /dev/null + done +} + -- cgit v1.2.3-70-g09d2