2011-05-21 02:31:35 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Goaccess < Formula
|
|
|
|
url 'http://downloads.sourceforge.net/project/goaccess/0.4.2/goaccess-0.4.2.tar.gz'
|
|
|
|
homepage 'http://goaccess.prosoftcorp.com/'
|
|
|
|
md5 '7d7707c294c949d612e451da2f003c37'
|
|
|
|
head 'git://goaccess.git.sourceforge.net/gitroot/goaccess/goaccess'
|
|
|
|
|
|
|
|
depends_on 'glib'
|
2011-07-29 16:21:51 +00:00
|
|
|
depends_on 'geoip' if ARGV.include? "--enable-geoip"
|
|
|
|
|
|
|
|
def options
|
|
|
|
[['--enable-geoip', "Enable IP location information using GeoIP"]]
|
|
|
|
end
|
2011-05-21 02:31:35 +00:00
|
|
|
|
|
|
|
def install
|
2011-07-29 16:21:51 +00:00
|
|
|
args = ["--prefix=#{prefix}",
|
|
|
|
"--disable-debug",
|
|
|
|
"--disable-dependency-tracking"]
|
|
|
|
|
|
|
|
args << "--enable-geoip" if ARGV.include? '--enable-geoip'
|
|
|
|
|
|
|
|
system "./configure", *args
|
2011-05-21 02:31:35 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|