[packages/lms] - migrated to apache 2.4
baggins
baggins at pld-linux.org
Wed May 15 22:29:19 CEST 2013
commit 885f795ce4cd76d3376ba6dcc2632c702b935f25
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed May 15 22:29:17 2013 +0200
- migrated to apache 2.4
lms.conf => lms-apache.conf | 1 +
lms-httpd.conf | 6 ++++++
lms.spec | 22 ++++++++++++----------
3 files changed, 19 insertions(+), 10 deletions(-)
---
diff --git a/lms.spec b/lms.spec
index 5365712..e448e8a 100644
--- a/lms.spec
+++ b/lms.spec
@@ -13,14 +13,15 @@ Summary: LAN Managment System
Summary(pl.UTF-8): System Zarządzania Siecią Lokalną
Name: lms
Version: %{lmsver}.%{lmssubver}
-Release: 5
+Release: 6
License: GPL v2
Group: Networking/Utilities
Source0: http://www.lms.org.pl/download/%{lmsver}/%{name}-%{version}.tar.gz
# Source0-md5: 294899358ae2585a4030580d79a06ee8
-Source1: %{name}.conf
-Source2: %{name}.init
-Source3: %{name}.sysconfig
+Source1: %{name}.init
+Source2: %{name}.sysconfig
+Source3: %{name}-apache.conf
+Source4: %{name}-httpd.conf
Patch0: %{name}-PLD.patch
Patch1: %{name}-amd64.patch
Patch2: %{name}-smarty.patch
@@ -46,6 +47,7 @@ Requires: webapps
Requires: webserver(access)
Requires: webserver(alias)
Requires: webserver(php)
+Conflicts: apache-base < 2.4.0-1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/%{name}
@@ -235,8 +237,8 @@ cp -a bin/* $RPM_BUILD_ROOT%{_sbindir}
%{__mv} $RPM_BUILD_ROOT{%{_lmsdir}/sample/%{name}.ini,%{_sysconfdir}}
-install %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
-install %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
+install %{SOURCE3} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
+install %{SOURCE4} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
# sqlpanel
%{__mv} $RPM_BUILD_ROOT%{_lmsdir}/{contrib/sqlpanel/sql*.php,modules}
@@ -252,8 +254,8 @@ install daemon/modules/*/*.so $RPM_BUILD_ROOT%{_libdir}/%{name}
for module in dns ggnotify notify; do
cp -a daemon/modules/$module/sample $RPM_BUILD_ROOT%{_sysconfdir}/modules/$module
done
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/lmsd
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/lmsd
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
%endif
#userpanel
@@ -288,10 +290,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/lms.conf b/lms-apache.conf
similarity index 99%
rename from lms.conf
rename to lms-apache.conf
index 6bf3319..9dd85fd 100644
--- a/lms.conf
+++ b/lms-apache.conf
@@ -1,4 +1,5 @@
Alias /lms /usr/share/lms/www
+
<Directory /usr/share/lms/www>
Allow from all
php_admin_value open_basedir "/etc/lms/:/usr/share/lms/:/var/lib/lms/:/usr/share/php/:/proc/:/bin/:/usr/bin/"
diff --git a/lms-httpd.conf b/lms-httpd.conf
new file mode 100644
index 0000000..1c3aeab
--- /dev/null
+++ b/lms-httpd.conf
@@ -0,0 +1,6 @@
+Alias /lms /usr/share/lms/www
+
+<Directory /usr/share/lms/www>
+ Require all granted
+ php_admin_value open_basedir "/etc/lms/:/usr/share/lms/:/var/lib/lms/:/usr/share/php/:/proc/:/bin/:/usr/bin/"
+</Directory>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lms.git/commitdiff/885f795ce4cd76d3376ba6dcc2632c702b935f25
More information about the pld-cvs-commit
mailing list