2013-01-15 16:46:30 +01:00
|
|
|
{ stdenv, fetchurl, gzip, popt }:
|
2010-04-29 19:55:06 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-03-17 01:24:37 +01:00
|
|
|
name = "logrotate-3.8.9";
|
2010-04-29 19:55:06 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-01-15 16:46:30 +01:00
|
|
|
url = "https://fedorahosted.org/releases/l/o/logrotate/${name}.tar.gz";
|
2015-03-17 01:24:37 +01:00
|
|
|
sha256 = "19yzs7gc8ixr6iqq22n5gbixmvzsgmwp96kp4jiwr8bjj37df3kh";
|
2010-04-29 19:55:06 +02: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 16:46:30 +01:00
|
|
|
homepage = https://fedorahosted.org/releases/l/o/logrotate/;
|
2010-04-29 19:55:06 +02:00
|
|
|
description = "Rotates and compresses system logs";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2013-01-15 16:46:30 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.viric ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
2010-04-29 19:55:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|