diff options
author | Simon Rettberg | 2019-05-28 10:55:32 +0200 |
---|---|---|
committer | root | 2019-05-28 10:55:32 +0200 |
commit | a21be5dc5375f4a3c8d540abe2fd5323f30cafae (patch) | |
tree | 61994a14062db30f0f4e988765561015e5894639 /core/modules/slx-tools | |
parent | [*] Use logind.conf to kill user processes (diff) | |
download | mltk-a21be5dc5375f4a3c8d540abe2fd5323f30cafae.tar.gz mltk-a21be5dc5375f4a3c8d540abe2fd5323f30cafae.tar.xz mltk-a21be5dc5375f4a3c8d540abe2fd5323f30cafae.zip |
[slx-tools] New module
Diffstat (limited to 'core/modules/slx-tools')
-rw-r--r-- | core/modules/slx-tools/module.build | 13 | ||||
-rw-r--r-- | core/modules/slx-tools/module.conf | 14 |
2 files changed, 27 insertions, 0 deletions
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 +" + |