source: trunk/dports/mail/fetchmail/Portfile

Last change on this file was 147637, checked in by jeremyhu@…, 18 months ago

fetchmail: Allow use of OpenSSL implementation that doesn't support SSLv3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 147637 2016-04-11 10:15:20Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                fetchmail
7version             6.3.26
8revision            1
9categories          mail
10platforms           darwin
11license             {GPL-2 OpenSSLException}
12maintainers         nomaintainer
13
14description         Batch mail retrieval utility for IMAP, POP2, POP3, \
15                    APOP, KPOP, ETRN, or ODMR
16long_description \
17    Fetchmail is a full-featured IMAP, POP2, POP3, \
18    APOP, KPOP, ETRN, ODMR client with easy \
19    configuration, daemon mode, forwarding via SMTP \
20    or local MDA, and superior reply handling.  It \
21    is used to handle intermittent email connections \
22    by acting as a coupling that seamlessly batch \
23    forwards fetched mail from your mail server to \
24    your local delivery system, allowing you to read \
25    your it with your favourite mail user agent. \
26    Fetchmail also includes useful spam filtering \
27    and multi-user functions.  \
28    A typical use of fetchmail is to connect to your \
29    normal POP3 server, downloading your mail into \
30    the INBOX on your local computer.  You may then \
31    read the mail, offline if you want, using Pine, \
32    mutt, or any standard mail user agent.
33
34homepage            http://www.fetchmail.info
35set branch          [join [lrange [split ${version} .] 0 1] .]
36master_sites        sourceforge:project/${name}/branch_${branch}
37
38use_xz              yes
39
40checksums           rmd160  ce9a54b6d11da4c5e042c760284f8b3c6ac5a4ff \
41                    sha256  79b4c54cdbaf02c1a9a691d9948fcb1a77a1591a813e904283a8b614b757e850
42
43depends_lib         port:gettext \
44                    port:kerberos5
45
46patchfiles          no-ssl3.patch
47
48configure.args      --mandir=${prefix}/share/man \
49                    --with-libiconv-prefix=${prefix} \
50                    --without-ssl --with-kerberos5=${prefix} --with-gssapi
51
52post-destroot {
53    if { ! [variant_isset fetchmailconf] } {
54        system "find ${destroot} -type f -iname '*fetchmailconf*' -delete"
55    }
56}
57
58startupitem.create  yes
59startupitem.start   "${prefix}/bin/fetchmail -f ${prefix}/etc/.fetchmail -d120"
60startupitem.stop    "${prefix}/bin/fetchmail -quit"
61
62variant fetchmailconf description "Install a graphical configurator" {
63    depends_lib-append      port:py-tkinter
64}
65
66variant ntlm description "Enable NTLM authentication" {
67    configure.args-append   --enable-NTLM
68}
69variant ssl description "Support secure connections using OpenSSL" {
70    depends_lib-append      path:lib/libssl.dylib:openssl
71    configure.args-delete   --without-ssl
72    configure.args-append   --with-ssl=${prefix}
73}
Note: See TracBrowser for help on using the repository browser.