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

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

mail/dovecot2:

  • Update version to 2.0.18
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.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 89838 2012-02-13 00:07:39Z pixilla@macports.org $
3
4PortSystem          1.0
5
6name                dovecot2
7set base_name       dovecot
8conflicts           ${base_name}
9# Please revbump port:dovecot2-sieve on port:dovecot2 version changes.
10version             2.0.18
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
27checksums           rmd160  e6260b009e3b0f5b58113dd71a2755edee665e0e \
28                    sha256  92fc68af6ef0309990c749fcab39eeebce56ea8888c3d73ba812b65a74d1fa1b
29
30depends_build       port:pkgconfig
31depends_lib         port:libiconv \
32                    port:zlib \
33                    port:openssl
34
35set default_internal_user \
36    _dovecot
37set default_login_user \
38    _dovenull
39
40patchfiles          patch-doc-example-config-conf.d-10-master.conf.diff
41
42post-patch {
43    reinplace "s|@@default_internal_user@@|${default_internal_user}|g" \
44        ${worksrcpath}/doc/example-config/conf.d/10-master.conf
45    reinplace "s|@@default_login_user@@|${default_login_user}|g" \
46        ${worksrcpath}/doc/example-config/conf.d/10-master.conf
47}
48
49configure.args      --sysconfdir=${prefix}/etc \
50                    --localstatedir=${prefix}/var \
51                    --with-ioloop=kqueue \
52                    --with-ssl=openssl \
53                    --with-ssldir=${prefix}/etc/ssl
54
55configure.cppflags  -I${prefix}/include/openssl
56
57pre-install {
58    # Create the internal user and group if needed
59    if { ![existsgroup ${default_internal_user}]} {
60        addgroup ${default_internal_user}
61    }
62    if { ![existsuser ${default_internal_user}]} {
63        set gid [existsgroup ${default_internal_user}]
64        adduser ${default_internal_user} gid=${gid} realname=Dovecot
65    }
66    # Create the login user and group if needed
67    if { ![existsgroup ${default_login_user}]} {
68        addgroup ${default_login_user}
69    }
70    if { ![existsuser ${default_login_user}]} {
71        set gid [existsgroup ${default_login_user}]
72        adduser ${default_login_user} gid=${gid} realname=Dovecot
73    }
74}
75
76variant postgresql82 conflicts postgresql83 postgresql84 postgresql90 postgresql91 description {Enable PostgreSQL 8.2 support} {
77    depends_lib-append          port:postgresql82
78    configure.env-append        PG_CONFIG=${prefix}/lib/postgresql82/bin/pg_config
79    configure.args-append       --with-pgsql
80}
81
82variant postgresql83 conflicts postgresql82 postgresql84 postgresql90 postgresql91 description {Enable PostgreSQL 8.3 support} {
83    depends_lib-append          port:postgresql83
84    configure.env-append        PG_CONFIG=${prefix}/lib/postgresql83/bin/pg_config
85    configure.args-append       --with-pgsql
86}
87
88variant postgresql84 conflicts postgresql82 postgresql83 postgresql90 postgresql91 description {Enable PostgreSQL 8.4 support} {
89    depends_lib-append          port:postgresql84
90    configure.env-append        PG_CONFIG=${prefix}/lib/postgresql84/bin/pg_config
91    configure.args-append       --with-pgsql
92}
93
94variant postgresql90 conflicts postgresql82 postgresql83 postgresql84 postgresql91 description {Enable PostgreSQL 9.0 support} {
95    depends_lib-append          port:postgresql90
96    configure.env-append        PG_CONFIG=${prefix}/lib/postgresql90/bin/pg_config
97    configure.args-append       --with-pgsql
98}
99
100variant postgresql91 conflicts postgresql82 postgresql83 postgresql84 postgresql90 description {Enable PostgreSQL 9.1 support} {
101    depends_lib-append          port:postgresql91
102    configure.env-append        PG_CONFIG=${prefix}/lib/postgresql91/bin/pg_config
103    configure.args-append       --with-pgsql
104}
105
106variant mysql5 description {Enable MySQL support} {
107    depends_lib-append          path:bin/mysql_config5:mysql5
108    configure.env-append        MYSQL_CONFIG=${prefix}/bin/mysql_config5
109    configure.args-append       --with-mysql
110}
111
112variant ldap description {Enable LDAP support} {
113    configure.args-append       --with-ldap
114    depends_lib-append          port:openldap
115}
116
117variant no_startupitem description {Do not install a launchd plist} {}
118
119if {![variant_isset "no_startupitem"]} {
120    startupitem.create      yes
121    startupitem.executable  ${prefix}/sbin/${base_name}
122    startupitem.pidfile     auto ${prefix}/var/run/${base_name}/master.pid
123}
124
125livecheck.url       [lindex ${master_sites} 0]
126livecheck.type      regex
127livecheck.regex     "${base_name}-(\\d+\\.\\d+(\[0-9rc.\]+)?).tar.gz"
Note: See TracBrowser for help on using the repository browser.