aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/daemon.rb
diff options
context:
space:
mode:
authorJustin Hart2011-10-12 13:57:38 -0600
committerJack Nagel2011-11-12 18:46:58 -0600
commit25da8e726c71af510d9bf00a79cb00e6a4fcf4bb (patch)
tree202495ad197994626c5148c458ac8d3141987e32 /Library/Formula/daemon.rb
parent68ac31131241fda6f2ce057370c768722ca441f7 (diff)
downloadhomebrew-25da8e726c71af510d9bf00a79cb00e6a4fcf4bb.tar.bz2
New formula: daemon 0.6.4
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 #8092. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/daemon.rb')
-rw-r--r--Library/Formula/daemon.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/daemon.rb b/Library/Formula/daemon.rb
new file mode 100644
index 000000000..df6d22d60
--- /dev/null
+++ b/Library/Formula/daemon.rb
@@ -0,0 +1,17 @@
+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