Ticket #25985: Portfile

File Portfile, 3.2 KB (added by pixilla (Bradley Giesbrecht), 14 years ago)

bump to 2.0.rc6

Line 
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
4PortSystem          1.0
5
6name                dovecot2
7set base_name       dovecot
8conflicts           ${base_name}
9version             2.0.rc6
10set branch          [join [lrange [split ${version} .] 0 1] .]
11categories          mail
12maintainers         pixilla.com:brad
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}/rc
23
24distname            ${base_name}-${version}
25checksums           md5     f5e11466eb726393e6d1db188f41d4dc \
26                    sha1    666c5c2c6077ada9f3c5864d37e4e40e4d8eaf39 \
27                    rmd160  512e13211663622ef438813b571f460d7ac5228b
28
29depends_build       port:pkgconfig
30depends_lib         port:libiconv \
31                    port:zlib \
32                    port:openssl
33
34#patchfiles          patch-configure.diff
35
36configure.args      --sysconfdir=${prefix}/etc \
37                    --localstatedir=${prefix}/var \
38                    --with-ioloop=kqueue \
39                    --with-ssl=openssl \
40                    --with-ssldir=${prefix}/etc/ssl
41
42configure.cppflags  -I${prefix}/include/openssl
43
44post-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
51variant 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
57variant 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
63variant 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
69variant 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
75variant ldap description {Enable LDAP support} {
76    configure.args-append       --with-ldap
77    depends_lib-append          port:openldap
78}
79
80startupitem.create      yes
81startupitem.executable  ${prefix}/sbin/${base_name}
82startupitem.pidfile     auto ${prefix}/var/run/${base_name}/master.pid
83
84livecheck.url   ${master_sites}
85livecheck.type  regex
86livecheck.regex "${base_name}-(\\d+\\.\\d+(\[0-9rc.\]+)?).tar.gz"