From cf9e3703a17d01d8644baae4da09e60f9008ecf1 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Fri, 13 Mar 2015 00:21:32 +0100 Subject: mrtg: test added Closes #37660. Signed-off-by: Mike McQuaid --- Library/Formula/mrtg.rb | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3