mail/up-imapproxy 1.2.6 rc script issue
Jeff Royle
lists at qwirky.net
Mon Apr 7 18:47:08 UTC 2008
I just recently upgraded from 1.2.5 and noticed right away the rc script
wouldn't pick the correct location for my configuration file. I had to
re-write the script to get things working correctly.
Here is a copy of my working rc script for the package:
--------------------------------------------
#!/bin/sh
#
# $FreeBSD: ports/mail/up-imapproxy/files/imapproxyd.sh.in,v 1.4
2007/07/21 03:59:50 mbr Exp $
#
# PROVIDE: imapproxyd
# REQUIRE: DAEMON courier_imap_imapd courier_imap_imapd_ssl cyrus_imapd
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 "/usr/local/etc/imapproxyd.conf"
. /etc/rc.subr
name="imapproxyd"
rcvar=`set_rcvar`
: ${imapproxyd_enable="NO"}
: ${imapproxyd_conf="/usr/local/etc/imapproxyd.conf"}
command=/usr/local/sbin/in.imapproxyd
command_args="-f ${imapproxyd_conf}"
required_files="/usr/local/etc/imapproxyd.conf"
load_rc_config "$name"
run_rc_command "$1"
#EOF
-------------------
Cheers!
Jeff
More information about the freebsd-ports
mailing list