]> git.deb.at Git - deb/packages.git/blob - templates/html/download.tmpl
templates/html/download.tmpl: Handle security in apt nag
[deb/packages.git] / templates / html / download.tmpl
1 [%- PROCESS 'html/head.tmpl'
2    title_tag = 'Package Download Selection'
3    description = desc
4    keywords = "$suite, $archive, $section, $subsection, $version"
5    navigation = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>make_url('/'), name=>suite },
6                   { prefix=>'Package:', url=>make_url(pkg,'','arch',undef), name=>pkg },
7                   { url=>make_url(pkg), name=>architecture },
8                   { name => 'Download' },
9                 ]
10 -%]
11 [%- PROCESS 'config/archive_layout.tmpl' -%]
12 [%- PROCESS 'config/mirrors.tmpl' -%]
13 [%- PROCESS 'config/architectures.tmpl' -%]
14 [%- PROCESS 'html/messages.tmpl' -%]
15
16 [% IF architecture != 'all' %]
17 <h2>Download Page for <kbd>[% filename.file %]</kbd> on [% architectures.$architecture %] machines</h2>
18 [% ELSE %]
19 <h2>Download Page for <kbd>[% filename.file %]</kbd></h2>
20 [% END %]
21
22 <div class="pconstantnag">
23 <p>If you are running Debian, it's strongly suggested to use a
24 package manager like <a href="[% make_url('aptitude','','arch','') %]">aptitude</a> or
25 <a href="[% make_url('synaptic','','arch','') %]">synaptic</a> to download and install
26 packages, instead of doing so manually via this website.</p>
27 <p>You should be able to use any of the listed mirrors by adding a
28 line to your <kbd>/etc/apt/sources.list</kbd> like this:</p>
29 [% IF archive != "security" %]
30 <pre>
31 deb http://<em>[% mirrors.$archive.europa.0 %]</em> [% suite %] main [% section IF section != main_section %]
32 </pre>
33 <p>Replacing <em>[% mirrors.$archive.europa.0 %]</em> with the mirror in question.
34 [% ELSE %]
35 <pre>
36 deb http://security.debian.org/debian-security [% suite _ "/updates" %] main [% section IF section != main_section %]
37 </pre>
38 [%- END %]
39 [% IF suite == "experimental" %]
40 <h2>Experimental package</h2>
41 <p>Warning: This package is from the <strong>experimental</strong> distribution.
42 That means it is likely unstable or buggy, and it may even cause data loss.
43 Please be sure to consult the changelog and other possible documentation before
44 using it.</p>
45 [% END %]
46 [% IF subsection == "debian-installer" %]
47 <h2>debian-installer udeb package</h2>
48 <p>Warning: This package is intended for the use in building
49 <a href="http://www.debian.org/devel/debian-installer">debian-installer</a> images only.
50 Do not install it on a normal Debian system.</p>
51 [% END %]
52 </div>
53
54 [%- SET a = mirrors.$archive -%]
55
56 [% IF archive != 'security' %]
57   <p>You can download the requested file from the <tt>[% filename.directory %]</tt> subdirectory at any of these sites:</p>
58   <div class="cardleft">
59   [% FOREACH continent IN [ 'north_america', 'south_america', 'asia', 'africa' ] %]
60     [% IF a.$continent %]
61         <p><em>[% continents.$continent %]</em></p>
62         <ul>
63         [% FOREACH m IN a.$continent %]
64           <li><a href="http://[% m %]/[% filename.full %]">[% m %]</a></li>
65         [% END %]
66         </ul>
67     [% END %]
68   [% END %]
69   </div><div class="cardright">
70   [% FOREACH continent IN [ 'europa','australia' ] %]
71     [% IF a.$continent %]
72         <p><em>[% continents.$continent %]</em></p>
73         <ul>
74         [% FOREACH m IN a.$continent %]
75           <li><a href="http://[% m %]/[% filename.full %]">[% m %]</a></li>
76         [% END %]
77         </ul>
78     [% END %]
79   [% END %]
80   </div>
81 [% ELSE %]
82 <p>You can download the requested file from the <tt>[% filename.directory %]</tt> subdirectory at:</p>
83 <ul><li><a href="http://security.debian.org/debian-security/[% filename.full %]">security.debian.org/debian-security</a></li></ul>
84 <p>Debian security updates are currently officially distributed only via <tt>security.debian.org</tt></p>
85 [% END %]
86
87 <div id="pdownloadnotes">
88
89 [% IF a.mirror_list %]
90 <p style="clear:both">If none of the above sites are fast enough for you,
91 please see our <a href="[% a.mirror_list %]">complete mirror list</a>.</p>
92 [% END %]
93
94 [% IF a.unofficial_port %]
95 [% SET port = a.unofficial_port %]
96 <p style="clear:both">Note that [% port.name %] is not officially included in the [% organisation %] archive yet,
97 but the [% port.name %] porter group keeps their archive in sync with the official archive as close as possible.
98 See the <a href="[% ports_url _ port.url_name _ '/' %]">[% port.name %] ports page</a> for current information.</p>
99 [% END %]
100
101 <p>Note that in some browsers you will need to tell your browser you want the file saved to a file.
102 For example, in Firefox or Mozilla, you should hold the Shift key when you click on the URL.</p>
103
104 </div>
105
106 <h3>More information on <kbd>[% filename.file %]</kbd>:</h3>
107 <table id="pdownloadmeta">
108 <tr><th>Exact Size</th>                 <td class="size">[% size %] Byte ([% pkgsize %] [% pkgsize_unit %])</td>
109 <tr><th>MD5 checksum</th>               <td><tt>[% md5sum %]</tt></td>
110 <tr><th>SHA1 checksum</th>              <td><tt>[% sha1 || 'Not Available' %]</tt></td>
111 <tr><th>SHA256 checksum</th>            <td><tt>[% sha256  || 'Not Available' %]</tt></td>
112 </table>