--- /dev/null
+<Directory /usr/share/cgit>
+ AllowOverride None
+ Allow from All
+</Directory>
+
+# Version 1 (default): under /cgi-bin/cgit.cgi address
+ScriptAlias /cgi-bin/cgit.cgi /usr/lib/cgi-bin/cgit.cgi
+Alias /cgit/ /usr/share/cgit/
+<Location /cgi-bin/cgit.cgi>
+ Allow from All
+</Location>
+
+# Version 2: cgit as a handler to whole vhost:
+#<VirtualHost *:80>
+# ServerName cgit
+#
+# Alias /cgit/ /usr/share/cgit/
+# DocumentRoot /usr/lib/cgi-bin/cgit.cgi
+# <Location />
+# Options ExecCGI
+# Allow from All
+# </Location>
+#</VirtualHost>
Summary(pl.UTF-8): cgit - szybki interfejs WWW do gita
Name: cgit
Version: 0.8.3.4
-Release: 1
+Release: 2
License: GPL v2
Group: Development/Tools
Source0: http://hjemli.net/git/cgit/snapshot/%{name}-%{version}.tar.bz2
# Source0-md5: 712e4d3013d754aa5752e0101188cf32
Source1: %{name}.conf
Source2: %{name}-repo.conf
-Source3: %{name}-httpd.conf
+Source3: %{name}-apache.conf
+Source4: %{name}-httpd.conf
Patch0: %{name}-system-git.patch
Patch1: %{name}-override-cflags.patch
URL: http://hjemli.net/git/cgit
BuildRequires: openssl-devel
BuildConflicts: zlib-devel = 1.2.5-1
Requires: webapps
+Conflicts: apache-base < 2.4.0-1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define webapp cgit
install %{SOURCE1} $RPM_BUILD_ROOT%{webappdir}
install %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}
install %{SOURCE3} $RPM_BUILD_ROOT%{webappdir}/apache.conf
-install %{SOURCE3} $RPM_BUILD_ROOT%{webappdir}/httpd.conf
+install %{SOURCE4} $RPM_BUILD_ROOT%{webappdir}/httpd.conf
%clean
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}
%files