Skip to content

Instantly share code, notes, and snippets.

@terrywang
Last active November 2, 2016 17:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terrywang/6819483 to your computer and use it in GitHub Desktop.
Save terrywang/6819483 to your computer and use it in GitHub Desktop.
rsync Homebrew formula for OS X, with fileflags, crtimes and hfs-compression patches. May be merged to https://github.com/Homebrew/homebrew-dupes soon ;-)
require 'formula'
class Rsync < Formula
homepage 'http://rsync.samba.org/'
url 'http://rsync.samba.org/ftp/rsync/src/rsync-3.1.0.tar.gz'
sha1 'eb58ab04bcb6293da76b83f58327c038b23fcba3'
depends_on :autoconf
def patches
%W[
http://gitweb.samba.org/?p=rsync-patches.git;a=blob_plain;f=fileflags.diff;hb=v3.1.0
http://gitweb.samba.org/?p=rsync-patches.git;a=blob_plain;f=crtimes.diff;hb=v3.1.0
http://gitweb.samba.org/?p=rsync-patches.git;a=blob_plain;f=hfs-compression.diff;hb=v3.1.0
]
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment