From e9b822868a5f311466f5e99ae39176c5c92bbd03 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 23 May 2025 16:55:30 +0200 Subject: [PATCH] restic: new module --- Tools/restic/build | 11 +++++++++++ Tools/restic/files/config.yaml | 20 ++++++++++++++++++++ Tools/restic/modulefile | 13 +++++++++++++ 3 files changed, 44 insertions(+) create mode 100755 Tools/restic/build create mode 100644 Tools/restic/files/config.yaml create mode 100644 Tools/restic/modulefile diff --git a/Tools/restic/build b/Tools/restic/build new file mode 100755 index 0000000..fec0ffc --- /dev/null +++ b/Tools/restic/build @@ -0,0 +1,11 @@ +#!/usr/bin/env modbuild + +pbuild::install() { + install -m 0755 -d "${PREFIX}/bin" + install -m 0755 "${SRC_DIR}/restic_${V_PKG}_linux_amd64" "${PREFIX}/bin/restic" +} +# Local Variables: +# mode: sh +# sh-basic-offset: 8 +# tab-width: 8 +# End: diff --git a/Tools/restic/files/config.yaml b/Tools/restic/files/config.yaml new file mode 100644 index 0000000..9bb8b72 --- /dev/null +++ b/Tools/restic/files/config.yaml @@ -0,0 +1,20 @@ +format: 1 +restic: + defaults: + group: Tools + overlay: base + relstage: stable + systems: [.*] + docfiles: [] + build_functions: + configure: [] + compile: [] + shasums: + restic_0.18.0_linux_amd64.bz2: 98f6dd8bf5b59058d04bfd8dab58e196cc2a680666ccee90275a3b722374438e + versions: + 0.18.0: + config: + target_cpus: [x86_64] + urls: + - url: https://github.com/restic/restic/releases/download/v${V_PKG}/restic_${V_PKG}_linux_amd64.bz2 + unpacker: 7z diff --git a/Tools/restic/modulefile b/Tools/restic/modulefile new file mode 100644 index 0000000..5eb56d9 --- /dev/null +++ b/Tools/restic/modulefile @@ -0,0 +1,13 @@ +#%Pmodule + +module-whatis "fast and secure backup program" +module-url "https://restic.readthedocs.io/en/stable/index.html" +module-license "BSD 2-Clause License" +module-maintainer "Achim Gsell " + +module-help " +Restic is a fast and secure backup program. In the following sections, we +will present typical workflows, starting with installing, preparing a new +repository, and making the first backup. +" +