vnstat: also install vnstati

Closes Homebrew/homebrew#23948.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Dennis Stengele 2013-11-04 09:59:48 +01:00 committed by Adam Vandenberg
parent bb1bc162eb
commit 3c1a71fd72

View file

@ -5,6 +5,8 @@ class Vnstat < Formula
url 'http://humdi.net/vnstat/vnstat-1.11.tar.gz'
sha1 '92494f38a752dcf60053af2a6d8977737da7e616'
depends_on 'gd'
def install
inreplace "src/cfg.c", '/etc/vnstat.conf', "#{etc}/vnstat.conf"
@ -24,10 +26,10 @@ class Vnstat < Formula
(var+'db/vnstat').mkpath
(var+'spool/vnstat').mkpath
system "make", "-C", "src", "CFLAGS=#{ENV.cflags}", "CC=#{ENV.cc}"
system "make", "all", "-C", "src", "CFLAGS=#{ENV.cflags}", "CC=#{ENV.cc}"
(prefix+'etc').install "cfg/vnstat.conf"
bin.install "src/vnstat", "src/vnstatd"
man1.install "man/vnstat.1", "man/vnstatd.1"
bin.install "src/vnstat", "src/vnstatd", "src/vnstati"
man1.install "man/vnstat.1", "man/vnstatd.1", "man/vnstati.1"
man5.install "man/vnstat.conf.5"
end