Adding the logrotate I found in the freebsd ports.

I think that is what debian, fedora and freebsd call 'logrotate'.

svn path=/nixpkgs/trunk/; revision=21437
This commit is contained in:
Lluís Batlle i Rossell 2010-04-29 17:55:06 +00:00
parent 060714f287
commit cf5343a07d
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{stdenv, fetchurl, gzip, popt}:
stdenv.mkDerivation rec {
name = "logrotate-3.7.8";
src = fetchurl {
url = https://fedorahosted.org/releases/l/o/logrotate/logrotate-3.7.8.tar.gz;
sha256 = "1p9nqmznqvzn03saw3jxa8xwsdqym8jr778rwig8kk786343vai1";
};
# 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 = {
homepage = "https://fedorahosted.org/releases/l/o/logrotate/";
description = "Rotates and compresses system logs";
license = "GPLv2+";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; all;
};
}

View File

@ -1015,6 +1015,10 @@ let
inherit fetchurl stdenv pkgconfig openssl libsigcxx;
};
logrotate = import ../tools/system/logrotate {
inherit fetchurl stdenv gzip popt;
};
lout = import ../tools/typesetting/lout {
inherit fetchurl stdenv ghostscript;
};