freebsd-ports/net/openldap24-server/files/slurpd.sh.in
Xin LI c95c4c34f7 Update to 2.4.2alpha after repocopy.
Please note that this is not connected to build at this time, as
the port infrastructure lacks some necessary support for this
OpenLDAP release which will be tested on pointyhat soon.

If you really want to try this out please apply the patch found
in ports/97515 or
  http://www.delphij.net/patch-bsd.port.mk
in order to get infrastructure support for it.

This work is heavily based on ports/96165 submitted by
Joerg Pulz <Joerg Pulz frm2 tum de>.

Approved by:	sem (mentor, implicit)
2006-05-26 02:44:25 +00:00

36 lines
602 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: slurpd
# REQUIRE: slapd
# BEFORE:
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf to enable slurpd:
#
#slurpd_enable="YES"
#
# See slurpd(8) for more flags
#
. "%%RC_SUBR%%"
name="slurpd"
rcvar=`set_rcvar`
command="%%PREFIX%%/libexec/slurpd"
required_files="%%PREFIX%%/etc/openldap/slapd.conf"
# read settings, set defaults
load_rc_config $name
: ${slurpd_enable="NO"}
if [ -n "${slurpd_args+set}" ]; then
warn "slurpd_args is deprecated, use slurpd_flags"
: ${slurpd_flags="$slurpd_args"}
else
: ${slurpd_flags=""}
fi
run_rc_command "$1"