2012-08-25 10:14:40 +01:00
|
|
|
{ stdenv, fetchurl, lockfileProgs, perl, mimeConstruct }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
_name = "logcheck";
|
2014-10-27 05:05:22 +00:00
|
|
|
version = "1.3.17";
|
2012-08-25 10:14:40 +01:00
|
|
|
name = "${_name}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-03-13 21:11:33 +00:00
|
|
|
url = "mirror://debian/pool/main/l/${_name}/${_name}_${version}.tar.xz";
|
2014-10-27 05:05:22 +00:00
|
|
|
sha256 = "0fphzaljc9ddv1x6l3zdf9cbarqgzpdqaqwm3plmarcc7qrgrly2";
|
2012-08-25 10:14:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace src/logtail --replace "/usr/bin/perl" "${perl}/bin/perl"
|
|
|
|
substituteInPlace src/logtail2 --replace "/usr/bin/perl" "${perl}/bin/perl"
|
|
|
|
|
|
|
|
sed -i -e 's|! -f /usr/bin/lockfile|! -f ${lockfileProgs}/bin/lockfile|' \
|
|
|
|
-e 's|^\([ \t]*\)lockfile-|\1${lockfileProgs}/bin/lockfile-|' \
|
|
|
|
-e "s|/usr/sbin/logtail2|$out/sbin/logtail2|" \
|
|
|
|
-e 's|mime-construct|${mimeConstruct}/bin/mime-construct|' \
|
|
|
|
-e 's|\$(run-parts --list "\$dir")|"$dir"/*|' src/logcheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"DESTDIR=$(out)"
|
|
|
|
"SBINDIR=sbin"
|
|
|
|
"BINDIR=bin"
|
|
|
|
"SHAREDIR=share/logtail/detectrotate"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Mails anomalies in the system logfiles to the administrator";
|
2012-08-25 10:14:40 +01:00
|
|
|
longDescription = ''
|
|
|
|
Mails anomalies in the system logfiles to the administrator.
|
|
|
|
|
|
|
|
Logcheck helps spot problems and security violations in your logfiles automatically and will send the results to you by e-mail.
|
|
|
|
Logcheck was part of the Abacus Project of security tools, but this version has been rewritten.
|
|
|
|
'';
|
|
|
|
homepage = http://logcheck.org;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2012-08-25 10:14:40 +01:00
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.bluescreen303 ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|