diff --git a/Formula/rdate.rb b/Formula/rdate.rb index fff7b938be..80e32c002c 100644 --- a/Formula/rdate.rb +++ b/Formula/rdate.rb @@ -1,14 +1,17 @@ -require 'formula' - class Rdate < Formula - homepage 'http://www.aelius.com/njh/rdate/' - url 'http://www.aelius.com/njh/rdate/rdate-1.5.tar.gz' - sha1 'd7212503907db741ab53c4dd13ed141702d1809b' + homepage "http://www.aelius.com/njh/rdate/" + url "http://www.aelius.com/njh/rdate/rdate-1.5.tar.gz" + sha256 "6e800053eaac2b21ff4486ec42f0aca7214941c7e5fceedd593fa0be99b9227d" def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", + system "./configure", "--disable-debug", + "--disable-dependency-tracking", "--prefix=#{prefix}", "--mandir=#{man}" - system "make install" + system "make", "install" + end + + test do + system "#{bin}/rdate", "-p", "-t", "2", "0.pool.ntp.org" end end