#!/bin/sh # $FreeBSD: head/mail/spmfilter/files/spmfilter.in 340222 2014-01-18 22:57:37Z danilo $ # # PROVIDE: spmfilter # REQUIRE: %%REQUIRE%% # BEFORE: mail # KEYWORD: shutdown # # # Add the following lines to /etc/rc.conf to enable spmfilter: # # spmfilter_enable="YES" # # See spmfilter(1) for flags or the config file. # . /etc/rc.subr name=spmfilter rcvar=spmfilter_enable command=%%PREFIX%%/sbin/spmfilter sig_stop=KILL load_rc_config $name : ${spmfilter_enable="NO"} : ${spmfilter_config="%%PREFIX%%/etc/spmfilter.conf"} : ${spmfilter_flags="-f ${spmfilter_config}"} run_rc_command "$1"