2011-10-12 19:57:38 +00:00
|
|
|
class Daemon < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Turn other processes into daemons"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://libslack.org/daemon/"
|
|
|
|
url "http://libslack.org/daemon/download/daemon-0.6.4.tar.gz"
|
|
|
|
sha256 "c4b9ea4aa74d55ea618c34f1e02c080ddf368549037cb239ee60c83191035ca1"
|
2011-10-12 19:57:38 +00:00
|
|
|
|
2014-03-17 16:12:54 +00:00
|
|
|
# fixes for mavericks strlcpy/strlcat: https://trac.macports.org/ticket/42845
|
2015-10-07 16:46:21 +00:00
|
|
|
if MacOS.version >= :mavericks
|
|
|
|
patch do
|
|
|
|
url "https://raw.githubusercontent.com/Homebrew/patches/3323958/daemon/daemon-0.6.4-ignore-strlcpy-strlcat.patch"
|
|
|
|
sha256 "a56e16b0801a13045d388ce7e755b2b4e40288c3731ce0f92ea879d0871782c0"
|
|
|
|
end
|
|
|
|
end
|
2014-03-15 20:00:03 +00:00
|
|
|
|
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
|