aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-06-06 18:32:06 +0000
committerNicolas Vigier <boklm@mageia.org>2013-06-06 18:32:06 +0000
commit8dfe73550b40814824597b269f18d3454be7df17 (patch)
tree20ed5463003ba0c5a16d64e8a5fde3005f9c7c39
parenta4e3c35a193a717144df03eee729f8ba705099eb (diff)
downloadmgaadvisories-8dfe73550b40814824597b269f18d3454be7df17.tar
mgaadvisories-8dfe73550b40814824597b269f18d3454be7df17.tar.gz
mgaadvisories-8dfe73550b40814824597b269f18d3454be7df17.tar.bz2
mgaadvisories-8dfe73550b40814824597b269f18d3454be7df17.tar.xz
mgaadvisories-8dfe73550b40814824597b269f18d3454be7df17.zip
Add index page
-rw-r--r--config_default1
-rwxr-xr-xmkadvisories5
-rw-r--r--tmpl/index.html31
3 files changed, 37 insertions, 0 deletions
diff --git a/config_default b/config_default
index b67b9c0..b67f188 100644
--- a/config_default
+++ b/config_default
@@ -3,6 +3,7 @@ status_dir: /var/lib/mga-advisories/status
tmpl_dir: /usr/share/mga-advisories/tmpl
output_format:
- txt
+ - html
out_dir: /var/lib/mga-advisories/out
adv_mail_to: updates-announce@ml.mageia.org
adv_mail_from: Mageia Updates <buildsystem-daemon@mageia.org>
diff --git a/mkadvisories b/mkadvisories
index ac229a2..c5a7d8c 100755
--- a/mkadvisories
+++ b/mkadvisories
@@ -76,6 +76,11 @@ sub output_pages {
};
process_template($template, 'advisory', $vars, $adv);
}
+ my $vars = {
+ config => $config,
+ advdb => $advdb,
+ };
+ process_template($template, 'index', $vars, 'index');
}
sub send_adv_mail {
diff --git a/tmpl/index.html b/tmpl/index.html
new file mode 100644
index 0000000..13e713b
--- /dev/null
+++ b/tmpl/index.html
@@ -0,0 +1,31 @@
+[%- USE date(format='%Y/%m/%d') -%]
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>Mageia Advisories</title>
+ </head>
+ <body>
+ <h1>Mageia Advisories</h1>
+ <ul>
+ [%- FOREACH adv IN advdb.advisories.keys.sort.reverse -%]
+ <li><a href="[% adv %].txt">[% adv %]</a>: [% advdb.advisories.$adv.subject %]</li>
+ [%- END -%]
+ </ul>
+ <h1>Older Advisories</h1>
+ Older advisories are available on Mageia wiki :
+ <ul>
+ <li><a href="https://wiki.mageia.org/en/Mageia_2_Advisories">Mageia 2 Advisories</a></li>
+ <li><a href="https://wiki.mageia.org/en/Mageia_3_Advisories">Mageia 3 Advisories</a></li>
+ </ul>
+
+ <h1>Work in progress</h1>
+ This website is a work in progress. New versions should provide :
+ <ul>
+ <li>Advisories html pages</li>
+ <li>RSS feeds</li>
+ <li>Per CVE pages</li>
+ <li>Per distribution pages</li>
+ <li>Automatic packages move</li>
+ </ul>
+ </body>
+</html>