2013-01-15 15:46:30 +00:00
|
|
|
{ stdenv, fetchurl, gzip, popt }:
|
2010-04-29 18:55:06 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-01-15 15:46:30 +00:00
|
|
|
name = "logrotate-3.8.3";
|
2010-04-29 18:55:06 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-01-15 15:46:30 +00:00
|
|
|
url = "https://fedorahosted.org/releases/l/o/logrotate/${name}.tar.gz";
|
|
|
|
sha256 = "0xqrz8xzs2c1vx8l5h9lp2ciwwifj7y52xsppb1vrvbi254vyxh7";
|
2010-04-29 18:55:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Logrotate wants to access the 'mail' program; to be done.
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e 's,[a-z/]\+gzip,${gzip}/bin/gzip,' \
|
|
|
|
-e 's,[a-z/]\+gunzip,${gzip}/bin/gunzip,' config.h
|
|
|
|
'';
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlags="BASEDIR=$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ popt ];
|
|
|
|
|
|
|
|
meta = {
|
2013-01-15 15:46:30 +00:00
|
|
|
homepage = https://fedorahosted.org/releases/l/o/logrotate/;
|
2010-04-29 18:55:06 +01:00
|
|
|
description = "Rotates and compresses system logs";
|
|
|
|
license = "GPLv2+";
|
2013-01-15 15:46:30 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.viric ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
2010-04-29 18:55:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|