From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 6c22c072 for ; Thu, 21 Mar 2019 14:32:38 -0500 (EST) Date: Thu, 21 Mar 2019 14:32:38 -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: Switch the order of the name and the section in the $mancgi X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: 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§=%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