diff options
| author | Adam Vandenberg | 2011-09-01 17:23:23 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-09-01 17:24:10 -0700 |
| commit | 2fd2fa6c892ca346f46c507727323ceffbcbad02 (patch) | |
| tree | fbfab173699667b990c31a358c0f2ae697740743 /Library/Formula | |
| parent | 75a6e29d97e0f1aee24119d8f8c71f5160af5a6f (diff) | |
| download | homebrew-2fd2fa6c892ca346f46c507727323ceffbcbad02.tar.bz2 | |
rsyslog 5.8.0
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/rsyslog.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/rsyslog.rb b/Library/Formula/rsyslog.rb new file mode 100644 index 000000000..7488ab8cb --- /dev/null +++ b/Library/Formula/rsyslog.rb @@ -0,0 +1,28 @@ +require 'formula' + +class Rsyslog < Formula + url 'http://rsyslog.com/files/download/rsyslog/rsyslog-5.8.0.tar.gz' + homepage 'http://www.rsyslog.com' + md5 '37562d0e71a24938a9ed7f242bd32d35' + + depends_on 'pkg-config' => :build + + def options + [['--universal', 'Make a 32/64-bit Intel build.']] + end + + def install + if ARGV.build_universal? + ENV['CC'] = "gcc -arch i386 -arch x86_64" + ENV['CXX'] = "g++ -arch i386 -arch x86_64" + ENV['CPP'] = "gcc -E" + ENV['CXXCPP'] = "g++ -E" + system "./configure", "--prefix=#{prefix}" + else + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" + end + + system "make" + system "make install" + end +end |
