aboutsummaryrefslogtreecommitdiff
path: root/pkgs/tools/networking/dnsmasq
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2015-12-03 11:04:22 +0100
committerDomen Kožar <domen@dev.si>2015-12-03 11:09:40 +0100
commit29befbeb9587cb63e4fde192af72b61611656e9f (patch)
tree7070576b730b05219ee4175eb3e7e7d4e146fd30 /pkgs/tools/networking/dnsmasq
parenteeb2935ac5a74eeb3d2e32f311fd6e6ef743e78c (diff)
dnsmasq: install dhcp_* tools
Diffstat (limited to 'pkgs/tools/networking/dnsmasq')
-rw-r--r--pkgs/tools/networking/dnsmasq/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/networking/dnsmasq/default.nix b/pkgs/tools/networking/dnsmasq/default.nix
index 0e905bb65479..35cd7ae46613 100644
--- a/pkgs/tools/networking/dnsmasq/default.nix
+++ b/pkgs/tools/networking/dnsmasq/default.nix
@@ -29,9 +29,15 @@ stdenv.mkDerivation rec {
"LOCALEDIR=$(out)/share/locale"
];
+ postBuild = ''
+ make -C contrib/wrt
+ '';
+
postInstall = ''
install -Dm644 dbus/dnsmasq.conf $out/etc/dbus-1/system.d/dnsmasq.conf
install -Dm644 trust-anchors.conf $out/share/dnsmasq/trust-anchors.conf
+ install -Dm755 contrib/wrt/dhcp_lease_time $out/bin/dhcp_lease_time
+ install -Dm755 contrib/wrt/dhcp_release $out/bin/dhcp_release
mkdir -p $out/share/dbus-1/system-services
cat <<END > $out/share/dbus-1/system-services/uk.org.thekelleys.dnsmasq.service