1 | --- Portfile.live 2009-12-26 16:37:57.000000000 -0800 |
---|
2 | +++ Portfile 2009-12-22 11:36:08.000000000 -0800 |
---|
3 | @@ -1,65 +1,99 @@ |
---|
4 | -# $Id: Portfile 60534 2009-11-14 23:10:00Z ryandesign@macports.org $ |
---|
5 | +# $Id: Portfile 39958 2008-09-14 03:40:17Z jberry@macports.org $ |
---|
6 | |
---|
7 | PortSystem 1.0 |
---|
8 | |
---|
9 | name dovecot |
---|
10 | epoch 20060722 |
---|
11 | -version 1.1.16 |
---|
12 | -set branch [join [lrange [split ${version} .] 0 1] .] |
---|
13 | +version 1.2.9 |
---|
14 | + |
---|
15 | +set major_version 1.2 |
---|
16 | + |
---|
17 | categories mail |
---|
18 | -maintainers jberry openmaintainer |
---|
19 | +maintainers jberry |
---|
20 | platforms darwin |
---|
21 | |
---|
22 | -description Secure, fast imap and pop3 server |
---|
23 | +description Secure, fast imap and pop3 server -- currently in alpha approaching final |
---|
24 | long_description Dovecot is an IMAP and POP3 server for Linux/UNIX-like \ |
---|
25 | systems, written with security primarily in mind. Although \ |
---|
26 | - it's written in C, it uses several coding techniques to \ |
---|
27 | + its written in C, it uses several coding techniques to \ |
---|
28 | avoid most of the common pitfalls. |
---|
29 | |
---|
30 | homepage http://dovecot.org/ |
---|
31 | |
---|
32 | -master_sites ${homepage}releases/${branch} |
---|
33 | -checksums md5 2e20c761416b16aa0fe9cac260ca0d2d \ |
---|
34 | - sha1 3aa7f386559f244b3a9addad27c4845c554e545b \ |
---|
35 | - rmd160 53122e86f217e33f24b52559fece5ace35689eb4 |
---|
36 | +master_sites ${homepage}releases/${major_version} |
---|
37 | +distname dovecot-${version} |
---|
38 | +checksums md5 036ff97fb248dae3bd4b796a0644634f \ |
---|
39 | + sha1 7c1013a1bc856a4366f76ac1f40e856185695e20 \ |
---|
40 | + rmd160 fa17bafabdd6fab69c22d617deff368a4bc165d1 |
---|
41 | |
---|
42 | -depends_build port:pkgconfig |
---|
43 | depends_lib port:libiconv \ |
---|
44 | + port:pkgconfig \ |
---|
45 | port:zlib \ |
---|
46 | port:openssl |
---|
47 | |
---|
48 | configure.args --sysconfdir=${prefix}/etc/dovecot \ |
---|
49 | --localstatedir=${prefix}/var \ |
---|
50 | - --with-ioloop=kqueue \ |
---|
51 | - --with-ssl=openssl --with-ssl-dir=${prefix}/etc/ssl |
---|
52 | + --with-ssl=openssl --with-ssldir=${prefix}/etc/ssl \ |
---|
53 | + --enable-header-install |
---|
54 | |
---|
55 | configure.cppflags "-I${prefix}/include/openssl" |
---|
56 | |
---|
57 | -post-destroot { |
---|
58 | +post-configure { |
---|
59 | + # madvise fails on darwin 7 and earlier, but is fixed on darwin 8 |
---|
60 | + if { ${os.platform} == "darwin" && [rpm-vercomp ${os.version} 8.0] < 0 } { |
---|
61 | + reinplace "s|#define HAVE_MADVISE 1|/* #undef HAVE_MADVISE */|" ${worksrcpath}/config.h |
---|
62 | + } |
---|
63 | +} |
---|
64 | + |
---|
65 | +post-destroot { |
---|
66 | # Create the dovecot user and group |
---|
67 | addgroup dovecot |
---|
68 | set gid [existsgroup dovecot] |
---|
69 | adduser dovecot gid=${gid} realname=Dovecot |
---|
70 | } |
---|
71 | |
---|
72 | -variant postgres { |
---|
73 | - depends_lib-append port:postgresql80 |
---|
74 | - configure.args-append --with-pgsql |
---|
75 | - configure.ldflags-append "-L${prefix}/lib/pgsql8" |
---|
76 | - configure.cppflags-append "-I${prefix}/include/pgsql8" |
---|
77 | +platform darwin 7 { |
---|
78 | + # Avoid broken poll |
---|
79 | + configure.args-append --with-ioloop=select |
---|
80 | + |
---|
81 | +} |
---|
82 | + |
---|
83 | +platform darwin 8 { |
---|
84 | + configure.args-append --with-ioloop=kqueue |
---|
85 | } |
---|
86 | |
---|
87 | -variant rawlog { configure.args-append --with-rawlog } |
---|
88 | +platform darwin 9 { |
---|
89 | + configure.args-append --with-ioloop=kqueue |
---|
90 | +} |
---|
91 | |
---|
92 | -variant ldap { configure.args-append --with-ldap |
---|
93 | - depends_lib-append port:openldap |
---|
94 | +variant postgres { |
---|
95 | + depends_lib-append port:postgresql80 |
---|
96 | + configure.args-append --with-pgsql |
---|
97 | + configure.ldflags-append "-L${prefix}/lib/pgsql8" |
---|
98 | + configure.cppflags-append "-I${prefix}/include/pgsql8" |
---|
99 | } |
---|
100 | |
---|
101 | -startupitem.create yes |
---|
102 | -startupitem.executable ${prefix}/sbin/dovecot |
---|
103 | -startupitem.pidfile auto ${prefix}/var/run/dovecot/master.pid |
---|
104 | +variant rawlog { |
---|
105 | + configure.args-append --with-rawlog |
---|
106 | +} |
---|
107 | |
---|
108 | -livecheck.type regex |
---|
109 | -livecheck.url ${homepage}download.html |
---|
110 | -livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?).tar.gz" |
---|
111 | +variant ldap { |
---|
112 | + configure.args-append --with-ldap |
---|
113 | + depends_lib-append port:openldap |
---|
114 | +} |
---|
115 | + |
---|
116 | +variant mysql5 { |
---|
117 | + depends_lib-append path:${prefix}/bin/mysql_config5:mysql5 |
---|
118 | + configure.args-append --with-mysql |
---|
119 | + configure.cflags-append "-I${prefix}/include/mysql5/mysql" |
---|
120 | + configure.ldflags-append "-L${prefix}/lib/mysql5/mysql" |
---|
121 | +} |
---|
122 | + |
---|
123 | +startupitem.create yes |
---|
124 | +startupitem.executable ${prefix}/sbin/dovecot |
---|
125 | +startupitem.pidfile auto ${prefix}/var/run/dovecot/master.pid |
---|
126 | + |
---|
127 | +livecheck.type regex |
---|
128 | +livecheck.url http://www.dovecot.org/releases/${major_version}/ |
---|
129 | +livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?).tar.gz" |
---|
130 | |
---|