diff options
| author | Jay Soffian | 2010-06-28 14:02:06 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-10 20:21:36 -0700 |
| commit | 27b64adb3f3d20c7e8aa56a145172b8968e6a4b2 (patch) | |
| tree | d6529ba7ac9037591b165a9b0cac2887e62bf35b /Library/Formula | |
| parent | 4f032d4a504b85d9d1b32339200641dde6eecf33 (diff) | |
| download | homebrew-27b64adb3f3d20c7e8aa56a145172b8968e6a4b2.tar.bz2 | |
Added formula for djbdns-1.0.5
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/djbdns.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/djbdns.rb b/Library/Formula/djbdns.rb new file mode 100644 index 000000000..65376a0ed --- /dev/null +++ b/Library/Formula/djbdns.rb @@ -0,0 +1,20 @@ +require 'formula' + +class Djbdns <Formula + url 'http://cr.yp.to/djbdns/djbdns-1.05.tar.gz' + homepage 'http://cr.yp.to/djbdns.html' + md5 '3147c5cd56832aa3b41955c7a51cbeb2' + + depends_on 'daemontools' + + def install + inreplace 'hier.c', 'c("/"', 'c(auto_home' + inreplace 'dnscache-conf.c', '([" ])/etc/dnsroots', "$1#{etc}/dnsroots" + 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 |
