summaryrefslogtreecommitdiffstats
path: root/remote/modules/cron/module.build
diff options
context:
space:
mode:
authorMichael Pereira Neves2014-03-31 21:14:19 +0200
committerMichael Pereira Neves2014-03-31 21:14:19 +0200
commitc68cfbfde55cf8565ba186dd60f2065e2269650a (patch)
tree6dbe7a31e0d943c968fad644f653effc903ae9b7 /remote/modules/cron/module.build
parent[brazilian] add brazilian locale and keymaps (diff)
parent[vbox] re-set permissions: openslx/script entries (diff)
downloadtm-scripts-c68cfbfde55cf8565ba186dd60f2065e2269650a.tar.gz
tm-scripts-c68cfbfde55cf8565ba186dd60f2065e2269650a.tar.xz
tm-scripts-c68cfbfde55cf8565ba186dd60f2065e2269650a.zip
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/cron/module.build')
-rw-r--r--remote/modules/cron/module.build30
1 files changed, 30 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() {
+ :
+}
+