2010-06-28 18:02:06 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Djbdns < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "D.J. Bernstein's DNS tools"
|
2010-06-28 18:02:06 +00:00
|
|
|
homepage 'http://cr.yp.to/djbdns.html'
|
2013-01-27 22:16:49 +00:00
|
|
|
url 'http://cr.yp.to/djbdns/djbdns-1.05.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '2efdb3a039d0c548f40936aa9cb30829e0ce8c3d'
|
2010-06-28 18:02:06 +00:00
|
|
|
|
|
|
|
depends_on 'daemontools'
|
|
|
|
|
|
|
|
def install
|
|
|
|
inreplace 'hier.c', 'c("/"', 'c(auto_home'
|
2013-09-25 21:32:47 +00:00
|
|
|
inreplace 'dnscache-conf.c', '/etc/dnsroots', "#{etc}/dnsroots"
|
2010-06-28 18:02:06 +00:00
|
|
|
system "echo gcc -O2 -include /usr/include/errno.h > conf-cc"
|
|
|
|
system "echo #{prefix} > conf-home"
|
|
|
|
system "echo gcc > conf-ld"
|
|
|
|
bin.mkpath
|
|
|
|
(prefix+'etc').mkpath
|
|
|
|
system "make setup check"
|
|
|
|
end
|
|
|
|
end
|