[138845] trunk/dports/mail

vince at macports.org vince at macports.org
Tue Jul 21 03:19:00 PDT 2015


Revision: 138845
          https://trac.macports.org/changeset/138845
Author:   vince at macports.org
Date:     2015-07-21 03:19:00 -0700 (Tue, 21 Jul 2015)
Log Message:
-----------
cyrus5-imapd: initial commit

Added Paths:
-----------
    trunk/dports/mail/cyrus5-imapd/
    trunk/dports/mail/cyrus5-imapd/Portfile
    trunk/dports/mail/cyrus5-imapd/files/
    trunk/dports/mail/cyrus5-imapd/files/patch-Makefile_in.diff
    trunk/dports/mail/cyrus5-imapd/files/patch-util_h.diff

Added: trunk/dports/mail/cyrus5-imapd/Portfile
===================================================================
--- trunk/dports/mail/cyrus5-imapd/Portfile	                        (rev 0)
+++ trunk/dports/mail/cyrus5-imapd/Portfile	2015-07-21 10:19:00 UTC (rev 138845)
@@ -0,0 +1,141 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id: Portfile 129759 2014-12-19 23:59:34Z devans at macports.org $
+
+PortSystem          1.0
+
+name                cyrus5-imapd
+version             2.5.4
+categories          mail
+platforms           darwin
+license             BSD-old
+maintainers         nomaintainer
+
+description         The Cyrus IMAP Server
+long_description    Popular, scalable, open standars based IMAP & POP3 mail server \
+                    developed by The Carnegie Mellon University.
+
+homepage            http://cyrusimap.org/
+master_sites        ftp://ftp.cyrusimap.org/cyrus-imapd/
+distname            cyrus-imapd-${version}
+
+checksums           rmd160  8263f17933e40959c34e51ea8ece3e1020519f0e \
+                    sha256  98839d2865c0ff5c5dc0f59aba54ad111135697c3383919e037651d90f00aaaa
+
+depends_build       port:makedepend
+
+depends_lib         port:perl5 \
+                    port:cyrus-sasl2 \
+                    port:openssl
+
+patchfiles          patch-util_h.diff \
+                    patch-Makefile_in.diff
+
+# Check for any db4* installation
+if {[glob ${prefix}/include/db4*] != ""} {
+    set db_list [lsort [glob ${prefix}/include/db4*]]
+    set current_db [lindex ${db_list} end]
+    # Caveat: this works for db44/db46/db48 but will have to be patched for db410
+    set db_ver [string index [lindex [split ${current_db} "/"] end] end]
+} else {
+    depends_lib-append   port:db48
+}
+
+pre-fetch {
+    ui_msg "Selected db4${db_ver}"
+}
+
+post-patch {
+    foreach dir {contrib contrib/cyrus-graphtools.1.0/cgi-bin contrib/cyrus-graphtools.1.0/script perl/imap/examples perl/sieve/scripts tools} {
+        eval reinplace "s|^#!.*perl|#!${prefix}/bin/perl|" [glob -d ${worksrcpath}/${dir} *.pl]
+    }
+}
+
+# wrong number of arguments at (eval 1) line 41, <DATA> line 256.
+configure.ccache    no
+
+configure.perl      ${prefix}/bin/perl5
+
+configure.args      --mandir=${prefix}/share/man \
+                    --sysconfdir=${prefix}/etc/cyrus \
+                    --with-cyrus-prefix=${prefix} \
+                    --with-pidfile=${prefix}/var/run/cyrus-master.pid \
+                    --with-bdb-incdir=${prefix}/include/db4${db_ver} \
+                    --with-bdb-libdir=${prefix}/lib/db4${db_ver} \
+                    --with-perl=${prefix}/bin/perl5 \
+                    --with-sasl=${prefix} \
+                    --with-openssl=${prefix} \
+                    --with-cyrus-user=_cyrus \
+                    --with-cyrus-group=mail \
+                    --enable-cmulocal \
+                    --enable-netscapehack \
+                    --with-snmp=no \
+                    --disable-sieve \
+                    --disable-gssapi \
+                    --with-com_err
+
+startupitem.create  yes
+startupitem.name    cyrus
+startupitem.requires Disks Network "System Log"
+startupitem.start   "${prefix}/bin/master -d"
+startupitem.stop    "pidfile=${prefix}/var/run/cyrus-master.pid
+            if \[ -f \${pidfile} \]; then
+               kill -TERM \$(cat \${pidfile})
+            fi"
+
+post-destroot   {
+        #add_users cyrus group=cyrus home=${prefix}/var/imap shell=/usr/bin/false passwd="\*"
+        xinstall -m 755 -v ${worksrcpath}/tools/mkimap ${destroot}${prefix}/bin
+        reinplace "s|/etc/imapd.conf|${prefix}/etc/cyrus/imapd.conf|" ${destroot}${prefix}/bin/mkimap
+        xinstall -m 755 -v ${worksrcpath}/tools/mknewsgroups ${destroot}${prefix}/bin
+        xinstall -m 755 -v ${worksrcpath}/tools/dohash ${destroot}${prefix}/bin
+        xinstall -m 755 -v ${worksrcpath}/tools/rehash ${destroot}${prefix}/bin
+        xinstall -m 755 -v ${worksrcpath}/tools/upgradesieve ${destroot}${prefix}/bin
+        xinstall -d -m 755 ${destroot}${prefix}/share/doc/
+        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
+        foreach d [glob -directory ${destroot}${prefix}/share/doc/${name} -type d *] { file delete -force ${destroot}${prefix}/share/doc/${name}/html ${destroot}${prefix}/share/doc/${name}/CVS $d/CVS }
+        xinstall -d -m 755 ${destroot}${prefix}/etc/cyrus/samples
+        foreach f [glob -directory ${worksrcpath}/master/conf -type f *.conf] {
+            xinstall -m 644 -v $f ${destroot}${prefix}/etc/cyrus/samples/[file tail $f].sample
+        }
+        xinstall -d -m 750 -o _cyrus -g mail ${destroot}${prefix}/var/imap
+        xinstall -d -m 750 -o _cyrus -g mail ${destroot}${prefix}/var/spool/imap
+        destroot.keepdirs ${destroot}${prefix}/var/run ${destroot}${prefix}/var/imap \
+        ${destroot}${prefix}/var/spool/imap ${destroot}${prefix}/var/log
+        eval delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod]
+}
+
+platform powerpc {
+        configure.args-append --build=powerpc
+}
+
+variant murder description {Enable IMAP Murder support} {
+        configure.args-append --enable-murder
+}
+
+variant sieve description {Use sieve} {
+        configure.args-delete --disable-sieve
+        configure.args-append --enable-sieve
+}
+
+variant idled description {Build idled} {
+        configure.args-append --enable-idled
+}
+
+platform i386 {
+        configure.args-append --build=i386
+}
+
+variant snmp description {Use Net SNMP} {
+        depends_lib-append      port:net-snmp
+        configure.args-delete   --with-snmp=no
+        configure.args-append   --with-snmp=yes
+}
+
+livecheck.type      regex
+livecheck.url       ${homepage}
+livecheck.regex     "/${name}/${name}-(\\d+(?:\\.\\d+)*)\\${extract.suffix}"
+
+##
+# Miscellaneous notes:
+# -) Port is itself bare bones, suport for many other things could be added (maybe as variants), so suggest away!
+##

Added: trunk/dports/mail/cyrus5-imapd/files/patch-Makefile_in.diff
===================================================================
--- trunk/dports/mail/cyrus5-imapd/files/patch-Makefile_in.diff	                        (rev 0)
+++ trunk/dports/mail/cyrus5-imapd/files/patch-Makefile_in.diff	2015-07-21 10:19:00 UTC (rev 138845)
@@ -0,0 +1,11 @@
+--- Makefile.in.old	2015-07-21 11:12:46.000000000 +0200
++++ Makefile.in	2015-07-21 11:13:20.000000000 +0200
+@@ -6388,7 +6388,7 @@
+ 	@echo "== done =="
+ 
+ install-data-hook:
+- at CMULOCAL_TRUE@	$(INSTALL) -m 644 $(top_srcdir)/depot/depot.conf $(DESTDIR)/
++#@CMULOCAL_TRUE@	$(INSTALL) -m 644 $(top_srcdir)/depot/depot.conf $(DESTDIR)/
+ 
+ install-exec-hook:
+ @PERL_TRUE@	for s in installsieve sieveshell; \

Added: trunk/dports/mail/cyrus5-imapd/files/patch-util_h.diff
===================================================================
--- trunk/dports/mail/cyrus5-imapd/files/patch-util_h.diff	                        (rev 0)
+++ trunk/dports/mail/cyrus5-imapd/files/patch-util_h.diff	2015-07-21 10:19:00 UTC (rev 138845)
@@ -0,0 +1,12 @@
+--- lib/util.h.old	2015-07-21 11:09:46.000000000 +0200
++++ lib/util.h	2015-07-21 11:09:59.000000000 +0200
+@@ -66,9 +66,7 @@
+ # endif /* HAVE_PCREPOSIX_H */
+ #endif /* ENABLE_REGEX */
+ 
+-#ifndef __GNUC__
+ typedef int (*__compar_fn_t)(const void *, const void *);
+-#endif
+ 
+ #define BIT32_MAX 4294967295U
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150721/b1d2b4f2/attachment-0001.html>


More information about the macports-changes mailing list