Skip to content

Commit

Permalink
softhsm 1.3.7 (new formula)
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#40396.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
zenazn authored and MikeMcQuaid committed Jun 5, 2015
1 parent a477adf commit 8e975f6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Formula/softhsm.rb
@@ -0,0 +1,23 @@
class Softhsm < Formula
desc "A cryptographic store accessible through a PKCS#11 interface"
homepage "https://www.opendnssec.org/softhsm/"
url "https://dist.opendnssec.org/source/softhsm-1.3.7.tar.gz"
sha256 "d12d6456a85561266d9da427565f3ee3746a35df6670d5e6be75de253c2810a4"

depends_on "botan"

def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end

test do
(testpath/"softhsm.conf").write("0:#{testpath}/hsm.db")
ENV["SOFTHSM_CONF"] = "#{testpath}/softhsm.conf"
system *%W[#{bin}/softhsm --init-token --slot 0 --label testing --so-pin 1234 --pin 1234]
system *%W[#{bin}/softhsm --show-slots]
end
end

0 comments on commit 8e975f6

Please sign in to comment.