source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* cvsweb: Switch the order of the name and the section in the $mancgi
@ 2019-03-21 19:32 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-03-21 19:32 UTC (permalink / raw)
  To: source

Log Message:
-----------
Switch the order of the name and the section
in the $mancgi configuration variable.
For the new man.openbsd.org URI syntax, the name must come first.
For the old query syntax, both orders work just fine.

Also switch the default man.cgi site to OpenBSD
because FreeBSD no longer uses CVSweb.

Tags:
----
FreeBSD-cvsweb-2_0-branch

Modified Files:
--------------
    cvsweb:
        cvsweb.cgi
        cvsweb.conf
        cvsweb.conf-freebsd
        cvsweb.conf-netbsd
        cvsweb.conf-openbsd

Revision Data
-------------
Index: cvsweb.cgi
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.cgi,v
retrieving revision 3.119.2.13
retrieving revision 3.119.2.14
diff -Lcvsweb.cgi -Lcvsweb.cgi -u -p -r3.119.2.13 -r3.119.2.14
--- cvsweb.cgi
+++ cvsweb.cgi
@@ -1352,7 +1352,7 @@ sub htmlify($;$) {
 		 }{
 		     my($text, $name, $section) = ($1, $2, defined($3) ? $3 : $4);
 			 ($name =~ /[A-Za-z]/ && $name !~ /\.(:|$)/)
-			     ? &link($text, sprintf($mancgi, $section, $name))
+			     ? &link($text, sprintf($mancgi, $name, $section))
 				 : $text;
 		 }egx;
 			    }
Index: cvsweb.conf-netbsd
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.conf-netbsd,v
retrieving revision 3.7
retrieving revision 3.7.2.1
diff -Lcvsweb.conf-netbsd -Lcvsweb.conf-netbsd -u -p -r3.7 -r3.7.2.1
--- cvsweb.conf-netbsd
+++ cvsweb.conf-netbsd
@@ -65,7 +65,7 @@ $prcgi = "http://www.NetBSD.org/cgi-bin/
 
 $prkeyword = "PR";
 
-$mancgi = "http://www.flame.org/cgi-bin/uncgi/hman?sect=%s&page=%s&arch=i386";
+$mancgi = "http://www.flame.org/cgi-bin/uncgi/hman?page=%s&sect=%s&arch=i386";
 
 # Allow downloading a tarball of a pkgsrc
 $allow_tar = ($where =~ m,^pkgsrc/[^/]+/[^/]+/,);
Index: cvsweb.conf
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.conf,v
retrieving revision 3.36.2.5
retrieving revision 3.36.2.6
diff -Lcvsweb.conf -Lcvsweb.conf -u -p -r3.36.2.5 -r3.36.2.6
--- cvsweb.conf
+++ cvsweb.conf
@@ -81,8 +81,7 @@ $cvstreedefault = $CVSrepositories[2 * 0
 ##############
 # Manual gateway
 ##############
-$mancgi =
-    "http://www.FreeBSD.org/cgi/man.cgi?apropos=0&sektion=%s&query=%s&manpath=FreeBSD+5.0-current&format=html";
+$mancgi = "https://man.openbsd.org/%s.%s";
 
 ##############
 # Defaults for UserSettings
Index: cvsweb.conf-freebsd
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.conf-freebsd,v
retrieving revision 3.7.2.1
retrieving revision 3.7.2.2
diff -Lcvsweb.conf-freebsd -Lcvsweb.conf-freebsd -u -p -r3.7.2.1 -r3.7.2.2
--- cvsweb.conf-freebsd
+++ cvsweb.conf-freebsd
@@ -38,7 +38,7 @@ $prcgi = "http://www.FreeBSD.org/cgi/que
 $prkeyword = "PR";
 
 $mancgi =
-    "http://www.FreeBSD.org/cgi/man.cgi?apropos=0&sektion=%s&query=%s&manpath=FreeBSD+5.0-current&format=html";
+    "http://www.FreeBSD.org/cgi/man.cgi?apropos=0&query=%s&sektion=%s&manpath=FreeBSD+5.0-current&format=html";
 
 # Allow downloading a tarball of a port or a project directory
 $allow_tar = ($where =~ m,^(ports/[^/]+/[^/]+/|projects/[^/]+/),);
Index: cvsweb.conf-openbsd
===================================================================
RCS file: /home/cvs/mandoc/cvsweb/cvsweb.conf-openbsd,v
retrieving revision 3.7
retrieving revision 3.7.2.1
diff -Lcvsweb.conf-openbsd -Lcvsweb.conf-openbsd -u -p -r3.7 -r3.7.2.1
--- cvsweb.conf-openbsd
+++ cvsweb.conf-openbsd
@@ -35,8 +35,7 @@ $prcgi = "http://cvs.openbsd.org/cgi-bin
 
 $prkeyword = "PR";
 
-$mancgi =
-    "http://www.openbsd.org/cgi-bin/man.cgi?apropos=0&sektion=%s&query=%s&manpath=OpenBSD+Current&arch=i386&format=html";
+$mancgi = "https://man.openbsd.org/%s.%s";
 
 # Allow downloading a tarball of a port
 $allow_tar = ($where =~ m,^ports/[^/]+/[^/]+/,);
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-21 19:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-21 19:32 cvsweb: Switch the order of the name and the section in the $mancgi schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).