homebrew-core/Formula/linux-pam.rb

49 lines
1.3 KiB
Ruby

class LinuxPam < Formula
desc "Pluggable Authentication Modules for Linux"
homepage "http://www.linux-pam.org"
url "https://github.com/linux-pam/linux-pam/releases/download/v1.5.2/Linux-PAM-1.5.2.tar.xz"
sha256 "e4ec7131a91da44512574268f493c6d8ca105c87091691b8e9b56ca685d4f94d"
license any_of: ["BSD-3-Clause", "GPL-1.0-only"]
revision 2
head "https://github.com/linux-pam/linux-pam.git", branch: "master"
bottle do
rebuild 1
sha256 x86_64_linux: "8ae64b723c369fdb8193bbdbc3f825c6daf21c9645a7eb8ba0ea333ae88ebe6c"
end
depends_on "pkg-config" => :build
depends_on "libnsl"
depends_on "libprelude"
depends_on "libtirpc"
depends_on "libxcrypt"
depends_on :linux
uses_from_macos "libxcrypt"
skip_clean :la
def install
args = %W[
--disable-db
--disable-silent-rules
--disable-selinux
--includedir=#{include}/security
--oldincludedir=#{include}
--enable-securedir=#{lib}/security
--sysconfdir=#{etc}
--with-xml-catalog=#{etc}/xml/catalog
--with-libprelude-prefix=#{Formula["libprelude"].opt_prefix}
]
system "./configure", *std_configure_args, *args
system "make"
system "make", "install"
end
test do
assert_match "Usage: #{sbin}/mkhomedir_helper <username>",
shell_output("#{sbin}/mkhomedir_helper 2>&1", 14)
end
end