2017-08-04 16:14:55 +01:00
|
|
|
{ stdenv, fetchFromGitHub, mailutils, gzip, popt, autoreconfHook }:
|
2010-04-29 18:55:06 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-08-04 16:14:55 +01:00
|
|
|
name = "logrotate-${version}";
|
|
|
|
version = "3.12.3";
|
2010-04-29 18:55:06 +01:00
|
|
|
|
2017-08-04 16:14:55 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "logrotate";
|
|
|
|
repo = "logrotate";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "04ygb709fj4ai8m2f1c6imzcmkdvr3ib5zf5qw2lif4fsb30jvyi";
|
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,' \
|
2017-08-04 16:14:55 +01:00
|
|
|
-e 's,[a-z/]\+gunzip,${gzip}/bin/gunzip,' \
|
|
|
|
-e 's,[a-z/]\+mail,${mailutils}/bin/mail,' configure.ac
|
2010-04-29 18:55:06 +01:00
|
|
|
'';
|
|
|
|
|
2017-08-04 16:14:55 +01:00
|
|
|
autoreconfPhase = ''
|
|
|
|
./autogen.sh
|
2010-04-29 18:55:06 +01:00
|
|
|
'';
|
|
|
|
|
2017-08-04 16:14:55 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2010-04-29 18:55:06 +01:00
|
|
|
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";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
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
|
|
|
};
|
|
|
|
}
|