forked from keitheis/homebrew-dupes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rsync.rb
27 lines (23 loc) · 866 Bytes
/
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
require 'formula'
class Rsync < Formula
homepage 'http://rsync.samba.org/'
url 'http://rsync.samba.org/ftp/rsync/src/rsync-3.0.9.tar.gz'
md5 '5ee72266fe2c1822333c407e1761b92b'
depends_on 'autoconf' => :build if MacOS.xcode_version.to_f >= 4.3
def patches
%W[
http://gitweb.samba.org/?p=rsync-patches.git;a=blob_plain;hb=v3.0.9;f=fileflags.diff
http://gitweb.samba.org/?p=rsync-patches.git;a=blob_plain;hb=v3.0.9;f=crtimes.diff
http://gitweb.samba.org/?p=rsync-patches.git;a=blob_plain;hb=v3.0.9;f=hfs-compression.diff
]
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