Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, autoreconfHook, bison, flex}: 2 3stdenv.mkDerivation rec { 4 version = "2.4.2"; 5 pname = "sshguard"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/sshguard/${pname}-${version}.tar.gz"; 9 sha256 = "1s1prqdbxjrd1n3j4x8ggy9gl2j0ax6xhkzcvyzajw7awmvbfw17"; 10 }; 11 12 doCheck = true; 13 14 nativeBuildInputs = [ autoreconfHook bison flex ]; 15 16 configureFlags = [ "--sysconfdir=/etc" ]; 17 18 meta = with lib; { 19 description = "Protects hosts from brute-force attacks"; 20 longDescription = '' 21 SSHGuard can read log messages from various input sources. Log messages are parsed, line-by-line, for recognized patterns. 22 If an attack, such as several login failures within a few seconds, is detected, the offending IP is blocked. 23 ''; 24 homepage = "https://sshguard.net"; 25 license = licenses.bsd3; 26 maintainers = with maintainers; [ sargon ]; 27 platforms = with platforms; linux ++ darwin ++ freebsd ++ netbsd ++ openbsd; 28 }; 29}