2014-01-08 16:44:49 +00:00
|
|
|
class Libopendkim < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Implementation of Domain Keys Identified Mail authentication"
|
2014-01-08 16:44:49 +00:00
|
|
|
homepage "http://opendkim.org"
|
2015-06-15 19:19:41 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/opendkim/opendkim-2.10.3.tar.gz"
|
|
|
|
sha256 "43a0ba57bf942095fe159d0748d8933c6b1dd1117caf0273fa9a0003215e681b"
|
2014-01-08 16:44:49 +00:00
|
|
|
|
2014-07-03 21:00:24 +00:00
|
|
|
bottle do
|
2015-06-15 21:14:24 +00:00
|
|
|
sha256 "42f6bac489a74cf6f05f059c454b8b821c884abc71138f811fb72e4feca14f6d" => :yosemite
|
|
|
|
sha256 "4177829cd1e50e4723c815b747298277554a0a52176601c1f56b5c548ba133ff" => :mavericks
|
|
|
|
sha256 "e9196bde7304789169ceb844a7bea8b67e273e6005ed93ffd80d0a4d5af6241c" => :mountain_lion
|
2014-07-03 21:00:24 +00:00
|
|
|
end
|
|
|
|
|
2014-01-08 16:44:49 +00:00
|
|
|
depends_on "unbound"
|
2014-10-21 08:13:40 +00:00
|
|
|
depends_on "openssl"
|
2014-01-08 16:44:49 +00:00
|
|
|
|
|
|
|
def install
|
2015-06-15 19:19:41 +00:00
|
|
|
# --disable-filter: not needed for the library build
|
2014-01-08 16:44:49 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-filter",
|
2015-06-15 19:19:41 +00:00
|
|
|
"--with-unbound=#{Formula["unbound"].opt_prefix}"
|
2014-01-08 16:44:49 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
2015-06-15 19:19:41 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{sbin}/opendkim-genkey", "--directory=#{testpath}"
|
|
|
|
assert File.exist?("default.private")
|
|
|
|
assert File.exist?("default.txt")
|
|
|
|
end
|
2014-01-08 16:44:49 +00:00
|
|
|
end
|