jdnssec-tools 0.12
Closes Homebrew/homebrew#39855. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
97e22e847d
commit
470eaf134e
1 changed files with 29 additions and 0 deletions
29
Formula/jdnssec-tools.rb
Normal file
29
Formula/jdnssec-tools.rb
Normal file
|
@ -0,0 +1,29 @@
|
|||
class JdnssecTools < Formula
|
||||
desc "Java command-line tools for DNSSEC"
|
||||
homepage "http://www.verisignlabs.com/jdnssec-tools/"
|
||||
url "http://www.verisignlabs.com/dnssec-tools/packages/jdnssec-tools-0.12.tar.gz"
|
||||
sha256 "3fa0bfe062051d9048c5186adbb04d8f5e176e50da3cdcf9b0d97e1c558efc22"
|
||||
|
||||
depends_on :java
|
||||
|
||||
def install
|
||||
inreplace Dir["bin/*"] do |s|
|
||||
s.gsub! /basedir=.*/, "basedir=#{libexec}"
|
||||
end
|
||||
bin.install Dir["bin/*"]
|
||||
(libexec/"lib").install Dir["lib/*"]
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"powerdns.com.key").write(
|
||||
"powerdns.com. 10773 IN DNSKEY 257 3 8 (AwEAAb/+pXOZWYQ8mv9WM5dFva8
|
||||
WU9jcIUdDuEjldbyfnkQ/xlrJC5zA EfhYhrea3SmIPmMTDimLqbh3/4SMTNPTUF+9+U1vp
|
||||
NfIRTFadqsmuU9F ddz3JqCcYwEpWbReg6DJOeyu+9oBoIQkPxFyLtIXEPGlQzrynKubn04
|
||||
Cx83I6NfzDTraJT3jLHKeW5PVc1ifqKzHz5TXdHHTA7NkJAa0sPcZCoNE 1LpnJI/wcUpRU
|
||||
iuQhoLFeT1E432GuPuZ7y+agElGj0NnBxEgnHrhrnZW UbULpRa/il+Cr5Taj988HqX9Xdm
|
||||
6FjcP4Lbuds/44U7U8du224Q8jTrZ 57Yvj4VDQKc=)")
|
||||
|
||||
assert_match /D4C3D5552B8679FAEEBC317E5F048B614B2E5F607DC57F1553182D49AB2179F7/,
|
||||
shell_output("#{bin}/jdnssec-dstool -d 2 powerdns.com.key")
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue