Changeset 15618 for trunk/dports


Ignore:
Timestamp:
Dec 29, 2005, 5:53:37 AM (18 years ago)
Author:
yeled
Message:

update dovecot 0.99 to the alpha version, cause timo's alpha's are really
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/dovecot/Portfile

    r15615 r15618  
    1 # $Id: Portfile,v 1.8 2005/12/26 23:50:17 yeled Exp $
     1# $Id: Portfile,v 1.9 2005/12/29 05:53:37 yeled Exp $
    22
    33PortSystem                      1.0
    4 name                            dovecot
    5 version                         0.99.14
     4
     5name                            dovecot
     6version                         1.0.alpha5
     7# does this upgrade from alpha5 to 1.0? epoch is a bit of a hack?
    68categories                      mail
    7 description                     (more) secure imap server
    8 maintainers                     yeled@opendarwin.org
     9maintainers                     yeled@opendarwin.org,jberry@opendarwin.org
     10platforms                       darwin
     11
     12description                     Secure, fast imap and pop3 server -- currently in alpha approaching final
    913long_description        Dovecot is an IMAP and POP3 server for Linux/UNIX-like \
    1014                                        systems, written with security primarily in mind. Although \
    1115                                        it's written in C, it uses several coding techniques to \
    1216                                        avoid most of the common pitfalls.
     17
    1318homepage                        http://dovecot.org/
    14 platforms                       darwin
    15 master_sites            ${homepage}releases
    16 checksums                       ${distname}.tar.gz md5 a12e26fd378a46c31ec3a81ab7b55b5b
    1719
    18 configure.args          --sysconfdir=${prefix}/etc/${name} \
     20master_sites            ${homepage}releases/
     21distname                        dovecot-${version}
     22checksums                       md5 a3277835f04d73485ff5ce3cc3daeea7
     23
     24configure.args          --sysconfdir=${prefix}/etc/dovecot \
    1925                                        --without-ssl \
    2026                                        --localstatedir=${prefix}/var
     27                                       
     28patchfiles                      patch-ioloop-select.c
     29
     30post-configure {
     31        # madvise fails on darwin 7 and earlier, but is fixed on darwin 8
     32        if { ${os.platform} == "darwin" && [rpm-vercomp ${os.version} 8.0] < 0 } {
     33                reinplace "s|#define HAVE_MADVISE 1|/* #undef HAVE_MADVISE */|" ${worksrcpath}/config.h
     34        }
     35}
    2136
    2237post-destroot   {
     
    2540        set gid [existsgroup dovecot]
    2641        adduser dovecot gid=${gid} realname=Dovecot
     42}
    2743
    28         # The rc script has been replaced by startupitem code
    29         # (it didn't really work right anyway)
    30         #set rcDir ${destroot}${prefix}/etc/rc.d
    31         #xinstall -m 755 -d ${rcDir}
    32         #xinstall -m 755 -c ${filespath}/dovecot.sh ${rcDir}
    33         #reinplace "s|__PREFIX|${prefix}|g" ${rcDir}/dovecot.sh
     44platform darwin 7 {
     45        # Avoid broken poll
     46        configure.args-append --with-ioloop=select
    3447}
     48
     49platform darwin 8 {
     50        # Avoid broken poll
     51        configure.args-append --with-ioloop=select
     52}
     53
    3554
    3655variant postgres        {       
     
    4362variant ldap    {       configure.args-append   --with-ldap     }
    4463
    45 variant ssl             {   configure.args-append       --with-ssl=openssl \
    46                                                 --with-ssl-dir=${prefix}/etc/ssl 
     64variant ssl             {       configure.args-append   --with-ssl=openssl \
     65                                                --with-ssl-dir=${prefix}/etc/ssl
    4766                                        configure.args-delete --without-ssl
    48                                         configure.env-append    CPPFLAGS=-I'${prefix}/include/openssl' \
    49                                         LDFLAGS=-L'${prefix}/lib' }
    50 
    51 variant test    {
    52                 version 1.0-test13
    53                 master_sites    ${homepage}/test/
    54                 checksums-append        ${name}-${version}.tar.gz md5 \
    55                                                                 0808b403979272c64a23b65ee9575e53
     67                                        configure.env-append    CPPFLAGS=-I'${prefix}/include/openssl' \
     68                                                LDFLAGS=-L'${prefix}/lib'
    5669}
    5770
     
    6073startupitem.start       ${prefix}/sbin/dovecot
    6174startupitem.stop        "
    62         pidfile=${prefix}/var/run/${name}/master.pid   
    63         if \[ -r \${pidfile} \]; then
    64                 kill `cat \${pidfile}`
    65         fi
     75        pidfile=${prefix}/var/run/dovecot/master.pid   
     76        \[ -r \${pidfile} \] && kill \$(cat \${pidfile})
    6677        "
Note: See TracChangeset for help on using the changeset viewer.