[packages/coppermine-gallery] - migrate to apache 2.4 - rel 2
baggins
baggins at pld-linux.org
Wed May 15 18:30:06 CEST 2013
commit 2bf264ca37b9eeccca30c8150b5a49b06cf8194f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed May 15 18:29:56 2013 +0200
- migrate to apache 2.4
- rel 2
coppermine-gallery-httpd.conf | 19 +++++++++++++++++++
coppermine-gallery.spec | 10 ++++++----
2 files changed, 25 insertions(+), 4 deletions(-)
---
diff --git a/coppermine-gallery.spec b/coppermine-gallery.spec
index c08d65e..9ac4718 100644
--- a/coppermine-gallery.spec
+++ b/coppermine-gallery.spec
@@ -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
diff --git a/coppermine-gallery-httpd.conf b/coppermine-gallery-httpd.conf
new file mode 100644
index 0000000..5fc9ea6
--- /dev/null
+++ b/coppermine-gallery-httpd.conf
@@ -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>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/coppermine-gallery.git/commitdiff/2bf264ca37b9eeccca30c8150b5a49b06cf8194f
More information about the pld-cvs-commit
mailing list