From: Don Armstrong Date: Sat, 31 May 2014 01:58:21 +0000 (+0000) Subject: * Create var/cache/www and make it writable by www-data (Closes: #710281) X-Git-Tag: debian/1.0.2-5~13 X-Git-Url: https://git.donarmstrong.com/deb_pkgs/libapache-gallery-perl.git?p=deb_pkgs%2Flibapache-gallery-perl.git;a=commitdiff_plain;h=9cc9cdcf38c1ee45495887d805dd0c8358ff1385 * Create var/cache/www and make it writable by www-data (Closes: #710281) Thanks to Bdale for noticing this. * Do not attempt to delete /var/cache/www (Closes: #747260) Thanks to Andy Spiers for the patch. * Update standards version to 3.9.5 (no changes). * Add rudimentary support for mp4 files (Closes: #704000). Thanks to Andres Salomon for the patch. git-svn-id: file:///srv/don_svn/deb_pkgs/libapache-gallery-perl/trunk@724 8f7917da-ec0b-0410-a553-b9b0e350d17e --- diff --git a/debian/changelog b/debian/changelog index 47d67d3..28eb866 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,15 @@ +libapache-gallery-perl (1.0.2-3) unstable; urgency=medium + + * Create var/cache/www and make it writable by www-data (Closes: #710281) + Thanks to Bdale for noticing this. + * Do not attempt to delete /var/cache/www (Closes: #747260) + Thanks to Andy Spiers for the patch. + * Update standards version to 3.9.5 (no changes). + * Add rudimentary support for mp4 files (Closes: #704000). + Thanks to Andres Salomon for the patch. + + -- Don Armstrong Fri, 30 May 2014 18:53:18 -0700 + libapache-gallery-perl (1.0.2-2) unstable; urgency=low * Rewrite path to icons in request diff --git a/debian/control b/debian/control index 307ca59..2cf41ef 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,7 @@ Build-Depends-Indep: perl, libmodule-build-perl, sharutils, libimage-size-perl, libimage-info-perl, libtemplate-perl, libimage-imlib2-perl, libtext-template-perl Build-Depends: debhelper (>= 8) -Standards-Version: 3.9.2 +Standards-Version: 3.9.5 Package: libapache-gallery-perl Architecture: all diff --git a/debian/cron.daily b/debian/cron.daily index 0fe36db..3a80f98 100644 --- a/debian/cron.daily +++ b/debian/cron.daily @@ -17,7 +17,7 @@ if [ -d "$cachedir" ]; then # remove empty directories start-stop-daemon --start --pidfile /dev/null --startas /bin/sh \ --oknodo --chuid "$user" -- -c \ - "find '$cachedir' -depth -type d -print0 | \ + "find '$cachedir' -mindepth 1 -depth -type d -print0 | \ xargs -r0 rmdir --ignore-fail-on-non-empty" fi diff --git a/lib/Apache/Gallery.pm b/lib/Apache/Gallery.pm index e02bee9..c9a78d2 100644 --- a/lib/Apache/Gallery.pm +++ b/lib/Apache/Gallery.pm @@ -187,10 +187,9 @@ sub handler { my $doc_pattern = $r->dir_config('GalleryDocFile'); unless ($doc_pattern) { - $doc_pattern = '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|ogg|pdf|rtf|wav|dlt|txt|html?|csv|eps)$' + $doc_pattern = '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|mp4|ogg|pdf|rtf|wav|dlt|txt|html?|csv|eps)$' } - my $img_pattern = $r->dir_config('GalleryImgFile'); - unless ($img_pattern) { + my $img_pattern = $r->dir_config('GalleryImgFile') unless ($img_pattern) { $img_pattern = '\.(jpe?g|png|tiff?|ppm)$' } @@ -1833,7 +1832,7 @@ Pattern matching the files you want Apache::Gallery to view in the index as normal files. All other filetypes will still be served by Apache::Gallery but are not visible in the index. -The default is '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|ogg|pdf|rtf|wav|dlt|txt|html?|csv|eps)$' +The default is '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|mp4|ogg|pdf|rtf|wav|dlt|txt|html?|csv|eps)$' =item B