aboutsummaryrefslogtreecommitdiff
path: root/net/openldap22-server/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'net/openldap22-server/pkg-install')
-rw-r--r--net/openldap22-server/pkg-install7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/openldap22-server/pkg-install b/net/openldap22-server/pkg-install
index ee0a9e8588bd..593e92c14a5e 100644
--- a/net/openldap22-server/pkg-install
+++ b/net/openldap22-server/pkg-install
@@ -6,12 +6,19 @@
CHOWN=/usr/sbin/chown
ECHO_CMD=echo
GREP=/usr/bin/grep
+PKG_INFO=/usr/sbin/pkg_info
PW=/usr/sbin/pw
FTPUSERS=/etc/ftpusers
case $2 in
PRE-INSTALL)
+ if ! ${PKG_INFO} -e '%%PKGNAME_CLIENT%%'; then
+ ${ECHO_CMD} "===> %%PKGNAME%% requires %%PKGNAME_CLIENT%%."
+ ${ECHO_CMD}
+ ${ECHO_CMD} " Please install %%PKGNAME_CLIENT%% manually."
+ exit 1
+ fi
if ! ${PW} usershow -n ldap >/dev/null 2>&1; then
${ECHO_CMD}
if ! ${PW} groupshow -n ldap >/dev/null 2>&1; then