mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
dhcping: init at 1.2
This commit is contained in:
parent
82419575aa
commit
6862e5c636
34
pkgs/tools/networking/dhcping/default.nix
Normal file
34
pkgs/tools/networking/dhcping/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
let version = "1.2"; in
|
||||
stdenv.mkDerivation {
|
||||
name = "dhcping-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
sha256 = "0sk4sg3hn88n44dxikipf3ggfj3ixrp22asb7nry9p0bkfaqdvrj";
|
||||
url = "http://www.mavetju.org/download/dhcping-${version}.tar.gz";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
inherit version;
|
||||
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.
|
||||
'';
|
||||
homepage = http://www.mavetju.org/unix/general.php;
|
||||
license = licenses.bsd2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ nckx ];
|
||||
};
|
||||
}
|
@ -1291,6 +1291,8 @@ let
|
||||
|
||||
dhcpcd = callPackage ../tools/networking/dhcpcd { };
|
||||
|
||||
dhcping = callPackage ../tools/networking/dhcping { };
|
||||
|
||||
di = callPackage ../tools/system/di { };
|
||||
|
||||
diffoscope = callPackage ../tools/misc/diffoscope {
|
||||
|
Loading…
Reference in New Issue
Block a user