From: Otto Moerbeek Date: Wed, 28 May 2025 12:02:12 +0000 (+0200) Subject: Fix systemd user for debian packages X-Git-Tag: dnsdist-2.0.0-beta1~56^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a3f6be97714b2e5871dc18f1bd9d05a2a0f5004;p=thirdparty%2Fpdns.git Fix systemd user for debian packages --- diff --git a/builder-support/debian/recursor/debian-buster/rules b/builder-support/debian/recursor/debian-buster/rules index 87d979e8fa..f6c54cdaaa 100755 --- a/builder-support/debian/recursor/debian-buster/rules +++ b/builder-support/debian/recursor/debian-buster/rules @@ -12,6 +12,8 @@ include /usr/share/dpkg/default.mk # Only enable systemd integration on Linux operating systems ifeq ($(DEB_HOST_ARCH_OS),linux) MESON_ARGS += -Dsystemd-service=enabled +MESON_ARGS += -Dsystemd-service-user=pdns +MESON_ARGS += -Dsystemd-service-group=pdns DH_ARGS += --with systemd else MESON_ARGS += -Dsystemd-service=disabled diff --git a/builder-support/debian/recursor/debian-trixie/rules b/builder-support/debian/recursor/debian-trixie/rules index 87d979e8fa..f6c54cdaaa 100755 --- a/builder-support/debian/recursor/debian-trixie/rules +++ b/builder-support/debian/recursor/debian-trixie/rules @@ -12,6 +12,8 @@ include /usr/share/dpkg/default.mk # Only enable systemd integration on Linux operating systems ifeq ($(DEB_HOST_ARCH_OS),linux) MESON_ARGS += -Dsystemd-service=enabled +MESON_ARGS += -Dsystemd-service-user=pdns +MESON_ARGS += -Dsystemd-service-group=pdns DH_ARGS += --with systemd else MESON_ARGS += -Dsystemd-service=disabled diff --git a/pdns/recursordist/meson_options.txt b/pdns/recursordist/meson_options.txt index 09d8668154..704745410f 100644 --- a/pdns/recursordist/meson_options.txt +++ b/pdns/recursordist/meson_options.txt @@ -13,8 +13,8 @@ option('unit-tests', type: 'boolean', value: false, description: 'Build and run option('unit-tests-backends', type: 'boolean', value: false, description: 'Not relevant for recursor') option('reproducible', type: 'boolean', value: false, description: 'Reproducible builds (for distro maintainers, makes debugging difficult)') 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('systemd-service-user', type: 'string', value: 'pdns-recursor', description: 'Systemd service user (setuid and unit file; user is not created)') +option('systemd-service-group', type: 'string', value: 'pdns-recursor', 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') option('malloc-trace', type: 'boolean', value: false, description: 'Enable malloc-trace') option('socket-dir', type: 'string', value: '/var/run', description: 'Where the control socket lives')