2010-01-05 13:29:58 +01:00
|
|
|
{ stdenv, fetchurl, perl
|
2009-02-03 23:13:35 +01:00
|
|
|
, enableACLs ? true, acl ? null
|
2012-01-18 21:38:24 +01:00
|
|
|
, enableCopyDevicesPatch ? false
|
2009-02-03 23:13:35 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert enableACLs -> acl != null;
|
2005-11-22 23:39:09 +01:00
|
|
|
|
2012-01-18 21:38:24 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-04-11 13:35:06 +02:00
|
|
|
name = "rsync-${version}";
|
|
|
|
version = "3.1.0";
|
2011-12-03 17:11:57 +01:00
|
|
|
|
2012-01-18 21:38:24 +01:00
|
|
|
mainSrc = fetchurl {
|
2014-04-11 13:35:06 +02:00
|
|
|
url = "http://rsync.samba.org/ftp/rsync/src/rsync-${version}.tar.gz";
|
|
|
|
sha256 = "0kirw8wglqvwi1v8bwxp373g03xg857h59j5k3mmgff9gzvj7jl1";
|
2005-11-22 23:39:09 +01:00
|
|
|
};
|
2009-02-03 23:13:35 +01:00
|
|
|
|
2012-01-18 21:38:24 +01:00
|
|
|
patchesSrc = fetchurl {
|
2014-04-11 13:35:06 +02:00
|
|
|
url = "http://rsync.samba.org/ftp/rsync/rsync-patches-${version}.tar.gz";
|
|
|
|
sha256 = "0sl8aadpjblvbb05vgais40z90yzhr09rwz0cykjdiv452gli75p";
|
2012-01-18 21:38:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
srcs = [mainSrc] ++ stdenv.lib.optional enableCopyDevicesPatch patchesSrc;
|
2014-05-03 11:27:10 +02:00
|
|
|
patches = [(fetchurl {
|
|
|
|
url = "https://git.samba.org/?p=rsync.git;a=commitdiff_plain;h=0dedfbce2c1b851684ba658861fe9d620636c56a";
|
|
|
|
sha256 = "1jpwwdf07naqxc8fv1lspc95jgk50j5j3wvf037bjay2qzpwjmvf";
|
|
|
|
name = "CVE-2014-2855.patch";
|
|
|
|
})]
|
|
|
|
++ stdenv.lib.optional enableCopyDevicesPatch "./patches/copy-devices.diff";
|
2012-01-18 21:38:24 +01:00
|
|
|
|
2011-09-21 09:04:22 +02:00
|
|
|
buildInputs = stdenv.lib.optional enableACLs acl;
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [perl];
|
2009-02-03 23:13:35 +01:00
|
|
|
|
2014-05-05 14:55:34 +02:00
|
|
|
configureFlags = "--with-nobody-group=nogroup";
|
|
|
|
|
2009-02-03 23:13:35 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://samba.anu.edu.au/rsync/;
|
|
|
|
description = "A fast incremental file transfer utility";
|
2013-03-25 12:36:12 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2011-12-03 17:11:54 +01:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-04-11 13:35:06 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.simons stdenv.lib.maintainers.emery ];
|
2009-02-03 23:13:35 +01:00
|
|
|
};
|
2005-11-22 23:39:09 +01:00
|
|
|
}
|