summaryrefslogtreecommitdiff
path: root/www/p5-Apache-Gallery/patches
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>2005-01-23 18:26:39 +0000
committerkim <kim@pkgsrc.org>2005-01-23 18:26:39 +0000
commit26dfc52dbfe4ee8b6287ccd492f4375d60d4f03b (patch)
treeb4a2b3dde5322a03da94d09ecd84a142109f9b98 /www/p5-Apache-Gallery/patches
parent0e4f0eacf978be99d28fe97150e750febd194511 (diff)
downloadpkgsrc-26dfc52dbfe4ee8b6287ccd492f4375d60d4f03b.tar.gz
Upgrade to Apache::Gallery 0.9.1
* Report 404 for HEAD requests to non-existing files or directories * Scale images when they are requested from the cache instead of before the index is displayed. * Sort pictures the same way when viewing images as when viewing directories * New option GalleryUnderscoresToSpaces to convert underscores to spaces in the listing of directories. * Remember choosen width by setting a cookie * Two new configuration options GalleryDocFile and GalleryImgFile that makes it possible to configured which filetypes should be displayed. See the documentation for details. * Switched to use Text::Template instead of CGI::FastTemplate, see the UPGRADE file for details. * Create copyright notices on pictures using truetype fonts instead of png images. Font, color and size can be configured. and various bug fixes.
Diffstat (limited to 'www/p5-Apache-Gallery/patches')
-rw-r--r--www/p5-Apache-Gallery/patches/patch-aa20
1 files changed, 10 insertions, 10 deletions
diff --git a/www/p5-Apache-Gallery/patches/patch-aa b/www/p5-Apache-Gallery/patches/patch-aa
index 9b10a04d96f..37509ca47f3 100644
--- a/www/p5-Apache-Gallery/patches/patch-aa
+++ b/www/p5-Apache-Gallery/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.5 2004/07/10 22:21:40 kim Exp $
+$NetBSD: patch-aa,v 1.6 2005/01/23 18:26:39 kim Exp $
---- lib/Apache/Gallery.pm.orig 2003-09-07 13:28:42.000000000 -0400
-+++ lib/Apache/Gallery.pm 2004-07-10 18:10:49.000000000 -0400
-@@ -206,9 +206,28 @@
+--- lib/Apache/Gallery.pm.orig 2005-01-23 12:02:39.000000000 -0500
++++ lib/Apache/Gallery.pm 2005-01-23 12:06:13.000000000 -0500
+@@ -253,9 +253,28 @@
# Combine directories and files to one listing
my @listing;
@@ -34,7 +34,7 @@ $NetBSD: patch-aa,v 1.5 2004/07/10 22:21:40 kim Exp $
if (@listing) {
-@@ -272,7 +291,7 @@
+@@ -319,7 +338,7 @@
if (-d $thumbfilename) {
my $dirtitle = '';
if (-e $thumbfilename . ".folder") {
@@ -42,8 +42,8 @@ $NetBSD: patch-aa,v 1.5 2004/07/10 22:21:40 kim Exp $
+ $dirtitle = get_filecontent($thumbfilename . ".folder", 1);
}
- $tpl->assign(FILEURL => uri_escape($fileurl, $escape_rule), FILE => ($dirtitle ? $dirtitle : $file));
-@@ -1041,6 +1060,7 @@
+ $dirtitle = $dirtitle ? $dirtitle : $file;
+@@ -1226,6 +1245,7 @@
sub get_filecontent {
my $file = shift;
@@ -51,15 +51,15 @@ $NetBSD: patch-aa,v 1.5 2004/07/10 22:21:40 kim Exp $
open(FH, $file) or return undef;
my $content = '';
{
-@@ -1048,6 +1068,7 @@
- $content = <FH>;
+@@ -1233,6 +1253,7 @@
+ $content = <FH>;
}
close(FH);
+ $content =~ s/\n/<BR>\n/g if $fold;
return $content;
}
-@@ -1145,7 +1166,7 @@
+@@ -1333,7 +1354,7 @@
$dirname = File::Spec->catdir($dirname, $link);
if (-e $dirname . ".folder") {