mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-22 18:19:42 +00:00
Get rid of overriding default --sysconfdir and --localstatedir autoconf options
Previously the autoconf script set sysconfdir to /etc and localstatedir to /var if they were not explicitly set in the ./configure invocation. This MR reverts the override and make it more in line with default and generally expected autoconf behavior.
This commit is contained in:
parent
5aaee26ed0
commit
a8dd98fbac
@ -255,11 +255,8 @@ default, installation is into /usr/local, but this can be changed with the
|
|||||||
|
|
||||||
You may specify the option `--sysconfdir` to set the directory where
|
You may specify the option `--sysconfdir` to set the directory where
|
||||||
configuration files like `named.conf` go by default, and `--localstatedir`
|
configuration files like `named.conf` go by default, and `--localstatedir`
|
||||||
to set the default parent directory of `run/named.pid`. For backwards
|
to set the default parent directory of `run/named.pid`. `--sysconfdir`
|
||||||
compatibility with BIND 8, `--sysconfdir` defaults to `/etc` and
|
defaults to `$prefix/etc` and `--localstatedir` defaults to `$prefix/var`.
|
||||||
`--localstatedir` defaults to `/var` if no `--prefix` option is given. If
|
|
||||||
there is a `--prefix` option, sysconfdir defaults to `$prefix/etc` and
|
|
||||||
localstatedir defaults to `$prefix/var`.
|
|
||||||
|
|
||||||
### <a name="testing"/> Automated testing
|
### <a name="testing"/> Automated testing
|
||||||
|
|
||||||
|
33
configure
vendored
33
configure
vendored
@ -12669,39 +12669,10 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Special processing of paths depending on whether --prefix,
|
# expanded_sysconfdir is needed for replacement in the python utilities
|
||||||
# --sysconfdir or --localstatedir arguments were given. What's
|
|
||||||
# desired is some compatibility with the way previous versions
|
|
||||||
# of BIND built; they defaulted to /usr/local for most parts of
|
|
||||||
# the installation, but named.boot/named.conf was in /etc
|
|
||||||
# and named.pid was in /var/run.
|
|
||||||
#
|
#
|
||||||
# So ... if none of --prefix, --sysconfdir or --localstatedir are
|
# TODO: use sed in the Makefile instead of autoconf to do the replacement
|
||||||
# specified, set things up that way. If --prefix is given, use
|
|
||||||
# it for sysconfdir and localstatedir the way configure normally
|
|
||||||
# would. To change the prefix for everything but leave named.conf
|
|
||||||
# in /etc or named.pid in /var/run, then do this the usual configure way:
|
|
||||||
# ./configure --prefix=/somewhere --sysconfdir=/etc
|
|
||||||
# ./configure --prefix=/somewhere --localstatedir=/var
|
|
||||||
#
|
#
|
||||||
# To put named.conf and named.pid in /usr/local with everything else,
|
|
||||||
# set the prefix explicitly to /usr/local even though that's the default:
|
|
||||||
# ./configure --prefix=/usr/local
|
|
||||||
#
|
|
||||||
case "$prefix" in
|
|
||||||
NONE)
|
|
||||||
case "$sysconfdir" in
|
|
||||||
'${prefix}/etc')
|
|
||||||
sysconfdir=/etc
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
case "$localstatedir" in
|
|
||||||
'${prefix}/var')
|
|
||||||
localstatedir=/var
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
expanded_sysconfdir=`eval echo $sysconfdir`
|
expanded_sysconfdir=`eval echo $sysconfdir`
|
||||||
|
|
||||||
|
|
||||||
|
33
configure.ac
33
configure.ac
@ -304,39 +304,8 @@ AC_SUBST(PYTHON_INSTALL_DIR)
|
|||||||
AC_SUBST(PYTHON_INSTALL_LIB)
|
AC_SUBST(PYTHON_INSTALL_LIB)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Special processing of paths depending on whether --prefix,
|
# expanded_sysconfdir is needed for replacement in the python utilities
|
||||||
# --sysconfdir or --localstatedir arguments were given. What's
|
|
||||||
# desired is some compatibility with the way previous versions
|
|
||||||
# of BIND built; they defaulted to /usr/local for most parts of
|
|
||||||
# the installation, but named.boot/named.conf was in /etc
|
|
||||||
# and named.pid was in /var/run.
|
|
||||||
#
|
#
|
||||||
# So ... if none of --prefix, --sysconfdir or --localstatedir are
|
|
||||||
# specified, set things up that way. If --prefix is given, use
|
|
||||||
# it for sysconfdir and localstatedir the way configure normally
|
|
||||||
# would. To change the prefix for everything but leave named.conf
|
|
||||||
# in /etc or named.pid in /var/run, then do this the usual configure way:
|
|
||||||
# ./configure --prefix=/somewhere --sysconfdir=/etc
|
|
||||||
# ./configure --prefix=/somewhere --localstatedir=/var
|
|
||||||
#
|
|
||||||
# To put named.conf and named.pid in /usr/local with everything else,
|
|
||||||
# set the prefix explicitly to /usr/local even though that's the default:
|
|
||||||
# ./configure --prefix=/usr/local
|
|
||||||
#
|
|
||||||
case "$prefix" in
|
|
||||||
NONE)
|
|
||||||
case "$sysconfdir" in
|
|
||||||
'${prefix}/etc')
|
|
||||||
sysconfdir=/etc
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
case "$localstatedir" in
|
|
||||||
'${prefix}/var')
|
|
||||||
localstatedir=/var
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
expanded_sysconfdir=`eval echo $sysconfdir`
|
expanded_sysconfdir=`eval echo $sysconfdir`
|
||||||
AC_SUBST(expanded_sysconfdir)
|
AC_SUBST(expanded_sysconfdir)
|
||||||
|
|
||||||
|
@ -240,6 +240,17 @@
|
|||||||
the problem. [GL #1055]
|
the problem. [GL #1055]
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
<command>./configure</command> no longer sets
|
||||||
|
<command>--sysconfdir</command> to <command>/etc</command> or
|
||||||
|
<command>--localstatedir</command> to <command>/var</command>
|
||||||
|
when <command>--prefix</command> is not specified and the
|
||||||
|
aforementioned options are not specified explicitly. Instead,
|
||||||
|
Autoconf's defaults of <command>$prefix/etc</command> and
|
||||||
|
<command>$prefix/var</command> are respected.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user