homebrew-core/Formula/syslog-ng.rb

30 lines
1,006 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class SyslogNg < Formula
homepage 'http://www.balabit.com/network-security/syslog-ng/'
2013-01-28 03:03:50 +00:00
url 'http://www.balabit.com/downloads/files/syslog-ng/sources/3.2.5/source/syslog-ng_3.2.5.tar.gz'
sha1 '5541cd6711b7a9d983601d8047b9a27d98ecbe9b'
depends_on 'pkg-config' => :build
depends_on 'pcre'
depends_on 'eventlog'
2010-12-21 22:45:57 +00:00
depends_on 'glib'
def install
ENV.append 'LDFLAGS', '-levtlog -lglib-2.0' # help the linker find symbols
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--enable-dynamic-linking",
"--prefix=#{prefix}",
"--sysconfdir=#{etc}",
"--localstatedir=#{var}"
# the HAVE_ENVIRON check in configure fails
# discussion for a fix is ongoing on the Homebrew mailing list, but for
# now this is sufficient
inreplace 'config.h', '#define HAVE_ENVIRON 1', ''
system "make install"
end
end