homebrew-core/Formula/daemon.rb

25 lines
759 B
Ruby
Raw Normal View History

class Daemon < Formula
desc "Turn other processes into daemons"
homepage "http://libslack.org/daemon/"
url "http://libslack.org/daemon/download/daemon-0.6.4.tar.gz"
sha256 "c4b9ea4aa74d55ea618c34f1e02c080ddf368549037cb239ee60c83191035ca1"
2014-03-17 16:12:54 +00:00
# fixes for mavericks strlcpy/strlcat: https://trac.macports.org/ticket/42845
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
def install
system "./config"
system "make"
system "make", "PREFIX=#{prefix}", "install"
end
test do
system "#{bin}/daemon", "--version"
end
end