[packages/horde-mnemo] - migrated to apache 2.4

baggins baggins at pld-linux.org
Wed May 15 19:53:59 CEST 2013


commit ccd9e712ff22ed06add8ea0fb02f66fb45ddf191
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed May 15 19:53:58 2013 +0200

    - migrated to apache 2.4

 horde-mnemo.spec                | 12 +++++++-----
 mnemo.conf => mnemo-apache.conf |  2 --
 mnemo-httpd.conf                | 14 ++++++++++++++
 3 files changed, 21 insertions(+), 7 deletions(-)
---
diff --git a/horde-mnemo.spec b/horde-mnemo.spec
index bd8221f..debbde5 100644
--- a/horde-mnemo.spec
+++ b/horde-mnemo.spec
@@ -5,12 +5,13 @@ Summary:	Horde notes and memos application
 Summary(pl.UTF-8):	Aplikacja z notatkami i przypominajkami dla Horde
 Name:		horde-%{hordeapp}
 Version:	2.2.4
-Release:	1
+Release:	2
 License:	GPL
 Group:		Applications/WWW
 Source0:	ftp://ftp.horde.org/pub/mnemo/%{hordeapp}-h3-%{version}.tar.gz
 # Source0-md5:	dd5962bf7131649351d88b42770797cf
-Source1:	%{hordeapp}.conf
+Source1:	%{hordeapp}-apache.conf
+Source2:	%{hordeapp}-httpd.conf
 Patch0:		%{hordeapp}-prefs.patch
 URL:		http://www.horde.org/mnemo/
 BuildRequires:	rpm-php-pearprov >= 4.0.2-98
@@ -18,6 +19,7 @@ BuildRequires:	rpmbuild(macros) >= 1.268
 Requires:	horde >= 3.0
 Requires:	webapps
 Obsoletes:	%{hordeapp}
+Conflicts:	apache-base < 2.4.0-1
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -72,7 +74,7 @@ cp -a docs/CREDITS $RPM_BUILD_ROOT%{_appdir}/docs
 
 ln -s %{_sysconfdir} $RPM_BUILD_ROOT%{_appdir}/config
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -97,10 +99,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/mnemo.conf b/mnemo-apache.conf
similarity index 98%
rename from mnemo.conf
rename to mnemo-apache.conf
index 5187171..5cd3f7d 100644
--- a/mnemo.conf
+++ b/mnemo-apache.conf
@@ -1,5 +1,3 @@
-# $Id$
-
 <Directory "/usr/share/horde/mnemo/config">
     order deny,allow
     deny from all
diff --git a/mnemo-httpd.conf b/mnemo-httpd.conf
new file mode 100644
index 0000000..b52cc36
--- /dev/null
+++ b/mnemo-httpd.conf
@@ -0,0 +1,14 @@
+<Directory "/usr/share/horde/mnemo/config">
+    Require all denied
+</Directory>
+<Directory "/usr/share/horde/mnemo/lib">
+    Require all denied
+</Directory>
+<Directory "/usr/share/horde/mnemo/locale">
+    Require all denied
+</Directory>
+<Directory "/usr/share/horde/mnemo/templates">
+    Require all denied
+</Directory>
+
+# vim: filetype=apache ts=4 sw=4 et
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/horde-mnemo.git/commitdiff/ccd9e712ff22ed06add8ea0fb02f66fb45ddf191



More information about the pld-cvs-commit mailing list