dep_dlopen,
dep_pkcs11,
dep_gss_tsig,
- dep_systemd,
+ dep_libsystemd,
dep_arc4random,
dep_ipcrypt,
dep_json11,
dep_boost_test,
]
-if dep_systemd.found()
+if dep_libsystemd.found()
systemd_service_conf = configuration_data()
systemd_service_conf.set('BinDir', get_option('prefix') / get_option('bindir'))
systemd_service_conf.set('StaticBinDir', get_option('prefix') / get_option('sbindir'))
-opt_systemd = get_option('systemd')
+opt_systemd = get_option('systemd-service')
-dep_systemd = dependency('libsystemd', required: opt_systemd)
-conf.set('HAVE_SYSTEMD', dep_systemd.found(), description: 'libsystemd')
-summary('libsystemd', dep_systemd.found(), bool_yn: true, section: 'Configuration')
+dep_libsystemd = dependency('libsystemd', required: opt_systemd)
+conf.set('HAVE_SYSTEMD', dep_libsystemd.found(), description: 'libsystemd')
+summary('libsystemd', dep_libsystemd.found(), bool_yn: true, section: 'Configuration')
-if dep_systemd.found()
- summary('Lib Version', dep_systemd.version(), section: 'Systemd')
+if dep_libsystemd.found()
+ summary('Lib Version', dep_libsystemd.version(), section: 'Systemd')
endif
-dep_systemd_prog = dependency('systemd', required: false)
+opt_systemd = get_option('systemd-service')
+
+dep_systemd_prog = dependency('systemd', required: opt_systemd)
summary('Systemd', dep_systemd_prog.found(), bool_yn: true, section: 'Configuration')
# Map systemd features to systemd/systemctl version.
option('tools', type: 'boolean', value: false, description: 'Build extra tools')
option('tools-ixfrdist', type: 'boolean', value: false, description: 'Build ixfrdist')
option('lua-records', type: 'boolean', value: true, description: 'Support Lua records')
-option('systemd', type: 'feature', value: 'auto', description: 'Systemd notification (requires libsystemd)')
+option('systemd-service', type: 'feature', value: 'auto', description: 'Systemd integration (requires libsystemd)')
option('systemd-service-user', type: 'string', value: 'pdns', description: 'Systemd service user (setuid and unit file; user is not created)')
option('systemd-service-group', type: 'string', value: 'pdns', description: 'Systemd service group (setgid and unit file; group is not created)')
option('auto-var-init', type: 'combo', value: 'disabled', choices: ['zero', 'pattern', 'disabled'], description: 'Enable initialization of automatic variables')
'lmdbbackend.hh',
)
-module_deps = [deps, dep_lmdb_safe, dep_lmdb, dep_boost_serialization, dep_systemd]
+module_deps = [deps, dep_lmdb_safe, dep_lmdb, dep_boost_serialization, dep_libsystemd]
dep_lua,
dep_protozero,
dep_json11,
- dep_systemd,
+ dep_libsystemd,
dep_yahttp,
],
'install': true,
endif
endif
-if dep_systemd_prog.found()
+if dep_libsystemd.found()
systemd_system_unit_dir = dep_systemd_prog.get_variable(
'systemdsystemunitdir',
# args mentioned in command line become auto-dependency
command: ['echo', 'Generated', html_docs, docs_tarball, pdf_docs],
)
-endif
\ No newline at end of file
+endif
option('dns-over-quic', type: 'boolean', value: false, description: 'Enable DNS over QUIC')
option('unit-tests', type: 'boolean', value: false, description: 'Build and run unit tests')
option('reproducible', type: 'boolean', value: false, description: 'Reproducible builds (for distro maintainers, makes debugging difficult)')
-option('systemd', type: 'feature', value: 'auto', description: 'Systemd notification (requires libsystemd)')
+option('systemd-service', type: 'feature', value: 'auto', description: 'Systemd integration (requires libsystemd)')
option('systemd-service-user', type: 'string', value: 'dnsdist', description: 'Systemd service user (setuid and unit file; user is not created)')
option('systemd-service-group', type: 'string', value: 'dnsdist', description: 'Systemd service group (setgid and unit file; group is not created)')
option('auto-var-init', type: 'combo', value: 'disabled', choices: ['zero', 'pattern', 'disabled'], description: 'Enable initialization of automatic variables')
dep_json11,
dep_recrust,
dep_rust_recrust,
- dep_systemd,
+ dep_libsystemd,
librec_signers_openssl,
librec_signers_sodium,
dep_pubsuffix,
endif
endif
-if dep_systemd.found()
+if dep_libsystemd.found()
systemd_system_unit_dir = dep_systemd_prog.get_variable(
'systemdsystemunitdir',
)
# not relevant for rec, but accessed by boost meson.build
option('unit-tests-backends', type: 'boolean', value: false, description: 'Build and run backend unit tests')
option('reproducible', type: 'boolean', value: false, description: 'Reproducible builds (for distro maintainers, makes debugging difficult)')
-option('systemd', type: 'feature', value: 'auto', description: 'Systemd notification (requires libsystemd)')
+option('systemd-service', type: 'feature', value: 'auto', description: 'Systemd integration (requires libsystemd)')
option('systemd-service-user', type: 'string', value: 'pdns', description: 'Systemd service user (setuid and unit file; user is not created)')
option('systemd-service-group', type: 'string', value: 'pdns', description: 'Systemd service group (setgid and unit file; group is not created)')
option('auto-var-init', type: 'combo', value: 'disabled', choices: ['zero', 'pattern', 'disabled'], description: 'Enable initialization of automatic variables')
"-D dns-over-tls=false",
"-D dnstap=disabled",
"-D nod=false",
- "-D systemd=disabled",
+ "-D system-service=disabled",
"-D lua=luajit",
"-D libcap=disabled",
"-D libcurl=disabled",
-D lmdb=enabled \
-D nghttp2=enabled \
-D re2=enabled \
- -D systemd=enabled \
+ -D systemd-service=enabled \
-D tls-gnutls=enabled \
-D dns-over-https=true \
-D dns-over-http3=true \
-D lmdb=disabled \
-D nghttp2=disabled \
-D re2=disabled \
- -D systemd=disabled \
+ -D systemd-service=disabled \
-D tls-gnutls=disabled \
-D dns-over-https=false \
-D dns-over-http3=false \