b5f8865812
2) Incorporate changes from PR 57382: - add rc.subr support - cleanup sed variable replacement scripts - add pointer to Clam Antivirus to installation message PR 57382 was closed by mistake, I thought the contents have already been commited, while they were not. PR: 59323 Submitted by: milter@free.fr (1) Submitted by: Martin Matuska <martin@tradex.sk> (2) Approved by: MAINTAINER
34 lines
585 B
Bash
34 lines
585 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: amavis_milter
|
|
# REQUIRE: amavisd
|
|
# BEFORE: amavisd
|
|
# KEYWORD: FreeBSD shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable amavis-milter:
|
|
#
|
|
#amavis_milter_enable="YES"
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name=amavis_milter
|
|
rcvar=`set_rcvar`
|
|
|
|
command=%%PREFIX%%/sbin/amavis-milter
|
|
|
|
amavis_milter_user=%%AMAVISUSER%%
|
|
|
|
required_files=%%PREFIX%%/etc/amavisd.conf
|
|
|
|
# set defaults
|
|
|
|
amavis_milter_enable=${amavis_milter_enable:-"NO"}
|
|
amavis_milter_flags=${amavis_milter_flags:-"-D -p %%AMAVISDIR%%/amavis-milter.sock"}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|