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:
parent
060714f287
commit
cf5343a07d
31
pkgs/tools/system/logrotate/default.nix
Normal file
31
pkgs/tools/system/logrotate/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -1015,6 +1015,10 @@ let
|
|||||||
inherit fetchurl stdenv pkgconfig openssl libsigcxx;
|
inherit fetchurl stdenv pkgconfig openssl libsigcxx;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
logrotate = import ../tools/system/logrotate {
|
||||||
|
inherit fetchurl stdenv gzip popt;
|
||||||
|
};
|
||||||
|
|
||||||
lout = import ../tools/typesetting/lout {
|
lout = import ../tools/typesetting/lout {
|
||||||
inherit fetchurl stdenv ghostscript;
|
inherit fetchurl stdenv ghostscript;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user