homebrew-core/Formula/webalizer.rb
2017-01-06 07:48:14 -08:00

33 lines
1.2 KiB
Ruby

class Webalizer < Formula
desc "Web server log file analysis"
homepage "http://www.webalizer.org"
url "ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.23-08-src.tgz"
mirror "https://mirrors.kernel.org/debian/pool/main/w/webalizer/webalizer_2.23.08.orig.tar.gz"
sha256 "edaddb5aa41cc4a081a1500e3fa96615d4b41bc12086bcedf9938018ce79ed8d"
revision 1
bottle do
sha256 "3236ad7fcfbef0c64ea2597cfe3e0b84d5c166eb37f20f13258d87dfe9806991" => :sierra
sha256 "399880f03c0ff58ca1d5af1eb9c8e05524ce807cbbf005eaf846e1bf7bbc3c05" => :el_capitan
sha256 "41626cab41b25a410da759240b476403a4e9be91784dd12eb74d7d897abbc663" => :yosemite
end
depends_on "gd"
depends_on "berkeley-db"
depends_on "libpng"
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make", "install"
end
test do
(testpath/"test.log").write "127.0.0.1 user-identifier homebrew [10/Oct/2000:13:55:36 -0700] \"GET /beer.gif HTTP/1.0\" 200 2326"
system "#{bin}/webalizer", "-c", etc/"webalizer.conf.sample", testpath/"test.log"
assert File.exist? "usage.png"
assert File.exist? "index.html"
end
end