1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name dovecot2 |
---|
7 | set base_name dovecot |
---|
8 | conflicts ${base_name} |
---|
9 | version 2.0.rc6 |
---|
10 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
11 | categories mail |
---|
12 | maintainers pixilla.com:brad |
---|
13 | platforms darwin |
---|
14 | |
---|
15 | description Secure, fast imap and pop3 server |
---|
16 | long_description Dovecot is an IMAP and POP3 server for Linux/UNIX-like \ |
---|
17 | systems, written with security primarily in mind. Although \ |
---|
18 | it's written in C, it uses several coding techniques to \ |
---|
19 | avoid most of the common pitfalls. |
---|
20 | |
---|
21 | homepage http://dovecot.org/ |
---|
22 | master_sites ${homepage}releases/${branch}/rc |
---|
23 | |
---|
24 | distname ${base_name}-${version} |
---|
25 | checksums md5 f5e11466eb726393e6d1db188f41d4dc \ |
---|
26 | sha1 666c5c2c6077ada9f3c5864d37e4e40e4d8eaf39 \ |
---|
27 | rmd160 512e13211663622ef438813b571f460d7ac5228b |
---|
28 | |
---|
29 | depends_build port:pkgconfig |
---|
30 | depends_lib port:libiconv \ |
---|
31 | port:zlib \ |
---|
32 | port:openssl |
---|
33 | |
---|
34 | #patchfiles patch-configure.diff |
---|
35 | |
---|
36 | configure.args --sysconfdir=${prefix}/etc \ |
---|
37 | --localstatedir=${prefix}/var \ |
---|
38 | --with-ioloop=kqueue \ |
---|
39 | --with-ssl=openssl \ |
---|
40 | --with-ssldir=${prefix}/etc/ssl |
---|
41 | |
---|
42 | configure.cppflags -I${prefix}/include/openssl |
---|
43 | |
---|
44 | post-destroot { |
---|
45 | # Create the dovecot user and group |
---|
46 | addgroup _dovecot |
---|
47 | set gid [existsgroup _dovecot] |
---|
48 | adduser _dovecot gid=${gid} realname=Dovecot |
---|
49 | } |
---|
50 | |
---|
51 | variant postgresql82 conflicts postgresql83 postgresql84 description {Enable PostgreSQL 8.2 support} { |
---|
52 | depends_lib-append port:postgresql82 |
---|
53 | configure.env-append PG_CONFIG=${prefix}/lib/postgresql82/bin/pg_config |
---|
54 | configure.args-append --with-pgsql |
---|
55 | } |
---|
56 | |
---|
57 | variant postgresql83 conflicts postgresql82 postgresql84 description {Enable PostgreSQL 8.3 support} { |
---|
58 | depends_lib-append port:postgresql83 |
---|
59 | configure.env-append PG_CONFIG=${prefix}/lib/postgresql83/bin/pg_config |
---|
60 | configure.args-append --with-pgsql |
---|
61 | } |
---|
62 | |
---|
63 | variant postgresql84 conflicts postgresql82 postgresql83 description {Enable PostgreSQL 8.4 support} { |
---|
64 | depends_lib-append port:postgresql84 |
---|
65 | configure.env-append PG_CONFIG=${prefix}/lib/postgresql84/bin/pg_config |
---|
66 | configure.args-append --with-pgsql |
---|
67 | } |
---|
68 | |
---|
69 | variant mysql5 description {Enable MySQL support} { |
---|
70 | depends_lib-append path:bin/mysql_config5:mysql5 |
---|
71 | configure.env-append MYSQL_CONFIG=${prefix}/bin/mysql_config5 |
---|
72 | configure.args-append --with-mysql |
---|
73 | } |
---|
74 | |
---|
75 | variant ldap description {Enable LDAP support} { |
---|
76 | configure.args-append --with-ldap |
---|
77 | depends_lib-append port:openldap |
---|
78 | } |
---|
79 | |
---|
80 | startupitem.create yes |
---|
81 | startupitem.executable ${prefix}/sbin/${base_name} |
---|
82 | startupitem.pidfile auto ${prefix}/var/run/${base_name}/master.pid |
---|
83 | |
---|
84 | livecheck.url ${master_sites} |
---|
85 | livecheck.type regex |
---|
86 | livecheck.regex "${base_name}-(\\d+\\.\\d+(\[0-9rc.\]+)?).tar.gz" |
---|