source: trunk/dports/mail/dovecot2/Portfile @ 92302

Last change on this file since 92302 was 92302, checked in by pixilla@…, 8 years ago

mail/dovecot2*:

  • Upgrade versions.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 92302 2012-04-24 21:49:25Z pixilla@macports.org $
3
4PortSystem          1.0
5
6name                dovecot2
7set base_name       dovecot
8# Please revbump port:dovecot2-sieve and port:dovecot2-antispam
9# on port:dovecot2 version changes.
10version             2.1.5
11set branch          [join [lrange [split ${version} .] 0 1] .]
12categories          mail
13maintainers         pixilla
14platforms           darwin
15
16description         Secure, fast imap and pop3 server
17long_description    Dovecot is an IMAP and POP3 server for Linux/UNIX-like \
18                    systems, written with security primarily in mind. Although \
19                    it's written in C, it uses several coding techniques to \
20                    avoid most of the common pitfalls.
21
22homepage            http://dovecot.org/
23master_sites        ${homepage}releases/${branch}
24
25distname            ${base_name}-${version}
26
27
28depends_build       port:pkgconfig
29depends_lib         port:libiconv \
30                    port:zlib \
31                    port:openssl
32
33set default_internal_user \
34    _dovecot
35set default_login_user \
36    _dovenull
37add_users ${default_internal_user} group=${default_internal_user} realname=Dovecot
38add_users ${default_login_user} group=${default_login_user} realname=Dovenull
39
40patchfiles          patch-doc-example-config-conf.d-10-master.conf.diff
41
42checksums           rmd160  ae79cdacffc115fc7a5aaa9d175cb82f0a77492a \
43                    sha256  94df927aa9f5edb7c86973292c42310e5a7f6c3af50a36436b66b49d31747050
44
45post-patch {
46    reinplace "s|@@default_internal_user@@|${default_internal_user}|g" \
47        ${worksrcpath}/doc/example-config/conf.d/10-master.conf
48    reinplace "s|@@default_login_user@@|${default_login_user}|g" \
49        ${worksrcpath}/doc/example-config/conf.d/10-master.conf
50}
51
52configure.args      --sysconfdir=${prefix}/etc \
53                    --localstatedir=${prefix}/var \
54                    --with-ssl=openssl \
55                    --with-ssldir=${prefix}/etc/ssl
56
57# Do not build with kqueue or poll support prior to Darwin 10.7.0 (Mac OS X 10.6)
58if {${os.platform} == "darwin" && [vercmp ${os.version} 10.7.0] < 0} {
59    configure.args-append \
60                    --with-ioloop=select
61}
62configure.cppflags  -I${prefix}/include/openssl
63
64variant postgresql82 description {Enable PostgreSQL 8.2 support} { \
65    conflicts postgresql83 postgresql84 postgresql90 postgresql91
66
67    depends_lib-append          port:postgresql82
68    configure.env-append        PG_CONFIG=${prefix}/lib/postgresql82/bin/pg_config
69    configure.args-append       --with-pgsql
70}
71
72variant postgresql83 description {Enable PostgreSQL 8.3 support} { \
73    conflicts postgresql82 postgresql84 postgresql90 postgresql91
74
75    depends_lib-append          port:postgresql83
76    configure.env-append        PG_CONFIG=${prefix}/lib/postgresql83/bin/pg_config
77    configure.args-append       --with-pgsql
78}
79
80variant postgresql84 description {Enable PostgreSQL 8.4 support} { \
81    conflicts postgresql82 postgresql83 postgresql90 postgresql91
82
83    depends_lib-append          port:postgresql84
84    configure.env-append        PG_CONFIG=${prefix}/lib/postgresql84/bin/pg_config
85    configure.args-append       --with-pgsql
86}
87
88variant postgresql90 description {Enable PostgreSQL 9.0 support} { \
89    conflicts postgresql82 postgresql83 postgresql84 postgresql91
90
91    depends_lib-append          port:postgresql90
92    configure.env-append        PG_CONFIG=${prefix}/lib/postgresql90/bin/pg_config
93    configure.args-append       --with-pgsql
94}
95
96variant postgresql91 description {Enable PostgreSQL 9.1 support} { \
97    conflicts postgresql82 postgresql83 postgresql84 postgresql90
98
99    depends_lib-append          port:postgresql91
100    configure.env-append        PG_CONFIG=${prefix}/lib/postgresql91/bin/pg_config
101    configure.args-append       --with-pgsql
102}
103
104variant mysql5 description {Enable MySQL 5.1 support} {
105    conflicts mysql55 mariadb percona
106
107    depends_lib-append          port:mysql5
108    configure.env-append        MYSQL_CONFIG=${prefix}/lib/mysql5/bin/mysql_config
109    configure.args-append       --with-mysql
110}
111
112variant mysql55 description {Enable MySQL 5.5 support} {
113    conflicts mysql5 mariadb percona
114
115    depends_lib-append          port:mysql55
116    configure.env-append        MYSQL_CONFIG=${prefix}/lib/mysql55/bin/mysql_config
117    configure.args-append       --with-mysql
118}
119
120variant mariadb description {Enable MariaDB (MySQL) support} {
121    conflicts mysql5 mysql55 percona
122
123    depends_lib-append          port:mariadb
124    configure.env-append        MYSQL_CONFIG=${prefix}/lib/mariadb/bin/mysql_config
125    configure.args-append       --with-mysql
126}
127
128variant percona description {Enable Percona (MySQL) support} {
129    conflicts mysql5 mysql55 mariadb
130
131    depends_lib-append          port:percona
132    configure.env-append        MYSQL_CONFIG=${prefix}/lib/percona/bin/mysql_config
133    configure.args-append       --with-mysql
134}
135
136variant ldap description {Enable LDAP support} {
137
138    depends_lib-append          port:openldap
139    configure.args-append       --with-ldap
140}
141
142if {[vercmp ${version} 2.1.0] > -1} {
143
144    variant lucene description {Enable lucene support} {
145
146        depends_lib-append          port:clucene
147        configure.args-append       --with-lucene
148        configure.cppflags-append   -I/opt/local/include -I/opt/local/lib
149        configure.ldflags-append    -L/opt/local/lib/
150    }
151}
152
153variant solr description {Enable apache-solr support} {
154
155    depends_lib-append          port:expat port:curl
156    configure.args-append       --with-solr
157}
158
159variant no_startupitem description {Do not install a launchd plist} {}
160
161if {![variant_isset "no_startupitem"]} {
162    startupitem.create      yes
163    startupitem.executable  ${prefix}/sbin/${base_name}
164    startupitem.pidfile     auto ${prefix}/var/run/${base_name}/master.pid
165}
166
167livecheck.url       [lindex ${master_sites} 0]
168livecheck.type      regex
169livecheck.regex     "${base_name}-(\\d+\\.\\d+(\[0-9rc.\]+)?).tar.gz"
Note: See TracBrowser for help on using the repository browser.