]> git.deb.at Git - deb/packages.git/commitdiff
Merge branch 'master' into ubuntu-master
authorFrank Lichtenheld <frank@lichtenheld.de>
Thu, 21 Feb 2008 13:51:40 +0000 (14:51 +0100)
committerFrank Lichtenheld <frank@lichtenheld.de>
Thu, 21 Feb 2008 13:51:40 +0000 (14:51 +0100)
Conflicts:

templates/config.tmpl

1  2 
conf/apache.conf.sed.in
static/index.tmpl
templates/config.tmpl
templates/html/foot.tmpl
templates/html/head.tmpl

diff --combined conf/apache.conf.sed.in
index c79e41ec4fc000b7bdcda1b71c43b3eaa94a0a7f,eba66647e2b9b35d243e56f9445e64df864bc0d4..10e2521e23acfc8bea994f52afc45126e3baaa69
@@@ -9,8 -9,9 +9,9 @@@
    # Nice caching..
    ExpiresActive On
    ExpiresDefault "access plus 1 day"
-   ExpiresByType image/gif "access plus 1 week"
-   ExpiresByType image/jpeg "access plus 1 week"
+   ExpiresByType image/gif  "modification plus 1 year"
+   ExpiresByType image/jpeg "modification plus 1 year"
+   ExpiresByType image/png  "modification plus 1 year"
  
    # language stuff
    # you need to keep this in sync with lib/Packages/I18N/Locale.pm
  </Directory>
  
  <VirtualHost *>
 -   ServerAdmin webmaster@debian.org
 +   ServerAdmin frank@lichtenheld.de
     DocumentRoot %TOPDIR%/www/
     ServerName %SITE%
     ErrorLog /var/log/apache2/%SITE%-error.log
     CustomLog /var/log/apache2/%SITE%-access.log combined
  
 -   Alias /cgi-bin/ %TOPDIR%/cgi-bin/
 +   ScriptAlias /cgi-bin/ %TOPDIR%/cgi-bin/
    
     PerlModule ModPerl::Registry
     PerlTaintCheck On
     RewriteRule ^/changelogs/ - [L]
     RewriteRule ^/Pics/ - [L]
     RewriteRule ^/about/ - [L]
 +   RewriteRule ^/ubuntu/ - [L]
     RewriteRule ^/[^/]+\.css - [L]
     RewriteRule ^/[^/]+\.js - [L]
+    RewriteRule ^/favicon.ico$ - [L]
  
  #   RewriteRule ^/$ http://www.debian.org/distrib/packages
     RewriteRule ^/$ /index.html [L]
  #   RewriteRule . /index.html
  
  </VirtualHost>
 +
 +<VirtualHost *>
 +   ServerAdmin frank@lichtenheld.de
 +   DocumentRoot %TOPDIR%/www/
 +   ServerName packages.ubuntu.net
 +   ServerAlias packages.ubuntulinux.org
 +   ErrorLog /var/log/apache2/%SITE%-error.log
 +   CustomLog /var/log/apache2/%SITE%-access.log combined
 +
 +   ScriptAlias /cgi-bin %TOPDIR%/cgi-bin/
 +
 +   RedirectMatch permanent (.*) http://%SITE%$1
 +</VirtualHost>
 +
diff --combined static/index.tmpl
index 8932134327d28f6481497380c7031d396cfb9f96,4d2b38a744fea147157d183625afe2e8d70e6ace..22e8cd10ff6915967338dfecc241893e26af08ad
@@@ -4,22 -4,20 +4,22 @@@
        keywords = "$organisation, Packages"
  -%]
  [%-
 -    all_suites = [ 'sarge', 'sarge-volatile', 'sarge-backports',
 -                 'etch', 'etch-m68k', 'etch-volatile', 'etch-backports',
 -                 'lenny', 'sid' ]
 -    version_numbers = { sarge => '3.1',
 -                      etch   => '4.0' }
 -    current_release = 'etch'
 -    all_sections = [ 'main', 'contrib', 'non-free' ]
 -    all_architectures = [ 'alpha', 'arm', 'armel', 'amd64', 'hppa', 'i386',
 -                        'ia64', 'kfreebsd-amd64', 'kfreebsd-i386', 'mips',
 -                        'mipsel', 'powerpc', 's390', 'sparc' ]
 +    all_suites = [ 'dapper', 'dapper-updates', 'dapper-backports',
 +                 'edgy', 'edgy-updates', 'edgy-backports',
 +                 'feisty', 'feisty-updates', 'feisty-backports',
 +                 'gutsy', 'gutsy-updates', 'gutsy-backports',
 +                 'hardy' ]
 +    version_numbers = { dapper => '6.06LTS',
 +                      edgy   => '6.10',
 +                      feisty => '7.04',
 +                      gutsy  => '7.10' }
 +    current_release = 'gutsy'
 +    all_sections = [ 'main', 'multiverse', 'restricted', 'universe' ]
 +    all_architectures = [ 'i386', 'amd64', 'powerpc' ]
  -%]
  
  <p>This site provides you with information about all the packages
- available in the <a href="[% homepage %]">[% organisation %]</a>
+ available in the <a href="[% project_homepage %]">[% organisation %]</a>
  Package archive.
  
  <p><em>Please contact <a href="mailto:[% admin.mail %]">[% admin.name %]</a>
@@@ -126,191 -124,6 +126,191 @@@ Display
  </select>
  </form>
  
 +<hr>
 +<h2>News</h2>
 +<dl>
 +<dt>2008-02-19</dt>
 +<dd>
 +<p>Switched packages.ubuntu.com to the newer codebase that also runs
 +on packages.debian.org. The two most important changes for users
 +are that most pages are now generated dynamically (which makes
 +for faster updates and more flexibility) and that the search
 +functions should be much faster now.
 +<p>Still waiting for a volunteer that optimizes the used stylesheets,
 +I myself have not much talent in this area...
 +</dd>
 +<dt>2007-10-21</dt>
 +<dd>
 +Add hardy.
 +</dd>
 +<dt>2007-10-18</dt>
 +<dd>
 +Change default release to gutsy.
 +</dd>
 +<dt>2007-07-28</dt>
 +<dd>
 +Drop old releases since they also got dropped from archive.ubuntu.com.
 +</dd>
 +<dt>2007-04-29</dt>
 +<dd>
 +Feisty is released. Pages updated accordingly.
 +</dd>
 +<dt>2006-11-20</dt>
 +<dd>
 +<ul>
 +<li>The hard drive of the server was replaced today after it began to act
 +up. Most stuff should be up and running again. I accidentally deleted the
 +info about new packages though, so that will be not reliable for the next
 +few days.
 +<li>Added edgy-backports to the homepage and the search forms
 +</ul>
 +</dd>
 +<dt>2006-10-29</dt>
 +<dd>
 +<ul>
 +<li>Add feisty. The changes for the edgy release were already done some days ago.
 +</ul>
 +</dd>
 +<dt>2006-10-18</dt>
 +<dd>
 +<ul>
 +<li>The "Bug reports" links now correctly point to Launchpad for all packages.
 +Thanks to all the people that reported this error to me.
 +<li>I added an <code>robots.txt</code> to ban some people trying to
 +mirror the site by means of <code>wget -r</code>. If forever reason
 +you need to mirror the site please contact me by mail so we can do
 +this by other means that won't stress the server as much.
 +</ul>
 +</dd>
 +<dt>2006-06-12</dt>
 +<dd>
 +Finally make dapper the default for searches and add edgy. Sorry for the delay.
 +</dd>
 +<dt>2006-01-17</dt>
 +<dd>
 +I hope everyone had a good start into the new year. Some small status
 +updates:
 +<ul>
 +<li>While looking at the log statistics I noticed that apparently
 +<code>packages.ubuntulinux.org</code> also points to my server
 +without me knowing. I fixed the apache configuration so that it now
 +knows about that and handles it correctly.</li>
 +<li>Linking to a CSS file on the official Ubuntu homepage
 +was a bad idea and the page had some glitches when it disappeared.
 +Most of the issues should be fixed by now.</li>
 +<li>Sorry for any performance issues with the site. My little server
 +is not always able to handle the many hits of this site (close to
 +2,000,000 per month). I guess I will have to search for another
 +hosting solution in the near future.</li>
 +</ul>
 +</dd>
 +<dt>2005-10-13</dt>
 +<dd>
 +Changed all defaults to point to breezy
 +</dd>
 +<dt>2005-09-28</dt>
 +<dd>
 +<ul>
 +<li>The contents files are updated again, so I removed any warnings
 +and added the appropriate links back</li>
 +<li>The "Check for bug reports" links now point to Launchpad for
 +universe/multiverse packages. Suggested by
 +<tt>j -at- bootlab -dot- org</tt>.
 +<li>Finally, I migrated to the "new" layout. Comments and Patches
 +about the remaining quirks welcome.
 +</ul>
 +</dd>
 +<dt>2005-09-25</dt>
 +<dd>
 +I've merged the new changelog to HTML conversion code from the Debian
 +branch. I still have no idea how to handle the requests to link Ubuntu
 +bugs to the Ubuntu BTS and Debian bugs to the Debian BTS. Suggestions
 +welcome.
 +</dd>
 +<dt>2005-08-30</dt>
 +<dd>
 +<ul>
 +<li>I've added a warning to this site about the outdated Contents
 +files in the Ubuntu archive which make the contents search completely
 +useless for anything after warty. I've actually no idea whom to ask
 +about this since I don't seem to be able to find out on the Ubuntu
 +web site who is ftp-master in Ubuntu?</li>
 +<li>You can now also browse the packages from
 +<a href="hoary-backports/">hoary-backports</a></li>
 +</ul>
 +</dd>
 +<dt>2005-06-10</dt>
 +<dd>
 +I have begun to work on integrating the current Ubuntu web design with
 +my pages. There are still some issues to work out but as a teaser I
 +already converted the front page. Feel free to mail me with comments
 +on how I could use the new layout better.
 +</dd>
 +<dt>2005-04-14</dt>
 +<dd>
 +hoary is released and now this fact is also beginning to show on this
 +page. Please report all errors you find with the new breezy pages.
 +</dd>
 +<dt>2005-04-06</dt>
 +<dd>
 +The transition should be completed by now and I've installed some
 +rewrite rules so that old URLs should also point to the new location.
 +The changelog extraction script is still running so there are still
 +some (more) broken links. Please report all other problems you might
 +encounter.
 +</dd>
 +<dt>2005-04-05</dt>
 +<dd>
 +From tomorrow on this site will be available at <a
 +href="http://packages.ubuntu.com/">packages.ubuntu.com</a>.
 +The necessary setup is done on both my side and on the side of the
 +ubuntu people but I will use the occasion for some configuration
 +clean-up and a full rebuild. Stay tuned <tt>;)</tt>
 +</dd>
 +<dt>2005-04-02</dt>
 +<dd>
 +<ul>
 +<li>On request of the MOTUs I've added links to the build logs for
 +hoary packages.</li>
 +<li>Also, the Portuguese LoCoTeam (hmm, Ubuntu teams have
 +all very l33t names ;) asked me
 +how to translate the pages. Here my answer:
 +
 +<blockquote style="font-family: monospace">
 +<p>At http://cvs.infodrom.org/packages.debian.org/po/?cvsroot=debian.de
 +you can find some .pot files. Please translate them and send them back
 +to me (You may want to take a look at the translations available at
 +http://cvs.debian.org/webwml/portuguese/po/?cvsroot=webwml
 +especially for files like langs.pot). This will ensure that at least
 +the constant strings on all the pages are translated (Some of the
 +strings in these file are only needed on packages.debian.org)</p>
 +
 +<p>The translations of package descriptions I took from the DDTP (Debian
 +Descriptions Translation Project) which seems to be rather inactive
 +lately. Unless this is fully revived or another similar project is
 +created there is little I can do on this front.</p>
 +</blockquote>
 +</li>
 +<li>Thanks to all people that provided me with positive feedback about
 +these pages.</li>
 +</ul>
 +</dd>
 +<dt>2005-03-02</dt>
 +<dd>I talked briefly with Daniel Silverstone of Canonical at
 +<a href="http:://www.fosdem.org">FOSDEM</a>. He said that Ubuntu
 +will get his own Packages page, but <q>It will be a while</q>.</dd>
 +<dt>2005-01-24</dt>
 +<dd>In the last two days there were several reboots of the server
 +needed (kernel upgrades, activation and testing of a new rescue
 +system). Sorry for any inconviences this caused.</dd>
 +<dt>2005-01-11</dt>
 +<dd>There are changelogs and copyright files available now. I also
 +added links to the Ubuntu bugzilla, but I'm not sure yet that they
 +work completly. Feedback welcome. (Changelogs and copyright files
 +may be missing for some packages since I can only mirror the
 +i386 and powerpc debs due to space constraints)</dd>
 +</dl>
 +
  [% PROCESS 'html/foot.tmpl'
        langs.size = 0
        copyright.years = '1997 - 2007' %]
diff --combined templates/config.tmpl
index 8cc3a273d37a42bb33f0b087a15d94c78efd03f5,e4ccf7210df2a181afd7048e4d45b635413d746e..d08c26a7df0a3360719cb1270c017359260ae966
@@@ -3,58 -3,55 +3,58 @@@
     po_lang = 'en'
     ddtp_lang = 'en'
  
 -   organisation = 'Debian'
 -   project_homepage = 'http://www.debian.org/'
 -   packages_homepage = 'http://packages.debian.net/'
 +   organisation = 'Ubuntu'
-    homepage = 'http://www.ubuntu.com/'
++   project_homepage = 'http://www.ubuntu.com/'
 +   packages_homepage = 'http://packages.ubuntu.com/'
     searchformurl = packages_homepage
     search_url = '/'
     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 = homepage _ 'intro/cn'
 -   cn_help_url = project_homepage _ 'intro/cn'
++#   cn_help_url = project_homepage _ 'intro/cn'
     logo = {
-       url => homepage,
+       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 => homepage _ 'legal'
 -      url => project_homepage _ 'license'
++      url => project_homepage _ 'legal'
     }
     trademark = {
        name => copyright.name,
-       url => homepage _ 'trademark'
+       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 => homepage _ 'support',
++        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') }
 +                 txt => 'Site switched to completly new codebase. Please report any problems.' }
 +#   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('.'),
diff --combined templates/html/foot.tmpl
index a7b5a5aca03fe391ad766c2b8f258a59e2db889f,a6705db1634019603ddd9ac501cbf936e059fd80..8ddf007586639629b23340f140c0387f9380fa93
@@@ -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 %]
  [%- 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 %]
  
  <hr class="hidecss">
- <p [%- ' class="bordertop"' IF langs.size > 0 %]>[% g('Back to:') %] <a href="[% homepage %]">[% g('%s Homepage', organisation) %]</a> || <a href="[% searchformurl %]">[% g('Packages search page') %]</a></p>
+ <p [%- ' class="bordertop"' IF langs.size > 0 %]>[% g('Back to:') %] <a href="[% project_homepage %]">[% g('%s Homepage', organisation) %]</a> || <a href="[% searchformurl %]">[% g('Packages search page') %]</a></p>
  
  <hr class="hidecss">
  <div id="fineprint" class="bordertop">
@@@ -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 c0923f81bafd06352c5d28a4e4a9e01936203bc8,9aed6a27c138e6fa93118c48180cdc56bc7e847a..8fbe1b7d2ebf6de16798133f7dd68000d2667bc2
@@@ -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"' %]
 +<div id="search">
  <form method="GET" action="/search">
  <div id="hpacketsearch">
  [% IF search_field_values.mode %]<input type="hidden" name="mode" value="[% search_field_values.mode %]">[% 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="[% homepage %]" title="[% g('%s Homepage', organisation) %]">[% organisation %]</a>
+  &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>
  [% FOREACH n IN navigation %]
   &gt;&gt; [% IF n.url %]<a href="[% n.url %]" [% IF n.title %]title="[% n.title %]"[% END %]>[% n.name %]</a>[% ELSE %][% n.name %][% END %] 
  [% 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 -%]