27c7507d5f
This is a preventative measure. Msmtp can be built with either gnutls or openssl as its security lib. By default, it will use gnutls if it exists on the user's system. It will use openssl only if either the user requests it or gnutls is absent. The current formula is silent about what security lib to use, which means the brewer will get gnutls if it's present. This is risky, because brewers have no idea that this is the case. Suppose a brewer has gnutls brewed, and then brews msmtp with the current official formula. Then suppose the brewer removes gnutls later but keeps msmtp. Then msmtp will break, the user will have no idea why, there probably will be a ticket, and no matter what the brewer will have to rebrew. It therefore seems better to explicitly ask msmtp to build against openssl, since that isn't transient. Msmtp will find the system's ssl. For users who never brewed msmtp with gnutls already on their machines, this commit changes nothing at all. Closes Homebrew/homebrew#20756. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
26 lines
773 B
Ruby
26 lines
773 B
Ruby
require 'formula'
|
|
|
|
class Msmtp < Formula
|
|
homepage 'http://msmtp.sourceforge.net'
|
|
url 'http://downloads.sourceforge.net/project/msmtp/msmtp/1.4.31/msmtp-1.4.31.tar.bz2'
|
|
sha1 'c0edce1e1951968853f15209c8509699ff9e9ab5'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
# msmtp enables OS X Keychain support by default, so no need to ask for it.
|
|
|
|
def install
|
|
# Msmtp will build against gnutls by default if it exists on the
|
|
# system. This sets up problems if the user later removes gnutls.
|
|
# So explicitly ask for openssl, and ye shall receive it whether
|
|
# or not gnutls is present.
|
|
args = %W[
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
--with-ssl=openssl
|
|
]
|
|
|
|
system "./configure", *args
|
|
system "make", "install"
|
|
end
|
|
end
|