at 18.03-beta 29 lines 976 B view raw
1{ stdenv, fetchurl, autoreconfHook, yacc, flex}: 2 3stdenv.mkDerivation rec { 4 version = "2.1.0"; 5 name = "sshguard-${version}"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/sshguard/${name}.tar.gz"; 9 sha256 = "12h2rx40lf3p3kgazmgakkgajjk2d3sdvr2f73ghi15d6i42l991"; 10 }; 11 12 doCheck = true; 13 14 nativeBuildInputs = [ autoreconfHook yacc flex ]; 15 16 configureFlags = [ "--sysconfdir=/etc" ]; 17 18 meta = with stdenv.lib; { 19 description = "SSHGuard 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}