diff options
| author | Jack Nagel | 2012-01-01 20:30:27 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-01-01 20:30:27 -0600 |
| commit | 858794473ed52967c97835deb5a1342c61e1e2f2 (patch) | |
| tree | 1627e1ae60e5def706b21dc225e0cc31e503cee4 /Library/Formula | |
| parent | d04d43fc702ae0747a58c5f21c863ed6a5c7afc0 (diff) | |
| download | homebrew-858794473ed52967c97835deb5a1342c61e1e2f2.tar.bz2 | |
syslog-ng 3.2.5
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/syslog-ng.rb | 38 |
1 files changed, 8 insertions, 30 deletions
diff --git a/Library/Formula/syslog-ng.rb b/Library/Formula/syslog-ng.rb index a5b9cac27..355a99bca 100644 --- a/Library/Formula/syslog-ng.rb +++ b/Library/Formula/syslog-ng.rb @@ -1,17 +1,15 @@ require 'formula' class SyslogNg < Formula - url 'http://www.balabit.com/downloads/files?path=/syslog-ng/sources/3.2.4/source/syslog-ng_3.2.4.tar.gz' + url 'http://www.balabit.com/downloads/files/syslog-ng/sources/3.2.5/source/syslog-ng_3.2.5.tar.gz' homepage 'http://www.balabit.com/network-security/syslog-ng/' - md5 '5995f7dad0053a478b60a63f6f754203' + sha1 '5541cd6711b7a9d983601d8047b9a27d98ecbe9b' depends_on 'pkg-config' => :build depends_on 'pcre' depends_on 'eventlog' depends_on 'glib' - def patches; DATA; end - def install ENV.append 'LDFLAGS', '-levtlog -lglib-2.0' # help the linker find symbols system "./configure", "--disable-debug", @@ -20,32 +18,12 @@ class SyslogNg < Formula "--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 - -__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; |
