summaryrefslogtreecommitdiff
path: root/buildmaster/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'buildmaster/index.php')
-rw-r--r--buildmaster/index.php80
1 files changed, 80 insertions, 0 deletions
diff --git a/buildmaster/index.php b/buildmaster/index.php
new file mode 100644
index 0000000..0ea0376
--- /dev/null
+++ b/buildmaster/index.php
@@ -0,0 +1,80 @@
+<?php
+require_once "../init.php";
+require_once BASE . "/lib/mysql.php";
+
+if (array_key_exists("arch",$_GET)) {
+ $archs = array();
+ foreach (explode("&",$_SERVER["QUERY_STRING"]) as $param) {
+ if (strpos($param,"arch=")!==0)
+ continue;
+ $param = substr($param,5);
+ if ($param == "")
+ continue;
+ $archs[$param] = $param;
+ }
+ if (count($archs)==0) {
+ $archs = array("i486" => "i486", "i686" => "i686", "any" => "any");
+ }
+} else {
+ $archs = array("i686" => "i686", "any" => "any");
+}
+
+function encode_arch($a) {
+ return "arch=" . urlencode($a);
+}
+
+$sarch_param = implode("&",array_map('encode_arch',$archs));
+$march_param = "";
+if ($sarch_param != "") {
+ $march_param = "&" . $sarch_param;
+ $sarch_param = "?" . $sarch_param;
+}
+
+?>
+<html>
+ <head>
+ <title>Buildmaster for Archlinux32 packages (<?php print implode(", ",$archs); ?>)</title>
+ </head>
+ <body>
+<?php show_warning_on_offline_slave(); ?>
+ <a href="/buildmaster/build-list.php<?php print $sarch_param; ?>">build list</a>
+ as <a href="/buildmaster/build-list-links.php">graph</a> --
+ <a href="/buildmaster/build-list.php?broken=Broken<?php print $march_param; ?>">broken packages</a> --
+ <a href="/buildmaster/build-list.php?next=Can<?php print $march_param; ?>">buildable packages</a><br>
+ <a href="/buildmaster/build-slaves.php">build-slaves</a> --
+ <a href="/buildmaster/gpg-keys.php">gpg-keys</a> --
+ <a href="/buildmaster/status.php">status</a><br>
+ <a href="https://buildmaster.archlinux32.org/build-logs/">build logs</a> --
+ <a href="/buildmaster/log.php?show=ssh">ssh-log</a> --
+ <a href="/buildmaster/log.php?show=email">email-log</a><br>
+ sanity: of <a href="https://buildmaster.archlinux32.org/master-sanity.html">state files</a>,
+ of <a href="https://buildmaster.archlinux32.org/mysql-sanity.html">mysql database</a> and
+ <a href="/buildmaster/mysql-issues.php?ignore-i486">broken dependencies in the database</a><br>
+ <a href="/buildmaster/todos.php">todos</a>
+ as <a href="/buildmaster/todos.php?graph">graph</a><br>
+ <a href="https://buildmaster.archlinux32.org/database-layout.png">database layout</a><br>
+ <a href="/buildmaster/blacklist.php">blacklisted packages</a> --
+ <a href="/buildmaster/to-delete.php">packages to be deleted</a>
+ and <a href="/buildmaster/deletion-links.php">links between them</a><br>
+ <img src="/buildmaster/statistics.php?log<?php print $march_param; ?>"><br>
+<?php
+
+foreach (array("any", "i486", "i686", "") as $a) {
+ print " <a href=\"?arch=" . $a . "\">";
+ switch ($a) {
+ case "":
+ print "all packages";
+ break;
+ case "any":
+ print "architecture independent packages";
+ break;
+ default:
+ print "packages for " . $a;
+ }
+ print "</a>\n";
+}
+
+?><br>
+ <img src="https://buildmaster.archlinux32.org/vnstat.png"><br>
+ </body>
+</html>