mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
632b00f0c9
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/logcheck/versions. These checks were done: - built on NixOS - /nix/store/mvacp7nmvc8fg9jyrspb3if7x22wwa9p-logcheck-1.3.19/bin/logcheck-test passed the binary check. - /nix/store/mvacp7nmvc8fg9jyrspb3if7x22wwa9p-logcheck-1.3.19/bin/logcheck passed the binary check. - Warning: no invocation of /nix/store/mvacp7nmvc8fg9jyrspb3if7x22wwa9p-logcheck-1.3.19/bin/logtail had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/mvacp7nmvc8fg9jyrspb3if7x22wwa9p-logcheck-1.3.19/bin/logtail2 had a zero exit code or showed the expected version - 2 of 4 passed binary check by having a zero exit code. - 0 of 4 passed binary check by having the new version present in output. - found 1.3.19 with grep in /nix/store/mvacp7nmvc8fg9jyrspb3if7x22wwa9p-logcheck-1.3.19 - directory tree listing: https://gist.github.com/8e0cb190715df3e41d3fe55fb5ea865f - du listing: https://gist.github.com/42a702aaffbc35973caa3cde9f16868a
50 lines
1.7 KiB
Nix
50 lines
1.7 KiB
Nix
{ stdenv, fetchurl, lockfileProgs, perl, mimeConstruct }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "logcheck-${version}";
|
|
version = "1.3.19";
|
|
_name = "logcheck_${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://debian/pool/main/l/logcheck/${_name}.tar.xz";
|
|
sha256 = "1a9ccy92lg1lnx86di6i1wpdv4ccf5w7gials2iyq5915c4lqa86";
|
|
};
|
|
|
|
prePatch = ''
|
|
# do not set sticky bit in nix store.
|
|
substituteInPlace Makefile --replace 2750 0750
|
|
'';
|
|
|
|
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 = with stdenv.lib; {
|
|
description = "Mails anomalies in the system logfiles to the administrator";
|
|
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.alioth.debian.org/;
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.bluescreen303 ];
|
|
|
|
};
|
|
}
|