gnu: Add texlive-times.
[jackhill/guix/guix.git] / gnu / packages / rsync.scm
CommitLineData
233e7676 1;;; GNU Guix --- Functional package management for GNU
13fbda90 2;;; Copyright © 2012, 2013 Andreas Enge <andreas@enge.fr>
51a277d8 3;;; Copyright © 2016 Mark H Weaver <mhw@netris.org>
91675d50 4;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
b5989658 5;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
584dbd85 6;;; Copyright © 2019 Leo Famulari <leo@famulari.name>
c8911fa3 7;;;
233e7676 8;;; This file is part of GNU Guix.
c8911fa3 9;;;
233e7676 10;;; GNU Guix is free software; you can redistribute it and/or modify it
c8911fa3
AE
11;;; under the terms of the GNU General Public License as published by
12;;; the Free Software Foundation; either version 3 of the License, or (at
13;;; your option) any later version.
14;;;
233e7676 15;;; GNU Guix is distributed in the hope that it will be useful, but
c8911fa3
AE
16;;; WITHOUT ANY WARRANTY; without even the implied warranty of
17;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18;;; GNU General Public License for more details.
19;;;
20;;; You should have received a copy of the GNU General Public License
233e7676 21;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
c8911fa3 22
1ffa7090 23(define-module (gnu packages rsync)
59a43334 24 #:use-module (gnu packages)
1ffa7090 25 #:use-module (gnu packages acl)
ce0614dd 26 #:use-module (gnu packages base)
584dbd85
LF
27 #:use-module (gnu packages compression)
28 #:use-module (gnu packages perl)
29 #:use-module (gnu packages popt)
30 #:use-module ((guix licenses) #:prefix license:)
c8911fa3
AE
31 #:use-module (guix packages)
32 #:use-module (guix download)
584dbd85 33 #:use-module (guix build-system cmake)
c8911fa3
AE
34 #:use-module (guix build-system gnu))
35
36
37(define-public rsync
38 (package
39 (name "rsync")
b5989658 40 (version "3.1.3")
c8911fa3
AE
41 (source (origin
42 (method url-fetch)
13fbda90 43 (uri (string-append "http://rsync.samba.org/ftp/rsync/src/rsync-"
c8911fa3
AE
44 version ".tar.gz"))
45 (sha256
46 (base32
b5989658 47 "1h0011dj6jgqpgribir4anljjv7bbrdcs8g91pbsmzf5zr75bk2m"))))
c8911fa3
AE
48 (build-system gnu-build-system)
49 (inputs `(("perl" ,perl)
50 ("acl" ,acl)))
35b9e423 51 (synopsis "Remote (and local) file copying tool")
c8911fa3 52 (description
35b9e423 53 "Rsync is a fast and versatile file copying tool. It can copy locally,
c8911fa3
AE
54to/from another host over any remote shell, or to/from a remote rsync daemon.
55Its delta-transfer algorithm reduces the amount of data sent over the network
56by sending only the differences between the source files and the existing
57files in the destination.")
584dbd85 58 (license license:gpl3+)
c8911fa3 59 (home-page "http://rsync.samba.org/")))
7f0635f6
EB
60
61(define-public librsync
62 (package
63 (name "librsync")
584dbd85 64 (version "2.0.2")
7f0635f6
EB
65 (source (origin
66 (method url-fetch)
584dbd85
LF
67 (uri (string-append "https://github.com/librsync/librsync/archive/v"
68 version ".tar.gz"))
7f0635f6
EB
69 (sha256
70 (base32
584dbd85
LF
71 "1waa581pcscc1rnvy06cj584k5dx0dc7jj79wsdj7xw4xqh9ayz6"))))
72 (build-system cmake-build-system)
73 (inputs
74 `(("popt" ,popt)))
7f0635f6
EB
75 (native-inputs
76 `(("which" ,which)
77 ("perl" ,perl)))
7f0635f6
EB
78 (home-page "http://librsync.sourceforge.net/")
79 (synopsis "Implementation of the rsync remote-delta algorithm")
80 (description
81 "Librsync is a free software library that implements the rsync
82remote-delta algorithm. This algorithm allows efficient remote updates of a
83file, without requiring the old and new versions to both be present at the
35b9e423 84sending end. The library uses a \"streaming\" design similar to that of zlib
7f0635f6 85with the aim of allowing it to be embedded into many different applications.")
584dbd85
LF
86 (license license:lgpl2.1+)))
87
88(define-public librsync-0.9
89 (package
90 (inherit librsync)
91 (version "0.9.7")
92 (source (origin
93 (method url-fetch)
94 (uri (string-append "mirror://sourceforge/librsync/librsync/"
95 version "/librsync-" version ".tar.gz"))
96 (sha256
97 (base32
98 "1mj1pj99mgf1a59q9f2mxjli2fzxpnf55233pc1klxk2arhf8cv6"))))
99 (build-system gnu-build-system)
100 (arguments '(#:configure-flags '("--enable-shared")))
101 (inputs '())))