use DB_File;
use Storable;
use File::Path;
+use File::Basename;
use Packages::CommonCode qw(:all);
use Packages::Config qw( $TOPDIR $DBDIR @ARCHIVES @SUITES @ARCHITECTURES );
&Packages::Config::init( './' );
activate($filelist_db);
#FIXME: hardcoded archs. (debports has no contrib/non-free)
if ($arch !~ m/^kfreebsd-.*$/) {
- system("ln", "-sf", $filelist_db,
+ system("ln", "-sf", basename($filelist_db),
"$DBDIR/filelists_${suite}_all.db") == 0
or die "Oops";
}
# 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
RewriteRule ^/ubuntu/ - [L]
RewriteRule ^/[^/]+\.css - [L]
RewriteRule ^/[^/]+\.js - [L]
+ RewriteRule ^/favicon.ico$ - [L]
# RewriteRule ^/$ http://www.debian.org/distrib/packages
RewriteRule ^/$ /index.html [L]
}
our @TAKE_NEWEST = qw( description description-md5 essential priority section subsection tag
- archive source source-version url homepage );
+ archive source source-version homepage );
our @STORE_ALL = qw( version source source-version installed-size size
filename md5sum sha1 sha256 task
origin bugs suite archive section );
-%]
<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>
ddtp_lang = 'en'
organisation = 'Ubuntu'
- homepage = 'http://www.ubuntu.com/'
+ project_homepage = 'http://www.ubuntu.com/'
packages_homepage = 'http://packages.ubuntu.com/'
searchformurl = packages_homepage
search_url = '/'
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'
logo = {
- url => homepage,
+ url => project_homepage,
src => '/Pics/openlogo-nd-25.png',
alt => organisation,
}
years => timestamp.year,
}
license = {
- url => homepage _ 'legal'
+ url => project_homepage _ 'legal'
}
trademark = {
name => copyright.name,
- url => homepage _ 'trademark'
+ url => project_homepage _ 'trademark'
}
contact = {
name => 'Frank Lichtenheld',
mail => 'frank@lichtenheld.de',
- url => homepage _ 'support',
+ url => project_homepage _ 'support',
}
admin = {
name => 'Frank Lichtenheld',
[% 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">
<div class="visualClear"></div>
<div id="pnavbar">
- >> <a href="[% homepage %]" title="[% g('%s Homepage', organisation) %]">[% organisation %]</a>
+ >> <a href="[% project_homepage %]" title="[% g('%s Homepage', organisation) %]">[% organisation %]</a>
>> <a href="[% packages_homepage %]" title="[% g('%s Packages Homepage', organisation) %]">[% g('Packages') %]</a>
[% FOREACH n IN navigation %]
>> [% IF n.url %]<a href="[% n.url %]" [% IF n.title %]title="[% n.title %]"[% END %]>[% n.name %]</a>[% ELSE %][% n.name %][% END %]