aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-03-13 00:21:32 +0100
committerMike McQuaid2015-03-13 11:14:22 +0000
commitcf9e3703a17d01d8644baae4da09e60f9008ecf1 (patch)
treeecbb1b82022fd86b6e619354db7b1f3f079e3b23 /Library
parent8a25fb9a3dd64e8d1de57d42da05132863c96a2c (diff)
downloadhomebrew-cf9e3703a17d01d8644baae4da09e60f9008ecf1.tar.bz2
mrtg: test added
Closes #37660. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mrtg.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/Library/Formula/mrtg.rb b/Library/Formula/mrtg.rb
index 63b3fc3f9..95d2e4e10 100644
--- a/Library/Formula/mrtg.rb
+++ b/Library/Formula/mrtg.rb
@@ -1,14 +1,16 @@
-require 'formula'
-
class Mrtg < Formula
- homepage 'http://oss.oetiker.ch/mrtg/'
- url 'http://oss.oetiker.ch/mrtg/pub/mrtg-2.17.4.tar.gz'
- sha1 '5ae0e659001c613b847237a6b223b26cb7a8ab0f'
+ homepage "https://oss.oetiker.ch/mrtg/"
+ url "https://oss.oetiker.ch/mrtg/pub/mrtg-2.17.4.tar.gz"
+ sha256 "5efa7fae8040159208472e5f889be5b41d8c8a2ea6b31616f0f75cc7f48d2365"
- depends_on 'gd'
+ depends_on "gd"
def install
system "./configure", "--prefix=#{prefix}"
- system "make install"
+ system "make", "install"
+ end
+
+ test do
+ system "#{bin}/cfgmaker", "--nointerfaces", "localhost"
end
end