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: flokli <flokli@flokli.de>
This commit is contained in:
parent
cbc6a8b393
commit
3b47da6765
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue