2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 04:57:52 +00:00

909 Commits

Author SHA1 Message Date
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
Jeremy C. Reed
129c064ffd Renamed the source for bindctl that way
when running in the source directory it (previously
bindctl.py) wouldn't be imported by bindctl.
Don't know if this is the best way.
Should be no change for the installed bindctl.

While here add another TODO.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1415 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-15 16:17:13 +00:00
JINMEI Tatuya
67df3c7a40 removed AX_COMPILER_VENDOR: We don't rely on it, and it can be even harmful
for environments where it's not available.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1403 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-14 23:46:46 +00:00
JINMEI Tatuya
fcd4ba602b allowed manually specififying a path to python (when only older versions of
automake is available)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1399 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-14 20:45:07 +00:00
Jeremy C. Reed
87e20bcb3d Install bindctl itself and not the shell script which was
running it from the source tree.
TODO: get the bindctl modules installed.
(As it is now the installed bindctl does not run.)

Renamed the bindctl shell script to run_bindctl.sh which can be ran
from the source.

Rename the run_loadzone to include "sh" to be like the rest in bind10.
(That is not installed.)

Update README to mention the run_*.sh scripts.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1372 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 21:16:15 +00:00
JINMEI Tatuya
60e25cf01d Specific versions of gcc (g++) have a bug that incorrectly warns with
-Wextra as follows: "[class name] has a field [member name] whose type
uses the anonymous namespace", even if the anonymous namespqce in
question is closed in the single translation unit:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29365

AFAICS, the intent was to warn it if the anonymous namespace is used
in a header file (which can easily violate the One Definition Rule as
discussed in the bugzilla), but gcc seemingly did too much to prevent
that.

Unfortunately this bug prohibits us from specifying -Werror, so we
selectively disable this flag by identifying g++ used for build has
this bug.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1371 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 20:26:53 +00:00
Jeremy C. Reed
8744991be6 Remove extra tabs.
Remove isc/Util/makefile build. This not used.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1369 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 17:16:02 +00:00
Jelte Jansen
f189032a01 rename unittests/ dirs to tests/
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1360 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-12 12:32:09 +00:00
Jelte Jansen
d0dbc94384 use libtool for libcfgclient too
moved tests into unittests/ subdirectory
added boostlibs ldd flag if needed


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1321 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-11 10:17:03 +00:00
JINMEI Tatuya
87ccb0c631 - tighten validation on incoming requests. return an response rather than
ignoring requests when an error occurs
- added a framework for auth server unit test with an initial simple test


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1306 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-11 00:14:33 +00:00
JINMEI Tatuya
2ab95a0f72 cancel not-yet-ready part of the patch
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1305 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-11 00:03:07 +00:00
JINMEI Tatuya
3a29ffe4f5 - made lib/dns -Wextra safe.
- introduced new macro UNUSED_PARAM to tell gcc that particular variables are
  intentionally unused
- enabled -Wextra by default


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1304 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-10 23:59:29 +00:00
Jeremy C. Reed
e5579aa496 Add -Wextra to the default compiler settings for GCC.
(I removed this from my on-commit autobuilder custom flags.)
Note that it doesn't have -Werror.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1302 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-10 23:48:50 +00:00
Jelte Jansen
700baf90cd specifying only --with-boostlib in configure makes make stop because $boostlib will be set to 'yes', so we need to test the system libraries in that case too
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1282 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-10 16:12:31 +00:00
Likun Zhang
fd89e862b5 Move usermgr from "trunk/tools/" to "trunk/src/bin" according Jeremy's suggestion. usermgr can be installed now.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1272 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-10 08:48:08 +00:00
Evan Hunt
4eb18c3bb8 add src/lib/auth/tests to configure
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1262 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-10 04:38:54 +00:00
Jeremy C. Reed
36c1a6d261 Don't override CXXFLAGS, just append.
(So user can choose there own on configure line and
also don't lose what configure detects and assigns.)

Add a TODO: check for _sqlite3.py module


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1254 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-10 00:20:35 +00:00
JINMEI Tatuya
6749cda4de allow --without-boostlib (or --with-boostlib=no) to force disabling
boost library (and boost::asio)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1253 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-09 23:57:44 +00:00
JINMEI Tatuya
07b1694cab renamed auth/config.h to auth/spec_config.h as it confused the compiler
with ${top_dir}/config.h.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1251 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-09 23:27:09 +00:00
JINMEI Tatuya
f9129adbd1 sync with trunk
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-asio@1248 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-09 22:42:40 +00:00
Likun Zhang
7e9fb87baf Add the code for module xfrin.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1235 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-09 14:13:18 +00:00
JINMEI Tatuya
91cfdfed1b incorporated the jelte-tcp branch, and made it possible to selectively build
the ASIO version or the builtin socket API version depending on the
availability of the boost::system library.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-asio@1226 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-09 04:42:29 +00:00
Shane Kerr
1257b9301f Moved tests to their own subdirectory.
Adding wait for retry on process failure.



git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1220 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-08 22:21:25 +00:00
JINMEI Tatuya
14297b86e7 experimental UDP/TCP auth server using boost::asio
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/jinmei-asio@1195 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-08 07:58:25 +00:00
Jeremy C. Reed
67ceab04f4 Don't need to make b10-loadzone executable. It already is.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1141 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 22:05:05 +00:00
Evan Hunt
98062144f4 Merged b10-loadzone command
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1139 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 19:45:24 +00:00
Jeremy C. Reed
f6b56b4754 Add minimum version of sqlite3.
I don't know if this is perfect, but I read that the sqlite3_prepare_v2 API
was added in 3.3.9.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1135 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 18:41:03 +00:00
Jeremy C. Reed
8b7224c5d5 Remove AC_PROG_RANLIB since is obsolete when using AC_PROG_LIBTOOL.
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1133 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 17:59:55 +00:00
Jeremy C. Reed
2e119c7e22 Restructure trunk again.
This is based on ideas done in experiments/jreed-layout, but
I manually did this again.

Moved around directory structures.
A single python subdirectory under src/lib for single "isc" module.
No "cpp" directories.

No pyshared or includes symlink trees.

I tested running the c++ tests and python tests.
I tested running run_bind10.sh from source tree (with nothing installed).
I tested running bind10 from installed (after moving source).


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1120 e5f2f494-b856-4b98-b285-d166d9295462
2010-03-05 04:31:28 +00:00