summaryrefslogtreecommitdiffstats
path: root/core/modules/cron
diff options
context:
space:
mode:
authorSimon Rettberg2021-07-09 14:14:34 +0200
committerSimon Rettberg2021-07-09 14:14:34 +0200
commit9b9e3b19cdccf5e442c129d4814da7987afb16a7 (patch)
tree803302a75fd40c039cf2eb35055001c2c5053570 /core/modules/cron
parentRequire explicit confgig for distcc/ccache, print local config (diff)
downloadmltk-9b9e3b19cdccf5e442c129d4814da7987afb16a7.tar.gz
mltk-9b9e3b19cdccf5e442c129d4814da7987afb16a7.tar.xz
mltk-9b9e3b19cdccf5e442c129d4814da7987afb16a7.zip
Use autoclone where possible
Diffstat (limited to 'core/modules/cron')
-rw-r--r--core/modules/cron/module.build9
-rw-r--r--core/modules/cron/module.conf3
2 files changed, 3 insertions, 9 deletions
diff --git a/core/modules/cron/module.build b/core/modules/cron/module.build
index d4ecce79..66cc8ecc 100644
--- a/core/modules/cron/module.build
+++ b/core/modules/cron/module.build
@@ -1,16 +1,11 @@
#!/bin/bash
fetch_source() {
- [ -d "${MODULE_WORK_DIR}/src/.git" ] && return 0
- rm -rf -- "${MODULE_WORK_DIR}/src"
- git clone "${REQUIRED_GIT}" "${MODULE_WORK_DIR}/src" || perror "Could not clone git to ${MODULE_WORK_DIR}/src"
- cd "${MODULE_WORK_DIR}/src"
- git checkout "${REQUIRED_COMMIT}" || perror "Could not switch to required commit"
- cd - &>/dev/null
+ autoclone
}
build() {
# compilation
- cde "${MODULE_WORK_DIR}/src"
+ cde "${MODULE_WORK_DIR}/src/cronie"
./autogen.sh || perror "Autogen failed"
./configure --disable-dependency-tracking --enable-syscrontab --prefix= --exec-prefix= --bindir=/opt/openslx/bin --sbindir=/opt/openslx/sbin || perror "configure failed"
diff --git a/core/modules/cron/module.conf b/core/modules/cron/module.conf
index 0a9c52c3..dad74838 100644
--- a/core/modules/cron/module.conf
+++ b/core/modules/cron/module.conf
@@ -2,8 +2,7 @@
REQUIRED_MODULES="
slxlog
"
-REQUIRED_GIT="https://github.com/cronie-crond/cronie.git"
-REQUIRED_COMMIT="d582556168e740fbd19e777a6733b404084e69d8"
+REQUIRED_GIT="https://github.com/cronie-crond/cronie.git||d582556168e740fbd19e777a6733b404084e69d8"
REQUIRED_BINARIES="
crond
"