2016-01-03 19:35:12 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2016-01-24 19:31:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "dhcping";
|
2016-01-24 19:31:44 +00:00
|
|
|
version = "1.2";
|
2016-01-03 19:35:12 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
sha256 = "0sk4sg3hn88n44dxikipf3ggfj3ixrp22asb7nry9p0bkfaqdvrj";
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://www.mavetju.org/download/dhcping-${version}.tar.gz";
|
2016-01-03 19:35:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Send DHCP request to find out if a DHCP server is running";
|
|
|
|
longDescription = ''
|
|
|
|
dhcping sends either a DHCPREQUEST or DHCPINFORM packet to the server
|
|
|
|
and waits for an answer. Then, if a DHCPREQUEST was send, it will send
|
|
|
|
a DHCPRELEASE back to the server.
|
|
|
|
|
|
|
|
This program should be installed setuid root or ran by root only, as it
|
|
|
|
requires the privileges to bind itself to port 68 (bootpc). Root
|
|
|
|
privileges are dropped as soon as the program has bound itself to that
|
|
|
|
port.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.mavetju.org/unix/general.php";
|
2016-01-03 19:35:12 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2016-01-24 19:31:44 +00:00
|
|
|
}
|