#!/bin/sh # # $FreeBSD: head/mail/spamtrap-milter/files/spamtrap-milter.in 340872 2016-04-24 00:14:07Z michelle $ # # PROVIDE: spamtrap_milter # REQUIRE: DAEMON # BEFORE: mail # KEYWORD: shutdown # Add the following lines to /etc/rc.conf to enable `milter-spamtrap': # # milter_spamtrap_enable="YES" # . /etc/rc.subr name="milter_spamtrap" rcvar=milter_spamtrap_enable command="%%PREFIX%%/bin/spamtrap-milter" required_files="%%PREFIX%%/etc/spamtrap-milter.conf" # read configuration and set defaults load_rc_config "$name" : ${milter-spamtrap_enable="NO"} run_rc_command "$1"