Changeset 15618 for trunk/dports
- Timestamp:
- Dec 29, 2005, 5:53:37 AM (18 years ago)
- 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 $ 2 2 3 3 PortSystem 1.0 4 name dovecot 5 version 0.99.14 4 5 name dovecot 6 version 1.0.alpha5 7 # does this upgrade from alpha5 to 1.0? epoch is a bit of a hack? 6 8 categories mail 7 description (more) secure imap server 8 maintainers yeled@opendarwin.org 9 maintainers yeled@opendarwin.org,jberry@opendarwin.org 10 platforms darwin 11 12 description Secure, fast imap and pop3 server -- currently in alpha approaching final 9 13 long_description Dovecot is an IMAP and POP3 server for Linux/UNIX-like \ 10 14 systems, written with security primarily in mind. Although \ 11 15 it's written in C, it uses several coding techniques to \ 12 16 avoid most of the common pitfalls. 17 13 18 homepage http://dovecot.org/ 14 platforms darwin15 master_sites ${homepage}releases16 checksums ${distname}.tar.gz md5 a12e26fd378a46c31ec3a81ab7b55b5b17 19 18 configure.args --sysconfdir=${prefix}/etc/${name} \ 20 master_sites ${homepage}releases/ 21 distname dovecot-${version} 22 checksums md5 a3277835f04d73485ff5ce3cc3daeea7 23 24 configure.args --sysconfdir=${prefix}/etc/dovecot \ 19 25 --without-ssl \ 20 26 --localstatedir=${prefix}/var 27 28 patchfiles patch-ioloop-select.c 29 30 post-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 } 21 36 22 37 post-destroot { … … 25 40 set gid [existsgroup dovecot] 26 41 adduser dovecot gid=${gid} realname=Dovecot 42 } 27 43 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 44 platform darwin 7 { 45 # Avoid broken poll 46 configure.args-append --with-ioloop=select 34 47 } 48 49 platform darwin 8 { 50 # Avoid broken poll 51 configure.args-append --with-ioloop=select 52 } 53 35 54 36 55 variant postgres { … … 43 62 variant ldap { configure.args-append --with-ldap } 44 63 45 variant ssl { 46 --with-ssl-dir=${prefix}/etc/ssl 64 variant ssl { configure.args-append --with-ssl=openssl \ 65 --with-ssl-dir=${prefix}/etc/ssl 47 66 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' 56 69 } 57 70 … … 60 73 startupitem.start ${prefix}/sbin/dovecot 61 74 startupitem.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}) 66 77 "
Note: See TracChangeset
for help on using the changeset viewer.