-
Notifications
You must be signed in to change notification settings - Fork 8
/
recipe.rb
45 lines (33 loc) · 1017 Bytes
/
recipe.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
prefix = ENV['LOGJAM_PREFIX'] || "/opt/logjam"
suffix = prefix == "/opt/logjam" ? "" : prefix.gsub('/', '-')
name "logjam-tools#{suffix}"
full_version = File.read("#{File.expand_path(__dir__)}/VERSION.txt").chomp
f_v, f_i = full_version.split('-', 2)
version f_v
iteration f_i
vendor "[email protected]"
# plugin "exclude"
# exclude "#{prefix}/share/man"
# exclude "#{prefix}/share/doc"
# exclude "/usr/share/doc"
# exclude "/usr/share/man"
files "#{prefix}/bin/logjam-*"
depends "logjam-libs#{suffix}", ">= 0.12.0"
case codename
when "bionic"
depends "libicu60"
when "focal"
depends "libicu66"
when "jammy"
depends "libicu70"
when "noble"
depends "libicu74"
end
apt_setup "apt-get update -y && apt-get install apt-transport-https ca-certificates -y"
apt_setup "echo 'deb [trusted=yes] https://railsexpress.de/packages/ubuntu/#{codename} ./' >> /etc/apt/sources.list"
keep_modified_files!
run "/bin/bash", "-c", "touch -h #{prefix}/bin/logjam*"
after_install <<-"EOS"
#!/bin/bash
ldconfig
EOS