Skip to content

Commit 1da0264

Browse files
committedAug 4, 2017
logrotate: 3.9.1 -> 3.12.3, fix build
closes #27916
1 parent 688f066 commit 1da0264

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed
 
+13-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
1-
{ stdenv, fetchurl, gzip, popt }:
1+
{ stdenv, fetchFromGitHub, mailutils, gzip, popt, autoreconfHook }:
22

33
stdenv.mkDerivation rec {
4-
name = "logrotate-3.9.1";
4+
name = "logrotate-${version}";
5+
version = "3.12.3";
56

6-
src = fetchurl {
7-
url = "https://fedorahosted.org/releases/l/o/logrotate/${name}.tar.gz";
8-
sha256 = "0i95qnacv5wf7kfkcpi38ys3i14fr01ifhm8b4ari04c53inj9q2";
7+
src = fetchFromGitHub {
8+
owner = "logrotate";
9+
repo = "logrotate";
10+
rev = version;
11+
sha256 = "04ygb709fj4ai8m2f1c6imzcmkdvr3ib5zf5qw2lif4fsb30jvyi";
912
};
1013

1114
# Logrotate wants to access the 'mail' program; to be done.
1215
patchPhase = ''
1316
sed -i -e 's,[a-z/]\+gzip,${gzip}/bin/gzip,' \
14-
-e 's,[a-z/]\+gunzip,${gzip}/bin/gunzip,' config.h
17+
-e 's,[a-z/]\+gunzip,${gzip}/bin/gunzip,' \
18+
-e 's,[a-z/]\+mail,${mailutils}/bin/mail,' configure.ac
1519
'';
1620

17-
preBuild = ''
18-
makeFlags="BASEDIR=$out"
21+
autoreconfPhase = ''
22+
./autogen.sh
1923
'';
2024

25+
nativeBuildInputs = [ autoreconfHook ];
2126
buildInputs = [ popt ];
2227

2328
meta = {
@@ -27,5 +32,4 @@ stdenv.mkDerivation rec {
2732
maintainers = [ stdenv.lib.maintainers.viric ];
2833
platforms = stdenv.lib.platforms.all;
2934
};
30-
3135
}

0 commit comments

Comments
 (0)
Please sign in to comment.