Skip to content

Commit 278b046

Browse files
authored
Merge pull request #263786 from branchv/bump-softhsm-2.7.0
softhsm 2.7.0
2 parents f87a545 + ef22472 commit 278b046

File tree

1 file changed

+16
-31
lines changed

1 file changed

+16
-31
lines changed

Formula/s/softhsm.rb

Lines changed: 16 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,28 @@
11
class Softhsm < Formula
22
desc "Cryptographic store accessible through a PKCS#11 interface"
3-
homepage "https://www.opendnssec.org/en/latest/softhsm/"
4-
url "https://github.com/opendnssec/opendnssec/releases/download/2.1.14/softhsm-2.6.1.tar.gz"
5-
sha256 "61249473054bcd1811519ef9a989a880a7bdcc36d317c9c25457fc614df475f2"
3+
homepage "https://www.softhsm.org/"
4+
url "https://github.com/softhsm/SoftHSMv2/archive/refs/tags/2.7.0.tar.gz"
5+
sha256 "be14a5820ec457eac5154462ffae51ba5d8a643f6760514d4b4b83a77be91573"
66
license "BSD-2-Clause"
7-
8-
# We check the GitHub repo tags instead of https://dist.opendnssec.org/source/
9-
# since the aforementioned first-party URL has a tendency to lead to an
10-
# `execution expired` error.
11-
livecheck do
12-
url :head
13-
regex(/^v?(\d+(?:\.\d+)+)$/i)
14-
end
15-
16-
no_autobump! because: :requires_manual_review
7+
head "https://github.com/opendnssec/SoftHSMv2.git", branch: "main"
178

189
bottle do
19-
rebuild 3
20-
sha256 arm64_tahoe: "b2bd259c0e4982412af4f69451373a1d2cc03e43889adb5262f8d8873c3ede4f"
21-
sha256 arm64_sequoia: "34109f42f84fc58c9d6d9c9d668dab3ca9f71fce3d5f2962f679d730edcae3c4"
22-
sha256 arm64_sonoma: "2f329600e4d3ba0bc070d32692cf4805c43f0a25298d4d37b64a7445c0847fa6"
23-
sha256 sonoma: "210b718fbb84080b2a3b56fe0399047a7133423f4e7929e4d7ecd40e8a3357ea"
24-
sha256 arm64_linux: "a15ebcb5cb99c673cfa7aadcda2e0b1f2e8e6ba693d3d9fd91ed922c8de26ae3"
25-
sha256 x86_64_linux: "264fceddb0f4bce4bee697b2868f2d352768f4384088574b2f711b7af6894dd6"
26-
end
27-
28-
head do
29-
url "https://github.com/opendnssec/SoftHSMv2.git", branch: "develop"
30-
31-
depends_on "autoconf" => :build
32-
depends_on "automake" => :build
33-
depends_on "libtool" => :build
34-
depends_on "pkgconf" => :build
10+
sha256 arm64_tahoe: "0cdbf21ef15f1c4cc7098755e89b03acb4fb0b45e9890dc38d5ad67f7069429b"
11+
sha256 arm64_sequoia: "f6eb3e1465e04207141332c8733b63bde9b1597958839dccddab34207d1c1fcf"
12+
sha256 arm64_sonoma: "30f2b38120d68d5cd515f5a4e48a999424689e43a61929e443d9886b4d0bcc69"
13+
sha256 sonoma: "3ad3252a2e79d9cfcdcf9b43874a19fa666900f5f6dc2fd314f3d986cd395279"
14+
sha256 arm64_linux: "17a0a35b3e2e99a8ad74b559de10634b4f5385f1c881fd581b5c6bb4b1cf1196"
15+
sha256 x86_64_linux: "0a919b81ca6e41a6110d02eb537ae41754ad9d4af09167a4fcb71c52bc788ccc"
3516
end
3617

18+
depends_on "autoconf" => :build
19+
depends_on "automake" => :build
20+
depends_on "libtool" => :build
21+
depends_on "pkgconf" => :build
3722
depends_on "openssl@3"
3823

3924
def install
40-
system "sh", "./autogen.sh" if build.head?
25+
system "./autogen.sh"
4126
system "./configure", "--disable-silent-rules",
4227
"--localstatedir=#{var}",
4328
"--sysconfdir=#{pkgetc}",
@@ -52,7 +37,7 @@ def install
5237

5338
test do
5439
(testpath/"softhsm2.conf").write("directories.tokendir = #{testpath}")
55-
ENV["SOFTHSM2_CONF"] = "#{testpath}/softhsm2.conf"
40+
ENV["SOFTHSM2_CONF"] = testpath/"softhsm2.conf"
5641
system bin/"softhsm2-util", "--init-token", "--slot", "0",
5742
"--label", "testing", "--so-pin", "1234",
5843
"--pin", "1234"

0 commit comments

Comments
 (0)