mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
69a6bd94a5
- Modernize RC_SUBR usage. - Pet portlint(1) Submitted by: Maurice Castro <maurice sphinx clari net au> [1] PR: ports/94715 Approved by: sem (mentor)
40 lines
731 B
Bash
40 lines
731 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: pfspamd
|
|
# REQUIRE: NETWORKING
|
|
# BEFORE: mail
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable spamd:
|
|
# pfspamd_enable (bool): Set to "NO" by default.
|
|
# Set it to "YES" to enable spamd
|
|
# pfspamd_flags (str): Set to "" by default.
|
|
# Extra flags passed to start command.
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="pfspamd"
|
|
rcvar=`set_rcvar`
|
|
|
|
command="%%PREFIX%%/libexec/spamd"
|
|
start_postcmd="pfspamd_postcmd"
|
|
restart_postcmd="pfspamd_postcmd"
|
|
|
|
[ -z "$pfspamd_enable" ] && pfspamd_enable="NO"
|
|
[ -z "$pfspamd_flags" ] && pfspamd_flags=""
|
|
|
|
load_rc_config $name
|
|
|
|
pfspamd_postcmd()
|
|
{
|
|
if [ -x %%PREFIX%%/sbin/spamd-setup ]; then
|
|
%%PREFIX%%/sbin/spamd-setup
|
|
fi
|
|
}
|
|
|
|
run_rc_command "$1"
|