/
linux-pam.rb
44 lines (38 loc) 路 1.28 KB
/
linux-pam.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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.6.1/Linux-PAM-1.6.1.tar.xz"
sha256 "f8923c740159052d719dbfc2a2f81942d68dd34fcaf61c706a02c9b80feeef8e"
license any_of: ["BSD-3-Clause", "GPL-1.0-only"]
head "https://github.com/linux-pam/linux-pam.git", branch: "master"
bottle do
sha256 x86_64_linux: "52a7fb9aec444e5cd3a7bb53318a375f65757c485782a6430bcde5e0754b915e"
end
depends_on "pkg-config" => :build
depends_on "libnsl"
depends_on "libprelude"
depends_on "libtirpc"
depends_on "libxcrypt"
depends_on :linux
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