diff options
| author | Adam Vandenberg | 2011-04-04 16:56:47 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-04 16:56:47 -0700 |
| commit | 1fb85efce5e47a832f187f9c8ee12bc42649fa3a (patch) | |
| tree | bfaf9f7b0f5eb90f8d184179c0fa962621514240 /Library/Formula/runit.rb | |
| parent | f9f90beaa129c78ab31a24c49960dce2455d9eda (diff) | |
| download | homebrew-1fb85efce5e47a832f187f9c8ee12bc42649fa3a.tar.bz2 | |
Rewrite caveats to new style.
To make it easier to copy and paste multiline scripts from caveats,
no longer use $ as a prompt marker.
Diffstat (limited to 'Library/Formula/runit.rb')
| -rw-r--r-- | Library/Formula/runit.rb | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Library/Formula/runit.rb b/Library/Formula/runit.rb index bf451e846..9b8721209 100644 --- a/Library/Formula/runit.rb +++ b/Library/Formula/runit.rb @@ -20,22 +20,23 @@ class Runit < Formula # 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 - def caveats - <<-END_CAVEATS -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: + def caveats; <<-EOS.undent + This formula does not install runit as a replacement for init. + The service directory is #{var}/service instead of /service. - $ runsvdir -P #{var} + 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. - END_CAVEATS + Depending on the services managed by runit, this may need to start as root. + EOS end end |
