2010-08-13 03:26:21 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class SyslogNg < Formula
|
2010-08-13 03:26:21 +00:00
|
|
|
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'
|
2012-01-02 02:30:27 +00:00
|
|
|
sha1 '5541cd6711b7a9d983601d8047b9a27d98ecbe9b'
|
2010-08-13 03:26:21 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-08-13 03:26:21 +00:00
|
|
|
depends_on 'pcre'
|
|
|
|
depends_on 'eventlog'
|
2010-12-21 22:45:57 +00:00
|
|
|
depends_on 'glib'
|
2010-08-13 03:26:21 +00:00
|
|
|
|
|
|
|
def install
|
2011-09-03 22:25:19 +00:00
|
|
|
ENV.append 'LDFLAGS', '-levtlog -lglib-2.0' # help the linker find symbols
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2010-08-13 03:26:21 +00:00
|
|
|
"--enable-dynamic-linking",
|
2011-09-03 22:25:19 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--sysconfdir=#{etc}",
|
|
|
|
"--localstatedir=#{var}"
|
2012-01-02 02:30:27 +00:00
|
|
|
|
|
|
|
# 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', ''
|
|
|
|
|
2010-08-13 03:26:21 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|