Package: nsd Version: 4.1.22-2 Severity: wishlist Tags: patch Dear Maintainer,
the current initscript only allows configuration of tmpfiles in /usr/lib/tmpfiles.d/ while systemd does allow /etc/tmpfiles.d to override the package maintainers defaults. Please find attached a patch which emulates this behaviour in the initscript too. Kind regards Harald Jenny -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.17.0-2-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect Versions of packages nsd depends on: ii adduser 3.117 ii libc6 2.27-5 ii libevent-2.1-6 2.1.8-stable-4 ii libssl1.1 1.1.0h-4 ii lsb-base 9.20170808 ii openssl 1.1.0h-4 nsd recommends no packages. nsd suggests no packages.
--- nsd_ORIG 2018-06-15 08:34:28.000000000 +0200 +++ nsd_TMPFILES 2018-08-12 21:32:34.336080493 +0200 @@ -20,17 +20,20 @@ do_tmpfiles() { local type path mode user group - TMPFILE=/usr/lib/tmpfiles.d/$1.conf - - if [ -r "$TMPFILE" ]; then - while read type path mode user group age argument; do - if [ "$type" = "d" ]; then - mkdir -p "$path" - chmod "$mode" "$path" - chown "$user:$group" "$path" - fi - done < "$TMPFILE" + if [ -r "/usr/lib/tmpfiles.d/$1.conf" ]; then + TMPFILE=/usr/lib/tmpfiles.d/$1.conf + fi + if [ -r "/etc/tmpfiles.d/$1.conf" ]; then + TMPFILE=/etc/tmpfiles.d/$1.conf fi + + while read type path mode user group age argument; do + if [ "$type" = "d" ]; then + mkdir -p "$path" + chmod "$mode" "$path" + chown "$user:$group" "$path" + fi + done < "$TMPFILE" } do_start_prepare() {