[packages/viewvc] Rel 2. Rewrite 1.1 override sections in a kept viewvc.conf
arekm
arekm at pld-linux.org
Sun Nov 22 02:10:38 CET 2026
commit 8c842b1cd242bfed93671aeb4f92dca5566216cc
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Nov 22 02:07:16 2026 +0100
Rel 2. Rewrite 1.1 override sections in a kept viewvc.conf
ViewVC 1.2 changed [root-x/options] to [root-x|options]; 1.3 silently
ignores the old form, which drops per-root authz-forbidden rules. Run
the trigger for 1.3.0-1 too, its steps are idempotent.
viewvc.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/viewvc.spec b/viewvc.spec
index 8711af1..2063024 100644
--- a/viewvc.spec
+++ b/viewvc.spec
@@ -2,7 +2,7 @@ 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.3.0
-Release: 1
+Release: 2
License: BSD
Group: Applications/WWW
Source0: https://github.com/viewvc/viewvc/releases/download/%{version}/%{name}-%{version}.tar.gz
@@ -210,7 +210,7 @@ rm $RPM_BUILD_ROOT%{_appdir}/viewvc.conf.dist
%clean
rm -rf $RPM_BUILD_ROOT
-%triggerpostun -- %{name} < 1.3.0-1
+%triggerpostun -- %{name} < 1.3.0-2
# skip on downgrade
[ $1 -le 1 ] && exit 0
@@ -225,6 +225,9 @@ sed -i -e 's,^\(template_dir[ \t]*=[ \t]*\)\(templates\|templates-contrib/newvc/
-e 's,^\(docroot[ \t]*=[ \t]*/viewvc/template/\)\(newvc\|viewsvn\)[ \t]*$,\1default,' \
%{_sysconfdir}/viewvc.conf
+# 1.2 changed the override separator, sections like [root-x/options] are ignored
+sed -i -e 's,^\[\(root\|vhost\)-\([^]/|]*\)/\([^]]*\)\],[\1-\2|\3],' %{_sysconfdir}/viewvc.conf
+
# 1.3 decodes content by locale, which is C under httpd
grep -q '^[ \t]*default_encoding[ \t]*=' %{_sysconfdir}/viewvc.conf || \
sed -i -e '/^\[options\][ \t]*$/a default_encoding = utf-8' %{_sysconfdir}/viewvc.conf
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/viewvc.git/commitdiff/8c842b1cd242bfed93671aeb4f92dca5566216cc
More information about the pld-cvs-commit
mailing list