39 lines
1.4 KiB
Ruby
39 lines
1.4 KiB
Ruby
class PamYubico < Formula
|
|
desc "Yubico pluggable authentication module"
|
|
homepage "https://developers.yubico.com/yubico-pam/"
|
|
url "https://developers.yubico.com/yubico-pam/Releases/pam_yubico-2.27.tar.gz"
|
|
sha256 "63d02788852644d871746e1a7a1d16c272c583c226f62576f5ad232a6a44e18c"
|
|
license "BSD-2-Clause"
|
|
|
|
livecheck do
|
|
url "https://developers.yubico.com/yubico-pam/Releases/"
|
|
regex(/href=.*?pam_yubico[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_big_sur: "8d4405a65463be4dc6b5472b2cff454301591e57ff5c3b5fb4e8e40fb6981a66"
|
|
sha256 cellar: :any, big_sur: "4abde2a6a123b3816945f79b07c760b95d2709fc791b5c5c7509d9ed1544e491"
|
|
sha256 cellar: :any, catalina: "2405af18c4c1b4c2573c221ff6699afcb37a42fe211ebb8b726314d31e13ce1a"
|
|
sha256 cellar: :any, mojave: "e40398cff74d597a3c0f203c59906b8276d3985a976c87812269bdc56ee06c72"
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libyubikey"
|
|
depends_on "ykclient"
|
|
depends_on "ykpers"
|
|
|
|
def install
|
|
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--with-libyubikey-prefix=#{Formula["libyubikey"].opt_prefix}",
|
|
"--with-libykclient-prefix=#{Formula["ykclient"].opt_prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
# Not much more to test without an actual yubikey device.
|
|
system "#{bin}/ykpamcfg", "-V"
|
|
end
|
|
end
|