SPECS (DEVEL): cvsweb.spec - added possible mod_perl configuration

glen glen at pld-linux.org
Sat Jun 18 16:59:03 CEST 2005


Author: glen                         Date: Sat Jun 18 14:59:03 2005 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- added possible mod_perl configuration

---- Files affected:
SPECS:
   cvsweb.spec (1.21.2.8 -> 1.21.2.9) 

---- Diffs:

================================================================
Index: SPECS/cvsweb.spec
diff -u SPECS/cvsweb.spec:1.21.2.8 SPECS/cvsweb.spec:1.21.2.9
--- SPECS/cvsweb.spec:1.21.2.8	Sat Jun 18 16:36:57 2005
+++ SPECS/cvsweb.spec	Sat Jun 18 16:58:58 2005
@@ -4,7 +4,7 @@
 Summary(pl):	Wizualny (WWW) interfejs do przeglądania repozytorium cvs
 Name:		cvsweb
 Version:	3.0.5
-Release:	0.13
+Release:	0.14
 Epoch:		1
 License:	BSD
 Group:		Development/Tools
@@ -24,9 +24,9 @@
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define _sysconfdir	/etc/%{name}
-%define _appdir		%{_datadir}/%{name}
-%define _cgibindir	%{_libdir}/cgi-bin
+%define		_sysconfdir	/etc/%{name}
+%define		_appdir		%{_datadir}/%{name}
+%define		_cgibindir	%{_libdir}/cgi-bin
 
 %description
 CVSweb is a WWW interface for CVS repositories with which you can
@@ -70,15 +70,25 @@
 
 install %{name}.conf	$RPM_BUILD_ROOT%{_sysconfdir}
 echo '# vim:syn=perl' >> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
-#install samples/cvsweb-httpd.conf $RPM_BUILD_DIR%{_sysconfdir}/%{name}/apache.conf
 
-# "a configuration snippet" suitable for apache{1,2}, boa(?).
-# /etc/httpd directory should be common for all webservers (for such "snippets") and their own
-# configuration files should be moved to /etc/{apache{1,2},boa} directories.
-# "here ducuments" are prefered for small configuration files:
 cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
-Alias /%{name} %{_appdir}
+Alias /%{name}/ %{_appdir}/
 ScriptAlias /cgi-bin/%{name}.cgi %{_cgibindir}/%{name}.cgi
+
+<Location /cgi-bin/cvsweb.cgi>
+   # See also $charset in cvsweb.conf.
+   #AddDefaultCharset UTF-8
+
+   # mod_perl >= 1.99:
+   <IfModule mod_perl.c>
+	   SetHandler perl-script
+	   PerlResponseHandler ModPerl::Registry
+	   PerlOptions +ParseHeaders
+	   Options ExecCGI
+   </IfModule>
+</Location>
+
+# vim: filetype=apache ts=4 sw=4 et
 EOF
 
 %clean
@@ -138,6 +148,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.21.2.9  2005/06/18 14:58:58  glen
+- added possible mod_perl configuration
+
 Revision 1.21.2.8  2005/06/18 14:36:57  glen
 - configs moved to /etc/cvsweb
 - apache configs are triggered
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/cvsweb.spec?r1=1.21.2.8&r2=1.21.2.9&f=u




More information about the pld-cvs-commit mailing list