]> git.pld-linux.org Git - packages/gallery.git/commitdiff
- migrate to apache 2.4 auto/th/gallery-2.3-2
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 15 May 2013 17:02:41 +0000 (19:02 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 15 May 2013 17:02:41 +0000 (19:02 +0200)
- rel 2

gallery-httpd.conf [new file with mode: 0644]
gallery.spec

diff --git a/gallery-httpd.conf b/gallery-httpd.conf
new file mode 100644 (file)
index 0000000..503ea2f
--- /dev/null
@@ -0,0 +1,27 @@
+Alias /gallery /usr/share/gallery
+
+<Directory /usr/share/gallery>
+       Require all granted
+
+       php_value post_max_size         20m
+       php_value upload_max_filesize   20m
+       php_value memory_limit          16m
+       php_value magic_quotes_gpc      off
+       php_value session.save_handler  files
+       php_value register_globals      off
+
+       Options -Indexes +FollowSymLinks
+       <IfModule mod_rewrite.c>
+               RewriteEngine On
+               RewriteBase /gallery/
+
+               RewriteCond %{REQUEST_FILENAME} !-d
+               RewriteRule ^([^\.\?/]+)/([0-9]+)$      /gallery/view_photo.php?set_albumName=$1&index=$2       [QSA]
+               RewriteCond %{REQUEST_FILENAME} !-d
+               RewriteRule ^([^\.\?/]+)/([A-Za-z_0-9\-]+)$     /gallery/view_photo.php?set_albumName=$1&id=$2  [QSA]
+               RewriteCond %{REQUEST_FILENAME} !-d
+               RewriteRule ^([^\.\?/]+)/$      /gallery/$1     [R]
+               RewriteCond %{REQUEST_FILENAME} !-d
+               RewriteRule ^([^\.\?/]+)$       /gallery/view_album.php?set_albumName=$1        [QSA]
+       </IfModule>
+</Directory>
index da459b1713996c446b6cc805ded97ccd23928b0d..5857789a0e4b361700fc6de32742dc829ab6f293 100644 (file)
@@ -5,7 +5,7 @@ Summary:        Web based photo album viewer and creator
 Summary(pl.UTF-8):     Przeglądarka i generator albumów zdjęć w postaci stron WWW
 Name:          gallery
 Version:       2.3
-Release:       1
+Release:       2
 License:       GPL
 Group:         Applications/Publishing
 Source0:       http://dl.sourceforge.net/gallery/%{name}-%{version}-full.tar.gz
@@ -13,6 +13,7 @@ Source0:      http://dl.sourceforge.net/gallery/%{name}-%{version}-full.tar.gz
 #Source0:      http://galleryupdates.jpmullan.com/G2/%{name}-nightly.tar.gz
 Source1:       %{name}-apache.conf
 Source2:       %{name}-lighttpd.conf
+Source3:       %{name}-httpd.conf
 Patch0:                %{name}-setup.patch
 URL:           http://gallery.sourceforge.net/
 BuildRequires: rpmbuild(macros) >= 1.268
@@ -24,6 +25,7 @@ Requires:     webserver(php) >= 4.1.0
 #Suggests:     jhead
 #Suggests:     jpegtran
 #Suggests:     php-gd
+Conflicts:     apache-base < 2.4.0-1
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -79,7 +81,7 @@ cp -a images lib modules themes $RPM_BUILD_ROOT%{_appdir}
 cp -a install upgrade $RPM_BUILD_ROOT%{_appdir}
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
 touch $RPM_BUILD_ROOT%{_sysconfdir}/config.php
 touch $RPM_BUILD_ROOT%{_sysconfdir}/login.txt
@@ -100,10 +102,10 @@ rm -rf $RPM_BUILD_ROOT
 %triggerun -- apache1 < 1.3.37-3, apache1-base
 %webapp_unregister apache %{_webapp}
 
-%triggerin -- apache < 2.2.0, apache-base
+%triggerin -- apache-base
 %webapp_register httpd %{_webapp}
 
-%triggerun -- apache < 2.2.0, apache-base
+%triggerun -- apache-base
 %webapp_unregister httpd %{_webapp}
 
 %triggerin -- lighttpd
This page took 0.079279 seconds and 4 git commands to generate.