wok view tazbb/stuff/web/index.php @ rev 5963

freeradius: fix depends
author Antoine Bodin <gokhlayeh@mailoo.org>
date Thu Aug 05 23:03:13 2010 +0200 (2010-08-05)
parents 93b7952261f9
children 56e550ff1e77
line source
1 <?php
2 $version='cooking';
3 $notversion='stable';
4 $wok='wok';
5 if (isset($_GET['stable'])) {
6 $version='stable';
7 $notversion='cooking';
8 $wok='wok-stable';
9 }
10 include("conf.php");
11 ?>
12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
13 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
14 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
15 <head>
16 <title>SliTaz Build Bot</title>
17 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
18 <meta name="description" content="Tazbb web interface" />
19 <meta name="robots" content="index nofollow" />
20 <link rel="shortcut icon" href="favicon.ico" />
21 <link rel="stylesheet" type="text/css" href="slitaz.css" />
22 </head>
24 <body bgcolor="#ffffff">
25 <!-- Header -->
26 <div id="header">
27 <a name="top"></a>
28 <!-- Access -->
29 <div id="access">
30 <a href="/<?php if ($version != 'stable')
31 echo "?stable"; ?>" title="Slitaz <?php
32 echo $notversion ?> packages"><?php echo $notversion ?></a>
33 </div>
34 <a href="http://bb.slitaz.org/"><img id="logo"
35 src="pics/website/logo.png" title="bb.slitaz.org" alt="bb.slitaz.org"
36 style="border: 0px solid ; width: 200px; height: 74px;" /></a>
37 <p id="titre">#!/bb/packages/<?php echo $version; ?></p>
38 </div>
40 <!-- Navigation menu -->
41 <div id="nav">
43 <div class="nav_box">
44 <h4>SliTaz Network</h4>
45 <ul>
46 <li><a href="http://www.slitaz.org/">Main Website</a></li>
47 <li><a href="http://doc.slitaz.org/">Documentation</a></li>
48 <li><a href="http://forum.slitaz.org/">Community Forum</a></li>
49 <li><a href="http://labs.slitaz.org/">SliTaz Labs</a></li>
50 <li><a href="http://pkgs.slitaz.org/">Packages Database</a></li>
51 <li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
52 <li><a href="http://www.distrowatch.com/slitaz">SliTaz on DistroWatch</a></li>
53 </ul>
54 </div>
56 <div class="nav_box">
57 <h4>SliTaz Developers</h4>
58 <ul>
59 <li><a href="http://hg.slitaz.org/">Hg Repositories</a></li>
60 <li><a href="http://tank.slitaz.org/">Tank Server</a></li>
61 <li><a href="http://people.slitaz.org/">People Stuff</a></li>
62 <li><a href="http://labs.slitaz.org/wiki/distro">Distro Wiki</a></li>
64 </ul>
65 </div>
67 <!-- End navigation menu -->
68 </div>
70 <!-- Content top. -->
71 <div id="content_top">
72 <div class="top_left"></div>
73 <div class="top_right"></div>
74 </div>
76 <!-- Content -->
77 <div id="content">
79 <h1><font color="#3E1220">Build Bot</font></h1>
80 <h2><font color="#DF8F06">/usr/bin/tazbb</font></h2>
82 <p>
83 Tazbb is a <a href="http://www.slitaz.org/">SliTaz GNU/Linux</a> Build Bot,
84 it automatically cooks and tests packages commited in the wok. SliTaz
85 <a href="http://pkgs.slitaz.org/">packages</a> are cooked on the project
86 main server: code name <a href="http://tank.slitaz.org">Tank</a>. This
87 web interface gives the current status of the build bot and the last report
88 about any packages modified by the SliTaz contributors in the Mercurial
89 repositories, aka <a href="http://hg.slitaz.org/">Hg repos</a>.
90 </p>
92 <p>
93 <form action="log.php" method="get">
94 <?php
95 if ($version == 'stable')
96 echo '<input type="hidden" name="stable" value="1" />';
97 ?> Show cooklog: <input type="text" name="package" />
98 <!-- <input type="submit" value="Show" /> -->
99 </form>
100 </p>
102 <h3>Summary</h3>
103 <pre class="package">
104 <?php
106 // Check curent status (update in real time) and display summary.
108 if (file_exists($lockfile)) {
109 echo "Status : Running ";
110 include("$db_dir/running");
111 }
112 else {
113 echo "Status : Not currently running\n";
114 }
115 include("$db_dir/summary");
117 ?>
118 </pre>
120 <h3>Report</h3>
121 <pre class="package">
122 <?php
123 include("$db_dir/report");
124 ?>
125 </pre>
127 <h3>Cooklist</h3>
128 <pre class="package">
129 <?php
130 include("$db_dir/cooklist");
131 ?>
132 </pre>
134 <h3>Unbuilt</h3>
135 <pre class="package">
136 <?php
137 include("$db_dir/unbuilt");
138 ?>
139 </pre>
141 <h3>Blocked</h3>
142 <pre class="package">
143 <?php
144 include("$db_dir/blocked.urls");
145 ?>
146 </pre>
148 <h3>Corrupted</h3>
149 <pre class="package">
150 <?php
151 include("$db_dir/corrupted");
152 ?>
153 </pre>
155 <h3>Last cooked packages</h3>
156 <pre class="package">
157 <?php
158 system("cd $packages && ls -1t *.tazpkg | head -20 | \
159 while read file; do echo -n \$(stat -c '%y' $packages/\$file | \
160 cut -d. -f1); echo ' '\$file; done"); ?>
161 </pre>
163 <h3>Last removed packages</h3>
164 <pre class="package">
165 <?php
166 include("$db_dir/removed");
167 ?>
168 </pre>
170 <h3>Last cooked flavors</h3>
171 <pre class="package">
172 <?php
173 system("cd $packages && ls -1t *.flavor | head -20 | \
174 while read file; do echo -n \$(stat -c '%y' $packages/\$file | \
175 cut -d. -f1); echo ' '\$file; done"); ?>
176 </pre>
178 <!-- End of content with round corner -->
179 </div>
181 <!-- Start of footer and copy notice -->
182 <div id="copy">
183 <p>
184 Copyright &copy; 2010 <a href="http://www.slitaz.org/">SliTaz</a> -
185 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
186 </p>
187 <!-- End of copy -->
188 </div>
190 <!-- Bottom and logo's -->
191 <div id="bottom">
192 <p>
193 <a href="http://validator.w3.org/check?uri=referer"><img
194 src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
195 title="Code validé XHTML 1.0"
196 style="width: 80px; height: 15px;" /></a>
197 </p>
198 </div>
200 </body>
201 </html>