freebsd-ports/mail/up-imapproxy/files/imapproxyd.in
Danilo G. Baio 95be535d29 mail/up-imapproxy: Add dovecot unconditionally in rcfile
This helps users that are using default packages and installing
dovecot manually in having the startup order correctly.

While here, switch to options helper and reorder Makefile.

PR:		225432
Submitted by:	topical@gmx.net
2018-01-28 13:09:08 +00:00

30 lines
662 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: imapproxyd
# REQUIRE: DAEMON courier_imap_imapd courier_imap_imapd_ssl cyrus_imapd dovecot inetd
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable imapproxyd:
#
# imapproxyd_enable (bool): Set "YES" to enable imapproxyd
# Default is "NO"
# imapproxyd_conf (file): Set location of conf file.
# Default is "%%PREFIX%%/etc/imapproxyd.conf"
. /etc/rc.subr
name=imapproxyd
rcvar=imapproxyd_enable
load_rc_config $name
: ${imapproxyd_enable="NO"}
: ${imapproxyd_conf="%%PREFIX%%/etc/imapproxyd.conf"}
command=%%PREFIX%%/sbin/in.imapproxyd
required_files="${imapproxyd_conf}"
run_rc_command "$1"