2010-08-13 03:26:21 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class SyslogNg < Formula
|
2011-09-03 22:25:19 +00:00
|
|
|
url 'http://www.balabit.com/downloads/files?path=/syslog-ng/sources/3.2.4/source/syslog-ng_3.2.4.tar.gz'
|
2010-08-13 03:26:21 +00:00
|
|
|
homepage 'http://www.balabit.com/network-security/syslog-ng/'
|
2011-09-03 22:25:19 +00:00
|
|
|
md5 '5995f7dad0053a478b60a63f6f754203'
|
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
|
|
|
|
2011-09-03 22:25:19 +00:00
|
|
|
def patches; DATA; end
|
|
|
|
|
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}"
|
2010-08-13 03:26:21 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2011-09-03 22:25:19 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
Fix for environ on OS X, by @adamv
|
|
|
|
|
|
|
|
diff --git a/lib/gprocess.c b/lib/gprocess.c
|
|
|
|
index 38bcb12..ed68a7f 100644
|
|
|
|
--- a/lib/gprocess.c
|
|
|
|
+++ b/lib/gprocess.c
|
|
|
|
@@ -51,6 +51,9 @@
|
|
|
|
# include <sys/prctl.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#include <crt_externs.h>
|
|
|
|
+#define environ (*_NSGetEnviron())
|
|
|
|
+
|
|
|
|
/*
|
|
|
|
* NOTES:
|
|
|
|
*
|
|
|
|
@@ -440,7 +443,6 @@ g_process_set_caps(const gchar *caps)
|
|
|
|
void
|
|
|
|
g_process_set_argv_space(gint argc, gchar **argv)
|
|
|
|
{
|
|
|
|
- extern char **environ;
|
|
|
|
gchar *lastargv = NULL;
|
|
|
|
gchar **envp = environ;
|
|
|
|
gint i;
|