<!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" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { 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 #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#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>
<title>[30590] trunk/dports/mail/vm-pop3d/Portfile</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.macosforge.org/projects/macports/changeset/30590">30590</a></dd>
<dt>Author</dt> <dd>markd@macports.org</dd>
<dt>Date</dt> <dd>2007-10-31 19:04:01 -0700 (Wed, 31 Oct 2007)</dd>
</dl>

<h3>Log Message</h3>
<pre>Revert to script startupitem; startupitem.executable starts multiple processes and
startupitem.executable can't handle that.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsmailvmpop3dPortfile">trunk/dports/mail/vm-pop3d/Portfile</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsmailvmpop3dPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/mail/vm-pop3d/Portfile (30589 => 30590)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/mail/vm-pop3d/Portfile        2007-10-31 21:52:15 UTC (rev 30589)
+++ trunk/dports/mail/vm-pop3d/Portfile        2007-11-01 02:04:01 UTC (rev 30590)
</span><span class="lines">@@ -4,9 +4,9 @@
</span><span class="cx"> 
</span><span class="cx"> name                                vm-pop3d  
</span><span class="cx"> version                                1.1.6
</span><del>-revision                        3
</del><ins>+revision                        2
</ins><span class="cx"> categories                        mail
</span><del>-maintainers                        markd
</del><ins>+maintainers                        markd@macports.org
</ins><span class="cx"> platforms                        darwin
</span><span class="cx"> 
</span><span class="cx"> description                        POP3 server for Postfix that supports virtual domains and mailboxes
</span><span class="lines">@@ -16,20 +16,26 @@
</span><span class="cx">                                 Unix accounts.
</span><span class="cx"> 
</span><span class="cx"> homepage                        http://www.reedmedia.net/software/virtualmail-pop3d/
</span><ins>+                                        
</ins><span class="cx"> master_sites                        http://www.ibiblio.org/pub/Linux/system/mail/pop/ \
</span><span class="cx">                                 ftp://sunsite.unc.edu/pub/Linux/system/mail/pop/
</span><del>-#patchfiles                        patch-vm-pop3d.init
</del><ins>+
</ins><span class="cx"> checksums                        md5 0399cc06f5329a6eaebec05d959a6ec1
</span><ins>+
+patchfiles                      patch-vm-pop3d.init
+
</ins><span class="cx"> destroot.destdir                prefix=${destroot}${prefix}
</span><span class="cx"> 
</span><span class="cx"> depends_lib                        port:postfix
</span><span class="cx"> 
</span><span class="cx"> configure.args                        --enable-virtual
</span><span class="cx"> 
</span><ins>+
</ins><span class="cx"> variant server {
</span><del>-    startupitem.create      yes
-    startupitem.name        ${name}
-    startupitem.executable  ${prefix}/sbin/vm-pop3d --user postfix --group postfix -d 10 -t 600
</del><ins>+
+    startupitem.create    yes
+    startupitem.start &quot;${prefix}/share/${name}/vm-pop3d.init start&quot;
+    startupitem.stop &quot;${prefix}/share/${name}/vm-pop3d.init stop&quot;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> pre-configure {
</span><span class="lines">@@ -53,15 +59,14 @@
</span><span class="cx">         system &quot;chown postfix:postfix ${destroot}${prefix}/var/${name}/spool&quot;
</span><span class="cx"> 
</span><span class="cx"> # Create lock file path
</span><del>-#        xinstall -m 755 -d ${destroot}${prefix}/var/${name}/lock
</del><ins>+        xinstall -m 755 -d ${destroot}${prefix}/var/${name}/lock
</ins><span class="cx"> 
</span><span class="cx"> # Keep the empty virtual spool and passwd file paths
</span><span class="cx"> destroot.keepdirs \
</span><span class="cx">         ${destroot}${prefix}/var/${name}/spool \
</span><ins>+        ${destroot}${prefix}/var/${name}/lock \
</ins><span class="cx">         ${destroot}${prefix}/etc/${name}
</span><del>-#        ${destroot}${prefix}/var/${name}/lock
</del><span class="cx"> 
</span><del>-
</del><span class="cx"> # Install documentation type stuff
</span><span class="cx">         xinstall -d ${destroot}${prefix}/share/doc/${name}
</span><span class="cx">         xinstall -m 644 ${worksrcpath}/AUTHORS ${destroot}${prefix}/share/doc/${name}
</span><span class="lines">@@ -73,16 +78,21 @@
</span><span class="cx">         xinstall -m 644 ${worksrcpath}/TODO ${destroot}${prefix}/share/doc/${name}
</span><span class="cx"> 
</span><span class="cx"> # Fix and copy the init script
</span><del>-#        reinplace &quot;s|daemon vm-pop3d|${prefix}/sbin/vm-pop3d --user postfix --group postfix|g&quot; \
-#               &quot;${worksrcpath}/vm-pop3d.init&quot;
-#        reinplace &quot;s|/usr/local/sbin|${prefix}/sbin|g&quot; \
-#                &quot;${worksrcpath}/vm-pop3d.init&quot;
-#        reinplace &quot;s|/var/lock/subsys|${prefix}/var/${name}/lock|g&quot; \
-#                &quot;${worksrcpath}/vm-pop3d.init&quot;
-#        reinplace &quot;s|/etc/rc.d/init.d/functions|/etc/rc.common|g&quot; \
-#                &quot;${worksrcpath}/vm-pop3d.init&quot;
-#        xinstall -d -m 755  ${destroot}${prefix}/share/${name}
-#        xinstall -m 755 ${worksrcpath}/vm-pop3d.init ${destroot}${prefix}/share/${name}
</del><ins>+        reinplace &quot;s|daemon vm-pop3d|${prefix}/sbin/vm-pop3d --user postfix --group postfix|g&quot; \
+                &quot;${worksrcpath}/vm-pop3d.init&quot;
+
+        reinplace &quot;s|/usr/local/sbin|${prefix}/sbin|g&quot; \
+                &quot;${worksrcpath}/vm-pop3d.init&quot;
+
+        reinplace &quot;s|/var/lock/subsys|${prefix}/var/${name}/lock|g&quot; \
+                &quot;${worksrcpath}/vm-pop3d.init&quot;
+
+        reinplace &quot;s|/etc/rc.d/init.d/functions|/etc/rc.common|g&quot; \
+                &quot;${worksrcpath}/vm-pop3d.init&quot;
+
+        xinstall -d -m 755  ${destroot}${prefix}/share/${name}
+        
+        xinstall -m 755 ${worksrcpath}/vm-pop3d.init ${destroot}${prefix}/share/${name}
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> post-activate {
</span><span class="lines">@@ -169,8 +179,8 @@
</span><span class="cx">    OS X 10.3 and previous - A startup item was created in /Library/StartupItems
</span><span class="cx">         Add \&quot;VMPOP-3D=-YES-\&quot; to the /etc/hostconfig file to run vm-pop3d at system boot
</span><span class="cx"> 
</span><del>-   If you didn't install vm-pop3d using the +server variant, and you wish to start vm-pop3d manually:
-        sudo ${prefix}/share/sbin/vm-pop3d --user postfix --group postfix -d 10 -t 600
</del><ins>+   Start vm-pop3d manually:
+        sudo ${prefix}/share/vm-pop3d/vm-pop3d.init start (stop|status)
</ins><span class="cx"> 
</span><span class="cx">         telnet localhost 110  (response -&gt;)  +OK POP3 Welcome to vm-pop3d 1.x.x
</span><span class="cx">         USER &lt;user@domain&gt;
</span></span></pre>
</div>
</div>

</body>
</html>