-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmoira.rb
61 lines (54 loc) · 1.52 KB
/
moira.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
class Moira < Formula
desc "Clients for the Athena Service Management System"
homepage "https://debathena.mit.edu"
url "https://github.com/mit-athena/moira/archive/4.0.0.3+70+g36ab6660-0debathena1.tar.gz"
sha256 "61b26cffc52bf6bd5953522833637050f833b786ac4620bed462b2b106c4dae3"
depends_on :macos => :el_capitan
depends_on "hesiod"
depends_on "krb5"
conflicts_with "moira-dev", :because => "moira-dev is moira"
def install
args = %W[
--disable-dependency-tracking
--disable-silent-rules
--prefix=#{prefix}
--with-com_err
--without-krb4
--with-krb5=#{Formula["krb5"].opt_prefix}
--with-hesiod=#{Formula["hesiod"].opt_prefix}
--without-zephyr
--without-oracle
--without-afs
--disable-rpath
--mandir=#{man}
]
# Build et
cd "moira/util/et" do
system "./configure"
system "make"
end
# Build moira core
cd "moira" do
system "./configure", *args
system "make"
system "make", "install"
end
# Override moira-specific system tool names
cd bin do
mv "chfn", "chfn.moira"
mv "chsh", "chsh.moira"
end
# Build manpage documentation
cd man1 do
mv "chsh.1", "chsh.moira.1"
mv "chfn.1", "chfn.moira.1"
end
end
test do
system "#{bin}/blanche", "ops", "-i", "-noauth"
system "#{bin}/eunice", "enis", "-noauth"
system "#{bin}/mitch", "Machines/IST", "-noauth"
system "#{bin}/qy", "giql", "-s"
system "#{bin}/stella", "ist", "-noauth"
end
end