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/"
|
2015-04-15 08:55:02 +00:00
|
|
|
url "http://tar.goaccess.io/goaccess-0.9.tar.gz"
|
|
|
|
sha1 "fd18df44e09d4fac4ea90f1552e8ff9da0d6633c"
|
2012-09-03 20:32:34 +00:00
|
|
|
|
2014-06-12 09:40:20 +00:00
|
|
|
bottle do
|
2015-04-15 09:03:58 +00:00
|
|
|
sha256 "d768a98f42f9ec841328c859d6505e80904ec3c28e3bba38532ee67425d994d5" => :yosemite
|
|
|
|
sha256 "215ca9e4613a4ee206c17b3ec13bb46f610830102fdd3ac49c2c5c4f5f48ce3a" => :mavericks
|
|
|
|
sha256 "f1de0dde3a407eb515de8ca4faa40720e2f3c735cc8e3c9fec1f0d9bcecfbf31" => :mountain_lion
|
2014-06-12 09:40:20 +00:00
|
|
|
end
|
|
|
|
|
2014-11-14 20:35:07 +00:00
|
|
|
option "with-geoip", "Enable IP location information using GeoIP"
|
|
|
|
deprecated_option "enable-geoip" => "with-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"
|
2014-11-14 20:35:07 +00:00
|
|
|
depends_on "geoip" => :optional
|
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
|
|
|
|
2014-11-14 20:35:07 +00:00
|
|
|
args << "--enable-geoip" if build.with? "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
|