From bba0ad4265e83748be65bbc1e479e65bd72511ff Mon Sep 17 00:00:00 2001 From: eatcpcks Date: Mon, 13 Jun 2011 06:53:58 -0700 Subject: dnsmasq 2.5.7 Lion Fix with CFLAGS modifier Signed-off-by: Adam Vandenberg --- Library/Formula/dnsmasq.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Library') 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" -- cgit v1.2.3