diff options
author | Jelte Jansen <jelte@isc.org> | 2010-06-02 16:03:02 +0200 |
---|---|---|
committer | Jelte Jansen <jelte@isc.org> | 2010-06-02 16:03:02 +0200 |
commit | 5c7eaa635a026fdf72a745fdf6164ff87666a206 (patch) | |
tree | e4a31bd619c8dc28f6c5f8a016f7ef8cb81f5bba | |
parent | renamed isc_config.py to bind10_config.py (diff) | |
download | kea-5c7eaa635a026fdf72a745fdf6164ff87666a206.tar.xz kea-5c7eaa635a026fdf72a745fdf6164ff87666a206.zip |
add a second B10_FROM_SOURCE env var to run_bind10.sh.in; B10_FROM_BUILD (some spec files are now generated and end up in the build tree instead of the source tree)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac223@2056 e5f2f494-b856-4b98-b285-d166d9295462
-rw-r--r-- | src/bin/auth/main.cc | 4 | ||||
-rw-r--r-- | src/bin/bind10/run_bind10.sh.in | 8 | ||||
-rw-r--r-- | src/bin/xfrin/xfrin.py.in | 6 | ||||
-rw-r--r-- | src/bin/xfrout/xfrout.py.in | 4 |
4 files changed, 14 insertions, 8 deletions
diff --git a/src/bin/auth/main.cc b/src/bin/auth/main.cc index 559a5d9ccb..a0e5ae03a8 100644 --- a/src/bin/auth/main.cc +++ b/src/bin/auth/main.cc @@ -135,8 +135,8 @@ main(int argc, char* argv[]) { int ret = 0; try { string specfile; - if (getenv("B10_FROM_SOURCE")) { - specfile = string(getenv("B10_FROM_SOURCE")) + + if (getenv("B10_FROM_BUILD")) { + specfile = string(getenv("B10_FROM_BUILD")) + "/src/bin/auth/auth.spec"; } else { specfile = string(AUTH_SPECFILE_LOCATION); diff --git a/src/bin/bind10/run_bind10.sh.in b/src/bin/bind10/run_bind10.sh.in index 69a7b114a6..0378df3625 100644 --- a/src/bin/bind10/run_bind10.sh.in +++ b/src/bin/bind10/run_bind10.sh.in @@ -23,11 +23,17 @@ BIND10_PATH=@abs_top_builddir@/src/bin/bind10 PATH=@abs_top_builddir@/src/bin/msgq:@abs_top_builddir@/src/bin/auth:@abs_top_builddir@/src/bin/cfgmgr:@abs_top_builddir@/src/bin/cmdctl:@abs_top_builddir@/src/bin/xfrin:@abs_top_builddir@/src/bin/xfrout:$PATH export PATH -PYTHONPATH=@abs_top_builddir@/src/lib/python:@abs_top_builddir@/src/lib/dns/.libs:@abs_top_builddir@/src/lib/xfr/.libs +PYTHONPATH=@abs_top_srcdir@/src/lib/python:@abs_top_builddir@/src/lib/python:@abs_top_builddir@/src/lib/dns/.libs:@abs_top_builddir@/src/lib/xfr/.libs export PYTHONPATH B10_FROM_SOURCE=@abs_top_srcdir@ export B10_FROM_SOURCE +# TODO: We need to do this feature based (ie. no general from_source) +# But right now we need a second one because some spec files are +# generated and hence end up under builddir +B10_FROM_BUILD=@abs_top_builddir@ +export B10_FROM_BUILD + BIND10_MSGQ_SOCKET_FILE=@abs_top_srcdir@/msgq_socket export BIND10_MSGQ_SOCKET_FILE diff --git a/src/bin/xfrin/xfrin.py.in b/src/bin/xfrin/xfrin.py.in index 3cb21148b2..cba9e6ea50 100644 --- a/src/bin/xfrin/xfrin.py.in +++ b/src/bin/xfrin/xfrin.py.in @@ -35,11 +35,11 @@ except ImportError as e: # must keep running, so we warn about it and move forward. sys.stderr.write('[b10-xfrin] failed to import DNS module: %s\n' % str(e)) -# If B10_FROM_SOURCE is set in the environment, we use data files +# If B10_FROM_BUILD is set in the environment, we use data files # from a directory relative to that, otherwise we use the ones # installed on the system -if "B10_FROM_SOURCE" in os.environ: - SPECFILE_PATH = os.environ["B10_FROM_SOURCE"] + "/src/bin/xfrin" +if "B10_FROM_BUILD" in os.environ: + SPECFILE_PATH = os.environ["B10_FROM_BUILD"] + "/src/bin/xfrin" else: PREFIX = "@prefix@" DATAROOTDIR = "@datarootdir@" diff --git a/src/bin/xfrout/xfrout.py.in b/src/bin/xfrout/xfrout.py.in index 8dde7fbd6c..9f6e72918f 100644 --- a/src/bin/xfrout/xfrout.py.in +++ b/src/bin/xfrout/xfrout.py.in @@ -37,8 +37,8 @@ except ImportError as e: # must keep running, so we warn about it and move forward. sys.stderr.write('[b10-xfrout] failed to import DNS or XFR module: %s\n' % str(e)) -if "B10_FROM_SOURCE" in os.environ: - SPECFILE_PATH = os.environ["B10_FROM_SOURCE"] + "/src/bin/xfrout" +if "B10_FROM_BUILD" in os.environ: + SPECFILE_PATH = os.environ["B10_FROM_BUILD"] + "/src/bin/xfrout" else: PREFIX = "@prefix@" DATAROOTDIR = "@datarootdir@" |