Commit graph

902 commits

Author SHA1 Message Date
Simon L. B. Nielsen
36700687bc Add missing space in From when "building" the PR.
Submitted by:	shaun
PR:		www/113071
Hijacked unrelated PR for patch:	shaun
2007-06-12 20:03:05 +00:00
Simon L. B. Nielsen
09972e0a9b - Send a patch file-name in the HTTP header via the
Content-Disposition header.
- When downloading/referring to a particular patch embed the patch
  number with the PR instead of using two different CGI variables.
  This means that there aren't "&" in the patch URL's anymore which
  makes things simpler for sh(1) like shells, by not requiring quoting
  of URLs when using a command line tool, such as fetch(1), to
  download patches.
- In HTML-ifying of URL's, handle when a URL contains a PR like string
  which can e.g. be seen in PR www/113071.
- Add a comment about how to test script via the command line.

Submitted by:	edwin, shaun
PR:		www/113071
2007-06-12 19:38:30 +00:00
Wolfram Schneider
2d3d75837b A slash is valid character in OS names, eg. OSF1 V4.0/alpha
Submitted by: Warren Block
2007-06-12 19:09:50 +00:00
Ceri Davies
ac8c88109f Accept shar files.
PR:		www/113609
2007-06-12 06:14:34 +00:00
Ceri Davies
6a79bf9903 Correct whitespace issue in error output. 2007-06-12 06:06:41 +00:00
Simon L. B. Nielsen
8e6bba0b80 Fix problem with dosendpr.cgi hanging after a PR has been submitted
where no page was returned to the submitter resulting in many
duplicate PR's.

The pipe to sendmail was just being closed without the nice ".\n" to
tell sendmail this is the end of the mail.  Now we always send "\n.\n"
to be sure the is a standalone "." on a line.

Why this wasn't a problem before, but is now, I'm not really sure, but
it's probably a perl 5.0 -> 5.8 change which triggered this.

If there are still problems after this commit, please report including
PR number(s).

Prodded by:			bugmeister(s)
Co-prodding and testing help:	edwin
Not fixed for far too long by:	simon
2007-05-23 21:53:45 +00:00
Wolfram Schneider
9c74732df0 add OpenBSD 4.0 & OpenBSD 4.1 manual pages. 2007-05-04 21:19:37 +00:00
Wolfram Schneider
84106c53dc fix perl -T warnings for non-standard manual pages releases
like OpenBSD, Solaris & HP-UX
2007-05-04 19:58:59 +00:00
Wolfram Schneider
49fe695819 allow '.' in manual page name, e.g.: 'freebsd-update.conf'
Submitted by: Ernest Sales
2007-03-20 20:03:07 +00:00
Wolfram Schneider
bd2d4b809e shut up perl -T warnings and make this script run again.
Reported by: Iwan
2007-03-19 18:26:27 +00:00
Daniel Gerzo
5433818b11 Bump the copyright year in the footer of cgi scripts.
Approved by: keramida (mentor), trhodes (mentor)
2007-03-19 18:15:27 +00:00
Wolfram Schneider
6521689fb7 shut up perl -T warnings 2007-03-19 18:13:51 +00:00
Wolfram Schneider
99c167417c False [] range "\w-" in regex
Submitted by: perl5.8.8 -cw -T url.cgi
2007-03-19 17:52:39 +00:00
Doug Barton
b4fbce9104 Unhook removed cvsweb.conf-{net|open}bsd files to unbreak
the www build.
2007-03-19 05:44:58 +00:00
Simon L. B. Nielsen
218372c650 Remove CVSweb support config files NetBSD and OpenBSD repositories now
that they have been removed from cvsweb.conf.

Reminded by:	wosch
2007-03-18 20:05:06 +00:00
Simon L. B. Nielsen
bf48230019 Remove the OpenBSD and NetBSD repositories. Both project have their
own CVSweb so there is not really any big reason for us to have CVSweb
for them as well. [1]

Remove the "learn" CVS repository.  It hasn't changed in 9 years... [1]

Remove the German and San Marino CVSweb mirrors from the list since
neither one has a hostname which resolves.

Suggested by:	wosch [1]
2007-03-18 17:12:45 +00:00
Simon L. B. Nielsen
9f255a118c Hide the "root" directory since it's just an artifact of how the FreeBSD
CVS repositories are exported via CVSup.

Indirectly suggested by:	rafan
2007-03-18 07:52:58 +00:00
Simon L. B. Nielsen
1f08136bd0 Remove 4.4BSD-Lite from the list of repositories - it's not actually
online (so CVSweb doesn't show it in the list anyway), and I don't
recall seeing it online while I have been around.
2007-03-17 23:23:31 +00:00
Simon L. B. Nielsen
47d54316fb Merge CVSweb 3.0.6 into HEAD. This was basically done as a manual merge
the relevant parts onto CVSweb 3.0.6 stock files, so it is not entirely
impossible that some local changes were lost, though I don't think/hope
so.

The use of cgi-style.pl was merged by danger@.  He also, together with
Dan Langille, got CVSweb 3 tested against FreshPorts prior to commit, so
this update should not blow up FreshPorts.  Thanks to both for the help.

Note that this now means that the FreeBSD CGI scripts more or less
require perl 5.8 (or at least something newer than 5.0), to run without
local modifications - but people really shouldn't be running perl 5.0
these days anyway... (no comments on the fact that www.FreeBSD.org did
this until ~2 hours ago... ).
2007-03-17 22:28:31 +00:00
Simon L. B. Nielsen
88f688c0ff Remove the -T option so it iss possible to run cvsweb 2 on Perl 5.8
which has more strict taint checks.

This is a temporary stopgap while upgrading to perl 5.8 and migrating
to cvsweb 3 to get around the catch-22 that cvsweb 3 requires perl
5.8, and perl can't be upgraded to 5.8 if it breaks cvsweb.
2007-03-17 20:53:48 +00:00
Remko Lodder
bf645a9416 Specify what Content-Type we send, and what the script was expecting to
get.

PR:		www/110285
Submitted by:	Devon H. O'Dell <devon dot odell at coyotepoint dot com>
Silence on:	www@
2007-03-16 06:35:54 +00:00
Ceri Davies
19c86109a0 Update to 6.2-RELEASE, move stable to 6.2-stable. 2007-02-23 21:09:54 +00:00
Wolfram Schneider
1071aaef4a No double slashes in URL path, please! 2007-02-19 19:20:35 +00:00
Wolfram Schneider
99b2aab5cc The man.cgi wrapper was replaces by the real man.cgi script. 2007-02-18 20:19:45 +00:00
Wolfram Schneider
bcbdc8c334 small cleanup:
- /faq.html -> /help.html
 - merge /copyright.html into help.html
 - section title without link and logo
 - no logo in footer
 - minor bugfixes in layout & design
 - remove 'Quick Reference Categories'
2007-02-11 11:39:20 +00:00
Simon L. B. Nielsen
35f8a80bcb Change the default man pages to FreeBSD 6.2. 2007-01-27 21:37:10 +00:00
Tom Rhodes
a709ce875f Commit a fix provided by danger to fix issues with the query-pr cgi scripts.
Submitted by:	danger
Reviewed by:	keramida, trhodes
2007-01-11 00:17:29 +00:00
Daniel Gerzo
62076a45d1 Merge query-by-number and multi-field query forms.
This work included:

- move a few functions out of query-pr-summary.cgi into a new file -
  query-pr-lib.pl, which now provides a procedure to display forms
- include query-pr-lib.pl in both query-pr.cgi and query-pr-summary.cgi
  scripts

PR: www/35647
Approved by: trhodes (mentor), keramida (mentor)
Silence from: www@
2007-01-10 17:47:39 +00:00
Shaun Amott
36b304ee28 - Add MIME, base64 and quoted-printable support.
- Don't over-pad patches in viewer.
- URL-ifiy PR references.
- Misc fixes.

Approved by:	simon
2006-12-09 15:46:06 +00:00
Wolfram Schneider
382d335ee1 Old archive files contains a dot. 2006-12-01 21:58:22 +00:00
Wolfram Schneider
2e48c6cb17 taint mode fixes 2006-11-30 20:36:31 +00:00
Shaun Amott
5e5c996a1b - Differentiate between "busy" and "no PRs matched", and display the
appropriate message.
- Add some logic to deal with manually inserted / unexpected text within
  the Audit-Trail.
- Extend URL regex.

Approved by:	pav
2006-11-27 17:12:50 +00:00
Bruce A. Mah
5a328ff280 Update for new CURRENT manpages from November 2006 snapshot build. 2006-11-18 22:44:28 +00:00
www
566e02e9c3 Add entries for FreeBSD 6.2-RELEASE and 6-stable. 2006-11-16 19:10:29 +00:00
Wolfram Schneider
2d52c41841 add trustedbsd-* to valid mailing lists 2006-11-12 18:37:34 +00:00
Simon L. B. Nielsen
1fd366d976 Use the locked version of the query-pr program to avoid running
www.FreeBSD.org out of memory.
2006-11-03 12:32:59 +00:00
Yaroslav Tykhiy
d01457cf1d Decode query components. Without this, one
couldn't specify full PR ID, e.g., bin/12345, in the
"PR number" field of the web form because the slash
was encoded as %2F by many browsers.  Of course,
decoding the query is a must for a cgi in general.
2006-10-26 11:13:34 +00:00
Daniel Gerzo
f49984172c - Let this script generate valid XHTML
- Also allow queries like query-pr.cgi?q= and query-pr.cgi?cat/num
- Fix comment
- Display query form when no results found
- Allow some other characters to be part of the URL [1]

PR: www/103628 [1]
Reviewed by: simon, remko
Approved by: keramida (mentor)
2006-10-11 21:02:58 +00:00
Ceri Davies
ed46521e4b Allow '/' in the search filter so that people can search for stuff like
'games/robotfindskitten'.

PR:		www/104131
Reviewed by:	simon
2006-10-08 17:00:12 +00:00
Ceri Davies
e76f60e1c6 We really don't have a recent perl on www, despite things I have read to
contrary.
2006-10-08 10:09:39 +00:00
Ceri Davies
8759cd186a Bump version number and move a newline back to where it came from. 2006-10-07 18:12:16 +00:00
Ceri Davies
9231a0d249 Allow patches to be attached via the web page.
Thanks to Marius Nuennerich for submitting the idea and for never giving
up on nagging me about it.

PR:		www/83397
2006-10-07 18:08:04 +00:00
Ceri Davies
56affaf295 There are no more consumers of html.pl, so kill it. 2006-10-07 14:08:11 +00:00
Ceri Davies
54ca30ff53 Convert dosendpr.cgi from html.pl to CGI.pm.
This will allow us to use multipart forms without rolling our own MIME
parser.
2006-10-07 14:07:46 +00:00
Daniel Gerzo
6f856aa7f2 Change the default behavior of this script to display query form instead
of generating full list of all open PRs in GNATS.  I hope this change
will at least a bit decrease the load of GNATS.

Reviewed by: www@
Approved by: keramida (mentor)
2006-09-24 13:34:55 +00:00
Simon L. B. Nielsen
12ce8b2a67 Note which port gives us Convert::UU in a comment. 2006-09-23 14:02:27 +00:00
Shaun Amott
eaea0ff8ac Fix a few bugs in the processing of the Audit-Trail:
- A multi-line mail header wrapping on a space wasn't handled correctly.
- My attempt at finding the end of patches with no delimiter inside
  replies wasn't working in some cases; I've disabled it for now.
2006-09-19 13:20:42 +00:00
Shaun Amott
2212fec61a Introducing the new GNATS web interface.
This was written from scratch, and offers numerous enhancements over the
old script; notably:

- Patches are parsed, coloured, uudecoded, and downloadable.
- Cleaner, clearer layout.
- Easier-to-read Audit-Trail.

Reviewed by:	freebsd-www (well, I tried...)
Approved by:	simon
2006-09-18 21:25:38 +00:00
Daniel Gerzo
010290f0f9 Make query-pr-summary.cgi to work with perl 5.8.
This is required for new www server setup.

Reviewed by: simon
Approved by: trhodes (mentor), keramida (mentor)
2006-09-12 21:53:18 +00:00
Simon L. B. Nielsen
56cf075388 Retire the ftp.cgi script. It's redundant due to the the mirror list in
the Handbook, and I can't find any references to it from anywhere.

I strongly suspect that nobody actually knows ftp.cgi exist, at least I
didn't :-).
2006-08-29 19:46:27 +00:00
Simon L. B. Nielsen
fa2123fbc2 - Remove link to source of the CGI script. It doesn't work and people
can find the source via cvsweb in any case.
- Use $hsty_base more places for better compatibility with
  cgi.FreeBSD.org (IE. when the static FreeBSD.org web pages are
  somewhere other that the site running the CGI's).
2006-08-19 21:40:25 +00:00
Simon L. B. Nielsen
bc748f54ed Don't define $hsty_base, since that prevents cgi-style.pl from
overriding it when needed (e.g. when run on cgi.FreeBSD.org).
2006-08-19 21:18:18 +00:00
Simon L. B. Nielsen
c8947cbfad Be a bit more strict with what we extract from the query string. This
fixes use of the script with Perl 5.8.

This should match all characters of current ports.  If somebody finds
some new characters to use in a port name the matching regex will need
to be updated.
2006-08-19 21:03:12 +00:00
Simon L. B. Nielsen
36412ae061 Remove gallery.cgi. It was scheduled for removal over two years ago. 2006-07-23 23:47:34 +00:00
Simon L. B. Nielsen
eee4df9058 When checking HTTP_HOST to determine if we should use relative or
absolute base path, do the check case insensitive to handle if
HTTP_HOST e.g. comes in as FreeBSD.org.

Break a rather long line (being changed anyway) to improve
readability.
2006-07-23 22:35:12 +00:00
Simon L. B. Nielsen
db89ca035d Also use absolute base path on cgi.FreeBSD.org.
More hacks may be required later to really get this to work (due to
other magic involved in the setup).
2006-07-23 18:36:53 +00:00
www
c40d94a3b5 NetBSD 3.0 is the default NetBSD release 2006-07-11 12:10:38 +00:00
www
bbf92a5f81 add NetBSD 2.0.2, NetBSD 2.1, NetBSD 3.0 2006-07-11 11:50:34 +00:00
www
db2e0778b5 OpenBSD 3.9 is the default OpenBSD release 2006-07-11 09:19:45 +00:00
www
df356fb21a added OpenBSD 3.7, 3.8, 3.9 2006-07-11 09:18:49 +00:00
www
fae98388ec add FreeBSD Ports 6.1-RELEASE 2006-07-11 08:30:05 +00:00
www
5f3cd2718d cleanup FreeBSD ports 2006-06-23 10:17:08 +00:00
www
7a37a49d44 remove 4.11-stable
update to 5.5-stable
cleanup ports releases
2006-06-23 10:12:01 +00:00
Bruce A. Mah
72579354a0 Make the default manpath use 6.1-RELEASE manpages. 2006-05-23 20:12:17 +00:00
Bruce A. Mah
ae644d64c8 Make manpage hyperlinks from FreeBSD 5.5 release documentation
work correctly.  Relies on some creative use of symbolic
links, as usual.
2006-05-15 20:25:59 +00:00
Bruce A. Mah
f24b759ee5 Change manpath for FreeBSD 6.1 to reflect the "real" set of manpages
loaded from the FreeBSD 6.1-RELEASE/i386 distribution.

Approved by:	doceng (blackend)
2006-05-15 16:27:54 +00:00
Bruce A. Mah
e633836564 Hack for 6.1-RELEASE; make it use an (old, pre-existing) snapshot
of FreeBSD 6.0-stable.  This isn't the correct solution but at
least it prevents (some of) the broken links reported to the doc@
list.
2006-05-15 01:21:53 +00:00
Jun Kuriyama
82308ccf20 Finally, launch new logo header and resource page.
Legal page at freebsdfoundation.org will be available in a few days.

Thanks to:	Anton Gural (designer), Deb Goodkin (legal coordinate)
2006-05-08 23:15:38 +00:00
Wolfram Schneider
efde1ab6fc added Solaris 5.10 2006-05-06 19:36:29 +00:00
Jun Kuriyama
e18d44d6b3 Define $PATH explicitly. 2006-03-24 06:24:41 +00:00
Jun Kuriyama
3cd6041c0a Add more taint check. 2006-03-24 01:51:18 +00:00
Jun Kuriyama
766012b017 More taint handling. 2006-03-15 04:07:54 +00:00
Jun Kuriyama
820880ff0e Perl taint mode seems more strict than past.
Reported by:	jkim
2006-03-15 01:24:29 +00:00
Wolfram Schneider
4e9f7d8b47 set GROFF_TMAC_PATH for a release-specific mdoc.local file
this fix the problem with wrong release number in footer
Submitted by: Jeremy C. Reed <reed@reedmedia.net>
2006-02-17 09:03:50 +00:00
Jesus R. Camou
565e970504 Bump copyright year.
Approved by:	trhodes (mentor)
2006-02-16 14:34:06 +00:00
Wolfram Schneider
6f52fc8a70 Update Darwin manual pages: Darwin 1.3.1/x86, Darwin 1.4.1/x86, Darwin 6.0.2/x86, Darwin 7.0.1, Darwin 8.0.1/ppc, OpenDarwin 20030208pre4/ppc, OpenDarwin 6.6.1/x86, OpenDarwin 6.6.2/x86, OpenDarwin 7.2.1 2006-02-03 13:17:29 +00:00
Ceri Davies
c6bcb337a8 Use more current manpages now that we have them. 2006-01-19 19:53:38 +00:00
Bill Fenner
415d223176 Make <h3> bigger and give it a horizontal rule, to provide better
visual seperation for categories.

Suggested by:	Jon Strait
2005-12-05 21:16:19 +00:00
Bill Fenner
6a28570df9 Make the "Skip site navigation" link point to #content; cgi scripts
have no section navigation so I removed the redundant #contentwrap
 div but didn't do anything about this link.

Pointed out by:	Jeff Brown
2005-12-05 04:26:20 +00:00
Simon L. B. Nielsen
b2b866fde8 Try to find cgi-lib.pl in the current directory since the script cannot
find cgi-lib.pl otherwise on www.FreeBSD.org.
2005-12-04 23:20:42 +00:00
Simon L. B. Nielsen
451acb67a8 Move the sendpr verification "database" to a non world-writeable
directory.

OK'ed by:	ceri
2005-12-04 22:25:20 +00:00
Simon L. B. Nielsen
5aaa666a2b Correct the xmlns attribute http://w3.org/1999/xhtml ->
http://www.w3.org/1999/xhtml, which is the namespace used by the XHTML
DTD's.

This fixes layout/rendering of output from the CGI scripts when using
Opera.
2005-12-04 21:52:42 +00:00
Simon L. B. Nielsen
514f262291 - Make output XHTML compliant.
- Remove the searchbox, since there is already a searchbox included on
  the page now, due to the new page design.
2005-12-04 21:45:45 +00:00
Simon L. B. Nielsen
f982a5362c Remove trailing whitespace. 2005-12-04 21:15:34 +00:00
Ceri Davies
e9f6345562 Use the strict pragma. 2005-12-04 16:36:51 +00:00
Ceri Davies
251299c4db Refactor the "confirmation code" stuff into a general purpose script.
confirm-code.cgi contains a preconfigured list of databases and their
parameters.  When a request comes in, the database in the request's 'db'
parameter is checked for validity, and a code is generated, stored in
the appropriate database and returned.

Use this new script in send-pr.sgml and remove sendpr-code.cgi which is
now superceded.
2005-12-04 16:18:40 +00:00
Ceri Davies
2863055355 Spit out an Expires: header to try to avoid caching problems some more.
Add myself to the Copyright now.
2005-12-04 13:33:16 +00:00
Ceri Davies
5183913e78 Back out the highly unpopular email address blocking. 2005-12-04 12:50:17 +00:00
Jesus R. Camou
e02a65178b Use uppercase X on FreeBSD versions for consistency. 2005-12-01 03:19:22 +00:00
Bill Fenner
d890334c6b Fix manpath for 6.0-stable to use man and openssl/man subdirectories. 2005-11-30 22:03:10 +00:00
Pav Lucistnik
0a59b16890 - Fix when no section parameter is passed 2005-11-30 09:23:48 +00:00
Pav Lucistnik
134c334194 - Fix 500 Internal server error at my place (doesn't seem to exist on
www.FreeBSD.org)
2005-11-29 23:24:52 +00:00
Pav Lucistnik
b69ff142f1 - Apply new design to it (really, convert to use cgi-style.pl)
- Reshuffle to look as much as possible like ports listings
- Make it a valid HTML
2005-11-29 23:10:59 +00:00
Pav Lucistnik
d6d17f7e19 - More XHTML/HTML fixes: <html> element 2005-11-29 22:57:21 +00:00
Pav Lucistnik
66d862e577 - Change title to something sensible
- Update FAQ
- Remove more dead code related to new/updated view
2005-11-29 22:19:31 +00:00
Pav Lucistnik
4b04fb5699 - Autodetect available INDEX/INDEX-5/INDEX-6 and use the highest 2005-11-29 22:09:53 +00:00
Pav Lucistnik
d15c3969f1 - Remove release/arch pulldown from the form
- Check for package existence and link package from i386/packages-6-stable
2005-11-29 22:02:43 +00:00
Pav Lucistnik
3462ec6458 - Fix ../ports/categories reading after recent format change
- Remove dead code to print new/updated form
- Revive one form element from that, "Section", and make it do per category
  search.
2005-11-29 21:33:33 +00:00
Pav Lucistnik
ba4c4794c7 - Update release pulldown with package sets which exists on mirrors today 2005-11-29 20:45:47 +00:00
Pav Lucistnik
80c1ce3c80 - Remove all cvs operations. They are less and less useful every day, as we
stopped checking in INDEX into CVS long time ago. Last useful releases were
  4.10 and 5.3.
- Remove code to display new/updated ports, it relies on periodical INDEX
  updates in CVS (which we don't do anymore) and was disabled long time ago
  anyway.
2005-11-29 20:39:37 +00:00
Bill Fenner
546a802f81 Add -T <tag> option, which results in --text=\[tag\].
Put $hr assignment back, since $hr is still used, particularly in
 text mode output.
2005-11-17 04:43:38 +00:00
Bill Fenner
a7613f7a01 Turn the entered code uppercase before looking it up in the database,
to permit entering the code in lowercase (since the generator doesn't
 generate lowercase letters).
Use a relative url to querypr-code.cgi so that mirrors (and test boxes)
 can use the query-pr cgis unmodified.
2005-11-16 23:35:57 +00:00
Ceri Davies
b63c7805f1 Forced commit to note that www/en/cgi/confirm-code.cgi was repocopied
from sendpr-code.cgi at the same path.

querypr-code.cgi and sendpr-code.cgi will be coalesced into the single
script confirm-code.cgi.
2005-11-11 08:58:06 +00:00
Bill Fenner
fc6bc754fe Copy solution for visited links from mailindex.
Requested by:	Dmitry Pryanishnikov in freebsd-www
2005-11-09 22:27:47 +00:00
Bill Fenner
adf473387a End the paragraph before the form, to make it valid xhtml again. 2005-11-09 21:38:31 +00:00
Ceri Davies
34c9d5f217 Remove some debug code. 2005-11-07 10:43:19 +00:00
Ceri Davies
31dfff3531 Don't show the email address of the Originator by default.
There is a link provided whereby users can enter a code to
see the email addresses.

Kind-of requested by:	core
2005-11-06 22:29:45 +00:00
Ceri Davies
5fa4a3cc7b Remove an unused array. 2005-11-06 22:13:05 +00:00
Ceri Davies
23aa9b9807 Correct a bug regarding the expiration of codes.
The test for expired codes was inverted, so emptied the database every
time the test ran.  Due to the time that the sweep was made, this bug
only hit the user if someone else had submitted a PR in the period
between their obtaining the code and submitting the PR.

This is likely the cause of the unexplained failures that some users
were seeing, which we all blamed on misbehaving caches.
2005-11-06 22:07:23 +00:00
Ceri Davies
0f3db6fb0d Split CGI and DATA into multiple lines and sort. 2005-11-06 20:28:56 +00:00
Hiroki Sato
c74fb6935f Bump version numbers for 6.0R. 2005-11-04 17:41:56 +00:00
Ceri Davies
77b1af42c7 Print a link to query-pr-summary.cgi at the end of every page (whether
that be an error or success), as it's not currently easy to find your
way back there.  Suggested in:

PR:		www/88473
Submitted by:	Roman Neuhauser <neuhauser at sigpipe dot cz>
2005-11-04 10:25:42 +00:00
Bill Fenner
86a6cf0387 Remove the explicit $hsty_base='' and let cgi-style.pl take care of the
default.  This has been a little wrong ever since these scripts moved to
 docs.freebsd.org, but became very wrong when the style sheets were added
 since docs.freebsd.org doesn't serve them.
2005-10-31 15:25:05 +00:00
Bill Fenner
164f4a22c6 Add hub to the list of hosts, I forgot that docs cgi scripts actually
run on hub.
2005-10-29 15:11:09 +00:00
Bill Fenner
97fa1675c8 Conditionally set $hsty_base to http://www.FreeBSD.org/:
1. If we're not running under cgi (for the mailindex run out of cron)
 2. If we're running on docs.freebsd.org (because it doesn't have the
    style files, and the "home" link would point to docs home, not
    the home home)
 3. If we're running on people.freebsd.org, to facilitate my testing

Otherwise, keep it relative for the benefit of mirrors.

docs problem pointed out by: Mark Trettin (mkt AT trettin DOT org)
2005-10-29 15:08:21 +00:00
Bill Fenner
f5004e162f Disable the CSS workaround for the <body>/<table> quirk for HTML4 pages.
It looks like Firefox applies the relative size twice, making the fonts
 too small.  Instead, now they'll be too big - just a bit bigger than
 the "Large" web site font.

This only applies to HTML4 pages, which as I mentioned before are
 cvsweb and mailindex, and I don't think that mailindex uses tables.
 This means that this problem should be fixed when someone (no promises)
 imports cvsweb 3 which uses XHTML.

This commit brought to you by CSS, Web Quirks, IE and our favorite IRC channel.
2005-10-28 19:07:36 +00:00
Bill Fenner
8ea2553bc9 Temporary hack for HTML headers with new cgi-style.pl; this should be
really fixed when importing cvsweb 3.
2005-10-28 14:55:57 +00:00
Bill Fenner
3f0bcf7d8f Update cgi-style to match the new web site look.
Add an optional 2nd argument to html_header(); if it's missing or
 supplied and non-zero, html_header returns XHTML doctype; if it's
 supplied and zero, html_header returns HTML 4.01 doctype.
 cvsweb and mailindex are the only HTML4 holdouts.  cvsweb should
 be updated to 3.x which is XHTML, but that's a seperate step.
I left $hsty_home alone, because I couldn't find anything that used
 it or any obvious image to use for it in the new layout.
2005-10-28 14:55:13 +00:00
Wolfram Schneider
8c8d96cf01 support search in FreeBSD manual pages 2005-10-24 20:59:01 +00:00
Wolfram Schneider
f9502a0088 support search in non-english pages,
e.g. database 'www-de' for german pages.
2005-10-23 17:22:51 +00:00
Bill Fenner
3500feba32 Don't set hsty_base to the default, let cgi-style do that. 2005-10-20 20:03:36 +00:00
Bill Fenner
8b20d224d9 Continue the xhtml-ification of cgi scripts.
Assisted by:	simon@, validator.w3.org
2005-10-20 19:54:57 +00:00
Bill Fenner
7ca2f8d8eb Tweak the xhtml-ification.
Assisted by:	validator.w3.org
2005-10-19 15:47:38 +00:00
Remko Lodder
526e1e8250 Remove the old register script. It is no longer used within our website
and all the translations caught up. Except for es/support.sgml and
es/publish.sgml, but they are old. This also fixes a cleanup for
ceri which he started long time ago.
2005-10-06 15:44:08 +00:00
Remko Lodder
1c40c291d1 Fix a problem spotted by pav. The Originator field got split into two lines
making it hard to copy/paste the originator field for PR issues.
Also make query-pr.cgi xhtml compliant.

Submitted by:		Daniel Gerzo <danger at rulez dot sk>
2005-09-18 19:32:24 +00:00
Remko Lodder
cd96331876 Another go at making our cgi scripts xhtml compliant.
Submitted by:		Daniel Gerzo <danger at rulez dot sk>
2005-09-17 15:48:23 +00:00
Remko Lodder
bc343ef2a8 Remove the now redundant html close tags.
Submitted by:		Daniel Gerzo <danger at rulez dot sk>
2005-09-13 18:17:46 +00:00
Remko Lodder
9e46686368 Make our cgi-style xhtml1.0 compliant. With this all our cgi's could
pass the xhtml compliant check, making us conforming to standards.
This also finishes the update to query-pr-summary.cgi which is now
XHTML 1.0 compliant.

Submitted by:		Daniel Gerzo <danger at rulez dot sk>
2005-09-13 17:36:15 +00:00
Remko Lodder
f45b9f679d Add coloring support for the summary. This should make it
easier to read when you are using a color capable browser.

This will not impact a text-only browser.

Changes include:

o Code cleanup
o Add CSS style's.
o Use the new CSS style's.
o Move double quotes to quotes where needed.
o Made the HTML (except for the header) html-compliant.

The usage of CSS makes it easy to merge later when/if needed.

Discussed on:		www@
No objections from:	www@
Submitted by:		Daniel Gerzo <danger at rulez dot sk>
2005-09-12 20:30:25 +00:00
Ceri Davies
c03b1a829e Restore r1.40 which was accidentally backed out in the last commit.
Discussed with:	jcamou
2005-08-11 11:47:01 +00:00
Jesus R. Camou
ea89921696 o Add `Query PR' button.
o Clean some tagging.

PR:		www/82379
Noticed by:	Ed Schouten <ed@fxq.nl>
Submitted by:	Daniel Gerzo <danger@rulez.sk>
Reviewed by:	simon
Approved by:	trhodes (mentor)
2005-08-11 01:34:53 +00:00
Remko Lodder
2802fc8f32 Add an space between the PR number and the colon.
Requested by:	pav
2005-07-14 15:02:38 +00:00
Ceri Davies
bc33ecc9ba Add some decent markup to the output of dosendpr.cgi.
The prerror class added to freebsd.css is not currently used; this will
happen once dosendpr.cgi is converted to use cgi-style.pl rather than
html.pl.
2005-07-14 11:26:17 +00:00
Ceri Davies
9cb8dd0d21 Bring CSS to the CGI scripts. 2005-07-14 11:08:54 +00:00
Max Laier
c612f94286 Add a new category 'soc' for Google Summer of Code related reports - which
we hope to receive ;)

Approved by:	brueffer
2005-07-06 11:42:11 +00:00
Wolfram Schneider
1f2b481f7b update to FreeBSD 5.4-RELEASE and Ports 2005-06-27 09:55:49 +00:00
www
5c1ad0698a update to 5.4-stable 2005-06-27 09:52:52 +00:00
Simon L. B. Nielsen
9328650b10 Remove 4.11 from the list (ie. basically revert most of 1.82) since it
does not actually work due to missing INDEX in cvs.

Related to PR:	www/75830
2005-06-14 21:34:44 +00:00
Simon L. B. Nielsen
78dee90b81 OpenSSL man pages are in the base distribution for 5.4, so also
include them for the 5.4 man pages.
2005-05-22 11:52:11 +00:00
Simon L. B. Nielsen
bc1187445e Make the 5.4 man pages point to the actual man pages for 5.4. 2005-05-22 11:38:32 +00:00
www
ae15ebfe5f Hack to get 5.4 manpages (taken from an existing 5.4-STABLE
snapshot) to show up on the Web site.
2005-05-10 05:43:23 +00:00
Giorgos Keramidas
aba859cb13 Change the default recipient address that is recommended at the end
of problem report viewed through the web interface of query-pr to
bug-followup@freebsd.org to reduce the diffs from the problem-reports
articles and the potential for confusing our users.

Submitted by:	Julien Gabel <jpeg@thilelli.net>
2005-04-14 12:26:28 +00:00
Max Laier
c656edf3c8 Add 'bin' category[1], move category-selection to "popup_menu" and add some
hints about formatting[2].

Suggested by:	dds[1], julian[2]
Approved by:	simon
2005-04-10 22:18:44 +00:00
Max Laier
ed3675ae2c monthly.cgi - webform to help with formatting status reports.
Submitted by:	julian (with changes)
Reviewed by:	www
Approved by:	trhodes
2005-04-09 12:45:52 +00:00
Simon L. B. Nielsen
05fd6f7eba Fix cvsweb link for new files.
Submitted by:	tobez
Noticed by:	Phil Regnauld
2005-03-29 20:43:20 +00:00
www
5fa44b9da7 disable non-working troff output format in menu 2005-03-10 18:52:03 +00:00
Ceri Davies
7a3556b080 Remove register.sgml, which lost its original purpose some years ago.
Forced commit also to reg.cgi to note that it can be cvs rm'd once all
of {es,fr,ja,ru}/register.sgml have caught up.

Approved by:	silence on doc-committers@
2005-03-03 22:42:57 +00:00
Wolfram Schneider
5caf673a6d add 4.11-RELEASE 2005-02-16 16:32:17 +00:00
Ceri Davies
5fd819d7b6 Follow revision 1.5 of www/share/sgml/includes.header.sgml:
Use less ambiguous content for the ALT attributes in the image
	map.
2005-02-12 13:13:14 +00:00
Ceri Davies
071edcc955 Remove unused variables. 2005-02-12 13:04:00 +00:00
Ceri Davies
3ff88d64a6 o Don't use red body text
o Don't centre the image map
o Don't use a really small, unclosed, FONT element
2005-02-12 12:59:53 +00:00
Hiroki Sato
a0dcccb558 Add 4.11-RELEASE and 4.11-stable. 2005-01-25 17:30:48 +00:00
Hiroki Sato
6fac0c9bd0 Add manual pages of NetBSD-2.0. 2005-01-21 13:01:02 +00:00
Giorgos Keramidas
362ca6ed01 We are approaching P100k real fast now. Grab the opportunity to 'fix'
some bugs of the text-mode listings of the Gnats database:

  - Shave 2 characters out of the submission date, by removing the
    enclosing [] pair.
  - Increase the width of the tracker field.  It should now be wide
    enough until PR standards/999999 (which is, hopefully, a very
    long time).
  - Decrease the width of Resp. to 10 characters, as the longer name
    is now a bit shorter (after the removal of 'freebsd-' a while
    back).
  - Shorten the 'Description' a bit, to keep the entire listing at
    less than 79 columns (which IIRC was broken by me in revision
    1.45, during the split of HTML/text output in separate functions).
2005-01-18 17:31:12 +00:00
Ceri Davies
27fb74bd38 Add the USB category. 2005-01-05 12:16:14 +00:00
Ceri Davies
eafc1831a4 Add a "Pragma: no-cache" header to stop these images being cached.
Suggested by:	wosch
2004-12-13 22:43:05 +00:00
Simon L. B. Nielsen
eb5494b794 The package directory for 5-STABLE is now called packages-5-stable. 2004-11-28 11:46:01 +00:00
Ceri Davies
60c26b8713 Be more relaxed about what we're expecting query-pr to be called until
this gets sorted out.
2004-11-26 21:57:23 +00:00
Simon L. B. Nielsen
a72d0992f3 - Update to match the 5.3-RELEASE/5-STABLE/6-CURRENT world.
- Handle that 6.0 also uses .tbz packages.
- Simply refer to the -STABLE/-CURRENT branches by their major number
  so we don't have to update that part of the script for each release.
- 5-STABLE currently points to packages-5-current since there is no
  packages-5-stable yet.
- Change the default version to 5-STABLE/i386.
2004-11-09 15:15:01 +00:00
Hiroki Sato
03af21fadf Fix the entry for OpenBSD 3.6. 2004-11-09 12:30:05 +00:00
Simon L. B. Nielsen
e28c51f658 Catch up the default manual pages to 5.3-RELEASE. 2004-11-08 13:48:05 +00:00
Hiroki Sato
fab98cdc29 Bump various version numbers.
Submitted by:	blackend
2004-11-07 19:12:53 +00:00
Giorgos Keramidas
f70028d350 Reduce the size of the generated HTML reports even further, by using
the last suggestion of Jie Cao from www/69780:

	``3. If we strip the spaces at the beginning of the lines, we
	can reduce the size with a further 90000 bytes.''

PR:		www/69780
Submitted by:	Jie Cao (gaoj (at) cpsc (dot) ucalgary (dot) ca)
2004-10-25 11:27:08 +00:00
Hiroki Sato
4d0e7bc642 Add 5.3-RELEASE. 2004-10-24 11:29:51 +00:00
Giorgos Keramidas
2152ca53a4 Put on my chain mail suit and change the output format of the PR
database queries once again, because I've received complaints that the
HTML output mode of the PR query scripts outputs huge, bloated tables
after the style changes I made to beautify HTML output.

This moves all the visual tweaks of the output in a CSS stylesheet and
add a $t_style option to the common cgi-style.pl script.  If not set,
the style defaults to empty, but users of cgi-style.pl can set this to
a local CSS style like this:

        $t_style="<style type=\"text/css\">...</style>";

or use it to refer from the header of the HTML output to an external
CSS stylesheet.

The HTML output size is substantially reduced now (at least 50% of the
size was caused by many repetitions of style="" attributes), but it's
still larger than the preformatted <pre> output because of all the
<tr> and <td> tags.
2004-10-13 10:55:55 +00:00
Dima Dorfman
29993f9779 Improve English wording
PR:		71576
Submitted by:	Warren Block <wblock@wonkity.com>
2004-09-11 08:31:02 +00:00
Bruce A. Mah
69aec7717d s/FreeBSD 6-current/FreeBSD 6.0-current/ for consistency with
prior CURRENT releases/snapshots.
2004-09-04 05:45:53 +00:00
Ceri Davies
7e6599e918 Populate/add alt attributes where they were missing. 2004-08-30 19:11:31 +00:00
Wolfram Schneider
f414bc4d99 oops, 5.2.1-RELEASE is not here, use 5.2R instead 2004-08-29 18:46:21 +00:00
www
ab1ed2ee96 Add copyright link to www.x.org 2004-08-29 18:23:39 +00:00
Wolfram Schneider
35383eeb08 ups, we have a dot release FreeBSD 5.2.1-RELEASE 2004-08-29 18:08:57 +00:00
Wolfram Schneider
5c14bf59a8 add X11R6.7.0
alias x11 -> X11R6.7.0
(xfree86 will still point to XFree86 4.4.0)
2004-08-29 18:04:37 +00:00
Wolfram Schneider
ed5f580a19 add XFree86 4.4.0 2004-08-29 17:44:01 +00:00
www
0a171a9881 let FreeBSD 5.2-stable point to the real stable manpages. 2004-08-29 12:02:14 +00:00
Wolfram Schneider
6dc9cde535 add FreeBSD 6-current
FreeBSD 5.2-current -> FreeBSD 5.2-stable
2004-08-29 11:53:19 +00:00
Wolfram Schneider
7720a9c886 update copyright
add little stylesheet
2004-08-23 20:59:13 +00:00
Wolfram Schneider
6eae9a9c1e optimize search 2004-08-20 17:59:55 +00:00
Ceri Davies
ba0a434481 Add 6-* to the list of searchable releases. 2004-08-19 12:43:25 +00:00
www
a8d6f32b00 Instead of
<TITLE>FreeBSD Hypertext Man Pages: tunefs(8)</TITLE>

they should be in the form
        <TITLE>tunefs(8)</TITLE>

When a user has half a dozen tabs open in their browser, the tabs all
read "FreeBSD Hy...".  If they read "tunefs(8)" instead, the user
could navigate much more quickly.

submitted by: Carleton Vaughn <keebler@mindspring.com>
2004-08-02 20:35:15 +00:00
www
548e887474 fix FreeBSD 4.10-RELEASE manpath 2004-08-02 17:58:17 +00:00
Ceri Davies
798c983fea Some people don't have 20/20 vision, so elide 'I' and '1' from the
characters in the confirmation image.

en/gifs/1.pnm and en/gifs/I.pnm will be safe to remove 45 minutes after
the next web build and not before, so I'll do that tomorrow.

PR:	www/69676
2004-07-27 20:34:40 +00:00
Giorgos Keramidas
4ad53f07f0 - Split text & html output in two separate functions.
- Use a <table> to align data for HTML output similar to the one used by
  CVSweb to list directory contents.  This helps the eye to pick the
  right line to click on when picking PRs to read from a long list.

Approved by:	ceri, linimon, simon, silence on -www
2004-07-25 00:30:35 +00:00
Simon L. B. Nielsen
a984efc38d - Support reading directly from a local INDEX(-5) file that isn't in
CVS, and use this by default.  The CVS version is still used if the
  local updated version isn't readable.  On www.FreeBSD.org this means
  that the updated INDEX(-5) found on
  http://www.FreeBSD.porg/ports/INDEX(-5) are used.

  In essence this mean that this CGI script is actually useful
  again since it's not returning out-of-date results.

- Disable the "new ports" HTML since it just doesn't work without
  frequent INDEX versions in CVS.  The support code for this isn't
  removed at this to avoid breaking stuff, but should be removed
  later.

Testing opertunity provided by:	kuriama
2004-05-27 20:27:55 +00:00
Hiroki Sato
84793204ba Bump version numbers for FreeBSD 4.10-RELEASE. 2004-05-25 22:08:43 +00:00
Hiroki Sato
30e14310c2 Add 4.10-RELEASE. 2004-05-25 21:45:15 +00:00
Simon L. B. Nielsen
363b99e074 Remove some trailing whitespace before I begin to work more on this file. 2004-05-22 15:16:45 +00:00
Simon L. B. Nielsen
490f747786 - After some further though, use 5.2.1 instead of 5.2.
- Add amd64.
2004-05-22 15:09:12 +00:00
Simon L. B. Nielsen
b086f2958c Bump version numbers for FreeBSD 5.2 (only slightly late...).
PR:		www/65943
Noticed by:	wosch
2004-04-24 22:32:09 +00:00
Ceri Davies
61f24a6469 Realign headers. 2004-04-06 11:22:37 +00:00
Ceri Davies
746e692884 Add the new threads category. 2004-04-05 23:14:21 +00:00
Alexey Zelkin
9d67a1cf50 FreeBSD.ORG -> FreeBSD.org 2004-04-05 14:46:17 +00:00
Alexey Zelkin
42507c7acb freebsd.org -> FreeBSD.org 2004-04-04 21:49:42 +00:00
Josef El-Rayes
fcafd834b1 Announce the removal of the gallery pages (www/en/gallery/).
This will be removed in two weeks.

Approved by: simon(mentor), phantom(maintainer)
2004-03-27 13:28:39 +00:00
Bruce A. Mah
59d2199679 Remove duplicate entry for 5.2-RELEASE. Add an entry for upcoming
5.2.1-RELEASE manual pages, which (for the moment) uses the same
manual page set as 5.2-RELEASE.
2004-02-16 21:03:29 +00:00
Ceri Davies
34113a7869 Now that my test build/grep has finished, freebsd.def can go. 2004-02-16 17:25:38 +00:00
Ceri Davies
a2313c9ce5 s/$Id$/$FreeBSD$/ 2004-02-16 16:58:48 +00:00
Ceri Davies
f08bb99ab7 Add an embryonic Gnats.pm that will collect variables and subroutines
related to querying GNATS together, in order to aid with the upgrade to
GNATS 4.

Switch over dosendpr.cgi and query-pr.cgi to use it.
query-pr-summary.cgi to follow.
2004-02-16 16:57:10 +00:00
Ceri Davies
84cbdf31c8 Remove some commented out debugging code. 2004-02-16 16:54:06 +00:00
Ceri Davies
1644d55106 Remove checks for files that do not exist, and garbage collect more
variables.
2004-02-16 16:49:25 +00:00
Ceri Davies
0e60992650 Move files that are only require()d from CGI to DATA, as they do not
need the executable bit to be set.
2004-02-16 15:18:02 +00:00