forked from keitheis/homebrew-dupes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rsync.rb
40 lines (32 loc) · 1.24 KB
/
rsync.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
require 'formula'
class Rsync < Formula
# NOTE: we're pusing 3.0.9 on purpose. 3.1.0 has a protocol bug in
# it that has not, to our knowledge, been fixed yet. If you propose
# an update to this formula, you need to test this across two
# machines with the same version.
homepage 'https://rsync.samba.org/'
url 'https://rsync.samba.org/ftp/rsync/src/rsync-3.0.9.tar.gz'
sha1 'c64c8341984aea647506eb504496999fd968ddfc'
depends_on "autoconf" => :build
patch do
url "https://gitweb.samba.org/?p=rsync-patches.git;a=blob_plain;hb=v3.0.9;f=fileflags.diff"
sha1 "34dddc151c17567eaba7bc5b835b6738aeeb3fb6"
end
patch do
url "https://gitweb.samba.org/?p=rsync-patches.git;a=blob_plain;hb=v3.0.9;f=crtimes.diff"
sha1 "1aafabd064067ed3bdf1c2094f35c4c5aba0427b"
end
patch do
url "https://gitweb.samba.org/?p=rsync-patches.git;a=blob_plain;hb=v3.0.9;f=hfs-compression.diff"
sha1 "9a486b1a0187999c8a92453857800aa135a80841"
end
def install
system "./prepare-source"
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--with-rsyncd-conf=#{etc}/rsyncd.conf",
"--enable-ipv6"
system "make"
system "make install"
end
end