-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmoira-dev.rb
61 lines (54 loc) · 1.44 KB
/
moira-dev.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 MoiraDev < Formula
desc "Clients for the Athena Service Management System (developer)"
homepage "https://github.mit.edu/ops/moira"
url "[email protected]:ops/moira.git", :using => :git
version "0"
depends_on :macos => :el_capitan
depends_on "hesiod"
depends_on "krb5"
conflicts_with "moira", :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