at 16.09-beta 33 lines 1.1 kB view raw
1{ stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 name = "dhcping-${version}"; 5 version = "1.2"; 6 7 src = fetchurl { 8 sha256 = "0sk4sg3hn88n44dxikipf3ggfj3ixrp22asb7nry9p0bkfaqdvrj"; 9 url = "http://www.mavetju.org/download/dhcping-${version}.tar.gz"; 10 }; 11 12 enableParallelBuilding = true; 13 14 doCheck = true; 15 16 meta = with stdenv.lib; { 17 description = "Send DHCP request to find out if a DHCP server is running"; 18 longDescription = '' 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. 22 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 26 port. 27 ''; 28 homepage = http://www.mavetju.org/unix/general.php; 29 license = licenses.bsd2; 30 platforms = platforms.linux; 31 maintainers = with maintainers; [ nckx ]; 32 }; 33}