2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

187 Commits

Author SHA1 Message Date
Jelte Jansen
ae076ba6fb add an isc_config.py 'module' for paths and possibly other configure-time variables (currently only BIND10_MSGQ_SOCKET_FILE, and currently only used in lib/python/isc/cc/session.py)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac223@2049 e5f2f494-b856-4b98-b285-d166d9295462
2010-06-02 11:53:23 +00:00
Jeremy C. Reed
7eafb11c21 Update the version (prepare for release).
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2036 e5f2f494-b856-4b98-b285-d166d9295462
2010-06-02 03:37:17 +00:00
Jeremy C. Reed
2658288a31 Remove ext/boost hierarchy.
Remove the use of ext/boost from configure.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac217-remove-ext-boost@2017 e5f2f494-b856-4b98-b285-d166d9295462
2010-06-01 18:02:17 +00:00
Jelte Jansen
51803e4064 git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2009 e5f2f494-b856-4b98-b285-d166d9295462 2010-05-31 21:00:29 +00:00
Jelte Jansen
1e7b973839 rename HAVE_SIN_LEN macro to HAVE_SA_LEN, and use it for setting sun_len in the custom domain socket handler in lib/cc/session.cc
(removing the custom code altogether in favour of asio is under consideration)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac183@2008 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-31 19:29:15 +00:00
Jerry
5ebd3daa01 Add unittest shell script
Add __init__ function to RotatingFileHandler class



git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac176@2006 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-31 09:36:27 +00:00
JINMEI Tatuya
08604a8516 wording fixes to comment lines.
trivial, skipping review.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1993 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-31 01:42:42 +00:00
JINMEI Tatuya
ad7077f60e disalbe /dev/poll with ASIO (trac #211).
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1992 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-31 01:05:35 +00:00
JINMEI Tatuya
18fb5d007c detect problematic implementation of kqueue EV_SET to avoid the use of it with ASIO
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac168@1954 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-28 01:25:08 +00:00
JINMEI Tatuya
737c49cf85 addressed some portability issues with non boost ASIO:
- suppress the gcc unused parameters warning selectively (as a workaround) in a most portable way
 - introduce B10_CXXFLAGS as the default to AM_CXXFLAGS to make the first change possible (that's why I modified so many other Makefile.am's even if they are irrelevant to asio)
 - remove dependency on boost system library: it was only needed for the boost version of ASIO.
 - hide details that require ASIO related definitions from xfr_client.h to avoid being hit by the 'unused parameter' problem accidentally.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac168@1953 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-28 00:42:50 +00:00
Evan Hunt
748e5c85b1 - suppress unused-parameter warnings in src/bin/auth/asio_link.cc and
src/lib/cc/session.cc that were triggered by ASIO code.
- move ext/boost and ext/asio each down one level, to ext/boost/boost
  and ext/asio/asio.  This allows groups of external headers to be
  included more selectively: we can switch on asio without also including
  boost, or change the boost include directory without losing asio.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac168@1952 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-27 18:57:15 +00:00
Evan Hunt
aad8d399e2 checkpoint: reverted convigure.ac change, removed UNUSED_PARAM from asio code
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac168@1951 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-27 18:24:10 +00:00
Jerry
df416a7881 Add logging module and unittest in lib/python/isc/log,
also add log in xfrout module for testing.
Currently, logging module supports three channels:stderr
file and syslog.




git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac176@1946 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-27 12:03:32 +00:00
Evan Hunt
fa1daf4df7 Remove --with-boost-lib and --with-boost-include from configure.ac as
they should not be needed now.  (And because --with-boost-include would
cause the build not to find the ASIO headers.)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac168@1921 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-25 23:46:55 +00:00
Jelte Jansen
3ef6ad200f use unix domain socket instead of localhost:9912
on the msgq and python side, the socket file is either:

- what is speficied as an argument to the constructor, OR
- environment variable BIND10_MSGQ_SOCKET_FILE, OR
- default (@localstatedir@/msgq_socket)

in that order.

two open items:

TODO: run_X scripts should set a local file in BIND10_MSGQ_SOCKET_FILE (so if installed dirs don't exist run from source fails right now)
TODO: the c++ boost::asio version has no 'manual override', only environment variable or default. (which is better than what it was before, only hardcoded port 9912), fixing this would mean an API change somewhere


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac183@1901 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-21 14:50:17 +00:00
Jelte Jansen
7bc0d07604 include python wrapper tests in check/coverage report
(lots of stuff missing, most of it from before we did TDD, so i'll fill those out next and then write tests for the features that are to be added before we can merge it)


git-svn-id: svn://bind10.isc.org/svn/bind10/experiments/python-binding@1894 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-21 08:27:22 +00:00
Likun Zhang
80caa56cad Redo revision 1853: Make xfrout works well in source code tree(for details, please see comments of ticket 151), now the UNIX_SOCKET_FILE shared by auth srv and xfrout locates in @localstatedir@, (Jeremy had reviewed this patch. then give some fix suggestion in email.)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1855 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-19 09:26:01 +00:00
Likun Zhang
27b28e338b Revert the revision 1853 which make trunk fail to build.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1854 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-19 04:23:48 +00:00
Likun Zhang
3afb8da35e Fix bug: Make xfrout works well in source code tree(reported in ticket 151). (now the UNIX_SOCKET_FILE shared by auth srv and xfrout locates in @@LOCALSTATEDIR@@)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1853 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-19 02:33:24 +00:00
Jeremy C. Reed
58e62d537b Report detected features, configure settings at end of configure output.
Also saved to a file: config.report.
(Okayed to commit on phone with Shane.)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1836 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-17 14:05:15 +00:00
Jelte Jansen
61dca75df5 update merge; merge trunk rev. 1670 - 1813 into this branch
git-svn-id: svn://bind10.isc.org/svn/bind10/experiments/python-binding@1814 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-12 14:23:18 +00:00
Jeremy C. Reed
ae6a7bdcfb Change the PACKAGE_BUGREPORT email address from non-existent list
to dev list for now.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1801 e5f2f494-b856-4b98-b285-d166d9295462
2010-05-10 13:18:08 +00:00
Evan Hunt
c08b86957c Change libauth to libdatasrc
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1799 e5f2f494-b856-4b98-b285-d166d9295462
2010-04-29 13:22:39 +00:00
JINMEI Tatuya
25d413ecd4 check for the availability of ${python}-config. if unavailable warn about it.
trac ticket #159.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac159@1793 e5f2f494-b856-4b98-b285-d166d9295462
2010-04-22 23:00:03 +00:00
Jeremy C. Reed
5c10d34b68 This is for ticket #153.
Moved msgq tests to own directory.

Added targets for all known python unittests.
Note this is for those that use the unittest module.
Other tests are ignored for now.

These tests are ran using "make check" even if not built
with gtest.

Some of these tests fail. I will comment them out in later commit.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac153@1753 e5f2f494-b856-4b98-b285-d166d9295462
2010-04-20 17:54:47 +00:00
JINMEI Tatuya
9c33cda2e7 typo in a comment line
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac149@1734 e5f2f494-b856-4b98-b285-d166d9295462
2010-04-19 18:52:39 +00:00
JINMEI Tatuya
7226ff3550 removed a debug output
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac149@1733 e5f2f494-b856-4b98-b285-d166d9295462
2010-04-19 18:21:15 +00:00
JINMEI Tatuya
c266bb4590 try ${PYTHON}-config --prefix/lib for a last resort LDFLAGS for libpython (trac #149)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac149@1732 e5f2f494-b856-4b98-b285-d166d9295462
2010-04-19 18:16:43 +00:00
Jelte Jansen
3078257a7b removed accidentally added generated makefiles
updated configure.ac to check for existence of python-config and Python.h


git-svn-id: svn://bind10.isc.org/svn/bind10/experiments/python-binding@1715 e5f2f494-b856-4b98-b285-d166d9295462
2010-04-15 10:43:48 +00:00
Jelte Jansen
460885237d partial python wrapper implementation, see src/lib/dns/python/README for details
git-svn-id: svn://bind10.isc.org/svn/bind10/experiments/python-binding@1711 e5f2f494-b856-4b98-b285-d166d9295462
2010-04-14 15:14:53 +00:00
JINMEI Tatuya
c31aa1717f imoprted Francis's python binding code
git-svn-id: svn://bind10.isc.org/svn/bind10/experiments/python-binding@1671 e5f2f494-b856-4b98-b285-d166d9295462
2010-04-01 17:31:17 +00:00
Jeremy C. Reed
79124a125c Rename spec "pre" files to also include "spec" in the filename.
Some CLEANFILES cleanup (don't need to list files already known
via configure.ac's AC_OUTPUT).

Add b10-xfrout to CLEANFILES to make sure it is removed on a make clean.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1652 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-26 19:12:39 +00:00
Likun Zhang
6dc8c646b1 Rename the folder name for unittest code from 'unittest' to 'tests'.(bindctl, cmdctl, xfrin)
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1646 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-25 11:18:34 +00:00
Likun Zhang
3bbc64dc58 Add unittest code for xfrout.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1643 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-25 10:04:26 +00:00
JINMEI Tatuya
af735f4b79 set BOOST_LDFLAGS only when a non-trivial argument (i.e. neither "yes" nor "no")
to --with-boost-lib is given.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1641 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-24 22:43:26 +00:00
Likun Zhang
3771057f6f Commit code for module xfrout, AXFR-out works now. Notes:
1. When auth server get axfr query in tcp, the query message and tcp socket will be sent to xfrout process over sendmsg/recvmsg, then auth server will close the tcp socket, or get the next tcp query on the socket. Xfrout send the query response over the tcp socket it received from auth server.
2. Since python3.1 didn't provide the wrapper of sendmsg() and recvmsg() for C socket module(Seems they plan do it in python3.2), I have to write the code in c++, and make python binding for it. See the code in file /src/lib/xfr/fd_share.cc and /src/lib/xfr/python_xfr.cc.

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1630 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-23 08:41:24 +00:00
JINMEI Tatuya
7dc2abf503 made --with-pythonpath more friendly with older versions of automake: don't
use AM_PYTHON_CHECK_VERSION.
with additional cleanup: stop hardcoding a particular version number in
configuration variables.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1622 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-21 02:36:03 +00:00
JINMEI Tatuya
7568a2967d removed now-meaningless "auto" setting
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1619 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-20 23:07:16 +00:00
JINMEI Tatuya
6dd3cc5d3b allow the python binding of libdns to be built using automake.
additional related cleanups were made as well.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1617 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-20 22:50:15 +00:00
Jeremy C. Reed
4babde876b Fix the configuration installs.
Now use --disable-install-configurations to disable.
It still checks before overwriting.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1590 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-19 14:06:09 +00:00
Jeremy C. Reed
e294fee818 Also check for the boost/foreach.hpp header.
One one of my systems, I had boost headers, but not this header
so build failed later.
(TODO: should check for boost version too.)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1572 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-19 11:39:08 +00:00
Jeremy C. Reed
f6fb5e78cd add configure switch --disable-configuration-install so can be used
for DISTCHECK_CONFIGURE_FLAGS to disable the custom installation
of configurations, so the make distcheck uninstall doesn't have
leftover files.



git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1570 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-19 04:47:16 +00:00
Jeremy C. Reed
b0c7deb12a Update PACKAGE name and version.
Note the var and etc directories will have "bind10-devel" now.
This makes it clear that this is still experimental.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1567 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-19 02:15:46 +00:00
Evan Hunt
ceb8ef9564 Make b10-auth use a default database path from auth.spec rather than
/tmp/zone.sqlite3.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1536 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-18 20:17:56 +00:00
Evan Hunt
b33c02c5bf Change xfrin to use $localstatedir/$package/zone.sqlite3 for the default
database file.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1516 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-18 16:10:46 +00:00
Jeremy C. Reed
a9de0fa6a2 Only regenerate manual pages if configure is ran with --enable-man.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1510 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-18 12:52:31 +00:00
Jeremy C. Reed
b4bd55b9b7 Add argument --with-boost-include to point to include path.
I have been using this for a few days for building from the tarball
which doesn't include ext/boost and my system doesn't have
boost headers in standard location.

Also check for the boost headers.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1504 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-18 01:56:04 +00:00
Jelte Jansen
ffd58debfc ask for version and platform, and check version of given python binary
(rest of ticket 103)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1499 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-17 23:40:59 +00:00
Jelte Jansen
ad1500ec7a set the Makefile python-related variables if AM_PATH_PYTHON is not used
does not do version and platform checks yet


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1497 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-17 23:16:56 +00:00
Jelte Jansen
67738a41dd added 'offline' unit tests for lib/python/isc/cc/session.py
these don't need the msgq running
we might want to look into the previous test_session.py to see
how much can be moved to this one


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1477 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-17 16:00:15 +00:00