2014-06-23 01:24:52 +00:00
|
|
|
require "formula"
|
2011-05-21 02:31:35 +00:00
|
|
|
|
|
|
|
class Goaccess < Formula
|
2014-06-23 01:24:52 +00:00
|
|
|
homepage "http://goaccess.prosoftcorp.com/"
|
2014-08-19 08:02:28 +00:00
|
|
|
url "http://tar.goaccess.io/goaccess-0.8.3.tar.gz"
|
|
|
|
sha1 "e5ed8a3d6ba2c5b338b5e3e22da8024e7c58ded3"
|
2012-09-03 20:32:34 +00:00
|
|
|
|
2014-06-12 09:40:20 +00:00
|
|
|
bottle do
|
2014-08-19 08:10:32 +00:00
|
|
|
sha1 "9c5adcd9d96d92881c2aedecf13e1d42a4d829af" => :mavericks
|
|
|
|
sha1 "380c3c8298fb6c9e77297c708360d0abfc097650" => :mountain_lion
|
|
|
|
sha1 "0e9a7dfd63e7565fddd54a6b7fff13f1e8a81c46" => :lion
|
2014-06-12 09:40:20 +00:00
|
|
|
end
|
|
|
|
|
2014-06-23 01:24:52 +00:00
|
|
|
option "enable-geoip", "Enable IP location information using GeoIP"
|
2012-09-03 20:32:34 +00:00
|
|
|
|
2014-05-08 22:10:22 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/allinurl/goaccess.git"
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
end
|
|
|
|
|
2014-06-23 01:24:52 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "glib"
|
|
|
|
depends_on "geoip" if build.include? "enable-geoip"
|
2011-05-21 02:31:35 +00:00
|
|
|
|
|
|
|
def install
|
2014-05-08 22:10:22 +00:00
|
|
|
system "autoreconf", "-vfi" if build.head?
|
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
|