lib.makePerlPath -> perlPackages.makePerlPath
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, lockfileProgs, perl, mimeConstruct }:
|
||||
{ stdenv, fetchurl, lockfileProgs, perlPackages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "logcheck-${version}";
|
||||
@@ -16,13 +16,13 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace src/logtail --replace "/usr/bin/perl" "${perl}/bin/perl"
|
||||
substituteInPlace src/logtail2 --replace "/usr/bin/perl" "${perl}/bin/perl"
|
||||
substituteInPlace src/logtail --replace "/usr/bin/perl" "${perlPackages.perl}/bin/perl"
|
||||
substituteInPlace src/logtail2 --replace "/usr/bin/perl" "${perlPackages.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|mime-construct|${perlPackages.mimeConstruct}/bin/mime-construct|' \
|
||||
-e 's|\$(run-parts --list "\$dir")|"$dir"/*|' src/logcheck
|
||||
'';
|
||||
|
||||
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
|
||||
"SBINDIR=sbin"
|
||||
"BINDIR=bin"
|
||||
"SHAREDIR=share/logtail/detectrotate"
|
||||
];
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Mails anomalies in the system logfiles to the administrator";
|
||||
@@ -44,6 +44,5 @@ stdenv.mkDerivation rec {
|
||||
homepage = http://logcheck.alioth.debian.org/;
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.bluescreen303 ];
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user