diff options
Diffstat (limited to 'core/modules/cron')
-rw-r--r-- | core/modules/cron/module.build | 9 | ||||
-rw-r--r-- | core/modules/cron/module.conf | 3 |
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 " |