2011-10-12 19:57:38 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Daemon < Formula
|
|
|
|
homepage 'http://libslack.org/daemon/'
|
2013-01-27 22:06:22 +00:00
|
|
|
url 'http://libslack.org/daemon/download/daemon-0.6.4.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'fa6298f05f868d54660a7ed70c05fb7a0963a24b'
|
2011-10-12 19:57:38 +00:00
|
|
|
|
2014-03-15 20:00:03 +00:00
|
|
|
def patches
|
|
|
|
# fixes for mavericks strlcpy/strlcat: https://trac.macports.org/ticket/42845
|
|
|
|
{:p1 => "https://trac.macports.org/raw-attachment/ticket/42845/daemon-0.6.4-ignore-strlcpy-strlcat.patch"} if MacOS.version == :mavericks
|
|
|
|
end
|
|
|
|
|
2011-10-12 19:57:38 +00:00
|
|
|
def install
|
|
|
|
system "./config"
|
|
|
|
system "make"
|
2012-05-15 18:31:21 +00:00
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
2011-10-12 19:57:38 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/daemon", "--version"
|
2011-10-12 19:57:38 +00:00
|
|
|
end
|
|
|
|
end
|