prips: modernize, use sha256
Closes Homebrew/homebrew#40014. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
ac5491b13a
commit
a73a881d48
1 changed files with 5 additions and 6 deletions
|
@ -1,9 +1,7 @@
|
|||
require 'formula'
|
||||
|
||||
class Prips < Formula
|
||||
homepage 'http://devel.ringlet.net/sysutils/prips/'
|
||||
url 'http://devel.ringlet.net/sysutils/prips/prips-0.9.9.tar.gz'
|
||||
sha1 '8e11c993f8525b2345cfbfb15801364d5a65a7dc'
|
||||
homepage "http://devel.ringlet.net/sysutils/prips/"
|
||||
url "http://devel.ringlet.net/sysutils/prips/prips-0.9.9.tar.gz"
|
||||
sha256 "ad9d8e63cd69ed682ea87c154a19e5c58a3eb4bb3a118d5f458fd86eadb3bef8"
|
||||
|
||||
def install
|
||||
system "make"
|
||||
|
@ -12,6 +10,7 @@ class Prips < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
assert_equal "127.0.0.0\n127.0.0.1", `'#{bin}/prips' 127.0.0.0/31`.strip
|
||||
assert_equal "127.0.0.0\n127.0.0.1",
|
||||
shell_output("#{bin}/prips 127.0.0.0/31").strip
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue