aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/rsyslog.rb
blob: 7c13c6ce516070118a255eec27c65e55d9537079 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require 'formula'

class Rsyslog < Formula
  homepage 'http://www.rsyslog.com'
  url 'http://www.rsyslog.com/files/download/rsyslog/rsyslog-7.4.5.tar.gz'
  sha256 'f5e46e9324e366f20368162b4f561cf7a76fecb4aa0570edcaaa49e9f8c2fe70'

  depends_on 'pkg-config' => :build
  depends_on 'libestr'
  depends_on 'json-c'

  patch :DATA

  def install
    args = %W[
             --prefix=#{prefix}
             --disable-dependency-tracking
             --enable-imfile
             --enable-usertools
             --enable-diagtools
             --enable-cached-man-pages
             --disable-uuid
             --disable-libgcrypt
           ]

    system "./configure", *args
    system "make"
    system "make install"
  end
end

__END__
diff --git i/grammar/parserif.h w/grammar/parserif.h
index aa271ec..03c4db9 100644
--- i/grammar/parserif.h
+++ w/grammar/parserif.h
@@ -3,7 +3,7 @@
 #include "rainerscript.h"
 int cnfSetLexFile(char*);
 int yyparse();
-char *cnfcurrfn;
+extern char *cnfcurrfn;
 void dbgprintf(char *fmt, ...) __attribute__((format(printf, 1, 2)));
 void parser_errmsg(char *fmt, ...) __attribute__((format(printf, 1, 2)));
 void tellLexEndParsing(void);