8138230ac3
Daemon turns other processes into daemons. There are many tasks that need to be performed to correctly set up a daemon process. This can be tedious. Daemon performs these tasks for other processes. This is useful for writing daemons in languages other than C, C++ or Perl (e.g. /bin/sh, Java). Closes Homebrew/homebrew#8092. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
17 lines
351 B
Ruby
17 lines
351 B
Ruby
require 'formula'
|
|
|
|
class Daemon < Formula
|
|
url 'http://libslack.org/daemon/download/daemon-0.6.4.tar.gz'
|
|
homepage 'http://libslack.org/daemon/'
|
|
md5 '6cd0a28630a29ac279bc501f39baec66'
|
|
|
|
def install
|
|
system "./config"
|
|
system "make"
|
|
system "make PREFIX=#{prefix} install"
|
|
end
|
|
|
|
def test
|
|
system "#{bin}/daemon --version"
|
|
end
|
|
end
|