aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authoreatcpcks2011-06-13 06:53:58 -0700
committerAdam Vandenberg2011-06-13 14:13:31 -0700
commitbba0ad4265e83748be65bbc1e479e65bd72511ff (patch)
tree75afead9917cb9d76bdbecc2ac1999cd0328bec3 /Library/Formula
parent9de5549b4311ee0eacfac4d316abe6570eadaa71 (diff)
downloadhomebrew-bba0ad4265e83748be65bbc1e479e65bd72511ff.tar.bz2
dnsmasq 2.5.7
Lion Fix with CFLAGS modifier Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/dnsmasq.rb12
1 files changed, 10 insertions, 2 deletions
diff --git a/Library/Formula/dnsmasq.rb b/Library/Formula/dnsmasq.rb
index a3aeb4b0a..1167d6b8c 100644
--- a/Library/Formula/dnsmasq.rb
+++ b/Library/Formula/dnsmasq.rb
@@ -1,14 +1,22 @@
require 'formula'
class Dnsmasq < Formula
- url 'http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.55.tar.gz'
+ url 'http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.57.tar.gz'
homepage 'http://www.thekelleys.org.uk/dnsmasq/doc.html'
- md5 'b093d7c6bc7f97ae6fd35d048529232a'
+ md5 'd10faeb409717eae94718d7716ca63a4'
def install
ENV.deparallelize
+ # Fix etc location
inreplace "src/config.h", "/etc/dnsmasq.conf", "#{etc}/dnsmasq.conf"
+
+ # Fix compilation on Lion
+ ENV.append_to_cflags "-D__APPLE_USE_RFC_3542" if 10.7 <= MACOS_VERSION
+ inreplace "Makefile" do |s|
+ s.change_make_var! "CFLAGS", ENV.cflags
+ end
+
system "make install PREFIX=#{prefix}"
prefix.install "dnsmasq.conf.example"