2011-03-03 05:12:33 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cvsync < Formula
|
2013-01-12 13:52:05 +00:00
|
|
|
url 'http://www.cvsync.org/dist/cvsync-0.24.19.tar.gz'
|
2011-03-03 05:12:33 +00:00
|
|
|
homepage 'http://www.cvsync.org/'
|
|
|
|
sha1 'a3c0673bf0f3b81b1eb45ac828a527d2a4e6d2f6'
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV['PREFIX'] = prefix
|
|
|
|
ENV['MANDIR'] = man
|
2011-03-06 08:11:36 +00:00
|
|
|
ENV['CVSYNC_DEFAULT_CONFIG'] = etc + 'cvsync.conf'
|
|
|
|
ENV['CVSYNCD_DEFAULT_CONFIG'] = etc + 'cvsyncd.conf'
|
2011-03-03 05:12:33 +00:00
|
|
|
ENV['HASH_TYPE'] = 'openssl'
|
|
|
|
|
|
|
|
# Makefile from 2005 assumes Darwin doesn't define `socklen_t' and defines
|
|
|
|
# it with a CC macro parameter making gcc unhappy about double define.
|
|
|
|
inreplace 'mk/network.mk',
|
|
|
|
/^CFLAGS \+= \-Dsocklen_t=int/, ''
|
|
|
|
|
|
|
|
# Remove owner and group parameters from install.
|
|
|
|
inreplace 'mk/base.mk',
|
|
|
|
/^INSTALL_(.{3})_OPTS\?=.*/, 'INSTALL_\1_OPTS?= -c -m ${\1MODE}'
|
|
|
|
|
|
|
|
# These paths must exist or "make install" fails.
|
|
|
|
bin.mkpath
|
|
|
|
lib.mkpath
|
|
|
|
man1.mkpath
|
|
|
|
|
|
|
|
system 'make install'
|
|
|
|
end
|
|
|
|
end
|