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