diff options
| author | Ali Asad Lotia | 2010-12-16 07:56:53 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2010-12-23 20:35:30 +0000 |
| commit | 8fe141c9a4c347d6c13971740f28c4581e03624b (patch) | |
| tree | ce269981332297765c44ce60b73e0ba21e79c7d5 /Library/Formula | |
| parent | efe6d430e6e5f04245eb11f40bb0455e6a4eaf28 (diff) | |
| download | homebrew-8fe141c9a4c347d6c13971740f28c4581e03624b.tar.bz2 | |
Initial commit of GoAccess apache log analyzer.
The initial commit of go-access formula. GoAccess is a dialog based
interactive log file analysis tool.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/go-access.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/go-access.rb b/Library/Formula/go-access.rb new file mode 100644 index 000000000..98bdbcb54 --- /dev/null +++ b/Library/Formula/go-access.rb @@ -0,0 +1,28 @@ +require 'formula' + +class GoAccess <Formula + url 'http://sourceforge.net/projects/goaccess/files/0.4.1/goaccess-0.4.1.tar.gz' + homepage 'http://goaccess.prosoftcorp.com/' + sha1 'f68336fc49eb4907262f53956d4b88d5573a861e' + + depends_on 'glib' + depends_on 'geoip' if ARGV.include? "--enable-geoip" + + def options + [['--enable-geoip', "Enable IP location information using GeoIP"]] + end + + def install + # Don't attempt to link to librt since it doesn't exist on OSX. + inreplace "Makefile.in", "LIBS = @GLIB2_LIBS@ -lrt", "LIBS = @GLIB2_LIBS@" + + args = ["--prefix=#{prefix}", + "--disable-debug", + "--disable-dependency-tracking"] + + args << "--enable-geoip" if ARGV.include? '--enable-geoip' + + system "./configure", *args + system "make install" + end +end |
