'non-free' => g('packages that do not meet the Debian Free Software Guidelines'),
}
+ section_urls = {
+ main => 'http://www.debian.org/doc/debian-policy/ch-archive.html#s-main',
+ contrib => 'http://www.debian.org/doc/debian-policy/ch-archive.html#s-contrib',
+ 'non-free' => 'http://www.debian.org/doc/debian-policy/ch-archive.html#s-non-free',
+ }
+
%]
mirrors = {
us => {
+ url => 'http://www.debian.org/',
mirror_list => 'http://www.debian.org/mirror/list',
north_america => [
"ftp.us.debian.org/debian",
},
volatile => {
+ url => 'http://www.debian.org/volatile/',
title => g('volatile packages that need major changes during the life of a stable release'),
mirror_list => 'http://www.debian.org/volatile/volatile-mirrors',
europa => [
},
backports => {
+ url => 'http://www.backports.org/',
title => g('newer packages that have been adapted to stable releases of Debian'),
mirror_list => 'http://www.backports.org/debian/README.mirrors.html',
europa => [
},
debports => {
+ url => 'http://www.debian-ports.org/',
title => g('ports of packages to architectures not yet or not anymore available in Debian'),
mirror_list => 'http://wiki.debian.org/DebianPorts/Mirrors',
unofficial_port => {
<li class="[% suite %]"><a class="resultlink" href="[% make_url(pkg,'','suite',suite,'arch','','section','') %]">[% suite %]
[%- ' (' _ suite_aliases.$suite _ ')' IF suite_aliases.$suite %]</a>[% ' (' _ s.subsection _ ')' IF s.subsection %]:
[% PROCESS desc_i18n trans_desc=s.trans_desc desc=s.desc %]
- [%- PROCESS marker text=section title=section_titles.$section IF section && section != main_section %]
+ [%- PROCESS marker text=section title=section_titles.$section url=section_urls.$section IF section && section != main_section %]
[% FOREACH s.versions %]
- <br>[% version %] [%- IF archive != main_archive %] [<strong class="pmarker" title="[% mirrors.$archive.title %]">[% archive %]</strong>][% END %]: [% architectures.join(' ') %]
+ <br>[% version %] [%- IF archive != main_archive %] [[% IF mirrors.$archive.url %]<a href="[% mirrors.$archive.url %]">[% END %]<strong class="pmarker" title="[% mirrors.$archive.title %]">[% archive %]</strong>[% IF mirrors.$archive.url %]</a>[% END %]][% END %]: [% architectures.join(' ') %]
[% END %]
[% IF s.providers %]
<br>[% IF s.versions.size > 0; g('also provided by:'); ELSE; g('provided by:'); END %]
[% origin = (archive == main_archive) ? suite : "$suite/$archive";
js_id = string2id("$pkg$suite$archive") %]
<li><a class="resultlink" href="[% make_url(pkg,'','source','source','suite',origin,'section','','arch','') %]">[% origin %]</a> ([% subsection %]): [% version %]
- [%- PROCESS marker text=section title=section_titles.$section IF section %] [%- PROCESS marker text=real_archive title=mirrors.$real_archive.title IF real_archive %]
+ [%- PROCESS marker text=section title=section_titles.$section url=section_urls.$section IF section %] [%- PROCESS marker text=real_archive title=mirrors.$real_archive.title url=mirrors.$real_archive.url IF real_archive %]
<br>[% g('Binary packages:') %] <span id="js_[% js_id %]" class="p_js_elem"></span> <span id="html_[% js_id %]" class="binaries">[% FOREACH binary IN binaries.sort %]<a href="[% make_url(binary,'','source','','suite',suite,'archive',archive,'arch','','archive','') %]">[% binary %]</a>[% ', ' UNLESS loop.last %][% END %]</span>
[% IF binaries.size > 10 %]
<script type="text/javascript">init_toggle_elem("[% js_id %]","[% g('show %u binary packages', binaries.size) %]","[% g('hide %u binary packages', binaries.size) %]")</script>
[% ELSE %]
<h1>[% g('Package: %s (%s)', pkg, versions.short) %]
[% END %]
-[%- PROCESS marker text=archive title=mirrors.$archive.title IF archive && archive != main_archive %]
-[%- PROCESS marker text=section title=section_titles.$section IF section && section != main_section %]
-[%- PROCESS marker text=g('essential') title=g('package manager will refuse to remove this package by default') IF page.get_newest('essential') == 'yes' %]</h1>
+[%- PROCESS marker text=archive title=mirrors.$archive.title url=mirrors.$archive.url IF archive && archive != main_archive %]
+[%- PROCESS marker text=section title=section_titles.$section url=section_urls.$section IF section && section != main_section %]
+[%- PROCESS marker text=g('essential') title=g('package manager will refuse to remove this package by default') url='http://www.debian.org/doc/debian-policy/ch-binary.html#s3.8' IF page.get_newest('essential') == 'yes' %]</h1>
[% UNLESS is_virtual %]
<div id="pmoreinfo">
[%- END -%]
]
[%- END -%]
-[% BLOCK marker %] [<strong class="pmarker" [% 'title="' _ title _ '"' IF title %]>[% text %]</strong>] [%- END %]
+[% BLOCK marker %] [[% IF url %]<a href="[% url %]">[% END %]<strong class="pmarker" [% 'title="' _ title _ '"' IF title %]>[% text %]</strong>[% IF url %]</a>[% END %]] [%- END %]
[%- BLOCK desc_i18n;
IF trans_desc.$ddtp_lang;
trans_desc.$ddtp_lang | html;