Unverified Commit 3b47da67 authored by toonn's avatar toonn
Browse files

nssmdns: Fix configuration location



Nssmdns reads the `mdns.allow` configuration file if it is present. By
default it expects the file at `${sysconfdir}/mdns.allow`, sysconfdir
defaults to `${prefix}/etc` and ends up being a path inside the
package's directory in the store.

This makes it impossible to configure nssmdns through this file.
The `bootstrap.sh` script included in the sources passes the same
`--sysconfdir=/etc` as suggested here.

Maybe we should run the script instead? It runs autoreconf so we might
be able to drop the autoreconfHook.

An alternative would be to set `MDNS_ALLOW_FILE`, but sysconfdir is only
used for this file so I suggest leaving this as a simple way for users
of the package to override the location of the file.

Co-authored-by: default avatarflokli <flokli@flokli.de>
parent cbc6a8b3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@ stdenv.mkDerivation rec {
    "--enable-avahi"
    # Connect to the daemon at `/var/run/avahi-daemon/socket'.
    "--localstatedir=/var"
    # Read configuration at `/etc/mdns.allow`, not `$out/etc/mdns.allow`.
    "--sysconfdir=/etc"
  ];

  meta = {