From a21be5dc5375f4a3c8d540abe2fd5323f30cafae Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 28 May 2019 10:55:32 +0200 Subject: [slx-tools] New module --- core/modules/slx-tools/module.build | 13 +++++++++++++ core/modules/slx-tools/module.conf | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 core/modules/slx-tools/module.build create mode 100644 core/modules/slx-tools/module.conf (limited to 'core/modules/slx-tools') diff --git a/core/modules/slx-tools/module.build b/core/modules/slx-tools/module.build new file mode 100644 index 00000000..6d6ec4cf --- /dev/null +++ b/core/modules/slx-tools/module.build @@ -0,0 +1,13 @@ +#!/bin/bash +fetch_source() { + autoclone +} + +build() { + cde "${MODULE_WORK_DIR}/src/slx-tools" + ./make.sh "$REQUIRED_BASE_DIR" || perror "Could not generate slx-tools" + mkdir -p "$MODULE_BUILD_DIR/opt/openslx/"{bin,slx-tools} + cp slx-tools "$MODULE_BUILD_DIR/opt/openslx/bin/slx-tools" || perror "Could not copy slx-tools main script" + cp -r modules "$MODULE_BUILD_DIR/opt/openslx/slx-tools/modules" || perror "Could not copy slx-tools modules" +} + diff --git a/core/modules/slx-tools/module.conf b/core/modules/slx-tools/module.conf new file mode 100644 index 00000000..461760ca --- /dev/null +++ b/core/modules/slx-tools/module.conf @@ -0,0 +1,14 @@ +#!/bin/bash + +REQUIRED_GIT="https://git.openslx.org/openslx-ng/slx-tools.git" + +REQUIRED_BASE_DIR="/opt/openslx/slx-tools" + +REQUIRED_FILES=" + /opt/openslx/bin/slx-tools +" + +REQUIRED_DIRECTORIES=" + $REQUIRED_BASE_DIR/modules +" + -- cgit v1.2.3-55-g7522