Date: Sat, 7 Dec 2019 19:19:38 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r519234 - in head/net/openldap24-server: . files Message-ID: <201912071919.xB7JJcqI090267@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Sat Dec 7 19:19:37 2019 New Revision: 519234 URL: https://svnweb.freebsd.org/changeset/ports/519234 Log: Perform sanity check of configuration at start. Submitted by: Michael Butler <imb protected-networks net> Modified: head/net/openldap24-server/Makefile head/net/openldap24-server/files/slapd.in Modified: head/net/openldap24-server/Makefile ============================================================================== --- head/net/openldap24-server/Makefile Sat Dec 7 19:11:47 2019 (r519233) +++ head/net/openldap24-server/Makefile Sat Dec 7 19:19:37 2019 (r519234) @@ -65,7 +65,7 @@ BROKEN= incompatible OpenLDAP version: ${WANT_OPENLD .endif PORTREVISION_CLIENT= 0 -PORTREVISION_SERVER= 1 +PORTREVISION_SERVER= 2 OPENLDAP_SHLIB_MAJOR= 2 OPENLDAP_SHLIB_MINOR= 10.11 OPENLDAP_MAJOR= ${DISTVERSION:R} Modified: head/net/openldap24-server/files/slapd.in ============================================================================== --- head/net/openldap24-server/files/slapd.in Sat Dec 7 19:11:47 2019 (r519233) +++ head/net/openldap24-server/files/slapd.in Sat Dec 7 19:19:37 2019 (r519234) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912071919.xB7JJcqI090267>