nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 29 lines 978 B view raw
1{ stdenv, fetchurl, autoreconfHook, yacc, flex}: 2 3stdenv.mkDerivation rec { 4 version = "2.4.0"; 5 pname = "sshguard"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/sshguard/${pname}-${version}.tar.gz"; 9 sha256 = "1h6n2xyh58bshplbdqlr9rbnf3lz7nydnq5m2hkq15is3c4s8p06"; 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}