From: JINMEI Tatuya Date: Fri, 21 Oct 2011 23:24:02 +0000 (-0700) Subject: [869] install auth_xfrout_conn under package subdirectory not directly under X-Git-Tag: perftcpdns_before_epoll~35^2~24^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3fbd47b4323cbd12fdf3c07af74a6dd7514492a;p=thirdparty%2Fkea.git [869] install auth_xfrout_conn under package subdirectory not directly under localstatedir. (e.g.) /usr/local/var/bind10-devel instead of /usr/local/var. also updated the EOL code of auth/spec_config.h.pre.in from CR+LF (DOS style) to LF (unix style), mainly for consistency. --- diff --git a/src/bin/auth/spec_config.h.pre.in b/src/bin/auth/spec_config.h.pre.in index 52581ddbc6..1b1df19b0e 100644 --- a/src/bin/auth/spec_config.h.pre.in +++ b/src/bin/auth/spec_config.h.pre.in @@ -1,16 +1,16 @@ -// Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC") -// -// Permission to use, copy, modify, and/or distribute this software for any -// purpose with or without fee is hereby granted, provided that the above -// copyright notice and this permission notice appear in all copies. -// -// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH -// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -// AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, -// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -// PERFORMANCE OF THIS SOFTWARE. - -#define AUTH_SPECFILE_LOCATION "@prefix@/share/@PACKAGE@/auth.spec" -#define UNIX_SOCKET_FILE "@@LOCALSTATEDIR@@/auth_xfrout_conn" +// Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC") +// +// Permission to use, copy, modify, and/or distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH +// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +// AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, +// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +// PERFORMANCE OF THIS SOFTWARE. + +#define AUTH_SPECFILE_LOCATION "@prefix@/share/@PACKAGE@/auth.spec" +#define UNIX_SOCKET_FILE "@@LOCALSTATEDIR@@/@PACKAGE@/auth_xfrout_conn" diff --git a/src/bin/xfrout/tests/xfrout_test.py.in b/src/bin/xfrout/tests/xfrout_test.py.in index 85979a012e..c1d0ba164e 100644 --- a/src/bin/xfrout/tests/xfrout_test.py.in +++ b/src/bin/xfrout/tests/xfrout_test.py.in @@ -922,7 +922,7 @@ class TestInitialization(unittest.TestCase): self.setEnv("BIND10_XFROUT_SOCKET_FILE", None) xfrout.init_paths() self.assertEqual(xfrout.UNIX_SOCKET_FILE, - "@@LOCALSTATEDIR@@/auth_xfrout_conn") + "@@LOCALSTATEDIR@@/@PACKAGE_NAME@/auth_xfrout_connn") def testProvidedSocket(self): self.setEnv("B10_FROM_BUILD", None) diff --git a/src/bin/xfrout/xfrout.py.in b/src/bin/xfrout/xfrout.py.in index 8049e29e3a..cf3b04ff4f 100755 --- a/src/bin/xfrout/xfrout.py.in +++ b/src/bin/xfrout/xfrout.py.in @@ -85,7 +85,7 @@ def init_paths(): if "BIND10_XFROUT_SOCKET_FILE" in os.environ: UNIX_SOCKET_FILE = os.environ["BIND10_XFROUT_SOCKET_FILE"] else: - UNIX_SOCKET_FILE = "@@LOCALSTATEDIR@@/auth_xfrout_conn" + UNIX_SOCKET_FILE = "@@LOCALSTATEDIR@@/@PACKAGE_NAME@/auth_xfrout_conn" init_paths()