<!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>[24716] trunk/dports/java</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.macosforge.org/projects/macports/changeset/24716">24716</a></dd>
<dt>Author</dt> <dd>jann@macports.org</dd>
<dt>Date</dt> <dd>2007-05-01 01:05:03 -0700 (Tue, 01 May 2007)</dd>
</dl>

<h3>Log Message</h3>
<pre>New port</pre>

<h3>Added Paths</h3>
<ul>
<li>trunk/dports/java/pulse/</li>
<li><a href="#trunkdportsjavapulsePortfile">trunk/dports/java/pulse/Portfile</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsjavapulsePortfile"></a>
<div class="addfile"><h4>Added: trunk/dports/java/pulse/Portfile (0 => 24716)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/java/pulse/Portfile                                (rev 0)
+++ trunk/dports/java/pulse/Portfile        2007-05-01 08:05:03 UTC (rev 24716)
</span><span class="lines">@@ -0,0 +1,80 @@
</span><ins>+# $Id$
+
+PortSystem 1.0
+
+name                    pulse
+version                 1.2.18
+categories              java
+maintainers             simon@redhillconsulting.com.au
+description             Pulse automated build server
+long_description    Pulse is an automated build or continuous integration server. \
+            Pulse regularly checks out your project's source code from your \
+            SCM, builds the project and reports on the results. A project \
+            build typically involves compiling the source code and running \
+            tests to ensure the quality of the code. By automating this \
+            process, pulse allows you to constantly monitor the health of \
+            your project.
+homepage        http://www.zutubi.com/products/pulse/
+master_sites    http://www.zutubi.com/download/
+checksums       md5 6da10683325bf7239827e2ff842600d1
+depends_lib     bin:java:kaffe
+
+set osuser      pulse
+set osgroup     pulse
+set home        ${prefix}/share/java/pulse
+set bin         ${home}/bin
+set executable  ${bin}/pulse
+set dbdir       ${prefix}/var/db/pulse
+use_configure   no
+
+startupitem.create  yes
+startupitem.init    &quot;PULSE_HOME=${home}\nPATH=/opt/local/bin:/opt/local/sbin:/opt/local/lib/postgresql82/bin:$PATH&quot;
+startupitem.start   &quot;su ${osuser} -c \&quot;${executable} start\&quot;&quot;
+startupitem.stop    &quot;su ${osuser} -c \&quot;${executable} shutdown\&quot;&quot;
+
+build {}
+
+destroot {
+    # Create the Pulse user
+    addgroup ${osgroup}
+    set gid [existsgroup ${osgroup}]
+    adduser ${osuser} shell=/bin/sh gid=${gid} home=${dbdir} realname=Pulse\ Server
+
+    # Ensure we have the needed directories
+    xinstall -m 755 -d ${destroot}${home}
+
+    # Copy the files
+    system &quot;cp -R ${worksrcpath}/ ${destroot}${home}&quot;
+
+    # Keep empty directories
+    destroot.keepdirs-append ${destroot}${home}/logs ${destroot}${home}/versions
+
+    # Fix ownership of some directories pulse really needs to write to
+    system &quot;chown -R ${osuser}:${osgroup} ${destroot}${home}/logs&quot;
+    system &quot;chown -R ${osuser}:${osgroup} ${destroot}${home}/versions&quot;
+
+    # Add a symlink from bin directory to the pulse script
+    system &quot;ln -fs ${executable} ${destroot}${prefix}/bin/pulse&quot;
+}
+
+post-install {
+    ui_msg &quot;#&quot;
+    ui_msg &quot;# The script ${executable} has been installed to facilitate starting and&quot;
+    ui_msg &quot;# stopping ${name} as a true daemon process. It must be run as ${osuser}.&quot;
+    ui_msg &quot;# For example:&quot;
+    ui_msg &quot;#&quot;
+    ui_msg &quot;#   sudo su pulse -c &quot;${executable} start&quot;
+    ui_msg &quot;#&quot;
+    ui_msg &quot;# This script assumes it is run from ${home}. To run from outside this&quot;
+    ui_msg &quot;# directory, you must set the value of PULSE_HOME to the absolute path&quot;
+    ui_msg &quot;# of this directory. For example:&quot;
+    ui_msg &quot;#&quot;
+  ui_msg &quot;#   PULSE_HOME=${home} sudo su pulse -c &quot;${executable} start&quot;
+    ui_msg &quot;#&quot;
+    ui_msg &quot;# You will also need To create the directory ${dbdir} if it does not&quot;
+    ui_msg &quot;# already exist:&quot;
+    ui_msg &quot;#&quot;
+    ui_msg &quot;#   sudo mkdir -p ${dbdir}&quot;
+    ui_msg &quot;#   sudo chown ${osuser}:${osgroup} ${dbdir}&quot;
+    ui_msg &quot;#&quot;
+}
</ins><span class="cx">Property changes on: trunk/dports/java/pulse/Portfile
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:keywords
</span><span class="cx">   + Id
</span><span class="cx">Name: svn:eol-style
</span><span class="cx">   + native
</span></span></pre>
</div>
</div>

</body>
</html>