diff options
| author | Jonathan Bauer | 2014-03-25 15:24:04 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2014-03-25 15:24:04 +0100 |
| commit | 3d1235af060955e271be68240c0ca46bc6d81b03 (patch) | |
| tree | ef02dcc4bb8476cfeef07e2df6a38b4c29d350df /remote/modules/cron | |
| parent | [rootfs-stage32] /var/log/openslx in tmpfiles.d (diff) | |
| download | tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.tar.gz tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.tar.xz tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.zip | |
[modules] new module naming convention
rename $MODULE.{conf,build} to module.{conf,build}
Diffstat (limited to 'remote/modules/cron')
| -rw-r--r-- | remote/modules/cron/module.build | 30 | ||||
| -rw-r--r-- | remote/modules/cron/module.conf | 3 |
2 files changed, 33 insertions, 0 deletions
diff --git a/remote/modules/cron/module.build b/remote/modules/cron/module.build new file mode 100644 index 00000000..932c3e85 --- /dev/null +++ b/remote/modules/cron/module.build @@ -0,0 +1,30 @@ +#!/bin/bash + + +fetch_source() { + + # use our own patched source + local TARBALL="vixie-cron-4.1-openslx.tgz" + [ ! -e "${TARBALL}" ] && perror "${TARBALL} not found under ${MODULE_DIR}." + + mkdir "${MODULE_DIR}/src" || perror "Could not create ${MODULE_DIR}/src" + tar xfz "${TARBALL}" -C "${MODULE_DIR}/src" || perror "Could not extract ${TARBALL} to ${MODULE_DIR}/src" +} + +build() { + + # compilation + cd "${MODULE_DIR}/src" || perror "Could not cd to '${MODULE_DIR}/src'. Did fetch_source work?" + make cron || perror "Could not compile cron using 'make'." + + # copy to build dir, since there are no shared libs linked in + mkdir -p "${MODULE_BUILD_DIR}/opt/openslx/sbin" + cp "${MODULE_DIR}/src/cron" "${MODULE_BUILD_DIR}/opt/openslx/sbin/" || perror "Could copy cron binary to ${MODULE_BUILD_DIR}" + + cd - &>/dev/null +} + +post_copy() { + : +} + diff --git a/remote/modules/cron/module.conf b/remote/modules/cron/module.conf new file mode 100644 index 00000000..8ecca658 --- /dev/null +++ b/remote/modules/cron/module.conf @@ -0,0 +1,3 @@ +REQUIRED_BINARIES=" + cron +" |
