diff options
author | Simon Rettberg | 2017-07-07 15:25:55 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-07-07 15:25:55 +0200 |
commit | 3eb6a0cd125ca7a04f5aabdfe138cd35f3f9026a (patch) | |
tree | b33144e4bfa9059b68b0ae0e454f248a3360e54a | |
parent | [hardware-stats] Include pending sectors in bad sector count (diff) | |
download | mltk-3eb6a0cd125ca7a04f5aabdfe138cd35f3f9026a.tar.gz mltk-3eb6a0cd125ca7a04f5aabdfe138cd35f3f9026a.tar.xz mltk-3eb6a0cd125ca7a04f5aabdfe138cd35f3f9026a.zip |
[slxbrowser] New module
-rw-r--r-- | core/modules/slxbrowser/module.build | 26 | ||||
-rw-r--r-- | core/modules/slxbrowser/module.conf | 4 | ||||
-rw-r--r-- | core/modules/slxbrowser/module.conf.ubuntu | 5 |
3 files changed, 35 insertions, 0 deletions
diff --git a/core/modules/slxbrowser/module.build b/core/modules/slxbrowser/module.build new file mode 100644 index 00000000..e1b70091 --- /dev/null +++ b/core/modules/slxbrowser/module.build @@ -0,0 +1,26 @@ +#!/bin/bash + +fetch_source() { + git clone "${REQUIRED_GIT}" "${MODULE_WORK_DIR}/src" +} + +build() { + local SRCDIR="${MODULE_WORK_DIR}/src/" + + mkdir -p "${MODULE_BUILD_DIR}/${REQUIRED_PREFIX}" + cd "${MODULE_BUILD_DIR}/${REQUIRED_PREFIX}" || perror "No dir" + + pinfo "Running cmake" + # use qt4-dev (in case eg. qt4 and 5 are installed) + activate_qt 5 + + cmake "$SRCDIR" || perror "'cmake $SRCDIR' failed." + make || perror "'make' failed." + + cd - > /dev/null +} + +post_copy() { + : +} + diff --git a/core/modules/slxbrowser/module.conf b/core/modules/slxbrowser/module.conf new file mode 100644 index 00000000..1e9dabd0 --- /dev/null +++ b/core/modules/slxbrowser/module.conf @@ -0,0 +1,4 @@ +#!/bin/bash +REQUIRED_GIT="git://git.openslx.org/openslx-ng/slxbrowser.git" +REQUIRED_PREFIX="/opt/openslx/bin" +REQUIRED_BINARIES="slxbrowser" diff --git a/core/modules/slxbrowser/module.conf.ubuntu b/core/modules/slxbrowser/module.conf.ubuntu new file mode 100644 index 00000000..fa629c74 --- /dev/null +++ b/core/modules/slxbrowser/module.conf.ubuntu @@ -0,0 +1,5 @@ +#!/bin/bash +REQUIRED_INSTALLED_PACKAGES=" + cmake + libqt5webkit5-dev +" |