1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
8 sha256 = "0sk4sg3hn88n44dxikipf3ggfj3ixrp22asb7nry9p0bkfaqdvrj";
9 url = "https://www.mavetju.org/download/dhcping-${version}.tar.gz";
12 enableParallelBuilding = true;
17 description = "Send DHCP request to find out if a DHCP server is running";
19 dhcping sends either a DHCPREQUEST or DHCPINFORM packet to the server
20 and waits for an answer. Then, if a DHCPREQUEST was send, it will send
21 a DHCPRELEASE back to the server.
23 This program should be installed setuid root or ran by root only, as it
24 requires the privileges to bind itself to port 68 (bootpc). Root
25 privileges are dropped as soon as the program has bound itself to that
28 homepage = "http://www.mavetju.org/unix/general.php";
29 license = licenses.bsd2;
30 platforms = platforms.unix;
31 mainProgram = "dhcping";