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
|
|
|
|
2016-02-27 10:58:22 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "ad4f8ad9e7deeb0039c6c603b0108fb6733abe425c49fa6344f762e26b49cf2d" => :el_capitan
|
|
|
|
sha256 "f48000af3631f28d47d01d3d89a1f03e7c4f7eac4a81ab7db9c38a1ce9ff66cd" => :yosemite
|
|
|
|
sha256 "09a420b59d2e5cbaf3073b2daf81d57d01c733b79a928bb58da6418de7f5bd3a" => :mavericks
|
|
|
|
end
|
|
|
|
|
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
|
2016-05-27 19:54:59 +00:00
|
|
|
url "https://raw.githubusercontent.com/Homebrew/formula-patches/3323958/daemon/daemon-0.6.4-ignore-strlcpy-strlcat.patch"
|
2015-10-07 16:46:21 +00:00
|
|
|
sha256 "a56e16b0801a13045d388ce7e755b2b4e40288c3731ce0f92ea879d0871782c0"
|
|
|
|
end
|
|
|
|
end
|
2014-03-15 20:00:03 +00:00
|
|
|
|
2011-10-12 19:57:38 +00:00
|
|
|
def install
|
2016-02-27 08:05:52 +00:00
|
|
|
# Parallel build failure reported to raf@raf.org 27th Feb 2016
|
|
|
|
ENV.deparallelize
|
|
|
|
|
2011-10-12 19:57:38 +00:00
|
|
|
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
|