rdate: test added
Closes Homebrew/homebrew#37682. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
be174a37ec
commit
2d042ae3f9
1 changed files with 10 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue