]> git.deb.at Git - deb/packages.git/commitdiff
Merge branch 'master' into ubuntu-master
authorFrank Lichtenheld <frank@lichtenheld.de>
Fri, 2 May 2008 15:14:38 +0000 (17:14 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Fri, 2 May 2008 15:14:38 +0000 (17:14 +0200)
Conflicts:

cron.d/100syncarchive_amd64
cron.d/100syncarchive_backports
cron.d/100syncarchive_debports
cron.d/100syncarchive_m68k
cron.d/100syncarchive_volatile
templates/html/head.tmpl
templates/html/show.tmpl

1  2 
config.sh.sed.in
cron.d/100syncarchive
templates/config.tmpl
templates/html/download.tmpl
templates/html/foot.tmpl
templates/html/head.tmpl
templates/html/show.tmpl

diff --combined config.sh.sed.in
index edfbc3eaa796946d110a93111843371c22af582e,9fddcb86a605d79d2d78744a11d3bd315f755346..2eb47b7472c30281858e9b8afd37160e1d17f3c6
@@@ -24,43 -24,39 +24,46 @@@ cachedir=${topdir}/cach
  # path to private ftp directory
  #ftproot=/org/ftp.root
  
 -ftpsite=http://ftp.de.debian.org/debian
 -security_ftpsite=http://security.debian.org/debian-security
 -volatile_ftpsite=http://volatile.debian.org/debian-volatile
 -backports_ftpsite=http://backports.org/debian
 -amd64_ftpsite=http://amd64.debian.net/debian
 -debports_ftpsite=http://ftp.debian-ports.org/debian
 -ddtp_ftpsite=http://ddtp.debian.net/debian
 +ftpsite=http://archive.ubuntu.com/ubuntu
 +security_ftpsite=http://archive.ubuntu.com/ubuntu
 +#ddtp_ftpsite=http://archive.ubuntu.com/ubuntu
  
- wget_cmd="wget --no-verbose --tries=2 --timeout=60" 
+ wget_cmd="wget --no-verbose --tries=2 --timeout=60"
+ check_release_cmd="perl -I${libdir} ${bindir}/check-release --verbose --ignoremissing --keyring ${configdir}/trusted.gpg"
  
+ # URLs that need to be known in the code (as opposed to the templates)
  root=""
+ search_url="/search"
  
  # Architectures
  #
  polangs="de fi fr hu ja nl ru sv uk zh-cn"
 -ddtplangs="ca cs da de eo es fi fr hu it ja km-kh ko nl pl pt pt-br ru sk sv uk zh-cn zh-tw"
 -archives="us security amd64 debports backports volatile"
 -sections="main contrib non-free"
 +ddtplangs="ca cs da de eo es fi fr hu it ja ko nl pl pt pt-br ru sk sv uk zh-cn zh-tw"
 +archives="us security"
 +sections="main multiverse restricted universe"
  parts="$sections"
 -suites="sarge sarge-volatile sarge-backports etch etch-m68k etch-volatile etch-backports lenny sid experimental"
 -priorities="required important standard optional extra"
 +suites="dapper dapper-updates dapper-backports edgy edgy-updates edgy-backports feisty feisty-updates feisty-backports gutsy gutsy-updates gutsy-backports hardy hardy-updates hardy-backports intrepid"
  dists="$suites"
 -architectures="alpha amd64 arm armel hppa hurd-i386 i386 ia64 kfreebsd-i386 kfreebsd-amd64 m68k mips mipsel powerpc s390 sparc"
 -arch_sarge="alpha amd64 arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc"
 -arch_etch="alpha amd64 arm hppa i386 ia64 mips mipsel powerpc s390 sparc"
 -arch_lenny="${arch_etch} armel"
 -arch_sid="${arch_sarge} armel hurd-i386 kfreebsd-i386 kfreebsd-amd64"
 -arch_experimental="${arch_sid}"
 -arch_lenny_proposed_updates="${arch_lenny}"
 -arch_etch_proposed_updates="${arch_etch}"
 +priorities="required important standard optional extra"
 +architectures="i386 amd64 powerpc"
 +arch_dapper="i386 amd64 powerpc"
 +arch_dapper_updates="${arch_dapper}"
 +arch_dapper_backports="${arch_dapper}"
 +arch_edgy="${arch_dapper}"
 +arch_edgy_updates="${arch_edgy}"
 +arch_edgy_backports="${arch_edgy}"
 +arch_feisty="${arch_edgy}"
 +arch_feisty_updates="${arch_feisty}"
 +arch_feisty_backports="${arch_feisty}"
 +arch_gutsy="${arch_feisty}"
 +arch_gutsy_updates="${arch_gutsy}"
 +arch_gutsy_backports="${arch_gutsy}"
 +arch_hardy="i386 amd64"
 +arch_hardy_updates="${arch_hardy}"
 +arch_hardy_backports="${arch_hardy}"
 +arch_intrepid="${arch_hardy}"
 +arch_intrepid_updates="${arch_intrepid}"
 +arch_intrepid_backports="${arch_intrepid}"
  
  # Miscellaneous
  #
diff --combined cron.d/100syncarchive
index f71f8168526ded38cbbc4dd21ef56139682b1573,cb6f18c2869067e794a6b69b9768b99217bfa8d5..3f2008a24cfde58564f4ad8bb42e4b1c50a2ca84
@@@ -21,6 -21,8 +21,6 @@@ the
        foo=\$arch_${dist//-/_}
        for arch in `eval echo $foo`
        do
 -          test ! "$arch" = "kfreebsd-i386" || continue
 -          test ! "$arch" = "kfreebsd-amd64" || continue
            for part in ${parts}
            do
                echo retrieve Packages $dist/$part/$arch
@@@ -28,6 -30,8 +28,6 @@@
                (cd us/${dist}/${part}/binary-${arch} &&
                    $wget_cmd -N ${ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
            done
 -          #FIXME: no Contents files for p-u
 -          test ! "$dist" = "experimental" || continue
            echo retrieve Contents $dist/$arch
            (cd us/${dist} &&
                $wget_cmd -N ${ftpsite}/dists/${dist}/Contents-${arch}.gz)
@@@ -39,6 -43,8 +39,8 @@@
              (cd us/${dist}/${part}/source &&
                  $wget_cmd -N ${ftpsite}/dists/${dist}/${part}/source/Sources.gz)
        done
+       $check_release_cmd $archivedir/us/${dist}/Release
      done
  else
      echo using local mirror
@@@ -52,6 -58,8 +54,6 @@@
        foo=\$arch_${dist//-/_}
        for arch in `eval echo $foo`
        do
 -          test ! "$arch" = "kfreebsd-i386" || continue
 -          test ! "$arch" = "kfreebsd-amd64" || continue
            for part in ${parts}
            do
                echo retrieve Packages $dist/$part/$arch
@@@ -59,6 -67,8 +61,6 @@@
                rsync -t ${localdir}/dists/${dist}/${part}/binary-${arch}/Packages.gz \
                    us/${dist}/${part}/binary-${arch}/Packages.gz
            done
 -          #FIXME: no Contents files for p-u
 -          test ! "$dist" = "experimental" || continue
            echo retrieve Contents $dist/$arch
            rsync -t ${localdir}/dists/${dist}/Contents-${arch}.gz \
                us/${dist}/Contents-${arch}.gz
              rsync -t ${localdir}/dists/${dist}/${part}/source/Sources.gz \
                us/${dist}/${part}/source/Sources.gz
        done
+       $check_release_cmd $archivedir/us/${dist}/Release
      done
  fi
  
  # security archive
  #
 -for dist in sarge etch lenny
 +for dist in $dists
  do
      echo "retrieve Release(.gpg) $dist"
      test -d security/${dist} || mkdir -p security/${dist}
      (cd security/${dist} &&
 -      $wget_cmd -N ${security_ftpsite}/dists/${dist}/updates/Release &&
 -      $wget_cmd -N ${security_ftpsite}/dists/${dist}/updates/Release.gpg )
 +      $wget_cmd -N ${security_ftpsite}/dists/${dist}-security/Release &&
 +      $wget_cmd -N ${security_ftpsite}/dists/${dist}-security/Release.gpg )
          
      foo=\$arch_${dist//-/_}
      for arch in `eval echo $foo`
      do
        for part in ${parts}
        do
 -      echo retrieve Packages $dist/$part/security/$arch
 +      echo retrieve Packages $dist-security/$part/$arch
        test -d security/${dist}/${part}/binary-${arch} || mkdir -p security/${dist}/${part}/binary-${arch}
        (cd  security/${dist}/${part}/binary-${arch} &&
 -          $wget_cmd -N ${security_ftpsite}/dists/${dist}/updates/${part}/binary-${arch}/Packages.gz)
 +          $wget_cmd -N ${security_ftpsite}/dists/${dist}-security/${part}/binary-${arch}/Packages.gz)
        done
      done
      for part in ${parts}
          echo retrieve Sources $dist/$part/security
          test -d security/${dist}/${part}/source || mkdir -p security/${dist}/${part}/source
          (cd security/${dist}/${part}/source &&
 -            $wget_cmd -N ${security_ftpsite}/dists/${dist}/updates/${part}/source/Sources.gz)
 +            $wget_cmd -N ${security_ftpsite}/dists/${dist}-security/${part}/source/Sources.gz)
      done
+     $check_release_cmd $archivedir/security/${dist}/Release
  done
diff --combined templates/config.tmpl
index 11d04044c1ba86430fece6fa66f8d91d9ee95a5e,3e91e260cd513291ed95b3d9b1b75f59571991a8..6a24629e418d856f7484eb4b184db6036e257408
@@@ -3,56 -3,55 +3,56 @@@
     po_lang = 'en'
     ddtp_lang = 'en'
  
 -   organisation = 'Debian'
 -   project_homepage = 'http://www.debian.org/'
 -   packages_homepage = 'http://packages.debian.net/'
 +   organisation = 'Ubuntu'
 +   project_homepage = 'http://www.ubuntu.com/'
 +   packages_homepage = 'http://packages.ubuntu.com/'
     searchformurl = packages_homepage
-    search_url = '/'
+    search_url = '/search'
     tags_url = 'http://debtags.alioth.debian.org/'
     bugs_url = 'http://bugs.debian.org/'
 +   launchpad_url = 'https://launchpad.net/distros/ubuntu/+source/'
     pts_url = 'http://packages.qa.debian.org/'
     ddpo_url = 'http://qa.debian.org/developer.php?login='
     src_bugs_url = bugs_url _ 'src:'
 -   mirror_url = 'http://ftp.debian.org/'
 -   security_mirror = 'security.debian.org'
 -   security_mirror_url = security_mirror _ '/debian-security'
 -   security_suite_suffix = '/updates'
 -   changelogs_url = 'http://packages.debian.org/changelogs/'
 +   mirror_url = 'http://archive.ubuntu.com/'
 +   security_mirror = 'security.ubuntu.com'
 +   security_mirror_url = security_mirror _ '/ubuntu'
 +   security_suite_suffix = '-security'
 +   changelogs_url = 'http://changelogs.ubuntu.com/changelogs/'
     policy_url = 'http://www.debian.org/doc/debian-policy/'
 -   cn_help_url = project_homepage _ 'intro/cn'
 +#   cn_help_url = project_homepage _ 'intro/cn'
     logo = {
        url => project_homepage,
          src => '/Pics/openlogo-nd-25.png',
          alt => organisation,
     }
     copyright = {
 -      url => 'http://www.spi-inc.org/',
 -        name => 'SPI Inc.',
 -        years => '1997 - ' _ timestamp.year,
 +      url => 'http://www.canonical.com/',
 +        name => 'Canonical Ltd.',
 +        years => timestamp.year,
     }
     license = {
 -      url => project_homepage _ 'license'
 +      url => project_homepage _ 'legal'
     }
     trademark = {
        name => copyright.name,
        url => project_homepage _ 'trademark'
     }
     contact = {
 -      name => g('Debian Web Mailinglist'),
 -      mail => 'debian-www@lists.debian.org',
 -        url => project_homepage _ 'contact',
 +      name => 'Frank Lichtenheld',
 +      mail => 'frank@lichtenheld.de',
 +        url => project_homepage _ 'support',
     }
     admin = {
 -      name => g('%s Webmaster', organisation),
 -      mail => 'webmaster@debian.org',
 +      name => 'Frank Lichtenheld',
 +      mail => 'frank@lichtenheld.de',
     }
     trademarknotes = g('%s is a <a href="%s">trademark</a> of %s', organisation, trademark.url, trademark.name)
  -%]
  [%-
     # possible values for importance: high, normal, low
 -   sitewidemsg = { importance => "high",
 -                 txt => g('Please note that this is an experimental version of <a href="http://%s/">%s</a>. Errors and obsolete information should be expected', 'packages.debian.org', 'packages.debian.org') }
 +#   sitewidemsg = { importance => "high",
 +#                txt => g('Please note that this is an experimental version of <a href="http://%s/">%s</a>. Errors and obsolete information should be expected', 'packages.ubuntu.com', 'packages.ubuntu.com') }
  -%]
  [%# @translators: . = decimal_point , = thousands_sep, see Number::Format %]
  [%- USE num = Number.Format( decimal_point => g('.'),
index 57339a287d85d002e935c14748b07a7a65e51c51,97ef81e054d9d9ecb77499d944facfddbde14e5e..0326a146af92890c8454f2da06daac6beb6dd9cf
@@@ -54,7 -54,7 +54,7 @@@ deb http://<em>[% mirrors.$archive.euro
    <p>[% g('You can download the requested file from the <tt>%s</tt> subdirectory at any of these sites:',
        filename.directory) %]</p>
    <div class="cardleft">
 -  [% FOREACH continent IN [ 'north_america', 'south_america', 'asia', 'africa' ] %]
 +  [% FOREACH continent IN [ 'north_america', 'south_america', 'asia', 'africa', 'australia' ] %]
      [% IF a.$continent %]
        <p><em>[% continents.$continent %]</em></p>
        <ul>
@@@ -65,7 -65,7 +65,7 @@@
      [% END %]
    [% END %]
    </div><div class="cardright">
 -  [% FOREACH continent IN [ 'europa','australia' ] %]
 +  [% FOREACH continent IN [ 'europa' ] %]
      [% IF a.$continent %]
        <p><em>[% continents.$continent %]</em></p>
        <ul>
  <tr><th>[% g('SHA256 checksum') %]</th>       <td><tt>[% sha256  || g('Not Available') %]</tt></td>
  </table>
  
- [%- PROCESS 'html/foot.tmpl' -%]
+ [%- PROCESS 'html/foot.tmpl' page_name="$pkg/download" -%]
diff --combined templates/html/foot.tmpl
index 8ddf007586639629b23340f140c0387f9380fa93,b911d789a3908b5b5408ff2e58c701b2ff7a055c..ba4e030ed57ce884527de91049307afbfcd2d832
@@@ -1,9 -1,8 +1,9 @@@
  [%- IF benchmark && debug -%]
  Total page evaluation took [% benchmark %]<br>
  [%- END -%]
 -</div> <!-- end inner -->
 +</div></div></div>
  
 +<div class=\"clear mozclear\"></div><div id=\"prefooter\">
  <div id="footer">
  
  [% IF langs.size > 0 %]
  <a href="[% IF keyword_esc;
                make_search_url('',"keywords=$keyword_esc",'lang',l.lang);
            ELSE;
-               "$page_name?lang=$l.lang";
+               make_url(page_name,"",'lang',l.lang);
            END %]" title="[% l.tooltip %]" hreflang="[% l.lang %]" lang="[% l.lang %]" rel="alternate">[% l.selfname %]
  [%- IF l.transliteration %] ([% l.transliteration %])[% END %]</a>
  [% END %]
  </p>
 +[% IF cn_help_url %]
  <p>[% g('How to set <a href="%s">the default document language</a>', cn_help_url) %]</p>
 +[% END %]
  <!--/UdmComment-->
  [% END %]
  
@@@ -42,6 -39,6 +42,6 @@@ END %
  <p><a href="/about/">[% g('Learn more about this site') %]</a>.</p>
  </div> <!-- end fineprint -->
  </div> <!-- end footer -->
 -</div> <!-- end outer -->
 +</div> <!-- end pageWrapper -->
  </body>
  </html>
diff --combined templates/html/head.tmpl
index 8fbe1b7d2ebf6de16798133f7dd68000d2667bc2,1cc5d1fc1dde7fb530effe50a8a9115140c341d6..3d48771edb36ac3561b7a050fba2aec0b34bd100
@@@ -12,8 -12,6 +12,8 @@@
  <link href="/debian.css" rel="stylesheet" type="text/css" media="all">
  <link href="/packages.css" rel="stylesheet" type="text/css" media="all">
  <link href="/packages-site.css" rel="stylesheet" type="text/css" media="all">
 +<link href="/ubuntu/ubuntu.css" rel="stylesheet" type="text/css" media="all">
 +<link href="/ubuntu/masthead.css" rel="stylesheet" type="text/css" media="all">
  [% IF rss_alternate %]
  <link rel="alternate" type="application/rss+xml" title="RSS" href="[% rss_alternate %]">
  [% END %]
  [% sitewidemsg.txt %]
  </div>
  [%- END -%]
 -<div id="header">
 -   <div id="upperheader">
 +    <div id="pageWrapper">
 +      <div id="mastWrapper">
 +        <div id="masthead">
 +          <a class="imageLink"
 +             href="[% homepage %]">&nbsp;</a>
  
 -   <div id="logo">
 -  <!-- very Debian specific use of the logo stuff -->
 -  <a href="[% logo.url %]"><img src="[% logo.src %]" alt=""></a>
 -  <a href="[% logo.url %]"><img src="/Pics/debian-small.png" alt="[% logo.alt %]" width="90" height="31"></a>
 -</div> <!-- end logo -->
 +          <a class="hiddenStructure"
 +             href="[% homepage %]/#documentContent">Skip
 +             to content</a>
  
  [%- IF print_search_field %]
  [% checked = 'checked="checked"'
     selected = 'selected="selected"' %]
- <form method="GET" action="/search">
 +<div id="search">
+ <form method="GET" action="[% search_url %]">
  <div id="hpacketsearch">
  [% IF search_field_values.mode %]<input type="hidden" name="mode" value="[% search_field_values.mode %]">[% END %]
  [% IF search_field_values.sort_by %]<input type="hidden" name="sort_by" value="[% search_field_values.sort_by %]">[% END %]
  <span style="font-size: 60%"><a href="[% searchformurl %]">[% g('all options') %]</a></span>
  </div> <!-- end hpacketsearch -->
  </form>
 +</div>
  [% END %]
  
 -</div> <!-- end upperheader -->
 +     <!-- masthead content begin -->
 +    <h5 class="hiddenStructure">Sections</h5>    
 +    <div id="nav">
 +      <ul>        
 +      </ul>
 +    </div> <!-- nav -->
 +    <!-- masthead content end -->
 +    </div> <!-- masthead -->
 +   </div>  <!-- mastWrapper -->
  
 -<p class="hidecss"><a href="#inner">[% g('skip the navigation') %]</a></p>
 +<div class="visualClear"></div>
  <div id="pnavbar">
   &gt;&gt; <a href="[% project_homepage %]" title="[% g('%s Homepage', organisation) %]">[% organisation %]</a>
   &gt;&gt; <a href="[% packages_homepage %]" title="[% g('%s Packages Homepage', organisation) %]">[% g('Packages') %]</a>
  [% END %]
  </div> <!-- end navbar -->
  
 -</div> <!-- end header -->
 -<div id="outer">
 -<div id="inner">
 +<div class="inside">
 +<div id="content" class="">
 +<div class="documentContent" id="region-content">
  
  [%- IF page_title %]
 -  <h1>[% page_title %]</h1>
 +  <h1 class="documentFirstHeading">[% page_title %]</h1>
    [%- PROCESS 'html/messages.tmpl' -%]
  [% END -%]
diff --combined templates/html/show.tmpl
index 19c0f08fc5d135b25beea9c5bd19d97d3dbdc671,ef049a5b41196e79e2ce7290fbdb67ab08e78196..b1098e7999a431525fe39be309cccb9c7b8ab382
  <h2>[% g('Links for %s', pkg) %]</h2>
  <h3>[% g('%s Resources:', organisation) %]</h3>
  <ul>
 -<li><a href="[% (is_source ? src_bugs_url : bugs_url) _ pkg %]">[% g('Bug Reports') %]</a></li>
 -
 -[% IF src.pkg -%]
 -<li><a href="[% pts_url _ src.pkg %]">[% g('Developer Information (PTS)') %]</a></li>
 -[% ELSIF is_source %]
 -<li><a href="[% pts_url _ pkg %]">[% g('Developer Information (PTS)') %]</a></li>
 -[%- END %]
 +<li><a href="[% launchpad_url _ (is_source ? pkg : src.pkg) _ '/+bugs' %]">[% g('Bug Reports') %]</a></li>
  
  [% IF files && (!archive or archive == main_archive or archive == 'security') %]
  <li><a href="[% changelogs_url _ files.changelog.path %]">[% g('%s Changelog', organisation) %]</a></li>
    [% END %]
  [% END %]
  
 -[% IF maintainers.size == 1 -%]
 -  <h3>[% g('Maintainer:') %]</h3>
 -[%- ELSE -%]
 -  <h3>[% g('Maintainers:') %]</h3>
 -[%- END %]
 -[%- FOREACH maintainers;
 +[%- BLOCK handle_maintainer;
    mailarchiveurl = '';
    IF (matches = mail.match('^(.*)@lists\.debian\.org$'));
        mailarchiveurl = 'http://lists.debian.org/' _ uri_escape(matches.0) _ '/';
    ELSIF (matches = mail.match('^(.*)@lists\.ubuntu\.com$'));
        mailarchiveurl = 'http://lists.ubuntu.com/archives/' _ uri_escape(matches.0) _ '/';
    END -%]
 -  [%- '<ul>' IF loop.first -%]
 +  [% IF hide_mail %]
 +      <li>[% name | html %]
 +  [% ELSE %]
        <li><a href="mailto:[% mail | html %]">[% name | html %]</a>
 -      (<a href="[% ddpo_url %][% uri_escape(mail) %]" title="[% g("An overview over the maintainer's packages and uploads") %]">[% g('QA&nbsp;Page') %]</a>
 -      [%- IF mailarchiveurl %], <a href="[% mailarchiveurl %]" title="[% g('Archive of the Maintainer Mailinglist') %]">[% g('Mail&nbsp;Archive') %]</a>[% END %])
 +  [% END %]
 +      [%- IF mailarchiveurl %] (<a href="[% mailarchiveurl %]" title="[% g('Archive of the Maintainer Mailinglist') %]">[% g('Mail&nbsp;Archive') %]</a>)[% END %]
        </li>
 -  [%- '</ul>' IF loop.last -%]
 +[% END -%]
 +
 +[%- IF maintainers.size -%]
 +[% IF maintainers.size == 1 -%]
 +  <h3>[% g('Maintainer:') %]</h3>
 +[%- ELSE -%]
 +  <h3>[% g('Maintainers:') %]</h3>
 +[%- END %]
 +[%- FOREACH m IN maintainers;
 +   '<ul>' IF loop.first;
 +   PROCESS handle_maintainer name=m.name mail=m.mail;
 +   '</ul>' IF loop.last;
 + END -%]
 +<p>[% g('Please consider <a href="%s">filing a bug</a> or <a href="%s">asking a question</a> via Launchpad before contacting the maintainer directly.',
 +        "https://bugs.launchpad.net/ubuntu/+source/$src.pkg/+filebug",
 +        "https://answers.launchpad.net/ubuntu/+source/$src.pkg/+addquestion") %]</p>
 +[%- END -%]
 +
 +[%- IF original_maintainers.size -%]
 +[% IF original_maintainers.size == 1 -%]
 +  <h3>[% g('Original Maintainer (usually from Debian):') %]</h3>
 +[%- ELSE -%]
 +  <h3>[% g('Original Maintainers (usually from Debian):') %]</h3>
 +[%- END %]
 +[%- FOREACH m IN original_maintainers;
 +   '<ul>' IF loop.first;
 +   PROCESS handle_maintainer name=m.name mail=m.mail hide_mail=1;
 +   '</ul>' IF loop.last;
 + END -%]
 +<p>[% g('It should generally not be necessary for users to contact the original maintainer.') %]</p>
  [%- END -%]
  
  [% url = page.get_newest('url');
  
  [%# <script type="text/javascript">init_tab_list("ptablist")</script> %]
  
- [%- PROCESS 'html/foot.tmpl' -%]
+ [%- PROCESS 'html/foot.tmpl' page_name=pkg -%]