[72030] trunk/dports/mail

raimue at macports.org raimue at macports.org
Thu Sep 30 14:10:31 PDT 2010


Revision: 72030
          http://trac.macports.org/changeset/72030
Author:   raimue at macports.org
Date:     2010-09-30 14:10:28 -0700 (Thu, 30 Sep 2010)
Log Message:
-----------
mail/dovecot2: New port, closes #26111

Added Paths:
-----------
    trunk/dports/mail/dovecot2/
    trunk/dports/mail/dovecot2/Portfile
    trunk/dports/mail/dovecot2/files/
    trunk/dports/mail/dovecot2/files/patch-doc-example-config-conf.d-10-master.conf.diff

Added: trunk/dports/mail/dovecot2/Portfile
===================================================================
--- trunk/dports/mail/dovecot2/Portfile	                        (rev 0)
+++ trunk/dports/mail/dovecot2/Portfile	2010-09-30 21:10:28 UTC (rev 72030)
@@ -0,0 +1,110 @@
+# -*- 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
+# $Id$
+
+PortSystem          1.0
+
+name                dovecot2
+set base_name       dovecot
+conflicts           ${base_name}
+version             2.0.4
+set branch          [join [lrange [split ${version} .] 0 1] .]
+categories          mail
+maintainers         pixilla.com:brad
+platforms           darwin
+
+description         Secure, fast imap and pop3 server
+long_description    Dovecot is an IMAP and POP3 server for Linux/UNIX-like \
+                    systems, written with security primarily in mind. Although \
+                    it's written in C, it uses several coding techniques to \
+                    avoid most of the common pitfalls.
+
+homepage            http://dovecot.org/
+master_sites        ${homepage}releases/${branch}
+
+distname            ${base_name}-${version}
+
+checksums           sha1    18c471e991d49424c9dd7d40f3899ea602f57bbc \
+                    rmd160  a3360158bb1242b009397e1c1180ccf9585eb547
+
+depends_build       port:pkgconfig
+depends_lib         port:libiconv \
+                    port:zlib \
+                    port:openssl
+
+set default_internal_user \
+    _dovecot
+set default_login_user \
+    _dovenull
+
+patchfiles          patch-doc-example-config-conf.d-10-master.conf.diff
+
+post-patch {
+    reinplace "s|@@default_internal_user@@|${default_internal_user}|g" \
+        ${worksrcpath}/doc/example-config/conf.d/10-master.conf
+    reinplace "s|@@default_login_user@@|${default_login_user}|g" \
+        ${worksrcpath}/doc/example-config/conf.d/10-master.conf
+}
+
+configure.args      --sysconfdir=${prefix}/etc \
+                    --localstatedir=${prefix}/var \
+                    --with-ioloop=kqueue \
+                    --with-ssl=openssl \
+                    --with-ssldir=${prefix}/etc/ssl
+
+configure.cppflags  -I${prefix}/include/openssl
+
+pre-install {
+    # Create the internal user and group if needed
+    if { ![existsgroup ${default_internal_user}]} {
+        addgroup ${default_internal_user}
+    }
+    if { ![existsuser ${default_internal_user}]} {
+        set gid [existsgroup ${default_internal_user}]
+        adduser ${default_internal_user} gid=${gid} realname=Dovecot
+    }
+    # Create the login user and group if needed
+    if { ![existsgroup ${default_login_user}]} {
+        addgroup ${default_login_user}
+    }
+    if { ![existsuser ${default_login_user}]} {
+        set gid [existsgroup ${default_login_user}]
+        adduser ${default_login_user} gid=${gid} realname=Dovecot
+    }
+}
+
+variant postgresql82 conflicts postgresql83 postgresql84 description {Enable PostgreSQL 8.2 support} {
+    depends_lib-append          port:postgresql82
+    configure.env-append        PG_CONFIG=${prefix}/lib/postgresql82/bin/pg_config
+    configure.args-append       --with-pgsql
+}
+
+variant postgresql83 conflicts postgresql82 postgresql84 description {Enable PostgreSQL 8.3 support} {
+    depends_lib-append          port:postgresql83
+    configure.env-append        PG_CONFIG=${prefix}/lib/postgresql83/bin/pg_config
+    configure.args-append       --with-pgsql
+}
+
+variant postgresql84 conflicts postgresql82 postgresql83 description {Enable PostgreSQL 8.4 support} {
+    depends_lib-append          port:postgresql84
+    configure.env-append        PG_CONFIG=${prefix}/lib/postgresql84/bin/pg_config
+    configure.args-append       --with-pgsql
+}
+
+variant mysql5 description {Enable MySQL support} {
+    depends_lib-append          path:bin/mysql_config5:mysql5
+    configure.env-append        MYSQL_CONFIG=${prefix}/bin/mysql_config5
+    configure.args-append       --with-mysql
+}
+
+variant ldap description {Enable LDAP support} {
+    configure.args-append       --with-ldap
+    depends_lib-append          port:openldap
+}
+
+startupitem.create      yes
+startupitem.executable  ${prefix}/sbin/${base_name}
+startupitem.pidfile     auto ${prefix}/var/run/${base_name}/master.pid
+
+livecheck.url   ${master_sites}
+livecheck.type  regex
+livecheck.regex "${base_name}-(\\d+\\.\\d+(\[0-9rc.\]+)?).tar.gz"


Property changes on: trunk/dports/mail/dovecot2/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/mail/dovecot2/files/patch-doc-example-config-conf.d-10-master.conf.diff
===================================================================
--- trunk/dports/mail/dovecot2/files/patch-doc-example-config-conf.d-10-master.conf.diff	                        (rev 0)
+++ trunk/dports/mail/dovecot2/files/patch-doc-example-config-conf.d-10-master.conf.diff	2010-09-30 21:10:28 UTC (rev 72030)
@@ -0,0 +1,16 @@
+--- doc/example-config/conf.d/10-master.conf.orig	2010-08-15 17:58:09.000000000 -0700
++++ doc/example-config/conf.d/10-master.conf	2010-08-15 17:59:45.000000000 -0700
+@@ -4,11 +4,11 @@
+ 
+ # Login user is internally used by login processes. This is the most untrusted
+ # user in Dovecot system. It shouldn't have access to anything at all.
+-#default_login_user = dovenull
++default_login_user = @@default_login_user@@
+ 
+ # Internal user is used by unprivileged processes. It should be separate from
+ # login user, so that login processes can't disturb other processes.
+-#default_internal_user = dovecot
++default_internal_user = @@default_internal_user@@
+ 
+ service imap-login {
+   inet_listener imap {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100930/74b5fa8a/attachment.html>


More information about the macports-changes mailing list