Skip to content
Permalink
Browse files

update dovecot 0.99 to the alpha version, cause timo's alpha's are re…

…ally

betas, and there isn't anything else to choose from.

also: stop the confusion. We could really delete the dovecot-* ports, now.

thanks jberry - i basically patched to your portfile.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@15618 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Charlie Allom
Charlie Allom committed Dec 29, 2005
1 parent 0995aff commit 16ff87bffec1b265bb182a2890b5387227a71e79
Showing with 40 additions and 29 deletions.
  1. +40 −29 mail/dovecot/Portfile
@@ -1,38 +1,57 @@
# $Id: Portfile,v 1.8 2005/12/26 23:50:17 yeled Exp $
# $Id: Portfile,v 1.9 2005/12/29 05:53:37 yeled Exp $

PortSystem 1.0
name dovecot
version 0.99.14

name dovecot
version 1.0.alpha5
# does this upgrade from alpha5 to 1.0? epoch is a bit of a hack?
categories mail
description (more) secure imap server
maintainers yeled@opendarwin.org
maintainers yeled@opendarwin.org,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.

homepage http://dovecot.org/
platforms darwin
master_sites ${homepage}releases
checksums ${distname}.tar.gz md5 a12e26fd378a46c31ec3a81ab7b55b5b

configure.args --sysconfdir=${prefix}/etc/${name} \
master_sites ${homepage}releases/
distname dovecot-${version}
checksums md5 a3277835f04d73485ff5ce3cc3daeea7

configure.args --sysconfdir=${prefix}/etc/dovecot \
--without-ssl \
--localstatedir=${prefix}/var

patchfiles patch-ioloop-select.c

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
}

# The rc script has been replaced by startupitem code
# (it didn't really work right anyway)
#set rcDir ${destroot}${prefix}/etc/rc.d
#xinstall -m 755 -d ${rcDir}
#xinstall -m 755 -c ${filespath}/dovecot.sh ${rcDir}
#reinplace "s|__PREFIX|${prefix}|g" ${rcDir}/dovecot.sh
platform darwin 7 {
# Avoid broken poll
configure.args-append --with-ioloop=select
}

platform darwin 8 {
# Avoid broken poll
configure.args-append --with-ioloop=select
}


variant postgres {
depends_lib-append lib:plpgsql:postgresql
configure.args-append --with-pgsql
@@ -42,25 +61,17 @@ variant rawlog { configure.args-append --with-rawlog }

variant ldap { configure.args-append --with-ldap }

variant ssl { configure.args-append --with-ssl=openssl \
--with-ssl-dir=${prefix}/etc/ssl
variant ssl { configure.args-append --with-ssl=openssl \
--with-ssl-dir=${prefix}/etc/ssl
configure.args-delete --without-ssl
configure.env-append CPPFLAGS=-I'${prefix}/include/openssl' \
LDFLAGS=-L'${prefix}/lib' }

variant test {
version 1.0-test13
master_sites ${homepage}/test/
checksums-append ${name}-${version}.tar.gz md5 \
0808b403979272c64a23b65ee9575e53
configure.env-append CPPFLAGS=-I'${prefix}/include/openssl' \
LDFLAGS=-L'${prefix}/lib'
}

startupitem.create yes
startupitem.name Dovecot
startupitem.start ${prefix}/sbin/dovecot
startupitem.stop "
pidfile=${prefix}/var/run/${name}/master.pid
if \[ -r \${pidfile} \]; then
kill `cat \${pidfile}`
fi
pidfile=${prefix}/var/run/dovecot/master.pid
\[ -r \${pidfile} \] && kill \$(cat \${pidfile})
"

0 comments on commit 16ff87b

Please sign in to comment.
You can’t perform that action at this time.