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

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

mail/dovecot: Conflict with port dovecot2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.6 KB
Line 
1# $Id: Portfile 78711 2011-05-18 21:17:48Z pixilla@macports.org $
2
3PortSystem          1.0
4PortGroup           archcheck 1.0
5
6name                dovecot
7conflicts           dovecot2
8epoch               20060722
9version             1.2.17
10set branch          [join [lrange [split ${version} .] 0 1] .]
11categories          mail
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                    port:openssl
31archcheck.files     lib/libiconv.dylib \
32                    lib/libz.dylib \
33                    lib/libssl.dylib
34
35configure.args      --sysconfdir=${prefix}/etc/dovecot \
36                    --localstatedir=${prefix}/var \
37                    --with-ioloop=kqueue \
38                    --with-ssl=openssl \
39                    --with-ssldir=${prefix}/etc/ssl \
40                    --enable-header-install
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 postgres requires postgresql80 description {Obsolete synonym for postgresql80 variant} {}
52
53variant postgresql80 conflicts postgresql81 postgresql82 postgresql83 postgresql84 description {Enable PostgreSQL 8.0 support} {
54    depends_lib-append          port:postgresql80
55    archcheck.files-append      lib/postgresql80/libpq.dylib
56    configure.args-append       --with-pgsql
57    configure.ldflags-append    -L${prefix}/lib/postgresql80
58    configure.cppflags-append   -I${prefix}/include/postgresql80
59}
60
61variant postgresql81 conflicts postgresql80 postgresql82 postgresql83 postgresql84 description {Enable PostgreSQL 8.1 support} {
62    depends_lib-append          port:postgresql81
63    archcheck.files-append      lib/postgresql81/libpq.dylib
64    configure.args-append       --with-pgsql
65    configure.ldflags-append    -L${prefix}/lib/postgresql81
66    configure.cppflags-append   -I${prefix}/include/postgresql81
67}
68
69variant postgresql82 conflicts postgresql80 postgresql81 postgresql83 postgresql84 description {Enable PostgreSQL 8.2 support} {
70    depends_lib-append          port:postgresql82
71    archcheck.files-append      lib/postgresql82/libpq.dylib
72    configure.args-append       --with-pgsql
73    configure.ldflags-append    -L${prefix}/lib/postgresql82
74    configure.cppflags-append   -I${prefix}/include/postgresql82
75}
76
77variant postgresql83 conflicts postgresql80 postgresql81 postgresql82 postgresql84 description {Enable PostgreSQL 8.3 support} {
78    depends_lib-append          port:postgresql83
79    archcheck.files-append      lib/postgresql83/libpq.dylib
80    configure.args-append       --with-pgsql
81    configure.ldflags-append    -L${prefix}/lib/postgresql83
82    configure.cppflags-append   -I${prefix}/include/postgresql83
83}
84
85variant postgresql84 conflicts postgresql80 postgresql81 postgresql82 postgresql83 description {Enable PostgreSQL 8.4 support} {
86    depends_lib-append          port:postgresql84
87    archcheck.files-append      lib/postgresql84/libpq.dylib
88    configure.args-append       --with-pgsql
89    configure.ldflags-append    -L${prefix}/lib/postgresql84
90    configure.cppflags-append   -I${prefix}/include/postgresql84
91}
92
93variant mysql5 description {Enable MySQL support} {
94    depends_lib-append          path:bin/mysql_config5:mysql5
95    archcheck.files-append      lib/mysql5/mysql/libmysqlclient.dylib
96    configure.args-append       --with-mysql
97    configure.ldflags-append    -L${prefix}/lib/mysql5/mysql
98    configure.cppflags-append   -I${prefix}/include/mysql5/mysql
99}
100
101variant ldap description {Enable LDAP support} {
102    configure.args-append       --with-ldap
103    archcheck.files-append      lib/libldap.dylib
104    depends_lib-append          port:openldap
105}
106
107startupitem.create      yes
108startupitem.executable  ${prefix}/sbin/dovecot
109startupitem.pidfile     auto ${prefix}/var/run/dovecot/master.pid
110
111livecheck.type  regex
112livecheck.url   ${homepage}download.html
113livecheck.regex "${name}-(${branch}\\.\\d+(\\.\\d+)?)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.