# $Id: Portfile,v 1.6 2005/10/21 14:02:14 jberry Exp $ PortSystem 1.0 name dovecot-stable epoch 1 version 1.0.alpha4 categories mail maintainers jberry@opendarwin.org platforms darwin description Secure, fast imap and pop3 server -- currently in alpha approaching final long_description Dovecot is an IMAP and POP3 server for Linux/UNIX-like \ systems, written with security primarily in mind. Although \ it's written in C, it uses several coding techniques to \ avoid most of the common pitfalls. While this port used to represent the \ "stable" branch of development, that branch has now been superceeded by \ alpha builds on the way to a 1.0 release. This port is now tracking \ that branch. homepage http://dovecot.org/ master_sites ${homepage}releases/ distname dovecot-${version} checksums md5 65f8e2cd097e80b536a75c31a974b5de configure.args --sysconfdir=${prefix}/etc/dovecot \ --with-ssldir=${prefix}/etc/ssl \ --localstatedir=${prefix}/var post-configure { # madvise fails on darwin 7 and earlier, but is fixed on darwin 8 if { ${os.platform} == "darwin" && [rpm-vercomp ${os.version} 8.0] < 0 } { reinplace "s|#define HAVE_MADVISE 1|/* #undef HAVE_MADVISE */|" ${worksrcpath}/config.h } } post-destroot { # Create the dovecot user and group addgroup dovecot set gid [existsgroup dovecot] adduser dovecot gid=${gid} realname=Dovecot } variant postgres { depends_lib-append lib:plpgsql:postgresql configure.args-append --with-pgsql } variant rawlog { configure.args-append --with-rawlog } variant ldap { configure.args-append --with-ldap } startupitem.create yes startupitem.name Dovecot startupitem.start ${prefix}/sbin/dovecot startupitem.stop " pidfile=${prefix}/var/run/dovecot/master.pid \[ -r \${pidfile} \] && kill \$(cat \${pidfile}) "