parent
688f066da2
commit
1da02642bc
@ -1,23 +1,28 @@
|
|||||||
{ stdenv, fetchurl, gzip, popt }:
|
{ stdenv, fetchFromGitHub, mailutils, gzip, popt, autoreconfHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "logrotate-3.9.1";
|
name = "logrotate-${version}";
|
||||||
|
version = "3.12.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://fedorahosted.org/releases/l/o/logrotate/${name}.tar.gz";
|
owner = "logrotate";
|
||||||
sha256 = "0i95qnacv5wf7kfkcpi38ys3i14fr01ifhm8b4ari04c53inj9q2";
|
repo = "logrotate";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "04ygb709fj4ai8m2f1c6imzcmkdvr3ib5zf5qw2lif4fsb30jvyi";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Logrotate wants to access the 'mail' program; to be done.
|
# Logrotate wants to access the 'mail' program; to be done.
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -i -e 's,[a-z/]\+gzip,${gzip}/bin/gzip,' \
|
sed -i -e 's,[a-z/]\+gzip,${gzip}/bin/gzip,' \
|
||||||
-e 's,[a-z/]\+gunzip,${gzip}/bin/gunzip,' config.h
|
-e 's,[a-z/]\+gunzip,${gzip}/bin/gunzip,' \
|
||||||
|
-e 's,[a-z/]\+mail,${mailutils}/bin/mail,' configure.ac
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
autoreconfPhase = ''
|
||||||
makeFlags="BASEDIR=$out"
|
./autogen.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
buildInputs = [ popt ];
|
buildInputs = [ popt ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
@ -27,5 +32,4 @@ stdenv.mkDerivation rec {
|
|||||||
maintainers = [ stdenv.lib.maintainers.viric ];
|
maintainers = [ stdenv.lib.maintainers.viric ];
|
||||||
platforms = stdenv.lib.platforms.all;
|
platforms = stdenv.lib.platforms.all;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user