diff options
author | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-01-16 21:47:02 +0000 |
---|---|---|
committer | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-01-16 21:47:02 +0000 |
commit | 89bd724a1b39771c0c5873d5d77e7cb34162ab1a (patch) | |
tree | 64465217292942052b3c367be98e14ffb109bddb /mail/postfix-current | |
parent | 94ce4ffc8c47fdff557835b91a0137793362d0d4 (diff) | |
download | ports-89bd724a1b39771c0c5873d5d77e7cb34162ab1a.tar.gz ports-89bd724a1b39771c0c5873d5d77e7cb34162ab1a.zip |
Update to 2.3-20060112
Modify rc.d script like example in Porters Handbook.
Notes
Notes:
svn path=/head/; revision=153684
Diffstat (limited to 'mail/postfix-current')
-rw-r--r-- | mail/postfix-current/Makefile | 3 | ||||
-rw-r--r-- | mail/postfix-current/distinfo | 6 | ||||
-rw-r--r-- | mail/postfix-current/files/postfix.sh.in | 26 |
3 files changed, 19 insertions, 16 deletions
diff --git a/mail/postfix-current/Makefile b/mail/postfix-current/Makefile index cd353640e1d1..d1c2f96ecc96 100644 --- a/mail/postfix-current/Makefile +++ b/mail/postfix-current/Makefile @@ -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/ \ diff --git a/mail/postfix-current/distinfo b/mail/postfix-current/distinfo index b91078be85a8..5a1842ba53ff 100644 --- a/mail/postfix-current/distinfo +++ b/mail/postfix-current/distinfo @@ -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 diff --git a/mail/postfix-current/files/postfix.sh.in b/mail/postfix-current/files/postfix.sh.in index 6ef4b39c77e1..c44c1d84b050 100644 --- a/mail/postfix-current/files/postfix.sh.in +++ b/mail/postfix-current/files/postfix.sh.in @@ -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" |