dnsmasq: install launchd plist on darwin
This commit is contained in:
parent
f8e5b8dbe2
commit
44cf3c44b0
@ -39,6 +39,11 @@ stdenv.mkDerivation rec {
|
||||
# module can create it in Nix-land?
|
||||
postInstall = ''
|
||||
install -Dm644 trust-anchors.conf $out/share/dnsmasq/trust-anchors.conf
|
||||
'' + optionalString stdenv.isDarwin ''
|
||||
install -Dm644 contrib/MacOSX-launchd/uk.org.thekelleys.dnsmasq.plist \
|
||||
$out/Library/LaunchDaemons/uk.org.thekelleys.dnsmasq.plist
|
||||
substituteInPlace $out/Library/LaunchDaemons/uk.org.thekelleys.dnsmasq.plist \
|
||||
--replace "/usr/local/sbin" "$out/bin"
|
||||
'' + optionalString stdenv.isLinux ''
|
||||
install -Dm644 dbus/dnsmasq.conf $out/etc/dbus-1/system.d/dnsmasq.conf
|
||||
install -Dm755 contrib/lease-tools/dhcp_lease_time $out/bin/dhcp_lease_time
|
||||
|
Loading…
Reference in New Issue
Block a user