forked from benhoskings/babushka-deps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netatalk.rb
67 lines (56 loc) · 1.47 KB
/
netatalk.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
62
63
64
65
66
67
dep "netatalk.complete" do
requires "cups.managed", "libpam0g-dev.managed",
"libdb5.1.managed", "libdb5.1-dev.managed", "libavahi-client-dev.managed",
"netatalk.source", "netatalk config"
end
dep "libssl-dev.managed" do
provides []
end
dep "libacl1-dev.managed" do
provides []
end
dep "libwrap0-dev.managed" do
provides []
end
dep "libgcrypt11-dev.managed" do
provides []
end
dep "libdb5.1.managed" do
provides []
end
dep "libdb5.1-dev.managed" do
provides []
end
dep "libpam0g-dev.managed" do
provides []
end
dep "libpam-devperm.managed" do
provides []
end
dep "libavahi-client-dev.managed" do
provides []
end
dep "netatalk.source" do
met? {
which('netatalk-config') && shell("netatalk-config --version") == "3.0.4"
}
meet {
cd('/tmp') { |path|
log_shell "downloading netatalk", "curl -LO http://downloads.sourceforge.net/project/netatalk/netatalk/3.0.4/netatalk-3.0.4.tar.gz", {:spinner => true}
log_shell "expanding", "tar xzf netatalk-3.0.4.tar.gz", {:spinner => true}
cd("netatalk-3.0.4") {
log_shell "configuring", "./configure --enable-debian --with-pam"
log_shell "making", "make", {:spinner => true}
log_shell "installing", "make install", {:spinner => true, :sudo => true}
}
}
}
end
dep "netatalk config" do
met? {
babushka_config? "/usr/local/etc/afp.conf"
}
meet {
render_erb "netatalk/afp.conf.erb", :to => "/usr/local/etc/afp.conf", :sudo => true
}
end