Changeset 4059


Ignore:
Timestamp:
Nov 26, 2003, 11:22:40 AM (16 years ago)
Author:
fkr
Message:

Bug: #1208
Submitted by: bchesneau@…
Reviewed by:
Approved by:
Obtained from:

updated to newer version
works now on panther

Location:
trunk/dports/mail/courier-imap
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/courier-imap/Portfile

    r3173 r4059  
     1# $Id: Portfile,v 1.3 2003/11/26 11:22:40 fkr Exp $
     2
    13PortSystem 1.0
    24name            courier-imap
    3 version         2.0.0   
     5version         2.2.0   
    46categories      mail
    57maintainers     bchesneau@mac.com
     
    1416master_sites    sourceforge:courier
    1517use_bzip2       yes
    16 checksums       courier-imap-2.0.0.tar.bz2 md5 636816de2338eac4ad66d9d406020cba
     18checksums       md5 95e1f563a0c27330991820046d4d65d1
    1719depends_lib     lib:libssl.0.9:openssl
    1820depends_run     path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
    19 
    20 set authdaemondir ${prefix}/var/run/authdaemon.courier-imap
    21 
    22 configure.env   CFLAGS=-no-cpp-precomp \
    23                 LANG=C
     21set authdaemondir       ${prefix}/var/run/authdaemon.courier-imap
     22patchfiles      patch-rfc1035_res.h
    2423 
    2524configure.args  --bindir=${prefix}/bin --mandir=${prefix}/share/man \
    26                 --sysconfdir=${prefix}/etc/courier \
     25                --sysconfdir=${prefix}/etc/courier-imap \
    2726                --localstatedir=${prefix}/var/run \
    2827                --datadir=${prefix}/share/courier \
    2928                --with-piddir=${prefix}/var/run \
    3029                --with-authdaemonvar=${authdaemondir} \
    31                 --enable-workarounds-for-imap-client-bugs \
    32                 --enable-unicode=iso-8859-1,utf-8 --disable-root-check
     30                --enable-unicode --disable-root-check
    3331
    34 variant darwin {
     32platform darwin 6 {
    3533        depends_lib-append      lib:libdl.1:dlcompat
    36         patchfiles              patch-rfc1035_res.h
    37         configure.args-append   --with-waitfunc=wait3
     34        configure.args-append   --with-waitfunc=wait3 --with-authpam
     35        configure.env   LDFLAGS="-L${prefix}/lib -L${prefix}/lib/mysql -L${prefix}/lib/pgsql" \
     36                        CPPFLAGS="-I${prefix}/include -I${prefix}/include/mysql -I${prefix}/include/pgsql -no-cpp-precomp" \
     37                        LANG=C
     38}
     39
     40
     41platform darwin 7 {
     42        configure.args-append   --with-waitfunc=wait3 --with-authshadow --with-authpam
     43       
     44        configure.env   LDFLAGS="-L${prefix}/lib -L${prefix}/lib/mysql -L${prefix}/lib/pgsql"\
     45                        CPPFLAGS="-I${prefix}/include -I${workpath}/paminclude -I${prefix}/include/mysql -I${prefix}/include/pgsql -no-cpp-precomp" \
     46                        CFLAGS="-I${prefix}/include -I${workpath}/paminclude -I${prefix}/include/mysql -I${prefix}/include/pgsql  -no-cpp-precomp" \
     47                        LANG=C
     48       
     49        post-extract    {
     50                system "rm '${worksrcpath}/INSTALL'"
     51                system "mkdir -p ${workpath}/paminclude"
     52                system "ln -s /usr/include/pam ${workpath}/paminclude/security"
     53        }
    3854}
    3955
    4056variant mysql {
    4157        depends_lib-append      lib:libmysqlclient:mysql
    42         configure.env-append    LDFLAGS=-L${prefix}/lib/mysql \
    43                                 CPPFLAGS=-I${prefix}/include/mysql
     58}
     59
     60variant mysql4 {
     61        depends_lib-append      lib:libmysqlclient:mysql4
    4462}
    4563
    4664variant postgres {
    47         configure.env-append    LDFLAGS=-L${prefix}/lib -L${prefix}/pgsql/lib \
    48                                 CPPFLAGS=-I${prefix}/include/ -I${prefix}/pgsql/include
    49         depends_lib-append      lib:plpgsql:postgresql
     65        depends_lib-append      lib:plpgsql:postgresql
    5066}
    5167
    52 variant berkdb {
    53         depends_lib-append      lib:libdb-4.1:db4       
    54         configure.env-append    CPPFLAGS=-I${prefix}/include/db4
     68variant ldap {
     69        configure.args-append   --with-authldap
    5570}
    5671
    5772pre-configure {
    5873       
    59         if { ![variant_isset mysql]} {
     74        if { ![variant_isset mysql] && ![variant_isset mysql4] } {
    6075                configure.args-append --without-authmysql
    6176        }
    6277        if { ![variant_isset ldap]} {
    6378                configure.args-append --without-authldap
    64         }
    65         if { ![variant_isset pam]} {
    66                 configure.args-append --without-authpam
    67         }
     79        }
     80       
    6881        if { ![variant_isset postgres]} {
    69                 configure.args-append --without-authpostgresql
    70         }
    71         if { [variant_isset berkdb]} {
    72                 configure.args-append --with-db=db
     82                configure.args-append --without-authpostgresql
    7383        }
    7484}
    7585
    76 
    77 destroot {
    78         system "cd ${workpath}/${worksrcdir}"
    79         system "make install DESTDIR=${destroot}"
    80         system "make install-configure DESTDIR=${destroot}"
    81 }
     86destroot.target install install-configure
    8287
    8388post-destroot {
     
    8792        system "touch ${destroot}${authdaemondir}/.turd"
    8893
    89         system "install -o root -m 755 -c \
    90                       ${portpath}/files/*.sh ${destroot}${prefix}/etc/rc.d"
     94        system "install -o root -m 755 -c ${portpath}/files/*.sh ${destroot}${prefix}/etc/rc.d"
    9195        reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc/rc.d/imapd.sh
     96        reinplace "s|__PREFIX|${prefix}|g" ${destroot}${prefix}/etc/rc.d/imapd-ssl.sh
    9297        reinplace "s|ulimit|#ulimit|g" ${destroot}${prefix}/libexec/imapd.rc
    9398        reinplace "s|ulimit|#ulimit|g" ${destroot}${prefix}/libexec/imapd-ssl.rc
Note: See TracChangeset for help on using the changeset viewer.