wok diff tazbb/stuff/web/index.php @ rev 3512

Add Tazbb (SliTaz Build Bot)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Jun 20 04:41:53 2009 +0200 (2009-06-20)
parents
children 3a4db8353759
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tazbb/stuff/web/index.php	Sat Jun 20 04:41:53 2009 +0200
     1.3 @@ -0,0 +1,159 @@
     1.4 +<?php
     1.5 +include("conf.php");
     1.6 +?>
     1.7 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     1.8 +    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     1.9 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    1.10 +<head>
    1.11 +    <title>SliTaz Build Bot</title>
    1.12 +    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
    1.13 +    <meta name="description" content="Tazbb web interface" />
    1.14 +    <meta name="robots" content="index nofollow" />
    1.15 +    <link rel="shortcut icon" href="favicon.ico" />
    1.16 +    <link rel="stylesheet" type="text/css" href="slitaz.css" />
    1.17 +</head>
    1.18 +
    1.19 +<body bgcolor="#ffffff">
    1.20 +<!-- Header -->
    1.21 +<div id="header">
    1.22 +    <a name="top"></a>
    1.23 +<!-- Access -->
    1.24 +<div id="access">
    1.25 +	<a href="http://forum.slitaz.org/">Forum</a>
    1.26 +	<a href="http://wiki.slitaz.org/">Wiki</a>
    1.27 +	<a href="http://art.slitaz.org/">Art</a>
    1.28 +	<a href="http://labs.slitaz.org/">Labs</a>
    1.29 +	<a href="http://pkgs.slitaz.org/">Packages</a>
    1.30 +	<a href="http://hg.slitaz.org/">Hg</a>
    1.31 +</div>
    1.32 +    <a href="http://bb.slitaz.org/"><img id="logo"
    1.33 +    src="pics/website/logo.png" title="bb.slitaz.org" alt="bb.slitaz.org"
    1.34 +    style="border: 0px solid ; width: 200px; height: 74px;" /></a>
    1.35 +    <p id="titre">#!/bb/packages</p>
    1.36 +</div>
    1.37 +
    1.38 +<!-- Content top. -->
    1.39 +<div id="content_top">
    1.40 +<div class="top_left"></div>
    1.41 +<div class="top_right"></div>
    1.42 +</div>
    1.43 +
    1.44 +<!-- Content -->
    1.45 +<div id="content">
    1.46 +
    1.47 +<h1><font color="#3E1220">Build Bot</font></h1>
    1.48 +<h2><font color="#DF8F06">/usr/bin/tazbb</font></h2>
    1.49 +
    1.50 +<p>
    1.51 +Tazbb is <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a> Build Bot,
    1.52 +it automaticaly cook and test packages commited in the wok. SliTaz
    1.53 +<a href="http://pkgs.slitaz.org/">packages</a> are cooked on the project
    1.54 +main server: code name <a href="http://tank.slitaz.org">Tank</a>. This
    1.55 +web interface give the current status of the build bot and the last report
    1.56 +about all packages modified by SliTaz contributors in the Mercurial
    1.57 +repository, aka <a href="http://hg.slitaz.org/">Hg repos</a>.
    1.58 +</p>
    1.59 +
    1.60 +<p>
    1.61 +<form action="log.php" method="get">
    1.62 +	Show cooklog: <input type="text" name="package" />
    1.63 +	<!-- <input type="submit" value="Show" /> -->
    1.64 +</form>
    1.65 +</p>
    1.66 +
    1.67 +<h3>Summary</h3>
    1.68 +<pre class="package">
    1.69 +<?php
    1.70 +
    1.71 +// Check curent status (update in real time) and display summary.
    1.72 +
    1.73 +if (file_exists($lockfile)) {
    1.74 +	echo "Status   : Running ";
    1.75 +	include("$db_dir/running");
    1.76 +}
    1.77 +else {
    1.78 +	echo "Status   : Not currently running\n";
    1.79 +}
    1.80 +include("$db_dir/summary");
    1.81 +
    1.82 +?>
    1.83 +</pre>
    1.84 +
    1.85 +<h3>Report</h3>
    1.86 +<pre class="package">
    1.87 +<?php
    1.88 +include("$db_dir/report");
    1.89 +?>
    1.90 +</pre>
    1.91 +
    1.92 +<h3>Cooklist</h3>
    1.93 +<pre class="package">
    1.94 +<?php
    1.95 +include("$db_dir/cooklist");
    1.96 +?>
    1.97 +</pre>
    1.98 +
    1.99 +<h3>Unbuilt</h3>
   1.100 +<pre class="package">
   1.101 +<?php
   1.102 +include("$db_dir/unbuilt.urls");
   1.103 +?>
   1.104 +</pre>
   1.105 +
   1.106 +<h3>Blocked</h3>
   1.107 +<pre class="package">
   1.108 +<?php
   1.109 +include("$db_dir/blocked.urls");
   1.110 +?>
   1.111 +</pre>
   1.112 +
   1.113 +<h3>Corrupted</h3>
   1.114 +<pre class="package">
   1.115 +<?php
   1.116 +include("$db_dir/corrupted");
   1.117 +?>
   1.118 +</pre>
   1.119 +
   1.120 +<h3>Last cooked packages</h3>
   1.121 +<pre class="package">
   1.122 +<?php
   1.123 +system("cd $packages && ls -1t *.tazpkg | head -20 | \
   1.124 +	while read file; do echo -n \$(stat -c '%y' $packages/\$file | \
   1.125 +	cut -d. -f1); echo '   '\$file; done"); ?>
   1.126 +</pre>
   1.127 +
   1.128 +<h3>Last removed packages</h3>
   1.129 +<pre class="package">
   1.130 +<?php
   1.131 +include("$db_dir/removed");
   1.132 +?>
   1.133 +</pre>
   1.134 +
   1.135 +<!-- End of content with round corner -->
   1.136 +</div>
   1.137 +<div id="content_bottom">
   1.138 +<div class="bottom_left"></div>
   1.139 +<div class="bottom_right"></div>
   1.140 +</div>
   1.141 +
   1.142 +<!-- Start of footer and copy notice -->
   1.143 +<div id="copy">
   1.144 +<p>
   1.145 +Copyright &copy; 2009 <a href="http://www.slitaz.org/">SliTaz</a> -
   1.146 +<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
   1.147 +</p>
   1.148 +<!-- End of copy -->
   1.149 +</div>
   1.150 +
   1.151 +<!-- Bottom and logo's -->
   1.152 +<div id="bottom">
   1.153 +<p>
   1.154 +<a href="http://validator.w3.org/check?uri=referer"><img
   1.155 +   src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
   1.156 +   title="Code validé XHTML 1.0"
   1.157 +   style="width: 80px; height: 15px;" /></a>
   1.158 +</p>
   1.159 +</div>
   1.160 +
   1.161 +</body>
   1.162 +</html>