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

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


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

    - migrated to apache 2.4

 horde-nic.spec              | 12 +++++++-----
 nic.conf => nic-apache.conf |  0
 nic-httpd.conf              | 14 ++++++++++++++
 3 files changed, 21 insertions(+), 5 deletions(-)
---
diff --git a/horde-nic.spec b/horde-nic.spec
index 4098b5f..e1afdce 100644
--- a/horde-nic.spec
+++ b/horde-nic.spec
@@ -2,7 +2,7 @@
 %define	_hordeapp nic
 %define	_snap	2007-03-15
 #define	_rc		rc1
-%define	_rel	2
+%define	_rel	3
 
 %include	/usr/lib/rpm/macros.php
 Summary:	NIC is a suite of simple network utilities
@@ -14,7 +14,8 @@ License:	BSD/GPL
 Group:		Applications/WWW
 Source0:	ftp://ftp.horde.org/pub/snaps/%{_snap}/%{_hordeapp}-HEAD-%{_snap}.tar.gz
 # Source0-md5:	7ff2eced2da9db82277bd875a83afb72
-Source1:	%{_hordeapp}.conf
+Source1:	%{_hordeapp}-apache.conf
+Source2:	%{_hordeapp}-httpd.conf
 URL:		http://www.horde.org/nic/
 BuildRequires:	rpm-php-pearprov >= 4.0.2-98
 BuildRequires:	rpmbuild(macros) >= 1.264
@@ -22,6 +23,7 @@ BuildRequires:	tar >= 1:1.15.1
 Requires:	apache(mod_access)
 Requires:	horde >= 3.0
 Requires:	webapps
+Conflicts:	apache-base < 2.4.0-1
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -90,7 +92,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
@@ -115,10 +117,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/nic.conf b/nic-apache.conf
similarity index 100%
rename from nic.conf
rename to nic-apache.conf
diff --git a/nic-httpd.conf b/nic-httpd.conf
new file mode 100644
index 0000000..533eb87
--- /dev/null
+++ b/nic-httpd.conf
@@ -0,0 +1,14 @@
+<Directory "/usr/share/horde/nic/config">
+    Require all denied
+</Directory>
+<Directory "/usr/share/horde/nic/lib">
+    Require all denied
+</Directory>
+<Directory "/usr/share/horde/nic/locale">
+    Require all denied
+</Directory>
+<Directory "/usr/share/horde/nic/templates">
+    Require all denied
+</Directory>
+
+# vim: filetype=apache ts=4 sw=4 et
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/horde-nic.git/commitdiff/96647293e9f04804e075d10d04d8518063806396



More information about the pld-cvs-commit mailing list