From mboxrd@z Thu Jan 1 00:00:00 1970
Received: from localhost (mandoc.bsd.lv [local])
by mandoc.bsd.lv (OpenSMTPD) with ESMTPA id a787ea87
for ;
Tue, 26 Nov 2019 07:09:32 -0500 (EST)
Date: Tue, 26 Nov 2019 07:09:32 -0500 (EST)
X-Mailinglist: mandoc-source
Reply-To: source@mandoc.bsd.lv
MIME-Version: 1.0
From: schwarze@mandoc.bsd.lv
To: source@mandoc.bsd.lv
Subject: cvsweb: Delete the pointless support for %MIRRORS.
X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/
Content-Type: text/plain; charset=utf-8
Message-ID: <8d0795b7b719f14f@mandoc.bsd.lv>
Log Message:
-----------
Delete the pointless support for %MIRRORS.
CVSweb traffic will never be demanding, and in this day and age,
web servers are powerful enough.
Modified Files:
--------------
cvsweb:
cvsweb.cgi
cvsweb.conf
Revision Data
-------------
Index: cvsweb.cgi
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.cgi,v
retrieving revision 4.26
retrieving revision 4.27
diff -Lcvsweb.cgi -Lcvsweb.cgi -u -p -r4.26 -r4.27
--- cvsweb.cgi
+++ cvsweb.cgi
@@ -57,7 +57,7 @@ use vars qw (
$VERSION $CheckoutMagic $MimeTypes $DEBUG
$config $allow_version_select
@CVSrepositories @CVSROOT %CVSROOT %CVSROOTdescr
- %MIRRORS %DEFAULTVALUE %ICONS %MTYPES
+ %DEFAULTVALUE %ICONS %MTYPES
%DIFF_COMMANDS @DIFFTYPES %DIFFTYPES @LOGSORTKEYS %LOGSORTKEYS
%alltags %fileinfo %tags @branchnames %nameprinted
%symrev %revsym @allrevisions %date %author @revdisplayorder
@@ -167,7 +167,6 @@ sub plural_write($$);
sub readableTime($$);
sub clickablePath($$);
sub chooseCVSRoot();
-sub chooseMirror();
sub fileSortCmp();
sub download_url($$;$);
sub download_link($$$;$);
@@ -195,7 +194,7 @@ $config = '/conf/cvsweb/cvsweb.conf';
######## Configuration parameters #########
-@CVSrepositories = @CVSROOT = %CVSROOT = %MIRRORS = %DEFAULTVALUE = %ICONS =
+@CVSrepositories = @CVSROOT = %CVSROOT = %DEFAULTVALUE = %ICONS =
%MTYPES = %tags = %alltags = %fileinfo = %DIFF_COMMANDS = ();
$logo = $defaulttitle =
@@ -788,9 +787,7 @@ if (-d $fullname) {
# give direct access to dirs
if ($where eq '/') {
- chooseMirror();
chooseCVSRoot();
-
} else {
print '
Current directory: ', clickablePath($where, 0), '';
print "
\n";
@@ -3479,27 +3476,6 @@ Module path or alias:
EOF
-}
-
-
-sub chooseMirror()
-{
- # This code comes from the original BSD-cvsweb
- # and may not be useful for your site; If you don't
- # set %MIRRORS this won't show up, anyway.
- scalar(%MIRRORS) or return;
-
- # Should perhaps exclude the current site somehow...
- print "\n
\nThis CVSweb is mirrored in\n";
-
- my @tmp = map(&link(htmlquote($_), $MIRRORS{$_}), sort keys %MIRRORS);
- my $tmp = pop (@tmp);
-
- if (scalar(@tmp)) {
- print join (', ', @tmp), ' and ';
- }
-
- print "$tmp.\n
\n";
}
Index: cvsweb.conf
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.conf,v
retrieving revision 4.14
retrieving revision 4.15
diff -Lcvsweb.conf -Lcvsweb.conf -u -p -r4.14 -r4.15
--- cvsweb.conf
+++ cvsweb.conf
@@ -57,14 +57,6 @@ $CMD{tar} ||= search_path('tar');
'local' => ['Local Repository', '/cvs'],
);
-# Mirror sites. The keys will be used as link texts, and the values are
-# URLs pointing to the corresponding mirrors.
-#
-#%MIRRORS = (
-# 'Other location' => 'http://192.168.0.1/cgi-bin/cvsweb.cgi/',
-# 'Yet another one' => 'http://192.168.0.2/cgi-bin/cvsweb.cgi/',
-#);
-
# Manual gateway linking. This will be done only for views for which
# $allow_*_extra below is true.
#
--
To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv