Update to 2.3-20060112

Modify rc.d script like example in Porters Handbook.
This commit is contained in:
Marcus Alves Grando 2006-01-16 21:47:02 +00:00
parent 94ce4ffc8c
commit 89bd724a1b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=153684
3 changed files with 19 additions and 16 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= postfix
DISTVERSION= 2.3-20060103
PORTREVISION= 1
DISTVERSION= 2.3-20060112
PORTEPOCH= 2
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/ \

View File

@ -1,3 +1,3 @@
MD5 (postfix/postfix-2.3-20060103.tar.gz) = f83719525f0d00a88662ed512bc94be2
SHA256 (postfix/postfix-2.3-20060103.tar.gz) = 185c53763cec95bc966f74ac87d050611d76f021af2cf3ac45420b4401d91197
SIZE (postfix/postfix-2.3-20060103.tar.gz) = 2576252
MD5 (postfix/postfix-2.3-20060112.tar.gz) = a1998c65b873e9c02e571dba2a707175
SHA256 (postfix/postfix-2.3-20060112.tar.gz) = 93495d86df2ffea3d064bb961a054d6813af7fb3149aeffb989a948ee45417cd
SIZE (postfix/postfix-2.3-20060112.tar.gz) = 2576937

View File

@ -6,26 +6,31 @@
# REQUIRE: %%REQUIRE%%
# KEYWORD: shutdown
#
# Define these postfix_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/postfix
# 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".
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
postfix_enable="${postfix_enable-NO}"
postfix_pidfile="${postfix_pidfile:-/var/spool/postfix/pid/master.pid}"
postfix_procname="${postfix_procname:-%%PREFIX%%/libexec/postfix/master}"
. %%RC_SUBR%%
name="postfix"
rcvar=`set_rcvar`
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}
@ -37,5 +42,4 @@ postfix_stop() {
%%PREFIX%%/sbin/postfix stop
}
load_rc_config ${name}
run_rc_command "$1"