<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[134725] trunk/dports/mail/mailman/Portfile</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/134725">134725</a></dd>
<dt>Author</dt> <dd>larryv@macports.org</dd>
<dt>Date</dt> <dd>2015-04-05 10:28:41 -0700 (Sun, 05 Apr 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>mailman: Rearrange and reformat (#45650)</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsmailmailmanPortfile">trunk/dports/mail/mailman/Portfile</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsmailmailmanPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/mail/mailman/Portfile (134724 => 134725)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/mail/mailman/Portfile        2015-04-05 14:23:17 UTC (rev 134724)
+++ trunk/dports/mail/mailman/Portfile        2015-04-05 17:28:41 UTC (rev 134725)
</span><span class="lines">@@ -1,127 +1,124 @@
</span><span class="cx"> # -*- 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
</span><span class="cx"> # $Id$
</span><span class="cx"> 
</span><del>-PortSystem                1.0
</del><ins>+PortSystem          1.0
</ins><span class="cx"> 
</span><del>-name                        mailman
-version                        2.1.13
-categories                mail
-license                        GPL-2
-maintainers                nomaintainer
-description                Mailman, the GNU Mailing List Manager
-long_description        Mailman is free software for managing electronic \
-                        mail discussion and e-newsletter lists. Mailman is \
-                        integrated with the web, making it easy for users to \
-                        manage their accounts and for list owners to \
-                        administer their lists. Mailman supports built-in \
-                        archiving, automatic bounce processing, content \
-                        filtering, digest delivery, spam filters, and more.
</del><ins>+name                mailman
+version             2.1.13
+categories          mail
+platforms           darwin
+license             GPL-2
+maintainers         nomaintainer
</ins><span class="cx"> 
</span><del>-homepage                http://www.list.org/
-master_sites                sourceforge
-extract.suffix                .tgz
</del><ins>+description         Mailman, the GNU Mailing List Manager
+long_description    Mailman is free software for managing electronic \
+                    mail discussion and e-newsletter lists. Mailman is \
+                    integrated with the web, making it easy for users \
+                    to manage their accounts and for list owners to \
+                    administer their lists. Mailman supports built-in \
+                    archiving, automatic bounce processing, content \
+                    filtering, digest delivery, spam filters, and more.
+homepage            http://www.list.org/
</ins><span class="cx"> 
</span><del>-checksums                md5     3235323ccb3e0135c10b7c66a440390b \
-                        sha1    923dd78a17cbab576354b53a80443fe05f134398 \
-                        rmd160  3a62b04ea0f48c3ecbe815eb927d282f765e416c
</del><ins>+depends_lib         port:python26
</ins><span class="cx"> 
</span><del>-platforms                darwin
</del><ins>+master_sites        sourceforge
+extract.suffix      .tgz
+checksums           md5     3235323ccb3e0135c10b7c66a440390b \
+                    sha1    923dd78a17cbab576354b53a80443fe05f134398 \
+                    rmd160  3a62b04ea0f48c3ecbe815eb927d282f765e416c
</ins><span class="cx"> 
</span><del>-depends_lib                port:python26
-
</del><span class="cx"> # Create a startupitem
</span><del>-startupitem.create        yes
-startupitem.start        &quot;${prefix}/share/mailman/bin/mailman.init start&quot;
-startupitem.stop        &quot;${prefix}/share/mailman/bin/mailman.init stop&quot;
</del><ins>+startupitem.create  yes
+startupitem.start   &quot;${prefix}/share/mailman/bin/mailman.init start&quot;
+startupitem.stop    &quot;${prefix}/share/mailman/bin/mailman.init stop&quot;
</ins><span class="cx"> 
</span><span class="cx"> # Mailman installation directories
</span><del>-set execdir                ${prefix}/libexec/${name}
-set sharedir                ${prefix}/share/${name}
-set datadir                ${prefix}/var/${name}
-set docdir                ${prefix}/share/doc/${name}
-set confdir                ${prefix}/etc/httpd
</del><ins>+set execdir         ${prefix}/libexec/${name}
+set sharedir        ${prefix}/share/${name}
+set datadir         ${prefix}/var/${name}
+set docdir          ${prefix}/share/doc/${name}
+set confdir         ${prefix}/etc/httpd
</ins><span class="cx"> 
</span><span class="cx"> # Mailman user/group name
</span><del>-set mmuser                mailman
-set mmgroup                mailman
</del><ins>+set mmuser          mailman
+set mmgroup         mailman
</ins><span class="cx"> 
</span><span class="cx"> # CGI group name (should match apache Portfile)
</span><del>-set cgigroup                www
</del><ins>+set cgigroup        www
</ins><span class="cx"> 
</span><del>-patchfiles                patch-Defaults.py.in \
-                        patch-mm_cfg.py.dist.in
</del><ins>+patchfiles          patch-Defaults.py.in \
+                    patch-mm_cfg.py.dist.in
</ins><span class="cx"> 
</span><del>-configure.pre_args        --exec-prefix=${execdir} \
-                        --prefix=${sharedir} \
-                        --with-var-prefix=${datadir}
</del><ins>+configure.pre_args  --exec-prefix=${execdir} \
+                    --prefix=${sharedir} \
+                    --with-var-prefix=${datadir}
</ins><span class="cx"> 
</span><del>-configure.args                --with-username=${mmuser} \
-                        --with-groupname=${mmgroup} \
-                        --with-mail-gid=${mmgroup} \
-                        --with-cgi-gid=${cgigroup} \
-                        --with-cgi-ext=.cgi \
-                        --without-permcheck \
-                        --with-python=${prefix}/bin/python2.6
</del><ins>+configure.args      --with-cgi-ext=.cgi \
+                    --with-cgi-gid=${cgigroup} \
+                    --with-groupname=${mmgroup} \
+                    --with-mail-gid=${mmgroup} \
+                    --with-python=${prefix}/bin/python2.6 \
+                    --with-username=${mmuser} \
+                    --without-permcheck
</ins><span class="cx"> 
</span><span class="cx"> pre-destroot {
</span><del>-        addgroup        ${mmgroup}
-        adduser                ${mmuser} gid=[existsgroup ${mmgroup}]
-        xinstall -d -m 02775 -o root -g ${mmgroup} ${destroot}${execdir}
-        xinstall -d -m 02775 -o root -g ${mmgroup} ${destroot}${sharedir}
-        xinstall -d -m 02775 -o ${mmuser} -g ${mmgroup} ${destroot}${datadir}
</del><ins>+    addgroup ${mmgroup}
+    adduser ${mmuser} gid=[existsgroup ${mmgroup}]
+    xinstall -d -m 02775 -o root -g ${mmgroup} ${destroot}${execdir}
+    xinstall -d -m 02775 -o root -g ${mmgroup} ${destroot}${sharedir}
+    xinstall -d -m 02775 -o ${mmuser} -g ${mmgroup} ${destroot}${datadir}
</ins><span class="cx"> }
</span><span class="cx"> post-destroot {
</span><del>-        # Create dummy files to retain empty directory tree
-        xinstall -d -m 02775 ${destroot}${datadir}/lists/.turd
-        system &quot;find ${destroot}${datadir} -type d -empty | xargs -n1 -I% touch %/.turd&quot;
</del><ins>+    # Create dummy files to retain empty directory tree
+    xinstall -d -m 02775 ${destroot}${datadir}/lists/.turd
+    system &quot;find ${destroot}${datadir} -type d -empty | xargs -n1 -I% touch %/.turd&quot;
</ins><span class="cx"> 
</span><del>-        # Cleanup permissions &amp; ownership
-        foreach dir [exec find ${destroot}${sharedir} -type d ! -perm 02775] {
-                ui_info &quot;${dir}: setting permissions to 02775&quot;
-                file attributes $dir -permissions 02775
-        }
</del><ins>+    # Cleanup permissions &amp; ownership
+    foreach dir [exec find ${destroot}${sharedir} -type d ! -perm 02775] {
+        ui_info &quot;${dir}: setting permissions to 02775&quot;
+        file attributes $dir -permissions 02775
+    }
</ins><span class="cx"> 
</span><del>-        # Install startup script
-        xinstall -d -m 0755 ${destroot}${prefix}/etc/rc.d
-        system &quot;ln -s ../../../[strsed ${sharedir} &quot;g|^${prefix}/||&quot;]/scripts/mailman \
-                ${destroot}${prefix}/share/mailman/bin/mailman.init&quot;
</del><ins>+    # Install startup script
+    xinstall -d -m 0755 ${destroot}${prefix}/etc/rc.d
+    system &quot;ln -s ../../../[strsed ${sharedir} &quot;g|^${prefix}/||&quot;]/scripts/mailman \
+            ${destroot}${prefix}/share/mailman/bin/mailman.init&quot;
</ins><span class="cx"> 
</span><del>-        # Install Apache configuration file
-        xinstall -d -m 0755 ${destroot}${confdir}
-        xinstall -m 0644 ${filespath}/${name}.conf.in \
-                ${destroot}${confdir}/${name}.conf.dist
-        reinplace &quot;s|@EXECDIR@|${execdir}|&quot; ${destroot}${confdir}/${name}.conf.dist
-        reinplace &quot;s|@DATADIR@|${datadir}|&quot; ${destroot}${confdir}/${name}.conf.dist
-        reinplace &quot;s|@SHAREDIR@|${sharedir}|&quot; ${destroot}${confdir}/${name}.conf.dist
-        reinplace &quot;s|@CONFDIR@|${confdir}|&quot; \
-                ${destroot}${sharedir}/Mailman/mm_cfg.py.dist
</del><ins>+    # Install Apache configuration file
+    xinstall -d -m 0755 ${destroot}${confdir}
+    xinstall -m 0644 ${filespath}/${name}.conf.in \
+            ${destroot}${confdir}/${name}.conf.dist
+    reinplace &quot;s|@EXECDIR@|${execdir}|&quot; ${destroot}${confdir}/${name}.conf.dist
+    reinplace &quot;s|@DATADIR@|${datadir}|&quot; ${destroot}${confdir}/${name}.conf.dist
+    reinplace &quot;s|@SHAREDIR@|${sharedir}|&quot; ${destroot}${confdir}/${name}.conf.dist
+    reinplace &quot;s|@CONFDIR@|${confdir}|&quot; \
+            ${destroot}${sharedir}/Mailman/mm_cfg.py.dist
</ins><span class="cx"> 
</span><del>-        # Install documentation files
-        xinstall -d -m 0755 ${destroot}${docdir}
-        foreach file [glob ${worksrcpath}/\[A-IN-Z\]*] {
-                xinstall -m 0644 ${file} ${destroot}${docdir}
-        }
</del><ins>+    # Install documentation files
+    xinstall -d -m 0755 ${destroot}${docdir}
+    foreach file [glob ${worksrcpath}/\[A-IN-Z\]*] {
+        xinstall -m 0644 ${file} ${destroot}${docdir}
+    }
</ins><span class="cx"> 
</span><del>-        # Check installation under destroot
-        system &quot;cd ${destroot}${sharedir} &amp;&amp; \
-                DESTDIR=${destroot} PYTHONPATH=.:./pythonlib ./bin/check_perms&quot;
</del><ins>+    # Check installation under destroot
+    system &quot;cd ${destroot}${sharedir} &amp;&amp; \
+            DESTDIR=${destroot} PYTHONPATH=.:./pythonlib ./bin/check_perms&quot;
</ins><span class="cx"> 
</span><del>-        # Don't register config files to the port so changes are preserved
-        # across upgrades.
-        file delete -force ${destroot}${sharedir}/Mailman/mm_cfg.py
</del><ins>+    # Don't register config files to the port so changes are preserved
+    # across upgrades.
+    file delete -force ${destroot}${sharedir}/Mailman/mm_cfg.py
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> post-activate {
</span><del>-        # Check for an existing mm_cfg.py and copy the &quot;dist&quot; version
-        # into place if there isn't one.
-        if {![file exists ${sharedir}/Mailman/mm_cfg.py]} {
-                copy ${sharedir}/Mailman/mm_cfg.py.dist \
-                        ${sharedir}/Mailman/mm_cfg.py
-        }
-        if {![file exists ${confdir}/${name}.conf]} {
-                copy ${confdir}/${name}.conf.dist \
-                        ${confdir}/${name}.conf
-        }
</del><ins>+    # Check for an existing mm_cfg.py and copy the &quot;dist&quot; version
+    # into place if there isn't one.
+    if {![file exists ${sharedir}/Mailman/mm_cfg.py]} {
+        copy ${sharedir}/Mailman/mm_cfg.py.dist ${sharedir}/Mailman/mm_cfg.py
+    }
+    if {![file exists ${confdir}/${name}.conf]} {
+        copy ${confdir}/${name}.conf.dist ${confdir}/${name}.conf
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> # Notify the user what needs to be done after installation
</span></span></pre>
</div>
</div>

</body>
</html>