1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

Perform sanity check of configuration at start.

Submitted by:	Michael Butler <imb protected-networks net>
This commit is contained in:
Xin LI 2019-12-07 19:19:37 +00:00
parent 6bd55ab779
commit ad96a38362
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=519234
2 changed files with 9 additions and 1 deletions

View File

@ -65,7 +65,7 @@ BROKEN= incompatible OpenLDAP version: ${WANT_OPENLDAP_VER}
.endif
PORTREVISION_CLIENT= 0
PORTREVISION_SERVER= 1
PORTREVISION_SERVER= 2
OPENLDAP_SHLIB_MAJOR= 2
OPENLDAP_SHLIB_MINOR= 10.11
OPENLDAP_MAJOR= ${DISTVERSION:R}

View File

@ -110,6 +110,14 @@ start_precmd()
fi
;;
esac
echo -n "Performing sanity check on slap configuration: "
if ${command} -Tt >/dev/null 2>&1; then
echo "OK"
else
echo "FAILED"
return 1
fi
}
# adjust ownership of created unix sockets