48 lines
2 KiB
Ruby
48 lines
2 KiB
Ruby
class ImapUw < Formula
|
|
# imap-uw is unmaintained software; the author has passed away and there is
|
|
# no active successor project.
|
|
desc "University of Washington IMAP toolkit"
|
|
homepage "https://www.washington.edu/imap/"
|
|
url "https://mirrorservice.org/sites/ftp.cac.washington.edu/imap/imap-2007f.tar.gz"
|
|
mirror "https://fossies.org/linux/misc/old/imap-2007f.tar.gz"
|
|
sha256 "53e15a2b5c1bc80161d42e9f69792a3fa18332b7b771910131004eb520004a28"
|
|
|
|
bottle do
|
|
cellar :any
|
|
rebuild 1
|
|
sha256 "b6275d53e2c85dd5aa31b348399f7b42a14bf6dae39ada3226890cec76c7e415" => :mojave
|
|
sha256 "e2ac5fb24b426f4eb49b0c9d21f77b8780c2ef51f86e1bc985a287de79b2a957" => :high_sierra
|
|
sha256 "1652476ceea4500fb67cc6f0dc86ead889c7113c93cc98dbf0025d1c2d24a9b0" => :sierra
|
|
end
|
|
|
|
depends_on "openssl" # no OpenSSL 1.1 support
|
|
|
|
def install
|
|
ENV.deparallelize
|
|
inreplace "Makefile" do |s|
|
|
s.gsub! "SSLINCLUDE=/usr/include/openssl",
|
|
"SSLINCLUDE=#{Formula["openssl"].opt_include}/openssl"
|
|
s.gsub! "SSLLIB=/usr/lib",
|
|
"SSLLIB=#{Formula["openssl"].opt_lib}"
|
|
s.gsub! "-DMAC_OSX_KLUDGE=1", ""
|
|
end
|
|
inreplace "src/osdep/unix/ssl_unix.c", "#include <x509v3.h>\n#include <ssl.h>",
|
|
"#include <ssl.h>\n#include <x509v3.h>"
|
|
system "make", "oxp"
|
|
|
|
# email servers:
|
|
sbin.install "imapd/imapd", "ipopd/ipop2d", "ipopd/ipop3d"
|
|
|
|
# mail utilities:
|
|
bin.install "dmail/dmail", "mailutil/mailutil", "tmail/tmail"
|
|
|
|
# c-client library:
|
|
# Note: Installing the headers from the root c-client directory is not
|
|
# possible because they are symlinks and homebrew dutifully copies them
|
|
# as such. Pulling from within the src dir achieves the desired result.
|
|
doc.install Dir["docs/*"]
|
|
lib.install "c-client/c-client.a" => "libc-client.a"
|
|
(include + "imap").install "c-client/osdep.h", "c-client/linkage.h"
|
|
(include + "imap").install Dir["src/c-client/*.h", "src/osdep/unix/*.h"]
|
|
end
|
|
end
|