meson: systemd - install drop-in examples

parent 8e4fda46
......@@ -36,8 +36,6 @@ conf_config = configuration_data()
conf_config.set('config_defaults', config_defaults)
conf_config.set('config_managed_ta', config_managed_ta)
examples_dir = join_paths(doc_dir, 'examples')
foreach config_filename : example_configs
configure_file(
input: config_filename + '.in',
......
......@@ -34,6 +34,7 @@ libkres_soversion = 9
prefix = get_option('prefix')
data_dir = join_paths(prefix, get_option('datadir'), 'knot-resolver')
doc_dir = join_paths(prefix, get_option('datadir'), 'doc', 'knot-resolver')
examples_dir = join_paths(doc_dir, 'examples')
etc_dir = join_paths(prefix, get_option('sysconfdir'), 'knot-resolver')
sbin_dir = join_paths(prefix, get_option('sbindir'))
systemd_cache_dir = ''
......
# /etc/systemd/system/kresd-tls.socket.d/override.conf
# Configure kresd-tls.socket to listen on all IPv4 and IPv6 interfaces.
# Empty ListenStream= directive is required to avoid port clash with default
# localhost. If you've disabled IPv6 support in kernel, use 0.0.0.0 instead of
# [::]
[Socket]
ListenStream=
ListenStream=[::]:853
# /etc/systemd/system/kresd-tls.socket.d/override.conf
# Configure which interfaces should kresd-tls.socket listen on.
# ListenStream can be added multiple times.
[Socket]
ListenStream=192.0.2.115:853
ListenStream=[2001:db8::115]:853
# /etc/systemd/system/kresd.socket.d/override.conf
# Configure kresd.socket to listen on all IPv4 and IPv6 interfaces.
# Empty ListenDatagram= and ListenStream= directives are required to avoid port
# clash with default localhost. If you've disabled IPv6 support in kernel, use
# 0.0.0.0 instead of [::]
[Socket]
ListenDatagram=
ListenStream=
ListenDatagram=[::]:53
ListenStream=[::]:53
# /etc/systemd/system/kresd.socket.d/override.conf
# Configure specific interfaces should kresd.socket listen on.
# ListenDatagram and ListenStream can be added multiple times.
[Socket]
ListenDatagram=192.0.2.115:53
ListenStream=192.0.2.115:53
ListenDatagram=[2001:db8::115]:53
ListenStream=[2001:db8::115]:53
......@@ -58,7 +58,21 @@ if systemd_socket
install_dir: systemd_tmpfiles_dir,
)
# TODO example drop-ins
## example drop-ins
install_data(
sources: [
'kresd.socket.d/all-interfaces.conf',
'kresd.socket.d/specific-interfaces.conf',
],
install_dir: join_paths(examples_dir, 'kresd.socket.d'),
)
install_data(
sources: [
'kresd-tls.socket.d/all-interfaces.conf',
'kresd-tls.socket.d/specific-interfaces.conf',
],
install_dir: join_paths(examples_dir, 'kresd-tls.socket.d'),
)
else
subdir('nosocket')
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment