Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
pdns recursor 3.7.1
Browse files Browse the repository at this point in the history
Closes #36803.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information
justinclift authored and jacknagel committed Feb 14, 2015
1 parent 1c62584 commit b72239a
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions Library/Formula/pdnsrec.rb
Expand Up @@ -2,9 +2,8 @@

class Pdnsrec < Formula
homepage "http://wiki.powerdns.com"
url "http://downloads.powerdns.com/releases/pdns-recursor-3.6.2.tar.bz2"
sha1 "69e461eb1da816f82c344137612d056f281217a1"
revision 1
url "http://downloads.powerdns.com/releases/pdns-recursor-3.7.1.tar.bz2"
sha1 "1651bb2ba4414c4276d18b281c0156576c37f741"

bottle do
cellar :any
Expand All @@ -17,6 +16,13 @@ class Pdnsrec < Formula
depends_on "boost"
depends_on "lua" => :optional

# Upstream patch for bug in 3.7.1 release (will be in next release)
# http://bert-hubert.blogspot.nl/2015/02/some-notes-on-sendmsg.html
patch :p1 do
url "https://gist.github.com/Habbie/107a297695dcac9efe9b/raw/78be11c907cf88ed41a725e97c8f5f1e2290309d/gistfile1.diff"
sha1 "63140c8a38dc9593f72ad80af9d87ca80764aebd"
end

def install
# Set overrides using environment variables
ENV["DESTDIR"] = "#{prefix}"
Expand All @@ -31,13 +37,13 @@ def install
end

# Adjust hard coded paths in Makefile
inreplace "Makefile", "/usr/sbin/", "#{sbin}/"
inreplace "Makefile", "/usr/bin/", "#{bin}/"
inreplace "Makefile", "/etc/powerdns/", "#{etc}/powerdns/"
inreplace "Makefile", "/var/run/", "#{var}/run/"
inreplace "Makefile.in", "/usr/sbin/", "#{sbin}/"
inreplace "Makefile.in", "/usr/bin/", "#{bin}/"
inreplace "Makefile.in", "/etc/powerdns/", "#{etc}/powerdns/"
inreplace "Makefile.in", "/var/run/", "#{var}/run/"

# Compile
system "make", "basic_checks"
system "./configure"
system "make"

# Do the install manually
Expand Down

0 comments on commit b72239a

Please sign in to comment.