mirror of
https://github.com/vdukhovni/postfix
synced 2025-08-30 13:48:06 +00:00
postfix-2.12-20140629
This commit is contained in:
committed by
Viktor Dukhovni
parent
bbe8bc4b5a
commit
92f20c6bf8
@@ -20050,7 +20050,7 @@ Apologies for any names omitted.
|
|||||||
|
|
||||||
Cleanup: need to evaluate mail_version before evaluating
|
Cleanup: need to evaluate mail_version before evaluating
|
||||||
parameters that may contain $mail_version. File:
|
parameters that may contain $mail_version. File:
|
||||||
global/mail_params.h
|
global/mail_params.c.
|
||||||
|
|
||||||
Cleanup: the postmulti command now exercises the postconf
|
Cleanup: the postmulti command now exercises the postconf
|
||||||
"-x" option to expand $parameter_name in secondary-instance
|
"-x" option to expand $parameter_name in secondary-instance
|
||||||
@@ -20066,5 +20066,14 @@ Apologies for any names omitted.
|
|||||||
Bugfix (introduced: 20140626) broken build and broken install
|
Bugfix (introduced: 20140626) broken build and broken install
|
||||||
with default shlib_directory. Files: makedefs.
|
with default shlib_directory. Files: makedefs.
|
||||||
|
|
||||||
Bugfix (introduced: 20140627) broken install with default
|
Bugfix (introduced: 20140627) "make install" stopped with
|
||||||
shlib_directory. Files: conf/post-install.
|
a bogus error when there was no real "make install name=value"
|
||||||
|
parameter override. Files: conf/post-install.
|
||||||
|
|
||||||
|
Cleanup: support MAIL_VERSION magic (see INSTALL) only at
|
||||||
|
the end of a parameter value. Files: proto/INSTALL.html
|
||||||
|
makedefs, postfix-install, conf/postfix-files.
|
||||||
|
|
||||||
|
Cleanup: use ${mail_version} as the MAIL_VERSION-unexpanded
|
||||||
|
form. Viktor Dukhovni. Files: makedefs, postfix-install,
|
||||||
|
conf/postfix-files.
|
||||||
|
@@ -254,9 +254,9 @@ database plugins from the wrong Postfix version. For example:
|
|||||||
shlib_directory=/usr/local/lib/postfix/MAIL_VERSION ...
|
shlib_directory=/usr/local/lib/postfix/MAIL_VERSION ...
|
||||||
|
|
||||||
The command "make makefiles name=value..." will replace the string MAIL_VERSION
|
The command "make makefiles name=value..." will replace the string MAIL_VERSION
|
||||||
in a configuration parameter value with the Postfix release version. Do not try
|
at the end of a configuration parameter value with the Postfix release version.
|
||||||
to specify something like $mail_version on this command line. This produces
|
Do not try to specify something like $mail_version on this command line. This
|
||||||
inconsistent results with different versions of the make(1) command.
|
produces inconsistent results with different versions of the make(1) command.
|
||||||
|
|
||||||
You can change the shlib_directory setting after Postfix is built, with "make
|
You can change the shlib_directory setting after Postfix is built, with "make
|
||||||
install" or "make upgrade". However, you may have to run ldconfig if you change
|
install" or "make upgrade". However, you may have to run ldconfig if you change
|
||||||
@@ -290,10 +290,10 @@ example:
|
|||||||
|
|
||||||
Here is a tip if you want to make a pathname dependent on the Postfix release
|
Here is a tip if you want to make a pathname dependent on the Postfix release
|
||||||
version: the command "make makefiles name=value..." will replace the string
|
version: the command "make makefiles name=value..." will replace the string
|
||||||
MAIL_VERSION in a configuration parameter value with the Postfix release
|
MAIL_VERSION at the end of a configuration parameter value with the Postfix
|
||||||
version. Do not try to specify something like $mail_version on this command
|
release version. Do not try to specify something like $mail_version on this
|
||||||
line. This produces inconsistent results with different versions of the make(1)
|
command line. This produces inconsistent results with different versions of the
|
||||||
command.
|
make(1) command.
|
||||||
|
|
||||||
You can override the meta_directory setting after Postfix is built, with "make
|
You can override the meta_directory setting after Postfix is built, with "make
|
||||||
install" or "make upgrade".
|
install" or "make upgrade".
|
||||||
@@ -302,10 +302,10 @@ install" or "make upgrade".
|
|||||||
# make install meta_directory=/usr/libexec/postfix ...
|
# make install meta_directory=/usr/libexec/postfix ...
|
||||||
|
|
||||||
As with the command "make makefiles, the command "make install/upgrade
|
As with the command "make makefiles, the command "make install/upgrade
|
||||||
name=value..." will replace the string MAIL_VERSION in a configuration
|
name=value..." will replace the string MAIL_VERSION at the end of a
|
||||||
parameter value with the Postfix release version. Do not try to specify
|
configuration parameter value with the Postfix release version. Do not try to
|
||||||
something like $mail_version on this command line. This produces inconsistent
|
specify something like $mail_version on this command line. This produces
|
||||||
results with different versions of the make(1) command.
|
inconsistent results with different versions of the make(1) command.
|
||||||
|
|
||||||
4.4.4 Tips for distribution maintainers
|
4.4.4 Tips for distribution maintainers
|
||||||
|
|
||||||
@@ -384,10 +384,10 @@ directory other than /etc/postfix, use:
|
|||||||
$ make
|
$ make
|
||||||
|
|
||||||
The command "make makefiles name=value ..." will replace the string
|
The command "make makefiles name=value ..." will replace the string
|
||||||
MAIL_VERSION in a configuration parameter value with the Postfix release
|
MAIL_VERSION at the end of a configuration parameter value with the Postfix
|
||||||
version. Do not try to specify something like $mail_version on this command
|
release version. Do not try to specify something like $mail_version on this
|
||||||
line. This produces inconsistent results with different versions of the make(1)
|
command line. This produces inconsistent results with different versions of the
|
||||||
command.
|
make(1) command.
|
||||||
|
|
||||||
Parameters whose defaults can be specified in this way are listed below. See
|
Parameters whose defaults can be specified in this way are listed below. See
|
||||||
the postconf(5) manpage for a description (command: "nroff -man man/man5/
|
the postconf(5) manpage for a description (command: "nroff -man man/man5/
|
||||||
@@ -709,10 +709,10 @@ following commands as the super-user:
|
|||||||
settings or main.cf settings.
|
settings or main.cf settings.
|
||||||
|
|
||||||
The command "make install/upgrade name=value ..." will replace the string
|
The command "make install/upgrade name=value ..." will replace the string
|
||||||
MAIL_VERSION in a configuration parameter value with the Postfix release
|
MAIL_VERSION at the end of a configuration parameter value with the Postfix
|
||||||
version. Do not try to specify something like $mail_version on this command
|
release version. Do not try to specify something like $mail_version on this
|
||||||
line. This produces inconsistent results with different versions of the
|
command line. This produces inconsistent results with different versions of
|
||||||
make(1) command.
|
the make(1) command.
|
||||||
|
|
||||||
6.4 - Configure Postfix
|
6.4 - Configure Postfix
|
||||||
|
|
||||||
|
@@ -254,9 +254,9 @@ database plugins from the wrong Postfix version. For example:
|
|||||||
shlib_directory=/usr/local/lib/postfix/MAIL_VERSION ...
|
shlib_directory=/usr/local/lib/postfix/MAIL_VERSION ...
|
||||||
|
|
||||||
The command "make makefiles name=value..." will replace the string MAIL_VERSION
|
The command "make makefiles name=value..." will replace the string MAIL_VERSION
|
||||||
in a configuration parameter value with the Postfix release version. Do not try
|
at the end of a configuration parameter value with the Postfix release version.
|
||||||
to specify something like $mail_version on this command line. This produces
|
Do not try to specify something like $mail_version on this command line. This
|
||||||
inconsistent results with different versions of the make(1) command.
|
produces inconsistent results with different versions of the make(1) command.
|
||||||
|
|
||||||
You can change the shlib_directory setting after Postfix is built, with "make
|
You can change the shlib_directory setting after Postfix is built, with "make
|
||||||
install" or "make upgrade". However, you may have to run ldconfig if you change
|
install" or "make upgrade". However, you may have to run ldconfig if you change
|
||||||
@@ -290,10 +290,10 @@ example:
|
|||||||
|
|
||||||
Here is a tip if you want to make a pathname dependent on the Postfix release
|
Here is a tip if you want to make a pathname dependent on the Postfix release
|
||||||
version: the command "make makefiles name=value..." will replace the string
|
version: the command "make makefiles name=value..." will replace the string
|
||||||
MAIL_VERSION in a configuration parameter value with the Postfix release
|
MAIL_VERSION at the end of a configuration parameter value with the Postfix
|
||||||
version. Do not try to specify something like $mail_version on this command
|
release version. Do not try to specify something like $mail_version on this
|
||||||
line. This produces inconsistent results with different versions of the make(1)
|
command line. This produces inconsistent results with different versions of the
|
||||||
command.
|
make(1) command.
|
||||||
|
|
||||||
You can override the meta_directory setting after Postfix is built, with "make
|
You can override the meta_directory setting after Postfix is built, with "make
|
||||||
install" or "make upgrade".
|
install" or "make upgrade".
|
||||||
@@ -302,10 +302,10 @@ install" or "make upgrade".
|
|||||||
# make install meta_directory=/usr/libexec/postfix ...
|
# make install meta_directory=/usr/libexec/postfix ...
|
||||||
|
|
||||||
As with the command "make makefiles, the command "make install/upgrade
|
As with the command "make makefiles, the command "make install/upgrade
|
||||||
name=value..." will replace the string MAIL_VERSION in a configuration
|
name=value..." will replace the string MAIL_VERSION at the end of a
|
||||||
parameter value with the Postfix release version. Do not try to specify
|
configuration parameter value with the Postfix release version. Do not try to
|
||||||
something like $mail_version on this command line. This produces inconsistent
|
specify something like $mail_version on this command line. This produces
|
||||||
results with different versions of the make(1) command.
|
inconsistent results with different versions of the make(1) command.
|
||||||
|
|
||||||
44..44..44 TTiippss ffoorr ddiissttrriibbuuttiioonn mmaaiinnttaaiinneerrss
|
44..44..44 TTiippss ffoorr ddiissttrriibbuuttiioonn mmaaiinnttaaiinneerrss
|
||||||
|
|
||||||
@@ -384,10 +384,10 @@ directory other than /etc/postfix, use:
|
|||||||
$ make
|
$ make
|
||||||
|
|
||||||
The command "make makefiles name=value ..." will replace the string
|
The command "make makefiles name=value ..." will replace the string
|
||||||
MAIL_VERSION in a configuration parameter value with the Postfix release
|
MAIL_VERSION at the end of a configuration parameter value with the Postfix
|
||||||
version. Do not try to specify something like $mail_version on this command
|
release version. Do not try to specify something like $mail_version on this
|
||||||
line. This produces inconsistent results with different versions of the make(1)
|
command line. This produces inconsistent results with different versions of the
|
||||||
command.
|
make(1) command.
|
||||||
|
|
||||||
Parameters whose defaults can be specified in this way are listed below. See
|
Parameters whose defaults can be specified in this way are listed below. See
|
||||||
the postconf(5) manpage for a description (command: "nroff -man man/man5/
|
the postconf(5) manpage for a description (command: "nroff -man man/man5/
|
||||||
@@ -709,10 +709,10 @@ following commands as the super-user:
|
|||||||
settings or main.cf settings.
|
settings or main.cf settings.
|
||||||
|
|
||||||
The command "make install/upgrade name=value ..." will replace the string
|
The command "make install/upgrade name=value ..." will replace the string
|
||||||
MAIL_VERSION in a configuration parameter value with the Postfix release
|
MAIL_VERSION at the end of a configuration parameter value with the Postfix
|
||||||
version. Do not try to specify something like $mail_version on this command
|
release version. Do not try to specify something like $mail_version on this
|
||||||
line. This produces inconsistent results with different versions of the
|
command line. This produces inconsistent results with different versions of
|
||||||
make(1) command.
|
the make(1) command.
|
||||||
|
|
||||||
66..44 -- CCoonnffiigguurree PPoossttffiixx
|
66..44 -- CCoonnffiigguurree PPoossttffiixx
|
||||||
|
|
||||||
|
@@ -424,8 +424,9 @@ POSTCONF="$command_directory/postconf"
|
|||||||
|
|
||||||
# Save settings, allowing command line/environment override.
|
# Save settings, allowing command line/environment override.
|
||||||
|
|
||||||
# Undo MAIL_VERSION expansion. If someone really wants the expanded
|
# Undo MAIL_VERSION expansion at the end of a parameter value. If
|
||||||
# mail version in main.cf, we're sorry.
|
# someone really wants the expanded mail version in main.cf, then
|
||||||
|
# we're sorry.
|
||||||
|
|
||||||
# Confine side effects from mail_version unexpansion within a subshell.
|
# Confine side effects from mail_version unexpansion within a subshell.
|
||||||
|
|
||||||
@@ -441,7 +442,7 @@ do
|
|||||||
case "$pattern" in
|
case "$pattern" in
|
||||||
"") pattern=`echo "$mail_version" | sed 's/\./\\\\./g'` || exit 1
|
"") pattern=`echo "$mail_version" | sed 's/\./\\\\./g'` || exit 1
|
||||||
esac
|
esac
|
||||||
val=`echo "$junk" | sed "s/$pattern/"'$mail_version/g'` || exit 1
|
val=`echo "$junk" | sed "s/$pattern"'$/${mail_version}/g'` || exit 1
|
||||||
eval ${name}='"$val"'
|
eval ${name}='"$val"'
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
@@ -379,9 +379,9 @@ $ make makefiles shared=yes \
|
|||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<p> The command "make makefiles name=value..." will replace the
|
<p> The command "make makefiles name=value..." will replace the
|
||||||
string MAIL_VERSION in a configuration parameter value with the
|
string MAIL_VERSION at the end of a configuration parameter value
|
||||||
Postfix release version. Do not try to specify something like
|
with the Postfix release version. Do not try to specify something
|
||||||
$<a href="postconf.5.html#mail_version">mail_version</a> on this command line. This produces inconsistent
|
like $<a href="postconf.5.html#mail_version">mail_version</a> on this command line. This produces inconsistent
|
||||||
results with different versions of the make(1) command. </p>
|
results with different versions of the make(1) command. </p>
|
||||||
|
|
||||||
<p> You can change the <a href="postconf.5.html#shlib_directory">shlib_directory</a> setting after Postfix is
|
<p> You can change the <a href="postconf.5.html#shlib_directory">shlib_directory</a> setting after Postfix is
|
||||||
@@ -431,11 +431,11 @@ at compile time specify, for example: </p>
|
|||||||
|
|
||||||
<p> Here is a tip if you want to make a pathname dependent on the
|
<p> Here is a tip if you want to make a pathname dependent on the
|
||||||
Postfix release version: the command "make makefiles name=value..."
|
Postfix release version: the command "make makefiles name=value..."
|
||||||
will replace the string MAIL_VERSION in a configuration parameter
|
will replace the string MAIL_VERSION at the end of a configuration
|
||||||
value with the Postfix release version. Do not try to specify
|
parameter value with the Postfix release version. Do not try to
|
||||||
something like $<a href="postconf.5.html#mail_version">mail_version</a> on this command line. This produces
|
specify something like $<a href="postconf.5.html#mail_version">mail_version</a> on this command line. This
|
||||||
inconsistent results with different versions of the make(1) command.
|
produces inconsistent results with different versions of the make(1)
|
||||||
</p>
|
command. </p>
|
||||||
|
|
||||||
<p> You can override the <a href="postconf.5.html#meta_directory">meta_directory</a> setting after Postfix is
|
<p> You can override the <a href="postconf.5.html#meta_directory">meta_directory</a> setting after Postfix is
|
||||||
built, with "make install" or "make upgrade". </p>
|
built, with "make install" or "make upgrade". </p>
|
||||||
@@ -449,10 +449,10 @@ built, with "make install" or "make upgrade". </p>
|
|||||||
|
|
||||||
<p> As with the command "make makefiles, the command "make
|
<p> As with the command "make makefiles, the command "make
|
||||||
install/upgrade name=value..." will replace the string MAIL_VERSION
|
install/upgrade name=value..." will replace the string MAIL_VERSION
|
||||||
in a configuration parameter value with the Postfix release version.
|
at the end of a configuration parameter value with the Postfix
|
||||||
Do not try to specify something like $<a href="postconf.5.html#mail_version">mail_version</a> on this command
|
release version. Do not try to specify something like $<a href="postconf.5.html#mail_version">mail_version</a>
|
||||||
line. This produces inconsistent results with different versions
|
on this command line. This produces inconsistent results with
|
||||||
of the make(1) command. </p>
|
different versions of the make(1) command. </p>
|
||||||
|
|
||||||
<h4><a name="shared_tips"> 4.4.4 Tips for distribution maintainers
|
<h4><a name="shared_tips"> 4.4.4 Tips for distribution maintainers
|
||||||
</a></h4>
|
</a></h4>
|
||||||
@@ -561,9 +561,9 @@ $ make
|
|||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<p> The command "make makefiles name=value ..." will replace the
|
<p> The command "make makefiles name=value ..." will replace the
|
||||||
string MAIL_VERSION in a configuration parameter value with the
|
string MAIL_VERSION at the end of a configuration parameter value
|
||||||
Postfix release version. Do not try to specify something like
|
with the Postfix release version. Do not try to specify something
|
||||||
$<a href="postconf.5.html#mail_version">mail_version</a> on this command line. This produces inconsistent
|
like $<a href="postconf.5.html#mail_version">mail_version</a> on this command line. This produces inconsistent
|
||||||
results with different versions of the make(1) command. </p>
|
results with different versions of the make(1) command. </p>
|
||||||
|
|
||||||
<p> Parameters whose defaults can be specified in this way are
|
<p> Parameters whose defaults can be specified in this way are
|
||||||
@@ -977,10 +977,11 @@ or "make upgrade" command line, then these will take precedence
|
|||||||
over compiled-in default settings or <a href="postconf.5.html">main.cf</a> settings. </p>
|
over compiled-in default settings or <a href="postconf.5.html">main.cf</a> settings. </p>
|
||||||
|
|
||||||
<p> The command "make install/upgrade name=value ..." will replace
|
<p> The command "make install/upgrade name=value ..." will replace
|
||||||
the string MAIL_VERSION in a configuration parameter value with the
|
the string MAIL_VERSION at the end of a configuration parameter
|
||||||
Postfix release version. Do not try to specify something like
|
value with the Postfix release version. Do not try to specify
|
||||||
$<a href="postconf.5.html#mail_version">mail_version</a> on this command line. This produces inconsistent
|
something like $<a href="postconf.5.html#mail_version">mail_version</a> on this command line. This produces
|
||||||
results with different versions of the make(1) command. </p>
|
inconsistent results with different versions of the make(1) command.
|
||||||
|
</p>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
@@ -19,11 +19,12 @@
|
|||||||
# command line). Use quotes if variables contain whitespace
|
# command line). Use quotes if variables contain whitespace
|
||||||
# or shell meta characters.
|
# or shell meta characters.
|
||||||
#
|
#
|
||||||
# The "make makefiles name=value..." command will replace the
|
# The command "make makefiles name=value..." will replace the
|
||||||
# string MAIL_VERSION in a parameter value with the Postfix
|
# string MAIL_VERSION at the end of a parameter value with
|
||||||
# release version. Do not try to specify something like
|
# the Postfix release version. Do not try to specify something
|
||||||
# $mail_version on this command line. This produces inconsistent
|
# like $mail_version on this command line. This produces
|
||||||
# results with different versions of the make(1) command.
|
# inconsistent results with different versions of the make(1)
|
||||||
|
# command.
|
||||||
# .IP \fBAUXLIBS=\fIobject_library...\fR
|
# .IP \fBAUXLIBS=\fIobject_library...\fR
|
||||||
# Specifies one or more non-default object libraries. Postfix
|
# Specifies one or more non-default object libraries. Postfix
|
||||||
# 2,12 and later specify some of their database library
|
# 2,12 and later specify some of their database library
|
||||||
@@ -723,11 +724,11 @@ CCARGS="-I. -I../../include $CCARGS"
|
|||||||
# nothing.
|
# nothing.
|
||||||
#
|
#
|
||||||
# Requiring people to specify $$ is not a good option. Instead we
|
# Requiring people to specify $$ is not a good option. Instead we
|
||||||
# replace the string MAIL_VERSION in "make makefiles name=value"
|
# replace the string MAIL_VERSION at the end of parameter values in
|
||||||
# parameter values with a form that depends on usage context: the
|
# "make makefiles name=value...". The replacement depends on usage
|
||||||
# actual release version in actual pathnames, the unexpanded
|
# context: the expanded release version in actual pathnames, or the
|
||||||
# $mail_version in main.cf parameter values and built-in default
|
# unexpanded ${mail_version} in configuration parameter values (both
|
||||||
# parameter settings.
|
# main.cf and and built-in defaults).
|
||||||
|
|
||||||
# Helper function to determine DEF_MAIL_VERSION.
|
# Helper function to determine DEF_MAIL_VERSION.
|
||||||
|
|
||||||
@@ -758,39 +759,25 @@ EOF
|
|||||||
rm -f makedefs.test makedefs.test.[co]
|
rm -f makedefs.test makedefs.test.[co]
|
||||||
}
|
}
|
||||||
|
|
||||||
# Helper function to expand MAIL_VERSION in command-line value.
|
# Helper to expand MAIL_VERSION at the end of a command-line parameter value.
|
||||||
|
|
||||||
expand_MAIL_VERSION()
|
# Note that MAIL_VERSION) does not anchor the match at the end.
|
||||||
{
|
|
||||||
case "$mail_version" in
|
|
||||||
"") mail_version=`def_mail_version` || exit 1
|
|
||||||
esac
|
|
||||||
echo "$1" | sed "s/MAIL_VERSION/$mail_version/g"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# Helper function to expand $mail_version in parameter value.
|
|
||||||
|
|
||||||
expand_mail_version()
|
|
||||||
{
|
|
||||||
case "$mail_version" in
|
|
||||||
"") mail_version=`def_mail_version` || exit 1
|
|
||||||
esac
|
|
||||||
echo "$1" | sed "
|
|
||||||
s/\$[{(]mail_version[)}]/$mail_version/g
|
|
||||||
s/\$mail_version/$mail_version/g
|
|
||||||
"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Helper to invoke the above. global: parm_name, parm_val, cparm_val, CCARGS.
|
|
||||||
|
|
||||||
process_input_parameter()
|
process_input_parameter()
|
||||||
{
|
{
|
||||||
case "$parm_val" in
|
case "$parm_val" in
|
||||||
*MAIL_VERSION*)
|
*MAIL_VERSION*)
|
||||||
cparm_val=`echo "$parm_val"|sed 's/MAIL_VERSION/\\\\$$mail_version/g'`||
|
cparm_val=`echo "$parm_val" | \
|
||||||
|
sed 's/MAIL_VERSION$/\\\\$${mail_version}/g'`|| exit 1
|
||||||
|
case "$mail_version" in
|
||||||
|
"") mail_version=`def_mail_version` || exit 1
|
||||||
|
esac
|
||||||
|
parm_val=`echo "$parm_val" | sed 's/MAIL_VERSION$/'"$mail_version/g"` ||
|
||||||
exit 1
|
exit 1
|
||||||
parm_val=`expand_MAIL_VERSION "$parm_val"` || exit 1
|
case "$parm_val" in
|
||||||
|
*MAIL_VERSION*)
|
||||||
|
error "MAIL_VERSION not at end of parameter value: $parm_val"
|
||||||
|
esac
|
||||||
eval ${parm_name}=\""\$parm_val"\";;
|
eval ${parm_name}=\""\$parm_val"\";;
|
||||||
*) cparm_val="$parm_val";;
|
*) cparm_val="$parm_val";;
|
||||||
esac
|
esac
|
||||||
@@ -894,11 +881,7 @@ yes)
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Determine the shared-library and plugin installation directory.
|
# Determine the shared-library and plugin installation directory.
|
||||||
# The shlib_directory parameter is special. If the DEF_SHLIB_DIR
|
|
||||||
# C-language constant ends in "$mail_version" then the custom
|
|
||||||
# code below expands this by peeking at the DEF_MAIL_VERSION
|
|
||||||
# C-language constant.
|
|
||||||
#
|
|
||||||
parm_name=shlib_directory
|
parm_name=shlib_directory
|
||||||
eval parm_val=\"\$$parm_name\"
|
eval parm_val=\"\$$parm_name\"
|
||||||
eval parm_macro=\"\$${parm_name}_macro\"
|
eval parm_macro=\"\$${parm_name}_macro\"
|
||||||
|
@@ -58,14 +58,15 @@
|
|||||||
# .IP "command line"
|
# .IP "command line"
|
||||||
# Parameter settings can be given as name=value arguments on
|
# Parameter settings can be given as name=value arguments on
|
||||||
# the postfix-install command line. This mode will replace
|
# the postfix-install command line. This mode will replace
|
||||||
# the string MAIL_VERSION in a configuration parameter value
|
# the string MAIL_VERSION at the end of a configuration
|
||||||
# with the Postfix release version (Postfix 2.12 and later).
|
# parameter value with the Postfix release version (Postfix
|
||||||
|
# 2.12 and later).
|
||||||
# .IP "process environment"
|
# .IP "process environment"
|
||||||
# Parameter settings can be given as name=value environment
|
# Parameter settings can be given as name=value environment
|
||||||
# variables. Environment parameters can also be specified on
|
# variables. Environment parameters can also be specified on
|
||||||
# the make(1) command line as "make install name=value ...".
|
# the make(1) command line as "make install name=value ...".
|
||||||
# This mode will replace the string MAIL_VERSION in a
|
# This mode will replace the string MAIL_VERSION at the end
|
||||||
# configuration parameter value with the Postfix release
|
# of a configuration parameter value with the Postfix release
|
||||||
# version (Postfix 2.12 and later).
|
# version (Postfix 2.12 and later).
|
||||||
# .IP "installed configuration files"
|
# .IP "installed configuration files"
|
||||||
# If a parameter is not specified via the command line or via the
|
# If a parameter is not specified via the command line or via the
|
||||||
@@ -235,9 +236,11 @@ html_directory mail_owner mailq_path manpage_directory newaliases_path \
|
|||||||
queue_directory readme_directory sendmail_path setgid_group shlib_directory \
|
queue_directory readme_directory sendmail_path setgid_group shlib_directory \
|
||||||
meta_directory"
|
meta_directory"
|
||||||
|
|
||||||
# Expand the string MAIL_VERSION in "make install" etc. name=value
|
# Expand the string MAIL_VERSION at the end of "make install" etc.
|
||||||
# command-line arguments (and consequently, in environment settings),
|
# name=value command-line arguments (and consequently, in environment
|
||||||
# for consistency with "make makefiles".
|
# settings), for consistency with "make makefiles".
|
||||||
|
|
||||||
|
# Note that MAIL_VERSION) does not anchor the match at the end.
|
||||||
|
|
||||||
for name in $CONFIG_PARAMS sample_directory install_root tempdir
|
for name in $CONFIG_PARAMS sample_directory install_root tempdir
|
||||||
do
|
do
|
||||||
@@ -247,8 +250,12 @@ do
|
|||||||
case "$mail_version" in
|
case "$mail_version" in
|
||||||
"") mail_version="`bin/postconf -dhx mail_version`" || exit 1
|
"") mail_version="`bin/postconf -dhx mail_version`" || exit 1
|
||||||
esac
|
esac
|
||||||
eval ${name}=\"`echo "$junk" | sed "s/MAIL_VERSION/$mail_version/g"`\" ||
|
val=`echo "$junk" | sed 's/MAIL_VERSION$/'"$mail_version/g"` || exit 1
|
||||||
exit 1;;
|
case "$val" in
|
||||||
|
*MAIL_VERSION*)
|
||||||
|
echo "MAIL_VERSION not at end of parameter value: $junk" 1>&2; exit 1
|
||||||
|
esac
|
||||||
|
eval ${name}='"$val"'
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -804,8 +811,9 @@ case "$mail_version" in
|
|||||||
"") mail_version="`bin/postconf -dhx mail_version`" || exit 1
|
"") mail_version="`bin/postconf -dhx mail_version`" || exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Undo MAIL_VERSION expansion. If someone really wants the expanded
|
# Undo MAIL_VERSION expansion at the end of a parameter value. If
|
||||||
# mail version in main.cf, we're sorry.
|
# someone really wants the expanded mail version in main.cf, then
|
||||||
|
# we're sorry.
|
||||||
|
|
||||||
for name in $CONFIG_PARAMS sample_directory
|
for name in $CONFIG_PARAMS sample_directory
|
||||||
do
|
do
|
||||||
@@ -815,7 +823,7 @@ do
|
|||||||
case "$pattern" in
|
case "$pattern" in
|
||||||
"") pattern=`echo "$mail_version" | sed 's/\./\\\\./g'` || exit 1
|
"") pattern=`echo "$mail_version" | sed 's/\./\\\\./g'` || exit 1
|
||||||
esac
|
esac
|
||||||
val=`echo "$junk" | sed "s/$pattern/"'$mail_version/g'` || exit 1
|
val=`echo "$junk" | sed "s/$pattern"'$/${mail_version}/g'` || exit 1
|
||||||
eval ${name}='"$val"'
|
eval ${name}='"$val"'
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
@@ -379,9 +379,9 @@ $ make makefiles shared=yes \
|
|||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<p> The command "make makefiles name=value..." will replace the
|
<p> The command "make makefiles name=value..." will replace the
|
||||||
string MAIL_VERSION in a configuration parameter value with the
|
string MAIL_VERSION at the end of a configuration parameter value
|
||||||
Postfix release version. Do not try to specify something like
|
with the Postfix release version. Do not try to specify something
|
||||||
$mail_version on this command line. This produces inconsistent
|
like $mail_version on this command line. This produces inconsistent
|
||||||
results with different versions of the make(1) command. </p>
|
results with different versions of the make(1) command. </p>
|
||||||
|
|
||||||
<p> You can change the shlib_directory setting after Postfix is
|
<p> You can change the shlib_directory setting after Postfix is
|
||||||
@@ -431,11 +431,11 @@ at compile time specify, for example: </p>
|
|||||||
|
|
||||||
<p> Here is a tip if you want to make a pathname dependent on the
|
<p> Here is a tip if you want to make a pathname dependent on the
|
||||||
Postfix release version: the command "make makefiles name=value..."
|
Postfix release version: the command "make makefiles name=value..."
|
||||||
will replace the string MAIL_VERSION in a configuration parameter
|
will replace the string MAIL_VERSION at the end of a configuration
|
||||||
value with the Postfix release version. Do not try to specify
|
parameter value with the Postfix release version. Do not try to
|
||||||
something like $mail_version on this command line. This produces
|
specify something like $mail_version on this command line. This
|
||||||
inconsistent results with different versions of the make(1) command.
|
produces inconsistent results with different versions of the make(1)
|
||||||
</p>
|
command. </p>
|
||||||
|
|
||||||
<p> You can override the meta_directory setting after Postfix is
|
<p> You can override the meta_directory setting after Postfix is
|
||||||
built, with "make install" or "make upgrade". </p>
|
built, with "make install" or "make upgrade". </p>
|
||||||
@@ -449,10 +449,10 @@ built, with "make install" or "make upgrade". </p>
|
|||||||
|
|
||||||
<p> As with the command "make makefiles, the command "make
|
<p> As with the command "make makefiles, the command "make
|
||||||
install/upgrade name=value..." will replace the string MAIL_VERSION
|
install/upgrade name=value..." will replace the string MAIL_VERSION
|
||||||
in a configuration parameter value with the Postfix release version.
|
at the end of a configuration parameter value with the Postfix
|
||||||
Do not try to specify something like $mail_version on this command
|
release version. Do not try to specify something like $mail_version
|
||||||
line. This produces inconsistent results with different versions
|
on this command line. This produces inconsistent results with
|
||||||
of the make(1) command. </p>
|
different versions of the make(1) command. </p>
|
||||||
|
|
||||||
<h4><a name="shared_tips"> 4.4.4 Tips for distribution maintainers
|
<h4><a name="shared_tips"> 4.4.4 Tips for distribution maintainers
|
||||||
</a></h4>
|
</a></h4>
|
||||||
@@ -561,9 +561,9 @@ $ make
|
|||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<p> The command "make makefiles name=value ..." will replace the
|
<p> The command "make makefiles name=value ..." will replace the
|
||||||
string MAIL_VERSION in a configuration parameter value with the
|
string MAIL_VERSION at the end of a configuration parameter value
|
||||||
Postfix release version. Do not try to specify something like
|
with the Postfix release version. Do not try to specify something
|
||||||
$mail_version on this command line. This produces inconsistent
|
like $mail_version on this command line. This produces inconsistent
|
||||||
results with different versions of the make(1) command. </p>
|
results with different versions of the make(1) command. </p>
|
||||||
|
|
||||||
<p> Parameters whose defaults can be specified in this way are
|
<p> Parameters whose defaults can be specified in this way are
|
||||||
@@ -977,10 +977,11 @@ or "make upgrade" command line, then these will take precedence
|
|||||||
over compiled-in default settings or main.cf settings. </p>
|
over compiled-in default settings or main.cf settings. </p>
|
||||||
|
|
||||||
<p> The command "make install/upgrade name=value ..." will replace
|
<p> The command "make install/upgrade name=value ..." will replace
|
||||||
the string MAIL_VERSION in a configuration parameter value with the
|
the string MAIL_VERSION at the end of a configuration parameter
|
||||||
Postfix release version. Do not try to specify something like
|
value with the Postfix release version. Do not try to specify
|
||||||
$mail_version on this command line. This produces inconsistent
|
something like $mail_version on this command line. This produces
|
||||||
results with different versions of the make(1) command. </p>
|
inconsistent results with different versions of the make(1) command.
|
||||||
|
</p>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
* Patches change both the patchlevel and the release date. Snapshots have no
|
* Patches change both the patchlevel and the release date. Snapshots have no
|
||||||
* patchlevel; they change the release date only.
|
* patchlevel; they change the release date only.
|
||||||
*/
|
*/
|
||||||
#define MAIL_RELEASE_DATE "20140627"
|
#define MAIL_RELEASE_DATE "20140629"
|
||||||
#define MAIL_VERSION_NUMBER "2.12"
|
#define MAIL_VERSION_NUMBER "2.12"
|
||||||
|
|
||||||
#ifdef SNAPSHOT
|
#ifdef SNAPSHOT
|
||||||
|
Reference in New Issue
Block a user