freebsd-ports/security/oidentd/files/oidentd.sh
Oliver Lehmann aac49f07a4 [1]:
- Remove USE_GMAKE (builds okay here with BSD make)
        - Clean up portions of main Makefile (don't need post/pre)
        - Add %%PREFIX%% man page patches
        - Add patch for ipv6_missing.h; removes EAI_MEMORY
          re-definition warnings, and is more FreeBSD-focused
        - Support 'oidentd_conf' rc.subr variable for those who want to
          be able to specify a configuration file.  Also update the
          'required_files' code to work with this too...

[2]:
        - make it work with FreeBSD-5 in combination with option  --reply

PR:		ports/71378 [1]
Submitted By:	Jeremy Chadwick <freebsd@jdc.parodius.com> [1]
Noted By:	Markus Hästbacka <midian@ihme.org> [2]
2004-10-15 17:44:18 +00:00

43 lines
654 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: oidentd
# REQUIRE: DAEMON
# KEYWORD: FreeBSD shutdown
#
# Add the following lines to /etc/rc.conf to enable dovecot:
#
#oidentd_enable="YES"
#
# See oidentd(8) for flags.
#
. %%RC_SUBR%%
name=oidentd
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/${name}
# set defaults
oidentd_enable=${oidentd_enable:-"NO"}
oidentd_conf=${oidentd_conf:-"%%PREFIX%%/etc/${name}.conf"}
oidentd_flags=${oidentd_flags:-""}
oidentd_precmd ()
{
if [ -n "${oidentd_conf}" ]; then
rc_flags="${rc_flags} -C ${oidentd_conf}"
fi
}
load_rc_config ${name}
start_precmd=${name}_precmd
required_files=${oidentd_conf}
run_rc_command "$1"