require 'formula' class Runit < Formula homepage 'http://smarden.org/runit' url 'http://smarden.org/runit/runit-2.1.1.tar.gz' sha1 '8eee39639dcb79ba251ca4ab2c7cde38059f09c2' def install # Runit untars to 'admin/runit-VERSION' cd "runit-2.1.1" do # Per the installation doc on OS X, we need to make a couple changes. system "echo 'cc -Xlinker -x' >src/conf-ld" inreplace 'src/Makefile', / -static/, '' inreplace 'src/sv.c', "char *varservice =\"/service/\";", "char *varservice =\"#{var}/service/\";" system "package/compile" # The commands are compiled and copied into the 'command' directory and # names added to package/commands. Read the file for the commands and # install them in homebrew. rcmds = File.open("package/commands").read rcmds.each do |r| bin.install("command/#{r.chomp}") man8.install("man/#{r.chomp}.8") end (var + "service").mkpath end end def caveats; <<-EOS.undent This formula does not install runit as a replacement for init. The service directory is #{var}/service instead of /service. To have runit ready to run services, start runsvdir: runsvdir -P #{var} Depending on the services managed by runit, this may need to start as root. EOS end end ts.irssi.org/refs/?id=6455a8e468e35fff13e4587ea720266aa77ef70e'>refslogtreecommitdiffstats
path: root/scripts/sping.pl
blob: 484245499260b5ac7fb0ab40ccbdb7773eae91f6 (plain)
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