summaryrefslogtreecommitdiffstats
path: root/collab/openldap/PRE_SUB_DEPENDS
diff options
context:
space:
mode:
Diffstat (limited to 'collab/openldap/PRE_SUB_DEPENDS')
-rwxr-xr-xcollab/openldap/PRE_SUB_DEPENDS6
1 files changed, 6 insertions, 0 deletions
diff --git a/collab/openldap/PRE_SUB_DEPENDS b/collab/openldap/PRE_SUB_DEPENDS
new file mode 100755
index 0000000000..3625961b4a
--- /dev/null
+++ b/collab/openldap/PRE_SUB_DEPENDS
@@ -0,0 +1,6 @@
+case $THIS_SUB_DEPENDS in
+ SASL) is_depends_enabled $SPELL cyrus-sasl;;
+ NTLM) [[ OPENLDAP_NTLM == "y" ]] && return 0;;
+ *) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}"
+ return 1;;
+esac