diff options
| author | Alfred E. Heggestad | 2014-12-13 10:25:53 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-15 07:41:38 +0000 |
| commit | 26f0ad2f54bbd5d4cb8cfbb6f3ad3f7f585e4e67 (patch) | |
| tree | 84b823db6192a8d5af567fd395ea9cc37d19a321 /Library/Formula | |
| parent | 65a38ac4ad204080007a52186bbbc5b638b02e14 (diff) | |
| download | homebrew-26f0ad2f54bbd5d4cb8cfbb6f3ad3f7f585e4e67.tar.bz2 | |
restund 0.4.11 (new formula)
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/restund.rb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/restund.rb b/Library/Formula/restund.rb new file mode 100644 index 000000000..f7c44c4c8 --- /dev/null +++ b/Library/Formula/restund.rb @@ -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 |
