a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 23015 2007-03-21 22:57:13Z pmq@macports.org $
PortSystem 1.0
name fetchmail
version 6.3.7
revision 1
categories mail
platforms darwin
maintainers pmq@macports.org
description Batch mail retrieval utility for IMAP, POP2, POP3, \
APOP, KPOP, ETRN, or ODMR
long_description \
Fetchmail is a full-featured IMAP, POP2, POP3, \
APOP, KPOP, ETRN, ODMR client with easy \
configuration, daemon mode, forwarding via SMTP \
or local MDA, and superior reply handling. It \
is used to handle intermittent email connections \
by acting as a coupling that seamlessly batch \
forwards fetched mail from your mail server to \
your local delivery system, allowing you to read \
your it with your favourite mail user agent. \
Fetchmail also includes useful spam filtering \
and multi-user functions. \
A typical use of fetchmail is to connect to your \
ISP's POP3 server, downloading your mail into \
the INBOX on your local computer. You may then \
read the mail, offline if you want, using Pine, \
mutt, or any standard mail user agent. \
homepage http://fetchmail.berlios.de
master_sites http://download2.berlios.de/${name} \
http://download.berlios.de/${name}
use_bzip2 yes
checksums sha1 163634b7b6b491c5f5e84a535f7943ba4d4f0001 \
rmd160 95b06b5e014c89416269dbc762c8556b20ce74ad
default_variants +ssl +fetchmailconf
depends_lib port:gettext
# depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
configure.env CFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
configure.args --mandir=${prefix}/share/man \
--with-libiconv-prefix=${prefix} \
--without-ssl --with-kerberos5 --with-gssapi
variant ssl {
depends_lib-append port:openssl
configure.args-delete --without-ssl
configure.args-append --with-ssl=${prefix}
}
variant fetchmailconf {
depends_lib-append port:py-tkinter
}
post-destroot {
if { ! [variant_isset fetchmailconf] } {
system "find ${destroot}${prefix} -type f -iname '*fetchmailconf*' -delete"
}
}