mirror of
https://git.freebsd.org/ports.git
synced 2025-06-23 13:40:34 -04:00
- Remove "empty variable" assignment from rc script [1] - Re-introduce optional SPF support [2] - Remove default DISTNAME assignment from Makefile - The affected OPTIONS are off by default, so do not bump PORTREVISION PR: [1]: ports/147731 [2]: ports/150428 Submitted by: [1]: ohauer@ [2]: mm@
47 lines
1.1 KiB
Bash
47 lines
1.1 KiB
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: postfix mail
|
|
# REQUIRE: %%REQUIRE%%
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable postfix:
|
|
# postfix_enable (bool): Set it to "YES" to enable postfix.
|
|
# Default is "NO".
|
|
# postfix_pidfile (path): Set full path to master.pid.
|
|
# Default is "/var/spool/postfix/pid/master.pid".
|
|
# postfix_procname (command): Set command that start master. Used to verify if
|
|
# postfix is running.
|
|
# Default is "%%PREFIX%%/libexec/postfix/master".
|
|
# postfix_flags (str): Flags passed to postfix-script on startup.
|
|
# Default is "".
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="postfix"
|
|
rcvar=${name}_enable
|
|
|
|
load_rc_config $name
|
|
|
|
: ${postfix_enable:="NO"}
|
|
: ${postfix_pidfile:="/var/spool/postfix/pid/master.pid"}
|
|
: ${postfix_procname:="%%PREFIX%%/libexec/postfix/master"}
|
|
|
|
start_cmd=${name}_start
|
|
stop_cmd=${name}_stop
|
|
extra_commands="reload"
|
|
|
|
pidfile=${postfix_pidfile}
|
|
procname=${postfix_procname}
|
|
|
|
postfix_start() {
|
|
%%PREFIX%%/sbin/postfix ${postfix_flags} start
|
|
}
|
|
|
|
postfix_stop() {
|
|
%%PREFIX%%/sbin/postfix ${postfix_flags} stop
|
|
}
|
|
|
|
run_rc_command "$1"
|