2011-05-21 02:31:35 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Goaccess < Formula
|
|
|
|
homepage 'http://goaccess.prosoftcorp.com/'
|
2013-10-10 05:29:46 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/goaccess/0.6.1/goaccess-0.6.1.tar.gz'
|
|
|
|
sha1 '9604087ca730c288b461a260ab50bf7dd38ca281'
|
2012-09-03 20:32:34 +00:00
|
|
|
|
2013-10-10 05:46:20 +00:00
|
|
|
head 'https://github.com/allinurl/goaccess.git'
|
2011-05-21 02:31:35 +00:00
|
|
|
|
2012-09-03 20:32:34 +00:00
|
|
|
option 'enable-geoip', "Enable IP location information using GeoIP"
|
|
|
|
|
2011-11-01 05:24:09 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2011-05-21 02:31:35 +00:00
|
|
|
depends_on 'glib'
|
2012-09-03 20:32:34 +00:00
|
|
|
depends_on 'geoip' if build.include? "enable-geoip"
|
2011-05-21 02:31:35 +00:00
|
|
|
|
|
|
|
def install
|
2012-09-03 20:32:34 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
]
|
2011-07-29 16:21:51 +00:00
|
|
|
|
2012-09-03 20:32:34 +00:00
|
|
|
args << "--enable-geoip" if build.include? "enable-geoip"
|
2011-07-29 16:21:51 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2011-05-21 02:31:35 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|