--- /dev/null
+[submodule "web/samba-web"]
+ path = web/samba-web
+ url = https://git.samba.org/samba-web.git
f = os.fdopen(fd, 'w')
f.write("""one
two
-three\r
+three
for
""")
self.assertEquals(4, len(l))
self.assertEquals("three", l[2])
+class SambaWebFileLoadTest(testtools.TestCase):
+
+ def test_simple(self):
+ fd, name = tempfile.mkstemp()
+ self.addCleanup(os.remove, name)
+ f = os.fdopen(fd, 'w')
+ f.write('href="/samba/index.html"')
+ f.close()
+ l = util.SambaWebFileLoad(os.getcwd(),name)
+ self.assertEquals('href="http://www.samba.org/samba/index.html"', l)
+ fd1, name1 = tempfile.mkstemp()
+ self.addCleanup(os.remove, name1)
+ f1 = os.fdopen(fd1, 'w')
+ f1.write('<!--#include virtual="/samba/name2" -->')
+ f1.close()
+ l1 = util.SambaWebFileLoad(os.path.dirname(os.path.realpath("name1")),name1)
+ self.assertEquals('', l1)
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+import re
+import os
+
def load_list(fname):
"""load a list from a file, using : to separate"""
ret = []
finally:
f.close()
+def SambaWebFileLoad(webdir, filename):
+ """loads file and changes the links to suit buildfarm"""
+ try:
+ f = open(os.path.join(webdir, filename), 'r')
+ text = f.read()
+ except IOError:
+ return ''
+ else:
+ f.close()
+ def add_virtual_headers(m):
+ try:
+ f = open(os.path.join(webdir, m.group(1)), 'r')
+ text = f.read()
+ except:
+ return ''
+ else:
+ f.close()
+ return text
+ text = re.sub('<!--#include virtual="/samba/(.*)" -->',add_virtual_headers , text)
+ text = re.sub('href="/samba', 'href="http://www.samba.org/samba', text)
+ return text
def dhm_time(sec):
"""display a time as days, hours, minutes"""
import wsgiref.util
webdir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "web"))
-GITWEB_BASE = "https://gitweb.samba.org"
+GITWEB_BASE = "//gitweb.samba.org"
HISTORY_HORIZON = 1000
# this is automatically filled in
yield "<h2>Older builds:</h2>\n"
- yield "<table class='real'>\n"
+ yield "<table class='newtable'>\n"
yield "<thead><tr><th>Revision</th><th>Status</th><th>Age</th></tr></thead>\n"
yield "<tbody>\n"
if os.path.exists(host_web_file):
yield util.FileLoad(host_web_file)
- yield "<table class='real'>\n"
+ yield "<table class='newtable'>\n"
yield "<tr><td>Host:</td><td><a href='%s?function=View+Host;host=%s;tree=%s;"\
"compiler=%s#'>%s</a> - %s</td></tr>\n" %\
(myself, build.host, build.tree, build.compiler, build.host, self.buildfarm.hostdb[build.host].platform.encode("utf-8"))
yield "<h2>Build log:</h2>\n"
yield print_log_pretty(log)
- yield "<p><small>Some of the above icons derived from the <a href='https://www.gnome.org'>Gnome Project</a>'s stock icons.</small></p>"
+ yield "<p><small>Some of the above icons derived from the <a href='//www.gnome.org'>Gnome Project</a>'s stock icons.</small></p>"
yield "</div>"
else:
yield "<p>Switch to the <a href='%s?function=View+Build;host=%s;tree=%s;"\
yield "<div id='recent-builds' class='build-section'>"
yield "<h2>Recent builds of %s (%s branch %s)</h2>" % (tree, t.scm, t.branch)
- yield "<table class='real'>"
+ yield "<table class='newtable'>"
yield "<thead>"
yield "<tr>"
yield "<th><a href='%s;sortby=age' title='Sort by build age'>Age</a></th>" % sorturl
class ViewHostPage(BuildFarmPage):
def _render_build_list_header(self, host):
- yield "<div class='host summary'>"
+ yield "<div>"
yield "<a id='host' name='host'/>"
- yield "<h3>%s - %s</h3>" % (host.name, host.platform.encode("utf-8"))
- yield "<table class='real'>"
+ yield "<h2>%s - %s</h2>" % (host.name, host.platform.encode("utf-8"))
+ yield "<table class='newtable'>"
yield "<thead><tr><th>Target</th><th>Build<br/>Revision</th><th>Build<br />Age</th><th>Status<br />config/build<br />install/test</th><th>Warnings</th></tr></thead>"
yield "<tbody>"
yield "<div class='build-section' id='dead-hosts'>"
yield "<h2>Dead Hosts:</h2>"
- yield "<table class='real'>"
+ yield "<table class='newtable'>"
yield "<thead><tr><th>Host</th><th>OS</th><th>Min Age</th></tr></thead>"
yield "<tbody>"
yield "<div id='build-counts' class='build-section'>"
yield "<h2>Build counts:</h2>"
- yield "<table class='real'>"
- yield "<thead><tr><th>Tree</th><th>Total</th><th>Broken</th><th>Panic</th><th>Test coverage</th></tr></thead>"
+ yield "<table class='newtable'>"
+ yield "<thead><tr><th>Tree</th><th>Total</th><th>Broken</th><th>Panic</th><th>Test coverage</th><th></th></tr></thead>"
yield "<tbody>"
for tree in sorted(self.buildfarm.trees.keys()):
<div class=\"diff\">
<span class=\"html\"><a href=\"%s?function=diff;tree=%s;date=%s;%s\">show diffs</a></span>
<br />
- <span class=\"text\"><a href=\"%s?function=text_diff;tree=%s;date=%s;%s\">download diffs</a></span>
- <br />
+ <span class=\"text\"><a href=\"%s?function=text_diff;tree=%s;date=%s;%s\">download diffs</a></span><br />
+ <span class=\"label\">Message:</span><br />
<div class=\"history_log_message\">
<pre>%s</pre>
</div>
if builds:
yield "<div class=\"builds\">\n"
yield "<span class=\"label\">Builds: </span>\n"
+ yield "<table class=\"buildtable\">"
+ count=1
for build in builds:
+ if count == 1:
+ yield "<tr>"
+ yield "<td>"
yield "%s(%s) " % (build_link(myself, build), host_link(myself, build.host))
+ yield "</td>"
+ if count == 3:
+ yield "</tr>"
+ count = 1
+ else:
+ count = count + 1
+ if count == 2:
+ yield "<td></td>"
+ yield "<td></td>"
+ yield "</tr>"
+ count = 1
+ yield "</table>"
yield "</div>\n"
yield "</div>\n"
changes = branch.changes_summary(revision)
yield "".join(self.history_row_html(myself, entry, t, changes))
diff = highlight(diff, DiffLexer(), HtmlFormatter())
- yield "<pre>%s</pre>\n" % diff.encode("utf-8")
+ yield "<h2>Diff Result:</h2>"
+ yield "<pre>%s</pre>" % diff.encode("utf-8")
class RecentCheckinsPage(HistoryPage):
authors = {"ALL": "ALL"}
branch = t.get_branch()
re_author = re.compile("^(.*) <(.*)>$")
-
+
for entry in branch.log(limit=HISTORY_HORIZON):
m = re_author.match(entry.author)
authors[m.group(2)] = m.group(1)
yield "<h2>Recent checkins for %s (%s branch %s)</h2>\n" % (
tree, t.scm, t.branch)
yield "<form method='GET'>"
+ yield "<div class='newform'>\n"
yield "Select Author: "
yield "".join(select(name="author", values=authors, default=author))
yield "<input type='submit' name='sub_function' value='Refresh'/>"
yield "<input type='hidden' name='tree' value='%s'/>" % tree
yield "<input type='hidden' name='function', value='Recent Checkins'/>"
+ yield "</div>\n"
yield "</form>"
gitstop = gitstart + self.limit
yield "<input type='hidden' name='tree' value='%s'/>" % tree
yield "</div>\n"
yield "</form>"
- yield "<br>"
class BuildFarmApp(object):
def __init__(self, buildfarm):
self.buildfarm = buildfarm
- def main_menu(self, tree, host, compiler):
+ def main_menu(self, tree, host, compiler, function):
"""main page"""
yield "<form method='GET'>\n"
- yield "<div id='build-menu'>\n"
+ yield "<div id='newbuildmenu'>\n"
host_dict = {}
for h in self.buildfarm.hostdb.hosts():
- host_dict[h.name] = "%s -- %s" % (h.platform.encode("utf-8"), h.name)
+ host_dict[h.name] = "%s-%s" % (h.platform.encode("utf-8"), h.name)
yield "".join(select("host", host_dict, default=host))
+ yield "<br/><br/>"
+
tree_dict = {}
for t in self.buildfarm.trees.values():
tree_dict[t.name] = "%s:%s" % (t.name, t.branch)
yield "".join(select("tree", tree_dict, default=tree))
+ yield "<br/><br/>"
yield "".join(select("compiler", dict(zip(self.buildfarm.compilers, self.buildfarm.compilers)), default=compiler))
- yield "<br/>\n"
- yield "<input type='submit' name='function' value='View Build'/>\n"
- yield "<input type='submit' name='function' value='View Host'/>\n"
- yield "<input type='submit' name='function' value='Recent Checkins'/>\n"
- yield "<input type='submit' name='function' value='Summary'/>\n"
- yield "<input type='submit' name='function' value='Recent Builds'/>\n"
- yield "</div>\n"
- yield "</form>\n"
+ yield "<br/><br/>"
+ functions_dict = {
+ 'View Build': 'View Build', 'Summary': 'Summary', 'View Host': 'View Host',
+ 'Recent Builds': 'Recent Builds', 'Recent Checkins': 'Recent Checkins',
+ }
+ yield "".join(select("function", functions_dict, default=function))
+ yield "<br/><br/>"
+ yield "<br/><input type='submit' name='search' value='Go'/>"
+ yield "</div>"
+ yield "</form>"
def html_page(self, form, lines):
yield "<html>\n"
yield " <meta name='description' contents='Home of the Samba Build Farm, the automated testing facility.'/>\n"
yield " <meta name='robots' contents='noindex'/>"
yield " <link rel='stylesheet' href='/build_farm.css' type='text/css' media='all'/>"
- yield " <link rel='stylesheet' href='//www.samba.org/samba/style/common.css' type='text/css' media='all'/>"
yield " <link rel='shortcut icon' href='//www.samba.org/samba/images/favicon.ico'/>"
+ yield " <link rel='shortcut icon' href='//www.samba.org/samba/style/2010/grey/favicon.ico'/>"
+ yield " <link rel='stylesheet' type='text/css' media='screen,projection' href='//www.samba.org/samba/style/2010/grey/screen.css'/>"
+ yield " <link rel='stylesheet' type='text/css' media='print' href='//www.samba.org/samba/style/2010/grey/print.css'/> "
yield " </head>"
yield "<body>"
- yield util.FileLoad(os.path.join(webdir, "header2.html"))
-
tree = get_param(form, "tree")
host = get_param(form, "host")
compiler = get_param(form, "compiler")
- yield "".join(self.main_menu(tree, host, compiler))
- yield util.FileLoad(os.path.join(webdir, "header3.html"))
+ function = get_param(form, "function")
+ yield "".join(self.main_menu(tree, host, compiler, function))
+ yield util.FileLoad(os.path.join(webdir, "bannernav1.html"))
+ yield util.SambaWebFileLoad(os.path.join(webdir, "samba-web"), "menu_think_samba_closed.html")
+ yield util.SambaWebFileLoad(os.path.join(webdir, "samba-web"), "menu_get_samba_closed.html")
+ yield util.SambaWebFileLoad(os.path.join(webdir, "samba-web"), "menu_learn_samba_closed.html")
+ yield util.SambaWebFileLoad(os.path.join(webdir, "samba-web"), "menu_talk_samba_closed.html")
+ yield util.SambaWebFileLoad(os.path.join(webdir, "samba-web"), "menu_hack_samba_closed.html")
+ yield util.SambaWebFileLoad(os.path.join(webdir, "samba-web"), "menu_contact_samba_closed.html")
+ yield util.FileLoad(os.path.join(webdir, "bannernav2.html"))
yield "".join(lines)
- yield util.FileLoad(os.path.join(webdir, "footer.html"))
- yield "</body>"
- yield "</html>"
+ yield util.SambaWebFileLoad(os.path.join(webdir, "samba-web"), "footer.html")
+ yield util.FileLoad(os.path.join(webdir, "closingtags.html"))
def __call__(self, environ, start_response):
form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ)
('Content-type', 'text/html; charset=utf-8')])
page = ViewHostPage(self.buildfarm)
yield "".join(self.html_page(form, page.render_html(myself, wsgiref.util.shift_path_info(environ))))
+ elif fn == "about":
+ start_response('200 OK', [
+ ('Content-type', 'text/html; charset=utf-8')])
+ lines = util.FileLoad(os.path.join(webdir, "about.html"))
+ yield "".join(self.html_page(form, lines))
+ elif fn == "instructions":
+ start_response('200 OK', [
+ ('Content-type', 'text/html; charset=utf-8')])
+ lines = util.FileLoad(os.path.join(webdir, "instructions.html"))
+ yield "".join(self.html_page(form, lines))
elif fn == "build":
build_checksum = wsgiref.util.shift_path_info(environ)
try:
-<!--#include virtual="/header.html"-->
-<title>samba.org build farm - About</title>
-<!--#include virtual="/header2.html"-->
-<!--#include virtual="/header3.html"-->
<h2>About the build farm</h2>
then please read these <a href="instructions.html">instructions</a>.
</p>
-<!--#include virtual="/footer.html"-->
--- /dev/null
+ <div id="newpagestart">
+ <!-- header -->
+ <div id="hd">
+ <div class="noPrint" id="hdScreen">
+
+ <div class="clearing"></div>
+ <div id="newbannerstart"></div>
+ <div class="clearing"></div>
+ </div>
+
+ <div class="noScreen" id="hdPrint">
+ <img src="https://www.samba.org//samba/style/2010/grey/headerPrint.jpg" alt="Samba" id="hdPrintImage">
+ </div>
+ <div class="clearing"></div>
+ </div>
+ <!-- main content -->
+ <div id="bd">
+ <div id="bdCols">
+
+
+
+
+<!-- left column: navigation -->
+<div class="noPrint" id="nav">
+ <ul>
+ <li><a href="https://build.samba.org/">Build Samba</a></li>
+ <ul>
+ <li><a href="https://build.samba.org/build.cgi/about">About the Build Farm</a></li>
+ <li><a href="https://build.samba.org/build.cgi/instructions">Adding a new machine</a></li>
+ <li><a href="https://www.samba.org/">Samba Web pages</a></li>
+ </ul>
+ <br>
--- /dev/null
+ </ul>
+</div>
+
+<div class="relatedLeft">
+ <div class="relatedLeftContent">
+
+ <h4>Search:</h4>
+ <br><br><br><br><br><br><br><br><br><br>
+
+ </div>
+ <div class="relatedLeftBottom"></div>
+ </div>
+
+
+<!--center-->
+
+<div class="newcontent">
* no need to remargin
* margin: 5px;*/
padding: 10px;
- border: 2px solid black;
+ border: 1px solid black;
}
+/*
#log div.unit.passed { background-color: rgb(180, 255, 180); }
#log div.unit.failed { background-color: rgb(255, 180, 180); }
#log div.unit.skipped { background-color: rgb(180, 180, 255); }
#log div.unit.error { background-color: rgb(255, 180, 180); }
#log div.unit.mistake { background-color: rgb(180, 180, 255); }
#log div.unit.pretest.ok { background-color: rgb(180, 255, 180); }
-
-#log .unit.failed .output { display: block;}
-#log .unit.skipped .output { display: block;}
-#log .unit.skipped .output { display: block;}
+*/
+#log .unit.failed .output { display: none;}
+#log .unit.skipped .output { display: none;}
+#log .unit.skipped .output { display: none;}
#log .unit.passed .output { display: none;}
#log .unit.error .output { display: none;}
#log .unit.mistake .output { display: none;}
#log .unit.errorlog .output { display: none;}
#log .unit.pretest .output { display: none;}
#log div.status.errorlog { display: none;}
-img + div.action.title {margin-left: 0.5em;}
-a + div.action.status {margin-left: 0.5em;}
+img + div.testlinks.title,
+img + div.cc_checker.title,
+img + div.pretest.title,
+img + div.test.title,
+img + div.action.title {
+ margin-left: 0.5em;
+}
+a + div.testlinks.status,
+a + div.cc_checker.status,
+a + div.pretest.status,
+a + div.test.status,
+a + div.action.status {
+ margin-left: 0.5em;
+}
+
#log div.output-stderr-0 {
display: none;
}
/* generically, status correspond to the ok/ok/ok/ok strings */
-.status.passed {
+.status.passed {
color: rgb(0, 128, 0);
}
-.status.failed {
+.status.failed {
color: rgb(255, 0, 0);
}
-.status.panic {
+.status.panic {
color: rgb(255, 0, 0);
font-weight: bold;
}
-.status.checker {
+.status.checker {
color: rgb(255, 127, 0);
}
-.status.unknown {
+.status.unknown {
color: rgb(0, 0, 255);
}
-.summary td.status {
+.summary td.status {
text-align: center;
}
-.summary .tree {
+.summary .tree {
font-weight: bold;
}
-.summary .age {
+.summary .age {
text-align: right;
}
-.age .old {
+.age .old {
color: rgb(210, 0, 0);
}
.preformated {
div.host.summary {
float: left;
}
-div.host.summary h3 {
+div.host.summary h3 {
margin-bottom: 2px;
}
-div.summary {
+div.summary {
margin: 4px;
}
-div.build-section {
+div.build-section {
clear: both;
width: 100%;
}
-#logo>.build_logo {
+#logo>.build_logo {
background-image:url(build_logo.png);
background-position:center;
background-repeat:no-repeat;
height:208px;
margin-top:-42px;
margin-left:1px;
- z-index:1;
+ z-index:1;
}
#banner {
border-bottom:2px solid #575756;
}
-#build-menu {
+#build-menu {
position: absolute;
top: 0;
left: 250px;
margin-top: 5px;
z-index: 10;
}
-#build-menu input {
+#build-menu input {
margin: 20px 10px 0px 0px;
}
left:175px;
margin:0;
}
-.center {
+.center {
margin:100px 10px 0 175px;
padding-top:30px;
padding-left:35px;
color: green;
}
-.history_row {
- background-color: #E5E9F5;
- margin-bottom: 10px;
+.history_row {
+ margin-bottom: 30px;
padding: 2px;
+ line-height: 160%;
}
.history_row .label {
- font-style: italic;
+ font-weight: bold;
+ color: #c90000;
+}
+
+.history_row .date{
+ color: #c90000;
}
.history_row .date,
.reason {
font-weight: bold;
}
+
+
+
+/*css for new samba look*/
+table.newtable{
+ margin-left: auto;
+ margin-right: auto;
+}
+
+table.newtable,
+table.newtable th,
+table.newtable td {
+ border: 1px solid black;
+ padding: 5px;
+ text-align: center;
+ vertical-align: center;
+}
+
+table.newtable th{
+ color: #c90000;
+ font-weight: bold;
+}
+
+table.buildtable{
+ margin-left: auto;
+ margin-right: auto;
+}
+
+table.buildtable td{
+ border: 0px;
+ padding: 10px;
+ text-align: left;
+ vertical-align: center;
+}
+
+/*center box includes sitemap*/
+.newcontent{
+ position: absolute;
+ top: 166px;
+ left: 166px;
+ right: 266px;
+ float: left;
+ text-align: justify;
+}
+
+.newcontent pre{
+ overflow-x: auto;
+ overflow-y: hidden;
+ font-size: 15px;
+ font-weight: normal;
+ font-family:"Times New Roman", Times, serif;
+ line-height: 22px;
+}
+
+pre::-webkit-scrollbar-track
+{
+ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
+ border-radius: 10px;
+ background-color: #F5F5F5;
+}
+
+pre::-webkit-scrollbar
+{
+ width: 12px;
+ background-color: #F5F5F5;
+}
+
+pre::-webkit-scrollbar-thumb
+{
+ border-radius: 10px;
+ -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
+ background-color: #D62929;
+}
+
+/*sitemap*/
+#bd #newsitemap {
+ float: left;
+ width: 100%;
+ margin: 21px 0 25px;
+}
+
+/*removes width applicable for entire page*/
+#page,
+#newpagestart {
+ background-image: url(https://www.samba.org/samba/style/2010/grey/bg.jpg);
+ background-position: 0 0;
+ background-repeat: no-repeat;
+}
+
+
+#newpagestart h1 {
+ color: #c90000;
+ font-size: 46px;
+ font-weight: normal;
+ font-family: Georgia, serif;
+ line-height: 58px;
+ margin: 0;
+ padding: 0;
+}
+
+#newpagestart h2 {
+ color: #c90000;
+ font-size: 24px;
+ font-weight: normal;
+ line-height: 32px;
+ margin: 0 0 16px;
+}
+
+
+#newpagestart h3 {
+ color: #c90000;
+ font-size: 24px;
+ font-weight: normal;
+ line-height: 28px;
+ margin: 0;
+}
+
+/*new banner*/
+#hd #newbannerstart {
+ background-image: url("https://www.samba.org/samba/style/2010/grey/bgHeader.png");
+ background-size: 100% 139px;
+ background-position: 0px 0px;
+ float: right;
+ height: 139px;
+ width: 100%;
+ background-repeat: no-repeat;
+}
+
+/*form*/
+#newbuildmenu{
+ position: absolute;
+ left: 15px;
+ top: 590px;
+ z-index: 10;
+ font-size: 13px;
+ line-height: 70%;
+}
+
+#newbuildmenu select{
+ width: 110px;
+
+ margin: 0;
+ -webkit-border-radius:4px;
+ -moz-border-radius:4px;
+ border-radius:4px;
+ -webkit-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
+ -moz-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
+ box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
+ background: #d9d9d9;
+ color:#333333;
+ border:none;
+ outline:none;
+ display: inline-block;
+ -webkit-appearance:none;
+ -moz-appearance:none;
+ appearance:none;
+ cursor:pointer;
+}
+
+.newform button,
+.newform input,
+#newbuildmenu input{
+ border: 1px solid #df0909; -webkit-border-radius: 3px; -moz-border-radius: 3px;border-radius: 3px;font-size:12px;font-family:arial, helvetica, sans-serif; padding: 0px 2px 0px 2px; text-decoration:none; display:inline-block;text-shadow: -1px -1px 0 rgba(0,0,0,0.3);font-weight:bold; color: #FFFFFF;
+ background-color: #f62b2b; background-image: -webkit-gradient(linear, left top, left bottom, from(#f62b2b), to(#d20202));
+ background-image: -webkit-linear-gradient(top, #f62b2b, #d20202);
+ background-image: -moz-linear-gradient(top, #f62b2b, #d20202);
+ background-image: -ms-linear-gradient(top, #f62b2b, #d20202);
+ background-image: -o-linear-gradient(top, #f62b2b, #d20202);
+ background-image: linear-gradient(to bottom, #f62b2b, #d20202);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#f62b2b, endColorstr=#d20202);
+}
+
+.newform button:hover,
+.newform input:hover,
+#newbuildmenu input:hover{
+ border: 1px solid #b30808;
+ background-color: #e40a0a; background-image: -webkit-gradient(linear, left top, left bottom, from(#e40a0a), to(#9f0202));
+ background-image: -webkit-linear-gradient(top, #e40a0a, #9f0202);
+ background-image: -moz-linear-gradient(top, #e40a0a, #9f0202);
+ background-image: -ms-linear-gradient(top, #e40a0a, #9f0202);
+ background-image: -o-linear-gradient(top, #e40a0a, #9f0202);
+ background-image: linear-gradient(to bottom, #e40a0a, #9f0202);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#e40a0a, endColorstr=#9f0202);
+}
+
+.relatedLeft{
+ position: absolute;
+ top: 540px;
+ left: 2px;
+ width: 140px;
+ background-image: url("https://www.samba.org/samba/style/2010/grey/bgBoxSpecial.gif");
+ background-size: 140px auto;
+}
+
+.relatedLeftContent h4{
+ color: #c90000;
+ font-size: 18px;
+ font-weight: normal;
+ font-family: Georgia, serif;
+ line-height: 20px;
+ position: relative;
+ left: 30px;
+ top: 20px;
+ margin: 0 0 16px;
+}
+
+.relatedLeftBottom{
+ position: absolute;
+ width: 140px;
+ height: 16px;
+ background-image: url("https://www.samba.org/samba/style/2010/grey/bgBoxSpecialBottom.gif");
+ background-size: 140px 16px;
+}
--- /dev/null
+</div>
+ <div class="clearing"></div>
+ </div>
+ <!-- footer -->
+
+ </div>
+
+</body>
+</html>
-<!--#include virtual="/header.html"-->
-<title>samba.org build farm</title>
-<!--#include virtual="/header2.html"-->
-<!--#include virtual="/header3.html"-->
<h2>Adding a machine to the build farm</h2>
<ul>
- <li>Decide if your machine is suitable for the task:
+ <li><b>Decide if your machine is suitable for the task:</b>
<ul>
<li>Is it a production machine?</li>
<li>Is it security-sensitive?</li>
<li><p>Make sure your machine is able to open an outgoing TCP connection
to build.samba.org on port 873 (the rsync port). Test this by running
<pre>
- rsync build.samba.org::
+ <b>rsync build.samba.org::</b>
</pre>
and seeing if you get back the list of rsync modules.</p>
<p>
Note: there has been reports that rsync will work via http proxy. A simple
<pre>
- export RSYNC_PROXY=cache:3128
+ <b>export RSYNC_PROXY=cache:3128</b>
</pre>
before running rsync should be all that is needed.</p></li>
<li>Setup a cron job to run build_test regularly. You may wish to use
"nice" to reduce its priority, for example I use the following cron
- entry:
- <pre>
- 0,30 * * * * /bin/nice /home/build/build_farm/build_test 2> /home/build/cron.err
- </pre>
+ entry:<br>
+
+ <b>0,30 * * * * /bin/nice /home/build/build_farm/build_test 2> /home/build/cron.err</b>
+
</li>
<li>Check that <a href="https://build.samba.org/">build.samba.org</a>
is showing your new host and that it is being updated regularly. </li>
</p>
<p>Thanks!</p>
-<!--#include virtual="/footer.html" -->
--- /dev/null
+Subproject commit e6f668a93d8e0fcacc9f1232562277de32f81c16