+ $package_page .= simple_menu( [ gettext( "Distribution:" ),
+ gettext( "Overview over this suite" ),
+ "/$suite/",
+ $suite ],
+ [ gettext( "Section:" ),
+ gettext( "All packages in this section" ),
+ "/$suite/$subsection/",
+ $subsection ],
+ );
+
+ my $title .= sprintf( gettext( "Package: %s (%s)" ), $pkg, $v_str );
+ $title .= " ".marker( $archive ) if $archive ne 'us';
+ $title .= " ".marker( $subsection ) if $subsection eq 'non-US'
+ and $archive ne 'non-US'; # non-US/security
+ $title .= " ".marker( $section ) if $section ne 'main';
+ $package_page .= title( $title );
+
+ $package_page .= "<h2>".gettext( "Versions:" )." $v_str_arch</h2>\n"
+ unless $version eq $v_str;
+
+ if ($suite eq "experimental") {
+ $package_page .= note( gettext( "Experimental package"),
+ gettext( "Warning: This package is from the <span class=\"pred\">experimental</span> distribution. That means it is likely unstable or buggy, and it may even cause data loss. If you ignore this warning and install it nevertheless, you do it on your own risk.")."</p><p>".
+ gettext( "Users of experimental packages are encouraged to contact the package maintainers directly in case of problems." )
+ );
+ }
+ if ($subsection eq "debian-installer") {
+ note( gettext( "debian-installer udeb package"),
+ gettext( "Warning: This package is intended for the use in building <a href=\"http://www.debian.org/devel/debian-installer\">debian-installer</a> images only. Do not install it on a normal Debian system." )
+ );
+ }
+ $package_page .= pdesc( $short_desc, $long_desc );
+
+ #
+ # display dependencies
+ #
+ my $dep_list;
+ $dep_list = print_deps( \%packages, \%opts, $pkg,
+ $page->get_dep_field('depends'),
+ 'depends' );
+ $dep_list .= print_deps( \%packages, \%opts, $pkg,
+ $page->get_dep_field('recommends'),
+ 'recommends' );
+ $dep_list .= print_deps( \%packages, \%opts, $pkg,
+ $page->get_dep_field('suggests'),
+ 'suggests' );
+
+ if ( $dep_list ) {
+ $package_page .= "<div id=\"pdeps\">\n";
+ $package_page .= sprintf( "<h2>".gettext( "Other Packages Related to %s" )."</h2>\n", $pkg );
+ if ($suite eq "experimental") {
+ note( gettext( "Note that the \"<span class=\"pred\">experimental</span>\" distribution is not self-contained; missing dependencies are likely found in the \"<a href=\"/unstable/\">unstable</a>\" distribution." ) );
+ }
+
+ $package_page .= pdeplegend( [ 'dep', gettext( 'depends' ) ],
+ [ 'rec', gettext( 'recommends' ) ],
+ [ 'sug', gettext( 'suggests' ) ], );
+
+ $package_page .= $dep_list;
+ $package_page .= "</div> <!-- end pdeps -->\n";
+ }
+
+ #
+ # Download package
+ #
+ my $encodedpack = uri_escape( $pkg );
+ $package_page .= "<div id=\"pdownload\">";
+ $package_page .= sprintf( "<h2>".gettext( "Download %s\n" )."</h2>",
+ $pkg ) ;
+ $package_page .= "<table border=\"1\" summary=\"".gettext("The download table links to the download of the package and a file overview. In addition it gives information about the package size and the installed size.")."\">\n";
+ $package_page .= "<caption class=\"hidecss\">".gettext("Download for all available architectures")."</caption>\n";
+ $package_page .= "<tr>\n";
+ $package_page .= "<th>".gettext("Architecture")."</th><th>".gettext("Files")."</th><th>".gettext( "Package Size")."</th><th>".gettext("Installed Size")."</th></tr>\n";
+ foreach my $a ( @archs ) {
+ $package_page .= "<tr>\n";
+ $package_page .= "<th><a href=\"$DL_URL?arch=$a";
+ $package_page .= "&file=".uri_escape($filenames->{$a});
+ $package_page .= "&md5sum=$file_md5sums->{$a}";
+ $package_page .= "&arch=$a";
+ # there was at least one package with two
+ # different source packages on different
+ # archs where one had a security update
+ # and the other one not
+ for ($archives->{$a}) {
+ /security/o && do {
+ $package_page .= "&type=security"; last };
+ /volatile/o && do {
+ $package_page .= "&type=volatile"; last };
+ /non-us/io && do {
+ $package_page .= "&type=nonus"; last };
+ $package_page .= "&type=main";
+ }
+ $package_page .= "\">$a</a></th>\n";
+ $package_page .= "<td>";
+ if ( $suite ne "experimental" ) {
+ $package_page .= sprintf( "[<a href=\"%s\">".gettext( "list of files" )."</a>]\n", "$FILELIST_URL$encodedpkg&version=$suite&arch=$a", $pkg );
+ } else {
+ $package_page .= gettext( "no current information" );
+ }
+ $package_page .= "</td>\n<td>";
+ $package_page .= floor(($sizes_deb->{$a}/102.4)+0.5)/10;
+ $package_page .= "</td>\n<td>";
+ $package_page .= $sizes_inst->{$a};
+ $package_page .= "</td>\n</tr>";
+ }
+ $package_page .= "</table><p>".gettext ( "Size is measured in kBytes." )."</p>\n";
+ $package_page .= "</div> <!-- end pdownload -->\n";
+
+ #
+ # more information
+ #
+ $package_page .= pmoreinfo( name => $pkg, data => $page,
+ opts => \%opts,
+ env => \%FTP_SITES,
+ bugreports => 1, sourcedownload => 1,
+ changesandcopy => 1, maintainers => 1,
+ search => 1 );