restund 0.4.11 (new formula)

This commit is contained in:
Alfred E. Heggestad 2014-12-13 10:25:53 +01:00 committed by Mike McQuaid
parent 1dcd5ac2fa
commit 0ae894065a

33
Formula/restund.rb Normal file
View file

@ -0,0 +1,33 @@
require "formula"
class Restund < Formula
homepage "http://www.creytiv.com"
url "http://www.creytiv.com/pub/restund-0.4.11.tar.gz"
sha1 "7fb98e6d8dd5e48b62f5ad23d3dc5ee6546f8c15"
depends_on "libre"
# this patch is needed for restund to work on OSX, because it is
# using select() for polling with max 1024 file descriptors.
patch :p0 do
url "http://www.creytiv.com/tmp/restund-homebrew.patch"
sha1 "a7ddaf0da0396e50ffe40552eeab5436b3141180"
end
def install
libre = Formula["libre"]
system "make", "install", "PREFIX=#{prefix}",
"LIBRE_MK=#{libre.opt_share}/re/re.mk",
"LIBRE_INC=#{libre.opt_include}/re",
"LIBRE_SO=#{libre.opt_lib}"
system "make", "config", "DESTDIR=#{prefix}",
"PREFIX=#{prefix}",
"LIBRE_MK=#{libre.opt_share}/re/re.mk",
"LIBRE_INC=#{libre.opt_include}/re",
"LIBRE_SO=#{libre.opt_lib}"
end
test do
system "#{sbin}/restund", "-tdnf", "#{etc}/restund.conf"
end
end