From d8bcaa439883cdfaebdaabc315950495c29392cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 7 Mar 2008 09:33:51 +0000 Subject: [PATCH] Add rsnapshot, an rsync-based remote backup tool. svn path=/nixpkgs/trunk/; revision=11009 --- pkgs/tools/backup/rsnapshot/default.nix | 23 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 8 ++++++++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/tools/backup/rsnapshot/default.nix diff --git a/pkgs/tools/backup/rsnapshot/default.nix b/pkgs/tools/backup/rsnapshot/default.nix new file mode 100644 index 000000000000..c79be7cffb45 --- /dev/null +++ b/pkgs/tools/backup/rsnapshot/default.nix @@ -0,0 +1,23 @@ +{fetchurl, stdenv, perl, openssh, rsync, logger}: + +stdenv.mkDerivation rec { + name = "rsnapshot-1.3.0"; + src = fetchurl { + url = "mirrors://sourceforge/rsnapshot/${name}.tar.gz"; + sha256 = "19p35ycm73a8vd4ccjpah18h5jagvcr11rqca6ya87sg8k0a5h9z"; + }; + + propagatedBuildInputs = [perl openssh rsync logger]; + + patchPhase = '' + substituteInPlace "Makefile.in" --replace \ + "/usr/bin/pod2man" "${perl}/bin/pod2man" + ''; + + meta = { + description = ''rsnapshot is a filesystem snapshot utility for making + backups of local and remote systems.''; + homepage = http://rsnapshot.org/; + license = "GPLv2+"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c046a8b202a7..ec4799d208bf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -855,6 +855,14 @@ rec { }; */ + rsnapshot = import ../tools/backup/rsnapshot { + inherit fetchurl stdenv perl openssh rsync; + + # For the `logger' command, we can use either `utillinux' or + # GNU Inetutils. The latter is more portable. + logger = inetutils; + }; + rlwrapFun = lib.sumArgs (selectVersion ../tools/misc/rlwrap "0.28") { inherit builderDefs readline; };