From 25da8e726c71af510d9bf00a79cb00e6a4fcf4bb Mon Sep 17 00:00:00 2001 From: Justin Hart Date: Wed, 12 Oct 2011 13:57:38 -0600 Subject: 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 --- Library/Formula/daemon.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Library/Formula/daemon.rb (limited to 'Library/Formula') 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 -- cgit v1.2.3