[Lunar-commits] <moonbase> cronie: warning msg as in udev - need a plugin for this

Christian Krause wookietreiber at lunar-linux.org
Tue Jun 28 13:04:08 CEST 2011


commit 383e7b1681f9506498c4da124d9dcc61bd0e10a5
Author: Christian Krause <wookietreiber at lunar-linux.org>
Date:   Tue Jun 28 13:04:08 2011 +0200

    cronie: warning msg as in udev - need a plugin for this
---
 utils/cronie/BUILD     |    7 -------
 utils/cronie/CONFIGURE |    1 +
 utils/cronie/PRE_BUILD |   10 ++++++++++
 3 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/utils/cronie/BUILD b/utils/cronie/BUILD
index 41e8a06..cc6f283 100644
--- a/utils/cronie/BUILD
+++ b/utils/cronie/BUILD
@@ -4,13 +4,6 @@
     OPTS+=" --with-pam"
   fi &&
 
-  if kernel_option_present CONFIG_INOTIFY_USER ; then
-    OPTS+=" --with-inotify"
-  else
-    OPTS+=" --without-inotify"
-  fi
-
-
   sedit '/^dist_pam_DATA/d' Makefile.am &&
   aclocal           &&
   autoheader        &&
diff --git a/utils/cronie/CONFIGURE b/utils/cronie/CONFIGURE
new file mode 100644
index 0000000..7c34c42
--- /dev/null
+++ b/utils/cronie/CONFIGURE
@@ -0,0 +1 @@
+mquery INOTIFY "Enable inotify?" n " --with-inotify" " --without-inotify"
diff --git a/utils/cronie/PRE_BUILD b/utils/cronie/PRE_BUILD
new file mode 100644
index 0000000..d02e316
--- /dev/null
+++ b/utils/cronie/PRE_BUILD
@@ -0,0 +1,10 @@
+if ! kernel_option_present CONFIG_INOTIFY_USER ; then
+  message "${PROBLEM_COLOR}PROBLEM: ${MODULE_COLOR}cronie${DEFAULT_COLOR} detected incompatible kernel options!"
+  message "Please verify that CONFIG_INOTIFY_USER is enabled."
+  message ""
+  message "Then recompile your kernel and try 'lin -c cronie' again."
+  message ""
+  exit 1
+fi
+
+default_pre_build


More information about the Lunar-commits mailing list