Use USE_RC_SUBR.

This commit is contained in:
Hajimu UMEMOTO 2003-08-30 14:17:22 +00:00
parent 02b99699ef
commit e1abfdbd5c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88078
8 changed files with 132 additions and 80 deletions

View File

@ -24,6 +24,8 @@ CONFLICTS= cyrus-1.* cyrus-imapd-2.[^1].*
LIB_DEPENDS= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend
USE_RC_SUBR= YES
USE_PERL5= yes
USE_REINPLACE= YES
GNU_CONFIGURE= YES

View File

@ -3,24 +3,35 @@
# Start or stop cyrus-imapd
# $FreeBSD$
case "$1" in
start)
if [ -x /usr/local/cyrus/bin/master -a \
-f /usr/local/etc/cyrus.conf -a \
-f /usr/local/etc/imapd.conf ]; then
/usr/local/cyrus/bin/master -d
echo -n ' imapd'
fi
;;
stop)
if [ -r /var/run/cyrus-master.pid ]; then
kill `cat /var/run/cyrus-master.pid` && echo -n ' imapd'
rm /var/run/cyrus-master.pid
fi
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
# PROVIDE: cyrus_imapd
# REQUIRE: DAEMON
# BEFORE: mail
# KEYWORD: FreeBSD shutdown
#
# NOTE for FreeBSD 5.0+:
# If you want this script to start with the base rc scripts
# move imapd.sh to /etc/rc.d/cyrus_imapd
exit 0
prefix=%%PREFIX%%
# Define these imapd_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/cyrus_imapd
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
cyrus_imapd_enable="YES" # Enable imapd
#cyrus_imapd_program="${prefix}/cyrus/bin/master" # Location of imapd
cyrus_imapd_flags="-d" # Flags to imapd program
. %%RC_SUBR%%
name="cyrus_imapd"
rcvar=`set_rcvar`
command="${prefix}/cyrus/bin/master"
pidfile="/var/run/cyrus-master.pid"
required_files="${prefix}/etc/cyrus.conf ${prefix}/etc/imapd.conf"
load_rc_config $name
run_rc_command "$1"

View File

@ -22,6 +22,8 @@ CONFLICTS= cyrus-1.* cyrus-imapd-2.[^2].*
LIB_DEPENDS= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend
USE_RC_SUBR= YES
USE_PERL5= yes
USE_REINPLACE= YES
GNU_CONFIGURE= YES

View File

@ -3,24 +3,35 @@
# Start or stop cyrus-imapd
# $FreeBSD$
case "$1" in
start)
if [ -x /usr/local/cyrus/bin/master -a \
-f /usr/local/etc/cyrus.conf -a \
-f /usr/local/etc/imapd.conf ]; then
/usr/local/cyrus/bin/master -d
echo -n ' imapd'
fi
;;
stop)
if [ -r /var/run/cyrus-master.pid ]; then
kill `cat /var/run/cyrus-master.pid` && echo -n ' imapd'
rm /var/run/cyrus-master.pid
fi
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
# PROVIDE: cyrus_imapd
# REQUIRE: DAEMON
# BEFORE: mail
# KEYWORD: FreeBSD shutdown
#
# NOTE for FreeBSD 5.0+:
# If you want this script to start with the base rc scripts
# move imapd.sh to /etc/rc.d/cyrus_imapd
exit 0
prefix=%%PREFIX%%
# Define these imapd_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/cyrus_imapd
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
cyrus_imapd_enable="YES" # Enable imapd
#cyrus_imapd_program="${prefix}/cyrus/bin/master" # Location of imapd
cyrus_imapd_flags="-d" # Flags to imapd program
. %%RC_SUBR%%
name="cyrus_imapd"
rcvar=`set_rcvar`
command="${prefix}/cyrus/bin/master"
pidfile="/var/run/cyrus-master.pid"
required_files="${prefix}/etc/cyrus.conf ${prefix}/etc/imapd.conf"
load_rc_config $name
run_rc_command "$1"

View File

@ -22,6 +22,8 @@ CONFLICTS= cyrus-1.* cyrus-imapd-2.[^2].*
LIB_DEPENDS= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend
USE_RC_SUBR= YES
USE_PERL5= yes
USE_REINPLACE= YES
GNU_CONFIGURE= YES

View File

@ -3,24 +3,35 @@
# Start or stop cyrus-imapd
# $FreeBSD$
case "$1" in
start)
if [ -x /usr/local/cyrus/bin/master -a \
-f /usr/local/etc/cyrus.conf -a \
-f /usr/local/etc/imapd.conf ]; then
/usr/local/cyrus/bin/master -d
echo -n ' imapd'
fi
;;
stop)
if [ -r /var/run/cyrus-master.pid ]; then
kill `cat /var/run/cyrus-master.pid` && echo -n ' imapd'
rm /var/run/cyrus-master.pid
fi
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
# PROVIDE: cyrus_imapd
# REQUIRE: DAEMON
# BEFORE: mail
# KEYWORD: FreeBSD shutdown
#
# NOTE for FreeBSD 5.0+:
# If you want this script to start with the base rc scripts
# move imapd.sh to /etc/rc.d/cyrus_imapd
exit 0
prefix=%%PREFIX%%
# Define these imapd_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/cyrus_imapd
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
cyrus_imapd_enable="YES" # Enable imapd
#cyrus_imapd_program="${prefix}/cyrus/bin/master" # Location of imapd
cyrus_imapd_flags="-d" # Flags to imapd program
. %%RC_SUBR%%
name="cyrus_imapd"
rcvar=`set_rcvar`
command="${prefix}/cyrus/bin/master"
pidfile="/var/run/cyrus-master.pid"
required_files="${prefix}/etc/cyrus.conf ${prefix}/etc/imapd.conf"
load_rc_config $name
run_rc_command "$1"

View File

@ -22,6 +22,8 @@ CONFLICTS= cyrus-1.* cyrus-imapd-2.[^2].*
LIB_DEPENDS= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend
USE_RC_SUBR= YES
USE_PERL5= yes
USE_REINPLACE= YES
GNU_CONFIGURE= YES

View File

@ -3,24 +3,35 @@
# Start or stop cyrus-imapd
# $FreeBSD$
case "$1" in
start)
if [ -x /usr/local/cyrus/bin/master -a \
-f /usr/local/etc/cyrus.conf -a \
-f /usr/local/etc/imapd.conf ]; then
/usr/local/cyrus/bin/master -d
echo -n ' imapd'
fi
;;
stop)
if [ -r /var/run/cyrus-master.pid ]; then
kill `cat /var/run/cyrus-master.pid` && echo -n ' imapd'
rm /var/run/cyrus-master.pid
fi
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
# PROVIDE: cyrus_imapd
# REQUIRE: DAEMON
# BEFORE: mail
# KEYWORD: FreeBSD shutdown
#
# NOTE for FreeBSD 5.0+:
# If you want this script to start with the base rc scripts
# move imapd.sh to /etc/rc.d/cyrus_imapd
exit 0
prefix=%%PREFIX%%
# Define these imapd_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/cyrus_imapd
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
cyrus_imapd_enable="YES" # Enable imapd
#cyrus_imapd_program="${prefix}/cyrus/bin/master" # Location of imapd
cyrus_imapd_flags="-d" # Flags to imapd program
. %%RC_SUBR%%
name="cyrus_imapd"
rcvar=`set_rcvar`
command="${prefix}/cyrus/bin/master"
pidfile="/var/run/cyrus-master.pid"
required_files="${prefix}/etc/cyrus.conf ${prefix}/etc/imapd.conf"
load_rc_config $name
run_rc_command "$1"