summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChuck Norris (uranus.fritz.box) <paul@buetow.org>2014-08-16 00:27:00 +0200
committerChuck Norris (uranus.fritz.box) <paul@buetow.org>2014-08-16 00:27:00 +0200
commit938f41199b8576780b50a32a5fcafa2a2cee9009 (patch)
treeb3ae6c29e67e18672d2fb55d13796053aa142a3f
parenta65180a69505f4121ffe14d3f9cd404fe0e0839b (diff)
test page
-rw-r--r--sedna.buetow.org/SITEMAP0
-rw-r--r--sedna.buetow.org/content/home.xml34
-rw-r--r--sedna.buetow.org/content/projectlist.inc.pl42
3 files changed, 76 insertions, 0 deletions
diff --git a/sedna.buetow.org/SITEMAP b/sedna.buetow.org/SITEMAP
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/sedna.buetow.org/SITEMAP
diff --git a/sedna.buetow.org/content/home.xml b/sedna.buetow.org/content/home.xml
new file mode 100644
index 0000000..a5ba793
--- /dev/null
+++ b/sedna.buetow.org/content/home.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
+<content>
+ <pagetitle>Some programming projects</pagetitle>
+ <textheader>Mailing List</textheader>
+ <text>
+ <noop>Here are some programming projects listed which I programmed in my spare time. Some may be usefull and others may not. Please use the </noop>
+ <namedlink href="http://web.buetow.org/listinfo/dev">Development Mailing List</namedlink>
+ <noop> for any considerations.</noop>
+ </text>
+
+ <textheader>Github</textheader>
+ <text>
+ <noop>My Github page is</noop>
+ <namedlink href="http://github.com/rantanplan">github.com/rantanplan</namedlink>
+ <noop> and my open source report card is</noop>
+ <namedlink href="http://osrc.dfm.io/rantanplan">http://osrc.dfm.io/rantanplan</namedlink>
+ </text>
+ <textheader>Deb repository</textheader>
+ <text>Some projects provide packages in .deb format. Please check out each individual project site for available architecture and so on. Basically the debian repository is available via</text>
+ <code>[deb|deb-src] http://deb.buetow.org/apt DISTRIBUTION main</code>
+ <text>Where DISTRIBUTION may be squeeze, wheezy.... To trust the repo please run: </text>
+ <code>curl http://deb.buetow.org/apt/pubkey.gpg | sudo apt-key add -</code>
+ <textheader>Project list</textheader>
+ <information>
+ <text>
+ <noop>All hosts ending with </noop>
+ <strong>.foo</strong>
+ <noop> are most likely dev, test or PoCs. Don't expect to find anything usefull there.</noop>
+ </text>
+ </information>
+ <text>
+ <includerun>projectlist.inc.pl</includerun>
+ </text>
+</content>
diff --git a/sedna.buetow.org/content/projectlist.inc.pl b/sedna.buetow.org/content/projectlist.inc.pl
new file mode 100644
index 0000000..4d1d4f2
--- /dev/null
+++ b/sedna.buetow.org/content/projectlist.inc.pl
@@ -0,0 +1,42 @@
+my $hostroot = $config->get_hostroot();
+
+sub getf ($) {
+ open my $f, $_[0] or die "$!: $_[0]\n";
+ my @slurp = <$f>;
+ close $f;
+ @slurp;
+}
+
+sub nl () { "<br />\n" }
+
+sub list (*) {
+ my $tag = shift;
+ my @found = sort `find $hostroot -name $tag`;
+ my $ret = '';
+
+
+ for my $found (@found) {
+ $found =~ /.*hosts.(.*?).$tag/;
+ my $host = $1;
+
+ my @content = getf $found;
+
+ $ret .= "<b><a href=http://$host>$host</a></b>" . nl;
+ if (@content) {
+ $ret .= join " ", @content;
+ $ret .= nl;
+ }
+ $ret .= nl;
+ }
+
+ $ret;
+}
+
+my $ret = list PROJECT;
+
+$ret .= "<b><i>Older projects (not active at the moment):</i></b>" . nl x 2;
+$ret .= list OLDPROJECT;
+$ret .= "<b><i>Obsolete projects (no work will be done anymore and the software may be broken):</i></b>" . nl x 2;
+$ret .= list OBSOLETEPROJECT;
+
+return $ret;