source: trunk/dports/mail/dovecot/Portfile

Last change on this file was 146517, checked in by raimue@…, 17 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
1# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                dovecot
6conflicts           dovecot2
7epoch               20060722
8version             1.2.17
9revision            1
10set branch          [join [lrange [split ${version} .] 0 1] .]
11categories          mail
12license             {MIT LGPL-2.1 BSD public-domain}
13maintainers         jberry openmaintainer
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
25checksums           sha1    457b16791a15e739c6bc8b02bc9c78f9ad794e39 \
26                    rmd160  59f619dba2aadef3cccd6ceb045a2e75a11700a2
27
28depends_build       port:pkgconfig
29depends_lib         port:libiconv \
30                    port:zlib \
31                    path:lib/libssl.dylib:openssl
32
33configure.args      --sysconfdir=${prefix}/etc/dovecot \
34                    --localstatedir=${prefix}/var \
35                    --with-ioloop=kqueue \
36                    --with-ssl=openssl \
37                    --with-ssldir=${prefix}/etc/ssl \
38                    --enable-header-install
39
40configure.cppflags  -I${prefix}/include/openssl
41
42# Create the dovecot user and group
43add_users dovecot group=dovecot realname=Dovecot
44
45variant postgres requires postgresql80 description {Obsolete synonym for postgresql80 variant} {}
46
47variant postgresql80 conflicts postgresql81 postgresql82 postgresql83 postgresql84 description {Enable PostgreSQL 8.0 support} {
48    depends_lib-append          port:postgresql80
49    configure.args-append       --with-pgsql
50    configure.ldflags-append    -L${prefix}/lib/postgresql80
51    configure.cppflags-append   -I${prefix}/include/postgresql80
52}
53
54variant postgresql81 conflicts postgresql80 postgresql82 postgresql83 postgresql84 description {Enable PostgreSQL 8.1 support} {
55    depends_lib-append          port:postgresql81
56    configure.args-append       --with-pgsql
57    configure.ldflags-append    -L${prefix}/lib/postgresql81
58    configure.cppflags-append   -I${prefix}/include/postgresql81
59}
60
61variant postgresql82 conflicts postgresql80 postgresql81 postgresql83 postgresql84 description {Enable PostgreSQL 8.2 support} {
62    depends_lib-append          port:postgresql82
63    configure.args-append       --with-pgsql
64    configure.ldflags-append    -L${prefix}/lib/postgresql82
65    configure.cppflags-append   -I${prefix}/include/postgresql82
66}
67
68variant postgresql83 conflicts postgresql80 postgresql81 postgresql82 postgresql84 description {Enable PostgreSQL 8.3 support} {
69    depends_lib-append          port:postgresql83
70    configure.args-append       --with-pgsql
71    configure.ldflags-append    -L${prefix}/lib/postgresql83
72    configure.cppflags-append   -I${prefix}/include/postgresql83
73}
74
75variant postgresql84 conflicts postgresql80 postgresql81 postgresql82 postgresql83 description {Enable PostgreSQL 8.4 support} {
76    depends_lib-append          port:postgresql84
77    configure.args-append       --with-pgsql
78    configure.ldflags-append    -L${prefix}/lib/postgresql84
79    configure.cppflags-append   -I${prefix}/include/postgresql84
80}
81
82variant mysql5 description {Enable MySQL support} {
83    depends_lib-append          path:bin/mysql_config5:mysql5
84    configure.args-append       --with-mysql
85    configure.ldflags-append    -L${prefix}/lib/mysql5/mysql
86    configure.cppflags-append   -I${prefix}/include/mysql5/mysql
87}
88
89variant ldap description {Enable LDAP support} {
90    configure.args-append       --with-ldap
91    depends_lib-append          port:openldap
92}
93
94startupitem.create      yes
95startupitem.executable  ${prefix}/sbin/dovecot
96startupitem.pidfile     auto ${prefix}/var/run/dovecot/master.pid
97
98livecheck.type  regex
99livecheck.url   ${homepage}download.html
100livecheck.regex "${name}-(${branch}\\.\\d+(\\.\\d+)?)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.