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

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

mail/dovecot2:

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