Commit 4e14a5d5 authored by Damian Montero's avatar Damian Montero Committed by GitHub

Merge pull request #1236 from heavyimage/add_imap_and_ssl

Update mutt to build with smtp/imap
parents c486902d 49995b3f
require 'package'
class Libcyrussasl < Package
description 'Simple Authentication and Security Layer (SASL) is a specification that describes how authentication mechanisms can be plugged into an application protocol on the wire. Cyrus SASL is an implementation of SASL that makes it easy for application developers to integrate authentication mechanisms into their application in a generic way.'
homepage 'https://www.cyrusimap.org/sasl'
version '2.1.26'
source_url 'ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-2.1.26.tar.gz'
source_sha256 '8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3'
def self.build
system './configure',
'--prefix=/usr/local',
"--libdir=#{CREW_LIB_PREFIX}",
'--with-shared',
'--with-cxx-shared'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end
......@@ -20,17 +20,27 @@ class Mutt < Package
x86_64: 'fec90a3d7928479772c0b285ccc44f4746c4f1de86e96d7aa7598edf24218da2',
})
depends_on 'perl'
depends_on 'libxslt'
depends_on 'openssl'
depends_on 'libcyrussasl' => :build
depends_on 'gdbm'
def self.build
system "./configure \
--prefix=#{CREW_PREFIX} \
--with-mailpath=#{CREW_PREFIX}/mail"
--with-mailpath=#{CREW_PREFIX}/mail
--enable-imap
--with-ssl
--enable-smtp
--with-sasl=/usr/local/lib/sasl2
--enable-hcache"
system 'make'
end
def self.install
system "mkdir -p #{CREW_DEST_PREFIX}/mail"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "echo 'export SASL_PATH=/usr/local/lib/sasl2' >> ~/.bashrc"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment