Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
Knot Resolver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomas Krizek
Knot Resolver
Commits
d7ddee57
Commit
d7ddee57
authored
Jun 07, 2015
by
Marek Vavruša
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: renamed libkresolve => libkres, kresolved => kresd
also some cleanup and version bump to Q2
parent
16b6dab1
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
61 additions
and
61 deletions
+61
-61
.gitignore
.gitignore
+1
-1
README.md
README.md
+2
-2
config.mk
config.mk
+1
-1
daemon/README.rst
daemon/README.rst
+3
-3
daemon/daemon.mk
daemon/daemon.mk
+9
-9
doc/conf.py
doc/conf.py
+3
-3
doc/lib.rst
doc/lib.rst
+8
-8
lib/generic/README.rst
lib/generic/README.rst
+5
-5
lib/lib.mk
lib/lib.mk
+9
-9
modules/README.rst
modules/README.rst
+1
-1
modules/cachectl/cachectl.mk
modules/cachectl/cachectl.mk
+2
-2
modules/gostats/gostats.mk
modules/gostats/gostats.mk
+2
-2
modules/hints/hints.mk
modules/hints/hints.mk
+2
-2
modules/ketcd/README.rst
modules/ketcd/README.rst
+5
-5
modules/ketcd/ketcd.lua
modules/ketcd/ketcd.lua
+1
-1
modules/kmemcached/kmemcached.mk
modules/kmemcached/kmemcached.mk
+1
-1
modules/stats/stats.mk
modules/stats/stats.mk
+2
-2
scripts/Dockerfile
scripts/Dockerfile
+1
-1
tests/integration.mk
tests/integration.mk
+1
-1
tests/unit.mk
tests/unit.mk
+2
-2
No files found.
.gitignore
View file @
d7ddee57
...
...
@@ -40,7 +40,7 @@ tmp*
/ylwrap
/doc/doxyxml
/doc/html
/daemon/kres
olve
d
/daemon/kresd
/tests/test_array
/tests/test_map
/tests/test_module
...
...
README.md
View file @
d7ddee57
...
...
@@ -35,8 +35,8 @@ See the [Building project][depends] documentation page for more information.
The project builds a resolver library in the
`lib`
directory, and a daemon in the
`daemon`
directory.
```
$ ./daemon/kres
olve
d -h
$ ./daemon/kres
olve
d [working_directory]
$ ./daemon/kresd -h
$ ./daemon/kresd [working_directory]
```
See the documentation at
[
knot-resolver.readthedocs.org
][
doc
]
.
...
...
config.mk
View file @
d7ddee57
# Project
MAJOR
:=
15
MINOR
:=
0
4
MINOR
:=
0
7
PATCH
:=
0
# Paths
...
...
daemon/README.rst
View file @
d7ddee57
...
...
@@ -16,7 +16,7 @@ the `daemon` directory.
.. code-block:: bash
$ ./daemon/kres
olve
d -h
$ ./daemon/kresd -h
Interacting with the daemon
---------------------------
...
...
@@ -26,7 +26,7 @@ You can load modules this way and use their properties to get information about
.. code-block:: bash
$ kres
olve
d /var/run/knot-resolver
$ kresd /var/run/knot-resolver
[system] started in interactive mode, type 'help()'
> cache.count()
53
...
...
@@ -47,7 +47,7 @@ comfortable in the current working directory.
.. code-block:: sh
$ kres
olved /var/run/kresolve
d
$ kres
d /var/run/kres
d
And you're good to go for most use cases! If you want to use modules or configure daemon behavior, read on.
...
...
daemon/daemon.mk
View file @
d7ddee57
kres
olve
d_EMBED
:=
\
kresd_EMBED
:=
\
contrib/ccan/json/json.c
kres
olve
d_SOURCES
:=
\
$(kres
olve
d_EMBED)
\
kresd_SOURCES
:=
\
$(kresd_EMBED)
\
daemon/io.c
\
daemon/network.c
\
daemon/engine.c
\
...
...
@@ -16,18 +16,18 @@ daemon/engine.o: daemon/lua/sandbox.inc daemon/lua/config.inc
@
$(
call
quiet,XXD,
$<
)
$<
>
$@
# Dependencies
kres
olved_DEPEND
:=
$(libkresolve
)
kres
olved_LIBS
:=
$(libkresolve
_TARGET)
$(libknot_LIBS)
$(libuv_LIBS)
$(lua_LIBS)
kres
d_DEPEND
:=
$(libkres
)
kres
d_LIBS
:=
$(libkres
_TARGET)
$(libknot_LIBS)
$(libuv_LIBS)
$(lua_LIBS)
# Make binary
ifeq
($(HAS_lua)|$(HAS_libuv), yes|yes)
$(eval
$(call
make_bin,kres
olve
d,daemon))
$(eval
$(call
make_bin,kresd,daemon))
endif
# Targets
daemon
:
$(kres
olve
d)
daemon-install
:
kres
olve
d-install
daemon-clean
:
kres
olve
d-clean
daemon
:
$(kresd)
daemon-install
:
kresd-install
daemon-clean
:
kresd-clean
@
$(RM)
daemon/lua/
*
.inc
.PHONY
:
daemon daemon-install daemon-clean
doc/conf.py
View file @
d7ddee57
...
...
@@ -11,8 +11,8 @@ if os.environ.get('READTHEDOCS', None) == 'True':
extensions
=
[
'sphinx.ext.todo'
,
'sphinx.ext.viewcode'
,
'breathe'
]
# Breathe configuration
breathe_projects
=
{
"libkres
olve
"
:
"doxyxml"
}
breathe_default_project
=
"libkres
olve
"
breathe_projects
=
{
"libkres"
:
"doxyxml"
}
breathe_default_project
=
"libkres"
breathe_domain_by_extension
=
{
"h"
:
"c"
}
# The suffix of source filenames.
...
...
@@ -66,7 +66,7 @@ latex_documents = [
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages
=
[
(
'index'
,
'libkres
olve'
,
u
'libkresolve
documentation'
,
(
'index'
,
'libkres
'
,
u
'libkres
documentation'
,
[
u
'CZ.NIC Labs'
],
1
)
]
doc/lib.rst
View file @
d7ddee57
...
...
@@ -15,9 +15,9 @@ Name resolution
---------------
.. doxygenfile:: resolve.h
:project: libkres
olve
:project: libkres
.. doxygenfile:: rplan.h
:project: libkres
olve
:project: libkres
.. _lib_api_cache:
...
...
@@ -25,7 +25,7 @@ Cache
-----
.. doxygenfile:: cache.h
:project: libkres
olve
:project: libkres
.. _lib_api_nameservers:
...
...
@@ -33,9 +33,9 @@ Nameservers
-----------
.. doxygenfile:: nsrep.h
:project: libkres
olve
:project: libkres
.. doxygenfile:: zonecut.h
:project: libkres
olve
:project: libkres
.. _lib_api_modules:
...
...
@@ -43,15 +43,15 @@ Modules
-------
.. doxygenfile:: module.h
:project: libkres
olve
:project: libkres
Utilities
---------
.. doxygenfile:: utils.h
:project: libkres
olve
:project: libkres
.. doxygenfile:: defines.h
:project: libkres
olve
:project: libkres
.. _lib_generics:
...
...
lib/generic/README.rst
View file @
d7ddee57
...
...
@@ -16,30 +16,30 @@ array
~~~~~
.. doxygenfile:: array.h
:project: libkres
olve
:project: libkres
map
~~~
.. doxygenfile:: map.h
:project: libkres
olve
:project: libkres
set
~~~
.. doxygenfile:: set.h
:project: libkres
olve
:project: libkres
pack
~~~~
.. doxygenfile:: pack.h
:project: libkres
olve
:project: libkres
lru
~~~
.. doxygenfile:: lru.h
:project: libkres
olve
:project: libkres
.. _`Crit-bit tree`: http://cr.yp.to/critbit.html
lib/lib.mk
View file @
d7ddee57
...
...
@@ -3,7 +3,7 @@ ccan_EMBED := \
contrib/ccan/isaac/isaac.c
\
contrib/murmurhash3/murmurhash3.c
libkres
olve
_SOURCES
:=
\
libkres_SOURCES
:=
\
$(ccan_EMBED)
\
lib/generic/map.c
\
lib/layer/iterate.c
\
...
...
@@ -17,7 +17,7 @@ libkresolve_SOURCES := \
lib/rplan.c
\
lib/cache.c
libkres
olve
_HEADERS
:=
\
libkres_HEADERS
:=
\
lib/generic/array.h
\
lib/generic/map.h
\
lib/generic/set.h
\
...
...
@@ -31,16 +31,16 @@ libkresolve_HEADERS := \
lib/cache.h
# Dependencies
libkres
olve
_DEPEND
:=
libkres
olve
_LIBS
:=
$(libknot_LIBS)
libkres
olve_TARGET
:=
-Wl
,-rpath,lib
-Llib
-lkresolve
libkres_DEPEND
:=
libkres_LIBS
:=
$(libknot_LIBS)
libkres
_TARGET
:=
-Wl
,-rpath,lib
-Llib
-lkres
# Make library
$(eval
$(call
make_static,libkres
olve
,lib))
$(eval
$(call
make_static,libkres,lib))
# Targets
lib
:
$(libkres
olve
)
lib-install
:
libkres
olve
-install
lib-clean
:
libkres
olve
-clean
lib
:
$(libkres)
lib-install
:
libkres-install
lib-clean
:
libkres-clean
.PHONY
:
lib lib-install lib-clean
modules/README.rst
View file @
d7ddee57
...
...
@@ -314,7 +314,7 @@ Once you load the module, you can call the module property from the interactive
..
code
-
block
::
bash
$
kres
olve
d
$
kresd
...
[
system
]
started
in
interactive
mode
,
type
'help()'
>
modules
.
load
(
'cached'
)
...
...
modules/cachectl/cachectl.mk
View file @
d7ddee57
cachectl_SOURCES
:=
modules/cachectl/cachectl.c
cachectl_DEPEND
:=
$(libkres
olve
)
cachectl_LIBS
:=
$(libkres
olve_TARGET)
$(libkresolve
_LIBS)
cachectl_DEPEND
:=
$(libkres)
cachectl_LIBS
:=
$(libkres
_TARGET)
$(libkres
_LIBS)
$(call
make_c_module,cachectl)
\ No newline at end of file
modules/gostats/gostats.mk
View file @
d7ddee57
gostats_SOURCES
:=
modules/gostats/gostats.go
gostats_DEPEND
:=
$(libkres
olve
)
gostats_LIBS
:=
$(libkres
olve_TARGET)
$(libkresolve
_LIBS)
gostats_DEPEND
:=
$(libkres)
gostats_LIBS
:=
$(libkres
_TARGET)
$(libkres
_LIBS)
$(call
make_go_module,gostats)
\ No newline at end of file
modules/hints/hints.mk
View file @
d7ddee57
hints_SOURCES
:=
modules/hints/hints.c contrib/ccan/json/json.c
hints_DEPEND
:=
$(libkres
olve
)
hints_LIBS
:=
$(libkres
olve_TARGET)
$(libkresolve
_LIBS)
hints_DEPEND
:=
$(libkres)
hints_LIBS
:=
$(libkres
_TARGET)
$(libkres
_LIBS)
$(call
make_c_module,hints)
\ No newline at end of file
modules/ketcd/README.rst
View file @
d7ddee57
...
...
@@ -4,16 +4,16 @@ Etcd module
-----------
The module connects to Etcd peers and watches for configuration change.
By default, the module looks for the subtree under ``/kres
olve
d`` directory,
By default, the module looks for the subtree under ``/kresd`` directory,
but you can change this `in the configuration <https://github.com/mah0x211/lua-etcd#cli-err--etcdnew-optiontable->`_.
The subtree structure corresponds to the configuration variables in the declarative style.
.. code-block:: bash
$ etcdctl set /kres
olve
d/net/127.0.0.1 53
$ etcdctl set /kres
olve
d/modules/cachectl true
$ etcdctl set /kres
olve
d/cache/size 10000000
$ etcdctl set /kresd/net/127.0.0.1 53
$ etcdctl set /kresd/modules/cachectl true
$ etcdctl set /kresd/cache/size 10000000
Configures all listening nodes to following configuration:
...
...
@@ -30,7 +30,7 @@ Example configuration
modules = {
ketcd = {
prefix = '/kres
olve
d',
prefix = '/kresd',
peer = 'http://127.0.0.1:7001'
}
}
...
...
modules/ketcd/ketcd.lua
View file @
d7ddee57
...
...
@@ -28,7 +28,7 @@ end
function
ketcd
.
init
(
module
)
ketcd
.
Etcd
=
require
(
'etcd.luasocket'
)
ketcd
.
defaults
=
{
prefix
=
'/kres
olve
d'
}
ketcd
.
defaults
=
{
prefix
=
'/kresd'
}
end
function
ketcd
.
deinit
(
module
)
...
...
modules/kmemcached/kmemcached.mk
View file @
d7ddee57
kmemcached_SOURCES
:=
modules/kmemcached/kmemcached.c modules/kmemcached/namedb_memcached.c
kmemcached_LIBS
:=
$(libkres
olve_TARGET)
$(libkresolve
_LIBS)
$(libmemcached_LIBS)
kmemcached_LIBS
:=
$(libkres
_TARGET)
$(libkres
_LIBS)
$(libmemcached_LIBS)
$(call
make_c_module,kmemcached)
modules/stats/stats.mk
View file @
d7ddee57
stats_SOURCES
:=
modules/stats/stats.c contrib/ccan/json/json.c
stats_DEPEND
:=
$(libkres
olve
)
stats_LIBS
:=
$(libkres
olve_TARGET)
$(libkresolve
_LIBS)
stats_DEPEND
:=
$(libkres)
stats_LIBS
:=
$(libkres
_TARGET)
$(libkres
_LIBS)
$(call
make_c_module,stats)
scripts/Dockerfile
View file @
d7ddee57
...
...
@@ -14,7 +14,7 @@ EXPOSE 53
# Select entrypoint
WORKDIR
/data
CMD
["/usr/local/bin/kres
olve
d"]
CMD
["/usr/local/bin/kresd"]
# Install dependencies and sources
RUN
\
...
...
tests/integration.mk
View file @
d7ddee57
...
...
@@ -5,7 +5,7 @@
# Mocked calls library
libmock_calls_SOURCES
:=
tests/mock_calls.c
libmock_calls_LIBS
:=
$(tests_LIBS)
$(python_LIBS)
libmock_calls_DEPEND
:=
$(libkres
olve
)
libmock_calls_DEPEND
:=
$(libkres)
$(eval
$(call
make_lib,libmock_calls,tests))
# Python module for tests
...
...
tests/unit.mk
View file @
d7ddee57
...
...
@@ -21,8 +21,8 @@ mock_gomodule_SOURCES := tests/mock_gomodule.c
$(eval
$(call
make_lib,mock_gomodule,tests))
# Dependencies
tests_DEPEND
:=
$(libkres
olve
)
$(mock_cmodule)
$(mock_gomodule)
tests_LIBS
:=
$(libkres
olve_TARGET)
$(libkresolve
_LIBS)
$(cmocka_LIBS)
tests_DEPEND
:=
$(libkres)
$(mock_cmodule)
$(mock_gomodule)
tests_LIBS
:=
$(libkres
_TARGET)
$(libkres
_LIBS)
$(cmocka_LIBS)
# Make test binaries
define
make_test
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment