source: trunk/dports/mail/dovecot/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

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