homebrew-core/Formula/rsyslog.rb

46 lines
1.1 KiB
Ruby
Raw Normal View History

2011-09-02 00:23:23 +00:00
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'
2011-09-02 00:23:23 +00:00
depends_on 'pkg-config' => :build
depends_on 'libestr'
depends_on 'json-c'
2011-09-02 00:23:23 +00:00
2014-03-20 19:05:19 +00:00
patch :DATA
2011-09-02 00:23:23 +00:00
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
2011-09-02 00:23:23 +00:00
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);