]> git.pld-linux.org Git - packages/viewvc.git/commitdiff
- migrated to apache 2.4 auto/th/viewvc-1.1.9-2
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 17 May 2013 09:44:53 +0000 (11:44 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 17 May 2013 09:44:53 +0000 (11:44 +0200)
viewvc-apache.conf [new file with mode: 0644]
viewvc-httpd.conf
viewvc.spec

diff --git a/viewvc-apache.conf b/viewvc-apache.conf
new file mode 100644 (file)
index 0000000..7e3de1a
--- /dev/null
@@ -0,0 +1,34 @@
+<Directory /usr/share/viewvc>
+    AllowOverride None
+    Options +FollowSymlinks
+    Allow from all
+</Directory>
+
+# Version1 (default): under /cgi-bin/viewvc.cgi address
+ScriptAlias /cgi-bin/viewvc.cgi /usr/share/viewvc/bin/cgi/viewvc.cgi
+ScriptAlias /cgi-bin/viewvc-query.cgi /usr/share/viewvc/bin/cgi/query.cgi
+
+# if using apache2 mod_python:
+# Alias /viewvc        /usr/share/viewvc/bin/mod_python
+# <Location /viewvc>
+#    Allow from all
+#      <IfModule mod_python.c>
+#              AddHandler mod_python .py
+#              PythonPath "sys.path+['/usr/share/viewvc/bin/mod_python']"
+#              PythonHandler handler
+#              PythonDebug Off
+#      </IfModule>
+# </Location>
+
+# Version 2: viewvc as handler to whole vhost:
+#<VirtualHost *:80>
+#   ServerName cvs
+#
+#   Alias /viewvc/ /usr/share/viewvc
+#   DocumentRoot /usr/share/viewvc/bin/cgi/viewvc.cgi
+#   <Location />
+#       Options ExecCGI
+#       Allow from all
+#   </Location>
+#</VirtualHost>
+
index 7e3de1adbedc48049efc7cddb287717272f47e80..c05fbbb4c748386bb4cd37b477d4009a9588ca63 100644 (file)
@@ -1,7 +1,7 @@
 <Directory /usr/share/viewvc>
     AllowOverride None
     Options +FollowSymlinks
-    Allow from all
+    Require all granted
 </Directory>
 
 # Version1 (default): under /cgi-bin/viewvc.cgi address
@@ -11,7 +11,7 @@ ScriptAlias /cgi-bin/viewvc-query.cgi /usr/share/viewvc/bin/cgi/query.cgi
 # if using apache2 mod_python:
 # Alias /viewvc        /usr/share/viewvc/bin/mod_python
 # <Location /viewvc>
-#    Allow from all
+#    Require all granted
 #      <IfModule mod_python.c>
 #              AddHandler mod_python .py
 #              PythonPath "sys.path+['/usr/share/viewvc/bin/mod_python']"
@@ -28,7 +28,7 @@ ScriptAlias /cgi-bin/viewvc-query.cgi /usr/share/viewvc/bin/cgi/query.cgi
 #   DocumentRoot /usr/share/viewvc/bin/cgi/viewvc.cgi
 #   <Location />
 #       Options ExecCGI
-#       Allow from all
+#       Require all granted
 #   </Location>
 #</VirtualHost>
 
index 2f52105575081dce81a82bfe24f52d97ef7e9f9b..8611c11717b996d859d70321cf407073032dfdb2 100644 (file)
@@ -5,12 +5,13 @@ Summary:      Browser interface for CVS and Subversion version control repositories
 Summary(pl.UTF-8):     Interfejs przeglądarki do repozytoriów systemów kontroli wersji CVS i Subversion
 Name:          viewvc
 Version:       1.1.9
-Release:       1
+Release:       2
 License:       BSD
 Group:         Applications/WWW
 Source0:       http://www.viewvc.org/%{name}-%{version}.tar.gz
 # Source0-md5: 13292307114b0f4bb4fc322597ec8007
-Source1:       %{name}-httpd.conf
+Source1:       %{name}-apache.conf
+Source2:       %{name}-httpd.conf
 URL:           http://www.viewvc.org/
 BuildRequires: python
 BuildRequires: python-modules
@@ -19,6 +20,7 @@ BuildRequires:        rpmbuild(macros) >= 1.268
 Requires:      %{name}-template
 Requires:      webapps
 Obsoletes:     viewcvs
+Conflicts:     apache-base < 2.4.0-1
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -167,7 +169,7 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_webapps}/%{_webapp},%{_appdir},%{_sysconfdir}}
 
 cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
-cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
+cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
 #install lighttpd.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/lighttpd.conf
 
 ./viewvc-install --destdir=$RPM_BUILD_ROOT --prefix=%{_appdir}
@@ -195,10 +197,10 @@ rm -rf $RPM_BUILD_ROOT
 %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}
 
 %if 0
This page took 0.108923 seconds and 4 git commands to generate.