<Directory /usr/share/cgit>
AllowOverride None
- Allow from All
+ # Apache 2.x
+ <IfModule !mod_authz_core.c>
+ Order allow,deny
+ Allow from all
+ </IfModule>
+ # Apache 2.4
+ <IfModule mod_authz_core.c>
+ Require all granted
+ </IfModule>
</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
+ # Apache 2.x
+ <IfModule !mod_authz_core.c>
+ Order allow,deny
+ Allow from all
+ </IfModule>
+ # Apache 2.4
+ <IfModule mod_authz_core.c>
+ Require all granted
+ </IfModule>
</Location>
# Version 2: cgit as a handler to whole vhost:
# DocumentRoot /usr/lib/cgi-bin/cgit.cgi
# <Location />
# Options ExecCGI
-# Allow from All
+# # Apache 2.x
+# <IfModule !mod_authz_core.c>
+# Order allow,deny
+# Allow from all
+# </IfModule>
+# # Apache 2.4
+# <IfModule mod_authz_core.c>
+# Require all granted
+# </IfModule>
# </Location>
#</VirtualHost>
-diff --git a/cgit.mk b/cgit.mk
-index 8af0041..35beb03 100644
---- a/cgit.mk
-+++ b/cgit.mk
-@@ -87,5 +87,6 @@ $(CGIT_PREFIX)CGIT-CFLAGS: FORCE
+diff -uNr cgit-0.10.old/cgit.mk cgit-0.10/cgit.mk
+--- cgit-0.10.old/cgit.mk 2014-01-17 16:09:16.000000000 +0100
++++ cgit-0.10/cgit.mk 2014-02-25 15:22:09.208586612 +0100
+@@ -130,6 +130,7 @@
$(CGIT_OBJS): %.o: %.c GIT-CFLAGS $(CGIT_PREFIX)CGIT-CFLAGS $(missing_dep_dirs)
$(QUIET_CC)$(CC) -o $*.o -c $(dep_args) $(ALL_CFLAGS) $(EXTRA_CPPFLAGS) $(CGIT_CFLAGS) $<
-$(CGIT_PREFIX)cgit: $(CGIT_OBJS) GIT-LDFLAGS $(GITLIBS)
+LIBS = -lgit -lgit_xdiff $(EXTLIBS)
+$(CGIT_PREFIX)cgit: $(CGIT_OBJS) GIT-LDFLAGS
- $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
+ @echo 1>&1 " * $(LUA_MESSAGE)"
+ $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) $(CGIT_LIBS)
-#
-# Conditional build
-%bcond_with verbose # verbose build (V=1)
-#
Summary: cgit - a fast webinterface to git
Summary(pl.UTF-8): cgit - szybki interfejs WWW do gita
Name: cgit
-Version: 0.9.2
-Release: 2
+Version: 0.10
+Release: 1
License: GPL v2
Group: Development/Tools
Source0: http://git.zx2c4.com/cgit/snapshot/%{name}-%{version}.tar.xz
-# Source0-md5: fe11018eff8d79caad112f4fac64b90f
+# Source0-md5: 19944c17ecea1b1d1944718ce8ce6b61
Source1: %{name}.conf
Source2: %{name}-repo.conf
Source3: %{name}-apache.conf
-Source4: %{name}-httpd.conf
Patch0: %{name}-system-git.patch
URL: http://git.zx2c4.com/cgit/about/
-BuildRequires: git-core-devel >= 1.8.3
+BuildRequires: git-core-devel >= 1.8.5
BuildRequires: openssl-devel
BuildConflicts: zlib-devel = 1.2.5-1
Requires: webapps
LDFLAGS="%{rpmldflags}" \
LIBDIR=%{_libdir} \
CGIT_CONFIG="%{webappdir}/%{webapp}.conf" \
- CGIT_SCRIPT_PATH="%{cgibindir}" \
- %{?with_verbose:V=1}
+ CGIT_SCRIPT_PATH="%{cgibindir}"
%install
rm -rf $RPM_BUILD_ROOT
# The same CFLAGS as in %build stage has to be passed to avoid
# "new build flags" logic in Makefile
%{__make} install \
+ V=1 \
DESTDIR=$RPM_BUILD_ROOT \
+ prefix=%{_prefix} \
CFLAGS="%{rpmcflags} -I/usr/include/git-core" \
CGIT_CONFIG="%{webappdir}/%{webapp}.conf" \
CGIT_DATA_PATH="%{appdir}" \
- CGIT_SCRIPT_PATH="%{cgibindir}" \
- %{?with_verbose:V=1}
+ CGIT_SCRIPT_PATH="%{cgibindir}"
# cache
install -d $RPM_BUILD_ROOT/var/cache/cgit
install %{SOURCE1} $RPM_BUILD_ROOT%{webappdir}
install %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}
install %{SOURCE3} $RPM_BUILD_ROOT%{webappdir}/apache.conf
-install %{SOURCE4} $RPM_BUILD_ROOT%{webappdir}/httpd.conf
+install %{SOURCE3} $RPM_BUILD_ROOT%{webappdir}/httpd.conf
%clean
rm -rf $RPM_BUILD_ROOT
%dir %{_prefix}/lib/cgit/filters
%attr(755,root,root) %{_prefix}/lib/cgit/filters/about-formatting.sh
%attr(755,root,root) %{_prefix}/lib/cgit/filters/commit-links.sh
-%attr(755,root,root) %{_prefix}/lib/cgit/filters//syntax-highlighting.py
+%attr(755,root,root) %{_prefix}/lib/cgit/filters/email-gravatar.lua
+%attr(755,root,root) %{_prefix}/lib/cgit/filters/email-gravatar.py
+%attr(755,root,root) %{_prefix}/lib/cgit/filters/simple-authentication.lua
+%attr(755,root,root) %{_prefix}/lib/cgit/filters/syntax-highlighting.py
%attr(755,root,root) %{_prefix}/lib/cgit/filters/syntax-highlighting.sh
%{_prefix}/lib/cgit/filters/html-converters