vnstat: also install vnstati
Closes Homebrew/homebrew#23948. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
bb1bc162eb
commit
3c1a71fd72
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue