source: trunk/dports/mail/dovecot/Portfile @ 17975

Last change on this file since 17975 was 17975, checked in by jberry, 14 years ago

Update dovecot --> 1.0.beta8

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1# $Id: Portfile,v 1.17 2006/05/12 15:31:12 jberry Exp $
2
3PortSystem                      1.0
4
5name                            dovecot
6version                         1.0.beta8
7
8categories                      mail
9maintainers                     yeled@opendarwin.org,jberry@opendarwin.org
10platforms                       darwin
11
12description                     Secure, fast imap and pop3 server -- currently in alpha approaching final
13long_description        Dovecot is an IMAP and POP3 server for Linux/UNIX-like \
14                                        systems, written with security primarily in mind. Although \
15                                        it's written in C, it uses several coding techniques to \
16                                        avoid most of the common pitfalls.
17
18homepage                        http://dovecot.org/
19
20master_sites            ${homepage}releases/
21distname                        dovecot-${version}
22checksums                       rmd160 101a7011467691ba5f4a6f48e21d6d1dc5626c16
23
24depends_lib                     port:openssl
25
26configure.args          --sysconfdir=${prefix}/etc/dovecot \
27                                        --localstatedir=${prefix}/var \
28                                        --with-ssl=openssl \
29                                        --with-ssl-dir=${prefix}/etc/ssl
30configure.env           CPPFLAGS="-I${prefix}/include/openssl -I${prefix}/include/pgsql8" LDFLAGS="-L${prefix}/lib/pgsql8 -L${prefix}/lib"
31
32post-configure {
33        # madvise fails on darwin 7 and earlier, but is fixed on darwin 8
34        if { ${os.platform} == "darwin" && [rpm-vercomp ${os.version} 8.0] < 0 } {
35                reinplace "s|#define HAVE_MADVISE 1|/* #undef HAVE_MADVISE */|" ${worksrcpath}/config.h
36        }
37}
38
39post-destroot   {
40        # Create the dovecot user and group
41        addgroup dovecot
42        set gid [existsgroup dovecot]
43        adduser dovecot gid=${gid} realname=Dovecot
44}
45
46platform darwin 7 {
47        # Avoid broken poll
48        configure.args-append --with-ioloop=select
49}
50
51platform darwin 8 {
52        # Avoid broken poll
53        configure.args-append --with-ioloop=select
54}
55
56
57variant postgres        {       
58        depends_lib-append      port:postgresql8
59        configure.args-append   --with-pgsql
60}
61
62variant rawlog  {       configure.args-append   --with-rawlog   }
63
64variant ldap    {       configure.args-append   --with-ldap     }
65
66startupitem.create      yes
67startupitem.name        Dovecot
68startupitem.start       ${prefix}/sbin/dovecot
69startupitem.stop        "
70        pidfile=${prefix}/var/run/dovecot/master.pid   
71        \[ -r \${pidfile} \] && kill \$(cat \${pidfile})
72        "
Note: See TracBrowser for help on using the repository browser.