6a4c00bf28
I've tried all day and haven't been able to get trac.macports.org to respond a single time, which means this formula won't install. Host it on GitHub instead. I couldn't find a pristine copy of this patch, so I reconstructed it by hand from an HTML view in Google's cache of the macports page: http://webcache.googleusercontent.com/search?q=cache:V75bzw8DTMAJ:trac.macports.org/attachment/ticket/42845/daemon-0.6.4-ignore-strlcpy-strlcat.patch&hl=en&gl=au&strip=0&vwsrc=1 I guess I got it right byte for byte because the SHA-256 hash checks out. Closes Homebrew/homebrew#43507. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
22 lines
786 B
Ruby
22 lines
786 B
Ruby
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"
|
|
|
|
# fixes for mavericks strlcpy/strlcat: https://trac.macports.org/ticket/42845
|
|
patch do
|
|
url "https://gist.githubusercontent.com/jacobsa/b86cf524156ca10c54e1/raw/91dae330611c96ecb55b26e07e905ab2279258f0/daemon-0.6.4-ignore-strlcpy-strlcat.patch"
|
|
sha256 "a56e16b0801a13045d388ce7e755b2b4e40288c3731ce0f92ea879d0871782c0"
|
|
end if MacOS.version >= :mavericks
|
|
|
|
def install
|
|
system "./config"
|
|
system "make"
|
|
system "make", "PREFIX=#{prefix}", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/daemon", "--version"
|
|
end
|
|
end
|