aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>