]> git.pld-linux.org Git - packages/coppermine-gallery.git/commitdiff
- migrate to apache 2.4 master auto/th/coppermine-gallery-1.4.26-2
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 15 May 2013 16:29:56 +0000 (18:29 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 15 May 2013 16:29:56 +0000 (18:29 +0200)
- rel 2

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

diff --git a/coppermine-gallery-httpd.conf b/coppermine-gallery-httpd.conf
new file mode 100644 (file)
index 0000000..5fc9ea6
--- /dev/null
@@ -0,0 +1,19 @@
+Alias /cpg/albums /var/lib/coppermine-gallery/albums
+Alias /cpg /usr/share/coppermine-gallery
+
+<Directory /usr/share/coppermine-gallery>
+       Require all granted
+       php_admin_value open_basedir "/etc/webapps/coppermine-gallery/:/usr/share/coppermine-gallery/:/var/lib/coppermine-gallery/albums/:/tmp"
+
+# NOTE: if using safe_mode on shared system one can do:
+#      chmod 2300 albums/userpics
+#      chown http:root albums/userpics
+# and uncomment following:
+#      php_admin_value safe_mode_gid On
+# in order to get rid of SILLY_SAFE_MODE and make creating subdirs possible
+
+</Directory>
+<Directory /var/lib/coppermine-gallery/albums>
+       Require all granted
+       php_admin_flag engine Off
+</Directory>
index c08d65efb9b71987c5bc72770d3e3dc42b7baf2d..9ac471830d071609c3ce1cc185f4e08677dfcbbf 100644 (file)
@@ -3,12 +3,13 @@ Summary:      Multi-purpose fully-featured and integrated web picture gallery script
 Summary(pl.UTF-8):     W pełni funkcjonalny skrypt do galerii obrazków na WWW
 Name:          coppermine-gallery
 Version:       1.4.26
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Applications/Publishing
 Source0:       http://dl.sourceforge.net/coppermine/cpg%{version}.zip
 # Source0-md5: d990d54a00a1ced9e69fab18a7a554de
 Source1:       %{name}-apache.conf
+Source2:       %{name}-httpd.conf
 Patch0:                %{name}-typo.patch
 Patch1:                %{name}-pld.patch
 URL:           http://coppermine-gallery.net/
@@ -19,6 +20,7 @@ Requires:     webapps
 Requires:      webserver(php) >= 4.1.0
 #Suggests:     Imagemagick
 #Suggests:     php-gd
+Conflicts:     apache-base < 2.4.0-1
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -92,7 +94,7 @@ cp -a bridge docs images include lang logs plugins sql themes $RPM_BUILD_ROOT%{_
 ln -s /var/lib/%{name}/albums $RPM_BUILD_ROOT%{_appdir}/albums
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 touch $RPM_BUILD_ROOT%{_sysconfdir}/config.inc.php
 touch $RPM_BUILD_ROOT%{_sysconfdir}/install.lock
 
@@ -125,10 +127,10 @@ fi
 %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}
 
 %files
This page took 0.090779 seconds and 4 git commands to generate.