--- info2www-1.2.2.9.orig/README +++ info2www-1.2.2.9/README @@ -1,10 +1,49 @@ -This is the "info2www" CGI gateway between GNU Info Nodes and the WWW . +info2www README +--------------- + +Introduction +------------ + +This is the info2www CGI gateway between GNU Info Nodes and the WWW. + +The info2www script makes your CGI compliant HTTP/1.0 or later server +a gateway to all that information you have "stacked away" in the +GNU Info Nodes (you know - the Info Nodes accessible from Emacs). + +The Info Nodes are parsed and formatted on the fly by info2www and present +hyperlinks to other Info Nodes that your WWW browser can use. + +The latest version of info2www is 1.2.2.9. + + +Usage +----- + +The info2www script should be called with zero or one argument as follows: + +http://localhost/cgi-bin/info2www: + Access the default Info Node (DIR)Top + +http://localhost/cgi-bin/info2www?(fileutils): + Access the Info Node (fileutils.info)Top + +http://localhost/cgi-bin/info2www?(gzip)Concept%20Index + Access the Info Node (gzip.info)Concept Index + + +Copyright +--------- + +This program is in the Public Domain. + + +Author +------ + +Roar Smith +http://www-lmd.ericsson.se/~lmdrsm/lmdrsm.html (down) -Everything you need to know should be in the document: - - info2www.html. -Version 1.2, 1994-07-28 ###### Roar Smith, M.Sc.E.E. *** Organization: # Coordination, UNIX Network *** L.M. Ericsson A/S --- info2www-1.2.2.9.orig/debian/README.Debian +++ info2www-1.2.2.9/debian/README.Debian @@ -0,0 +1,20 @@ +info2www for Debian +------------------- + + * info2www is no longer automatically installed/setup for any webserver, + you have to manually hook it up into your CGI-capable webserver. + For Apache2 this is as simple as: + + ln -s /var/lib/info2www/ /vaw/www/info2www + + (assuming /var/www is your DocumentRoot) + + The directory /var/lib/info2www contains HTML and PNG files needed by + info2www. The CGI file itself is automatically installed into + /usr/lib/cgi-bin/info2www, so most webservers should automatically find it. + + * I do not know where to find the current upstream sources, neither do I + have any working email address of the upstream author. + If anyone knows either of these, please contact me. Thanks. + + -- Uwe Hermann , Sat, 26 Jul 2008 19:14:36 +0200 --- info2www-1.2.2.9.orig/debian/TODO.Debian +++ info2www-1.2.2.9/debian/TODO.Debian @@ -0,0 +1,18 @@ +List of feature requests: +------------------------- + +Request by Raul (taken from #4903): +----------------------------------------------------------- + +Info has a mechanism which will scan child pages before advancing to the +"next" page. Normally, you can select this by hitting "space" repeatedly +while viewing the documents. While I don't expect info2www to be quite +that convenient (space scrolls the document and navigates to the next +upon reaching the bottom of a document), it would be very nice to have +a navigation feature along these lines. + +Perhaps it wouldn't be best to exactly duplicate the info feature, but +to construct a tree based on an analogous breadth-first traversal of +the info hierarchy, and to put this navigation reference at the bottom +of each document. [Call it something like "Logical Next".] + --- info2www-1.2.2.9.orig/debian/changelog +++ info2www-1.2.2.9/debian/changelog @@ -0,0 +1,236 @@ +info2www (1.2.2.9-24.2) unstable; urgency=medium + + * Non-maintainer upload. + * Bumped debhelper compat to 7. (Closes: #965595) + + -- Guilherme de Paula Xavier Segundo Mon, 18 Apr 2022 14:10:25 -0300 + +info2www (1.2.2.9-24.1) unstable; urgency=medium + + * Non maintainer upload by the Reproducible Builds team. + * No source change upload to rebuild on buildd with .buildinfo files. + + -- Holger Levsen Sat, 02 Jan 2021 00:20:01 +0100 + +info2www (1.2.2.9-24) unstable; urgency=medium + + * debian/control: + + Standards-Version: 3.8.0 + + Add Homepage field. + + Switch to debhelper v5 + cdbs. + + Change 'httpd' dependency to 'httpd-cgi' (Closes: #42812). + + Change (partial) 'apache' dependency to 'apache2'. + + Put cdbs/debhelper in Build-Depends, the rest in Build-Depends-Indep. + * Don't install anything into /var/www anymore (lintian, policy). + Thus, per default there's no information leaking anymore (Closes: #173246). + Document this fact, and how to hook info2www into a webserver) in the + README.Debian file. + * debian/watch: Add dummy file to silence lintian. + * Change doc-base section to 'Viewers'. + * debian/copyright: Convert to machine-readable format. + + -- Uwe Hermann Sat, 26 Jul 2008 19:09:09 +0200 + +info2www (1.2.2.9-23) unstable; urgency=high + + * SECURITY FIX: This release prevents _some_ forms of Cross Site Scripting + (XSS) attacks against info2www. A more thorough security audit needs to + be done, though. It's expected that more vulnerabilities can be found. + Thanks to Nicolas Gregoire for the bug-report and Justin Pryzby for his + help with analyzing the issue and providing a first fix (Closes: #281655). + + -- Uwe Hermann Thu, 3 Feb 2005 19:15:56 +0100 + +info2www (1.2.2.9-22) unstable; urgency=low + + * Use the standard Debian logo on the webpages (Closes: #157409). + + -- Uwe Hermann Sat, 24 Aug 2002 02:09:51 +0200 + +info2www (1.2.2.9-21) unstable; urgency=low + + * debian/changelog: Remove emacs cruft. + * Standards-Version: 3.5.6.1 (no changes). + * Fixed broken URLs (Closes: #145839). + + -- Uwe Hermann Sat, 11 May 2002 21:52:30 +0200 + +info2www (1.2.2.9-20) unstable; urgency=low + + * Fix debian/doc-base.info2www and debian/rules so that info2www works + OK with dwww. + + -- Uwe Hermann Sun, 10 Mar 2002 03:36:22 +0100 + +info2www (1.2.2.9-19) unstable; urgency=low + + * debian/doc-base.info2www: Fix typo (Closes: #137525). + * debian/info2www.1: Cosmetic fixes. + + -- Uwe Hermann Sun, 10 Mar 2002 03:17:39 +0100 + +info2www (1.2.2.9-18) unstable; urgency=low + + * Change http://localhost/* paths in info2www.html to host-relative paths + (Closes: #130740). + + -- Uwe Hermann Wed, 13 Feb 2002 22:28:34 +0100 + +info2www (1.2.2.9-17) unstable; urgency=low + + * debian/rules: Don't use absolute paths as argument for dh_link. + * Change my email address to uwe@debian.org. + * debian/control: Mention that info2www needs a webserver with CGI + support. + + -- Uwe Hermann Wed, 2 Jan 2002 20:58:52 +0100 + +info2www (1.2.2.9-16) unstable; urgency=low + + * Create a symbolic link index.html which points to + info2www.html (Closes: #116760). + + -- Uwe Hermann Mon, 17 Dec 2001 12:22:28 +0100 + +info2www (1.2.2.9-15) unstable; urgency=low + + * Fix a bug which could cause a wrong $PATH to be used (Closes: #85793). + Thanks to Philippe Troin for the fix. + * Moved the images and the HTML file from /usr/share/doc/info2www/html + to /var/www/info2www, so that these files are accessible from other hosts + than localhost when using the default Debian apache configuration. + (Closes: #67020). + * Upload sponsored by Ralf Treinen . + + -- Uwe Hermann Fri, 5 Oct 2001 19:29:24 +0200 + +info2www (1.2.2.9-14) unstable; urgency=low + + * New maintainer. (Closes: #110940) + * Repackaged from scratch using debhelper v3. + * Update Depends to use ${perl:Depends}, generated by dh_perl. + * Depend on 'apache | httpd', i.e. list a real package before the virtual + package httpd (thanks lintian). + * I wrote a manpage for info2www. + * Standards-Version: 3.5.6.0 + + Added Build-Dependencies. (Closes: #92292) + The Build-Dependency on debhelper (>= 3.0.18) is due to the usage + of dh_perl (read the Debian Perl Policy for details). + + Use /var/cache/info2www instead of /var/tmp. (Closes: #39625) + Create /var/cache/info2www in postinst and purge it in postrm. + + No support for DEB_BUILD_OPTIONS, as there's nothing being compiled. + * Moved TODO to debian/TODO.Debian. + * debian/TODO.Debian: Fixed typos and reformatted the text a bit. + * Updated debian/copyright. + * Added debian/doc-base.info2www to integrate the info2www documentation + with the doc-base system. + * All HTML files should be HTML 4.01 conform now. + * info2www.html: + + Fixed typos. + + Removed the 'Configuration and installation' section as it's not + relevant for Debian users. + + I removed the useless link to ChangeLog, which doesn't really contain + any useful information. (Closes: #67123) + + Fix: the latest version is 1.2.2.9 not 1.2. + + Replaced link to w3 node with a link to the fileutils node, because + everyone should have fileutils installed, unlike w3. + * I converted all images to the PNG format. GIFs just plain suck + (Unisys, patent, license, bla bla...). Those PNG files are uuencoded due + to problems with diff and binary files... + * Moved info2www.html and the images to /usr/share/doc/info2www/html/. + * README: Added lots more documentation (mostly taken from info2www.html). + * info2www: Added WIDTH and HEIGHT HTML tags to the images, so that the + generated WWW pages load faster in most graphical browsers. + * Upload sponsored by Ralf Treinen . + + -- Uwe Hermann Wed, 5 Sep 2001 15:00:29 +0200 + +info2www (1.2.2.9-13) unstable; urgency=low + + * policy 3.1.0.0: /usr/doc links + + -- Marco Budde Wed, 10 Nov 1999 10:09:10 +0100 + +info2www (1.2.2.9-12) unstable; urgency=low + + * policy 3.0.0: /usr/share/doc, /usr/share/info + * Depends: perl | perl5 + + -- Marco Budde Tue, 20 Jul 1999 18:36:40 +0200 + +info2www (1.2.2.9-11) unstable; urgency=low + + * we are no using black text in + * new maintainer address + + -- Marco Budde Sat, 19 Jun 1999 19:55:15 +0200 + +info2www (1.2.2.9-10) unstable; urgency=low + + * new Debian maintainer + * new "Debian" style + + -- Marco Budde Wed, 12 Nov 1997 12:48:12 +0100 + +info2www (1.2.2.9-9) unstable; urgency=low + + * Fixed bug when a directory and and info file use the same base name + (bug #13469). Thanks to Martin Bialasinski for the patch! + * Upgrade to standards version 2.3.0.0 + + -- Christian Schwarz Fri, 17 Oct 1997 16:17:46 +0200 + +info2www (1.2.2.9-8) unstable; urgency=low + + * New file TODO to list all feature requests, currently #4903. + * Upgrade to standards version 2.2.0.0. + + -- Christian Schwarz Sat, 19 Jul 1997 21:06:43 +0200 + +info2www (1.2.2.9-7) unstable; urgency=low + + * fixed another bug with relative path specifications: if an info file + existed in more than one directory, the cache lookup returned the + wrong location + + -- Christian Schwarz Mon, 26 May 1997 13:27:28 +0200 + +info2www (1.2.2.9-6) unstable; urgency=low + + * info2www now handles relative path specifications correctly (bug #10014). + + -- Christian Schwarz Sun, 25 May 1997 19:39:40 +0200 + +info2www (1.2.2.9-5) unstable; urgency=low + + * Removed symlink in web root directory (fixes bug #8223). + + -- Christian Schwarz Sun, 23 Mar 1997 15:44:54 +0100 + +info2www (1.2.2.9-4) unstable; urgency=low + + * Made directories apply to Webstandard 3.0 (fixes bug #7386). + + -- Christian Schwarz Fri, 21 Mar 1997 00:26:02 +0100 + +info2www (1.2.2.9-3) unstable; urgency=low + + * New maintainer. + + -- Christian Schwarz Sat, 22 Feb 1997 20:47:18 +0100 + +info2www (1.2.2.9-2) unstable; urgency=low + + * Moved linking stuff from postinst to /usr/sbin/info2wwwconfig, + which is based on the similar script from dwww, and also + handles the new Apache setup. + * Added prerm script to remove the links. + + -- Lars Wirzenius Sat, 5 Oct 1996 01:14:35 +0300 + +info2www (1.2.2.9-1) unstable; urgency=low + + * First release. + + -- Lars Wirzenius Tue, 24 Sep 1996 21:00:34 +0300 + --- info2www-1.2.2.9.orig/debian/compat +++ info2www-1.2.2.9/debian/compat @@ -0,0 +1 @@ +7 --- info2www-1.2.2.9.orig/debian/control +++ info2www-1.2.2.9/debian/control @@ -0,0 +1,15 @@ +Source: info2www +Section: doc +Priority: optional +Maintainer: Uwe Hermann +Build-Depends-Indep: sharutils +Build-Depends: cdbs, debhelper (>= 5) +Standards-Version: 3.8.0 +Homepage: http://www.w3.org/Tools/info2www.html + +Package: info2www +Architecture: all +Depends: ${perl:Depends}, apache2 | httpd-cgi +Description: Read info files with a WWW browser + info2www lets you read info files with a WWW browser. It requires + an HTTP server with CGI support. --- info2www-1.2.2.9.orig/debian/copyright +++ info2www-1.2.2.9/debian/copyright @@ -0,0 +1,31 @@ +This package was debianized by Uwe Hermann on +Sun, 2 Sep 2001 15:56:06 +0200. + +This package was originally debianized by Lars Wirzenius . + +I have adopted it from Marco Budde , who maintained it +as of version 1.2.2.9-13. + +It was downloaded from: + + ??? + +Upstream Author: + + Roar Smith + +------------------------------------------------------------------------------- + +Files: * +Copyright: © Roar Smith +License: PD + +------------------------------------------------------------------------------- + +Files: debian/* +Copyright: © 2001 - 2008 Uwe Hermann +License: PD + The packaging done by Uwe Hermann is hereby + released as public domain. The packaging was completely redone by me, + pretty much nothing left from the previous maintainers. + --- info2www-1.2.2.9.orig/debian/dirs +++ info2www-1.2.2.9/debian/dirs @@ -0,0 +1,2 @@ +usr/lib/cgi-bin +var/lib/info2www --- info2www-1.2.2.9.orig/debian/doc-base.info2www +++ info2www-1.2.2.9/debian/doc-base.info2www @@ -0,0 +1,11 @@ +Document: info2www +Title: info2www manual +Author: Roar Smith +Abstract: This manual describes how you can use info2www, which is a + GNU Info Node to HTML Gateway. +Section: Viewers + +Format: HTML +Index: /usr/share/doc/info2www/html/info2www.html +Files: /usr/share/doc/info2www/html/info2www.html + --- info2www-1.2.2.9.orig/debian/docs +++ info2www-1.2.2.9/debian/docs @@ -0,0 +1 @@ +README --- info2www-1.2.2.9.orig/debian/info2www.1 +++ info2www-1.2.2.9/debian/info2www.1 @@ -0,0 +1,24 @@ +.TH INFO2WWW 1 "March 10, 2002" +.SH NAME +info2www \- read info files with a WWW browser +.SH SYNOPSIS +.B http://localhost/cgi-bin/info2www +.SH DESCRIPTION +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +.PP +.B info2www +is a CGI script which allows you to use a Web-browser to view any GNU Info +manuals installed on your system. +.SH BUGS +Please report any bugs you find to Roar Smith . +.SH LICENSE +.B info2www +is in the Public Domain. +.SH SEE ALSO +.BR man2html (8) +.SH AUTHOR +Roar Smith +.PP +This manual page was written by Uwe Hermann , +for the Debian GNU/Linux system (but may be used by others). --- info2www-1.2.2.9.orig/debian/infodoc.png.uu +++ info2www-1.2.2.9/debian/infodoc.png.uu @@ -0,0 +1,58 @@ +begin 600 infodoc.png +MB5!.1PT*&@H````-24A$4@```,@````T"`,```#XUH?.````!&=!34$``-;8 +MU$]8,@```!ET15AT4V]F='=A7')93P```!C +M4$Q410```,<`-D!`0+^_OW]_?Q`0$._O[]_?W\L00\_/SV!@8)^?G]5`:"`@ +M(/3/V?OO\C`P,(^/C_C?YJ^OK^-_FO&_S7!P<,X@3]Q@@N!PCNJ?L^:/I](P +M7-E0=>VOP%!04/___[;/(L4````A=%).4___________________________ +M________________`)_!T"$```B5241!5'C:8E!`!W)R(D)RDE(*=`52''P4 +MF@`00`RH7"%)#D80$.<1EY$6HI\_&!DI]0E``*%X1$B"$07PB`J)$F<,.PL7 +M035LW`+,./U!L4\``@C)(_R2C%B`+$&OL#&S"#`PL!#P*3<7*P,#,VY_4.H3 +M@`!">$1:G!$[D.7'HY^3">@^$,#C$4XNF").//Z@T"<``03W"")5R8A+B`"! +M+-QCXO@LD(T6@'B3H2+P>8<'K$8A/*"RU``((;#8?-(EB"W=IB)P((8^PX[-% +M$+]'0#ZAM!X!""`&>,(2QU'.0G./$`&/X+6%F8!'%/C$*:W9`0*(04$2$B$\ +MN`I9?DCI)4D%CPC0L'$`$$`,"E)"H!PM@5N)*#@G2&]D%F7A!3F-E`K6ST#S"+<\+ +MR1)B\"8)DD?8Q4`Z>+G0G,TLQHKP)Z<@K%7#R\2"WJZ!J>269X78`BXP`0*( +M08X#O4B28N2`>$Q4E@^>MC@4D#S+#JO@D`"BJ&5%$F5B0_<("X:<,`L+DP!2 +MH0-S8^LG*@>X<*4XV1%B*X$:B!J(3.C>%50` +M"""01U`*)!F4DIB?'^81:5C:@5G$!`XE893V(#3JN=B0TP$[PB-BZ`Y$3GC0 +MYAI$#2L7"S,SLR`36I0((T)0@(69&YY0F10``@CD$6GD'(+"4Y`214]:7&C) +M%EK\0BIM7I12%IJ.Q.!.!=G/*LC,S`(/=2[D!`/Q""<\D)#C7PRUK0.*`Q2^ +M`D``@3PBBE*-BV+&""@?H74M6-#J$28D6^&%#"\\62!2(QM*_F;%TH!FY67& +MK*:8T#PBAA:N"@`!A.X1$=08@9=:$GPHH6<)P +M!S*@1R03<@K%UZ5AQ^H1+O3.)S-``($\@MI"1&I4"4%Z*,#6L82<$(I![-@\ +MPHU:5,*#BP7A$78T/T)\AK=OAM4C@FC2#,P``83N$04.I%J%'UP)@AIC0M(H +M3N-5P.81,0SWH'M$`%T*XD#2/<*,X1&``,+PB`RTGA<5D82W&3DD80T4;N3R +M']TCF,U'=(^(8<_$I'N$'<,C``$$\H@<-60"\(<'J$C9F;!028L7H$(V:9`0((U$1!KMDEI*51NL_\P$:E +MC#3Z"!5VC\"2/0*@>X09^W@$%[HL,Q=:$X2P1P`"B$$$U2-"/!*2C!S2B+XT +M:F>%B0B/8`"$1Y!:Y-Q(3F)!]0@G$U8S\'L$((`8@!U9#N3RET].7)*#D4<* +M*,8O!1IXD.17H-`C\ECL1QF/0/4(-X[`P.\1@`!BX&=$K4A`L0`9EN.`#,AC +MZPZ2YA$6/!YAPO`(PA^L3"#`2IQ'``*(`5A,H0]:\8N(\XCP`($LQA0)[3W" +M#BTR6%G8,5H.^#P"$$`,X!$X&;11)7YI61X1$2F<'706K,4CK+)B1@/LI'B$ +M"[E-AMD0Q>D1@`""##[@'T4AT2/,."L#!LPVE!A:J<6&UI;"48]@>@0@@*## +M01Q$3K-Q80Z'D.D1%J2V!E(]PHT14D1Z!""`&"`#D"-NC`^C +M]<>),%J8`><,`X;][,CFX/,(%Y$>`0@@L!`_!]ZI'`6,@$0J59":&IC=8-P> +M$43."Y@>@< +MMB3H$8``8D",7!'E$V'444)XR@*'+3<#>FV&RR/<*,UZ)(]`PX67#9Y=7)H(CR#:=+Q<8@)H@YK"\/8>K*6DP,["RHT^]<:)MGX`R2/L<-/% +M6,"#V;S(XV;P;(CI$8``8D"9*Y0F(4K@-B)G&J0Q:@%Y8,\*//G`#/<(.V2T +M';V_B,Q''SSF1BG'F'%Z!""`&%#G;XGP"2=:1X$)98"&">OXMC"2P8PGY!5/PBA# +M[L@S+*!"`Z5`9D%O66YL=1-\S!3>MV)#)%9(@2R`JQKC!0@@S$E,.0EQ<0D1`JNTV)B!.5D8 +MDG>9P10GRE0?LR`+BSP34`TW/.PXA5E`8F(L+,QHU0R,S\Z.K%T0JI,=+`TA +A8?.E",LXV:#N`0@P`"A4)?^1N-8O`````$E%3D2N0F"" +` +end --- info2www-1.2.2.9.orig/debian/menu.png.uu +++ info2www-1.2.2.9/debian/menu.png.uu @@ -0,0 +1,13 @@ +begin 600 menu.png +MB5!.1PT*&@H````-24A$4@```!0````6!`,````R;Z$U````#U!,5$4````S +M,S.99C/_S)G,___9-H@J````!7123E/_____`/NV#E,````!8DM'1`2/:-E1 +M````3TE$051XVJW*P0V`0`A$T5FE`$QL0&S`8`,GZ\^HO15@Y%-FVTI"!LG=F8"7&;?-: +M$0```$-T15AT4V]F='=A4!M>7-T:6,N97,N9'5P;VYT+F-O;9&Z(;@````J=$58=%-I +M9VYA='5R90`R9F1A86$U-F4X83%D8S0W8S)C.&%B-C8U,&,R9F8P9'47_,<` +M```.=$58=%!A9V4`,C!X,C(K,"LP>5'R:P```%9T15AT0V]M;65N=`!4:&ES +M(&%R="!I/ +MS+\````H241!5'C:8_C___\!!B*(/S\_`PF+8B#!(0PD&)AA!)@+E@`I(=(\ +M`)033QM `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + # Create cache directory and chown/chmod it appropriately. + install -d -m 0775 -o root -g www-data /var/cache/info2www + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- info2www-1.2.2.9.orig/debian/postrm +++ info2www-1.2.2.9/debian/postrm @@ -0,0 +1,44 @@ +#!/bin/sh +# postrm script for info2www +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + purge) + # Remove cache directory and all files therein. + rm -rf /var/cache/info2www + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- info2www-1.2.2.9.orig/debian/prev.png.uu +++ info2www-1.2.2.9/debian/prev.png.uu @@ -0,0 +1,10 @@ +begin 600 prev.png +MB5!.1PT*&@H````-24A$4@```!H````8`0````#,^=!H`````F)+1T0`_X>/ +MS+\````I241!5'C:8_C___\!!B*(S\_/`XEV_@,,GUB`Q`<&&`'F@B7`2H@T +M#P!@3$X]@_"BL0```$-T15AT4V]F='=A4!M>7-T:6,N97,N9'5P;VYT+F-O;9&Z(;@` +M```J=$58=%-I9VYA='5R90`X9F0S8C)B-&8Y,3$W9#,R8C(Q-F4P961F-S-E +M868Y9!WC1?\````.=$58=%!A9V4`,C9X,C0K,"LP,'X.3`````!)14Y$KD)@ +!@@`` +` +end --- info2www-1.2.2.9.orig/debian/rules +++ info2www-1.2.2.9/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +DEB_INSTALL_MANPAGES_info2www := debian/info2www.1 + +binary-post-install/info2www:: + # Install the CGI script. + install info2www debian/info2www/usr/lib/cgi-bin/ + # Install the HTML file. + install info2www.html debian/info2www/var/lib/info2www + # Install the uuencoded PNG images. + install debian/*.uu debian/info2www/var/lib/info2www + # uudecode the images and remove the *.uu files. + (cd debian/info2www/var/lib/info2www; uudecode *.uu; rm -f *.uu) + # Set the correct permissions on the files. + chmod 644 debian/info2www/var/lib/info2www/* + # Setup symlinks. + dh_link var/lib/info2www/info2www.html var/lib/info2www/index.html \ + var/lib/info2www usr/share/doc/info2www/html + --- info2www-1.2.2.9.orig/debian/up.png.uu +++ info2www-1.2.2.9/debian/up.png.uu @@ -0,0 +1,10 @@ +begin 600 up.png +MB5!.1PT*&@H````-24A$4@```!H````8`0````#,^=!H`````F)+1T0`_X>/ +MS+\````W241!5'C:8_C___\!!JS$9Q#Q$$0<`!$-]4""P?X`PS\&^0,,?QCX +M#S#\8&"'$@AM"#$T"50"`(R(2,JR:J.S````0W1%6'13;V9T=V%R90!`*",I +M26UA9V5-86=I8VL@-"XR+C@@.3DO,#@O,#$@8W)I\n", "automatically generated by ", "$pg", - " version $version\n"; + " version $version\n\n\n"; } else { print "
\n", "automatically generated by ", "$pg", - " version $version\n"; + " version $version\n\n\n"; } exit(0); @@ -257,7 +265,7 @@ local($cachedfile, $cachedpos); local($info_img, $cache, $orglen, $regexp, $menu, $end, $listing, $active); local($matches, $blank, $lastblank, $seenMenu, $indirect, $inentry); - $info_img = "\"\" " if $INFO_ICON; + $info_img = "\"\" " if $INFO_ICON; # Nodename looks like one of these: # (file)label - Both file and label of the Info node given @@ -374,9 +382,9 @@ $CACHE{"($node_file)$target"} = "$entrypos\0$file"; } print - "Info Node: ", + "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n\"http://www.w3.org/TR/REC-html4/loose.dtd\">\n\n<HTML>\n<HEAD><TITLE>Info Node: ", &HTMLify("($h_file)$h_node"), - "\n", + "\n\n\n", "

", "$info_img", &HTMLify("($h_file)$h_node"), @@ -387,25 +395,25 @@ if (defined $h_next) { $h_next = &HTMLify($h_next); print - "Next: ", + "Next: ", &Anchor($linkh, $h_next, $h_next, $NEXT_ICON, 1), - " "; + " "; $n++; } if (defined $h_prev) { $h_prev = &HTMLify($h_prev); print - "Prev: ", + "Prev: ", &Anchor($linkh, $h_prev, $h_prev, $PREV_ICON, 1), - " "; + " "; $n++; } if (defined $h_up) { $h_up = &HTMLify($h_up); print - "Up: ", + "Up: ", &Anchor($linkh, $h_up, $h_up, $UP_ICON, 1), - " "; + " "; $n++; } print "
\n"; @@ -414,7 +422,7 @@ "", " ", + " SIZE=\"30\"> ", "Enter node , (file) ", "or (file)node\n") if $INPUTFORM; @@ -481,40 +489,36 @@ #------------------------------------------------------------ if ($menu == 0 && $seenMenu) { - print "\n" if $listing; $listing = 0; # End text + print "\n" if $listing; $listing = 0; # End text print "\n
" unless $menu; $menu = 1; # Start menu } # * foo:: /^\*\s+([^:]+)::/ && do { $rest_of_line = $'; - print - "
", &Anchor($linkh, $1, $1, $MENU_ICON), - "
"; + print "
", &Anchor($linkh, $1, $1, $MENU_ICON), "
"; $rest_of_line =~ s/^[\s\.]+//; - print $rest_of_line, "\n"; + print "
$rest_of_line
\n"; next; }; # * foo: (bar)beer OR (bar) /^\*\s+([^:]+):\s*\(([^\) \t\n]+)\)([^\t\n\.,]*)/ && do { $rest_of_line = $'; - print - "
", &Anchor($linkh, "($2)$3",$1, $MENU_ICON), - "
"; + print "
", &Anchor($linkh, "($2)$3",$1, $MENU_ICON), + "
"; $rest_of_line =~ s/^[\s\.]+//; - print $rest_of_line, "\n"; + print "
$rest_of_line\n"; next; }; # * foo: beer. /^\*\s+([^:]+):\s*([^\t,\n\.]+)/ && do { $rest_of_line = $'; - print - "
", &Anchor($linkh, $2, $1, $MENU_ICON), - "
", $2, ". "; + print "
", &Anchor($linkh, $2, $1, $MENU_ICON), + "
", $2, ". "; $rest_of_line =~ s/^[\s\.]+//; - print $rest_of_line, "\n"; + print "$rest_of_line
\n"; next; }; @@ -523,7 +527,7 @@ $menu && $lastblank && do { print "
\n" if $menu; $menu = 0; # End menu - print "
\n" unless $listing; $listing = 1; # Start text
+		print "
\n" unless $listing; $listing = 1; # Start text
 	    };
 
 	    $menu && do {
@@ -553,7 +557,7 @@
 		    if (/\*note(\s+)([^:\.]+)::/i) {
 			s//:=:NOTE:=:/;	# insert unique (I hope) marker
 			local($spc, $ref, $lbl) = ($1, $2, $2);
-			local($note) = "Note:$spc";
+			local($note) = "Note:$spc";
 			$note .= &Anchor($linkh, $ref, $lbl);
 			s/:=:NOTE:=:/$note/;
 			$n++;
@@ -565,7 +569,7 @@
 			s//:=:NOTE:=:/;	# insert unique (I hope) marker
 			local($spc, $ref, $lbl) = ($1, "($3)$4", "$2$5");
 			local($nl) = ($ref =~ /\n/) ? "\n" : "";
-			local($note) = "Note:$spc";
+			local($note) = "Note:$spc";
 			$note .= &Anchor($linkh, $ref, $lbl);
 			s/:=:NOTE:=:/$note$nl/;
 			$n++;
@@ -577,7 +581,7 @@
 			s//:=:NOTE:=:/;	# insert unique (I hope) marker
 			local($spc, $ref, $lbl) = ($1, $3, "$2$4");
 			local($nl) = ($ref =~ /\n/) ? "\n" : "";
-			local($note) = "Note:$spc";
+			local($note) = "Note:$spc";
 			$note .= &Anchor($linkh, $ref, $lbl);
 			s/:=:NOTE:=:/$note$nl/;
 			$n++;
@@ -677,7 +681,10 @@
     $href =~ s/\s+/+/g;		# Encode multiple blanks as a "+" encoded space
     $href = "$PREFIX$href";
     if ($icon) {
-	$img = "\"\*\" ";
+	if ($icon eq $MENU_ICON)
+	  { $img = "\"\" "; }
+        else
+	  { $img = "\"\" "; }
     }
     if ($iconlink) {
 	return "$img$label";
@@ -764,14 +771,14 @@
 	($dir, $fil) = ($name =~ m|(.*)/([^/]*)$|);
 	if ($ALLOWPATH || grep($_ eq $dir, @INFOPATH)) {
 	    @list = ($name);
-	    push(@list, "$name.gz") if (@GZCAT && !$name =~ /\.gz$|\.Z$/);
-	    push(@list, "$name.Z") if (@ZCAT && !$name =~ /\.gz$|\.Z$/);
+	    push(@list, "$name.gz") if (@GZCAT && !($name =~ /\.gz$|\.Z$/));
+	    push(@list, "$name.Z") if (@ZCAT && !($name =~ /\.gz$|\.Z$/));
 	    push(@list, $aname);
-	    push(@list, "$aname.gz") if (@GZCAT && !$aname =~ /\.gz$|\.Z$/);
-	    push(@list, "$aname.Z") if (@ZCAT && !$aname =~ /\.gz$|\.Z$/);
+	    push(@list, "$aname.gz") if (@GZCAT && !($aname =~ /\.gz$|\.Z$/));
+	    push(@list, "$aname.Z") if (@ZCAT && !($aname =~ /\.gz$|\.Z$/));
 	    foreach (@list) {
 		$DEBUG && &Debug("Trying absolute match for \"$_\"...");
-		if (-e $_) {
+		if (-f $_) {
 		    ($dir, $fil) = ($_ =~ m|(.*)/([^/]*)$|);
 		    return($dir, $fil);
 		}
@@ -780,7 +787,28 @@
 	    $name =~ s,^.*/([^/]*)$,$1,;
 	    $aname =~ s,^.*/([^/]*)$,$1,;
 	    $DEBUG && &Debug("Stripped path from filename: $name");
-	} elsif (!$ALLOWPATH) {
+	} elsif ($ALLOWRELPATH && !($name =~ /^\//) && !($name =~ /\.\./)) {
+	    @list = ();
+            foreach $dir (@INFOPATH) {
+	       push(@list, "$dir/$name");
+	       push(@list, "$dir/$name.gz") if (@GZCAT && !($name =~ /\.gz$|\.Z$/));
+	       push(@list, "$dir/$name.Z") if (@ZCAT && !($name =~ /\.gz$|\.Z$/));
+	       push(@list, "$dir/$aname");
+	       push(@list, "$dir/$aname.gz") if (@GZCAT && !($aname =~ /\.gz$|\.Z$/));
+	       push(@list, "$dir/$aname.Z") if (@ZCAT && !($aname =~ /\.gz$|\.Z$/));
+	    }
+	    foreach (@list) {
+		$DEBUG && &Debug("Trying absolute match for \"$_\"...");
+		if (-f $_) {
+		    ($dir, $fil) = ($_ =~ m|(.*)/([^/]*)$|);
+		    return($dir, $fil);
+		}
+	    }
+	    # Remove path component
+	    $name =~ s,^.*/([^/]*)$,$1,;
+	    $aname =~ s,^.*/([^/]*)$,$1,;
+	    $DEBUG && &Debug("Stripped path from filename: $name");
+	} else {
 	    $DEBUG && &Debug("Warning: Absolute path-names not allowed!");
 	    $name =~ s,^.*/([^/]*)$,$1,;
 	    $aname =~ s,^.*/([^/]*)$,$1,;
@@ -792,11 +820,11 @@
     $DEBUG && &Debug("Trying exact match for \"$name\"...");
     foreach $dir (@INFOPATH) {
 	@list = ("$dir/$name");
-	push(@list, "$dir/$name.gz") if (@GZCAT && !$name =~ /\.gz$|\.Z$/);
-	push(@list, "$dir/$name.Z") if (@ZCAT && !$name =~ /\.gz$|\.Z$/);
+	push(@list, "$dir/$name.gz") if (@GZCAT && !($name =~ /\.gz$|\.Z$/));
+	push(@list, "$dir/$name.Z") if (@ZCAT && !($name =~ /\.gz$|\.Z$/));
 	foreach (@list) {
 	    $DEBUG && &Debug("Trying exact match for \"$_\"...");
-	    if (-e $_) {
+	    if (-f $_) {
 		($dir, $fil) = ($_ =~ m|(.*)/([^/]*)$|);
 		return($dir, $fil);
 	    }
@@ -806,11 +834,11 @@
     $DEBUG && &Debug("Trying exact match for \"$aname\"...");
     foreach $dir (@INFOPATH) {
 	@list = ("$dir/$aname");
-	push(@list, "$dir/$aname.gz") if (@GZCAT && !$aname =~ /\.gz$|\.Z$/);
-	push(@list, "$dir/$aname.Z") if (@ZCAT && !$aname =~ /\.gz$|\.Z$/);
+	push(@list, "$dir/$aname.gz") if (@GZCAT && !($aname =~ /\.gz$|\.Z$/));
+	push(@list, "$dir/$aname.Z") if (@ZCAT && !($aname =~ /\.gz$|\.Z$/));
 	foreach (@list) {
 	    $DEBUG && &Debug("Trying exact match for \"$_\"...");
-	    if (-e $_) {
+	    if (-f $_) {
 		($dir, $fil) = ($_ =~ m|(.*)/([^/]*)$|);
 		return($dir, $fil);
 	    }
@@ -949,7 +977,7 @@
 	return(undef);
     }
     if (!$cachevalue) {
-	if ($cachekey =~ m,\(.*/.*\).*,) {
+	if (!$ALLOWRELPATH && ($cachekey =~ m,\(.*/.*\).*,)) {
 	    # Remove path and try again
 	    ($newkey = $cachekey) =~ s,^\([^\)]*/([^/\)]*)\),($1),;
 	    $DEBUG && &Debug("New key: $newkey");
@@ -1113,6 +1141,15 @@
 # Print an HTML error message
 sub Error {
     local($reason) = @_;
+
+    # Security checks to prevent at least _some_ forms of XSS attacks.
+    # TODO: This is far from complete, more checks need to be done!
+    $reason =~ s//>/gs;
+    $reason =~ s/&/&/gs;
+    $reason =~ s/"/"/gs;
+    $reason =~ s/#//gs;
+
     print "Sorry! - $reason\n

\n"; return(0); } --- info2www-1.2.2.9.orig/info2www.html +++ info2www-1.2.2.9/info2www.html @@ -1,79 +1,71 @@ + + - -info2www - The GNU Info Node to HTML Gateway - - - - - - -

-info2www - The GNU Info Node to HTML Gateway

- -Copyright: This program is in the Public Domain.

- -Latest version is 1.2 - see the ChangeLog -for more information. -

-The info2www -script makes your CGI compliant HTTP/1.0 or later server a gateway -to all that information you have "stacked away" in the GNU Info Nodes -(you know - the Info Nodes accessible from Emacs).

- -The Info Nodes are parsed and formatted on the fly by info2www and presents -hyperlinks to other Info Nodes that your WWW browser can use (hopefully).

- -

Configuration and installation

-The following steps are necessary for getting info2www up and running:

-

    -
  1. Make sure that Perl is installed on your system -
  2. Choose a directory under your DocumentRoot directory, e.g. -DocumentRoot/info2www for keeping the info2www files in. -
  3. Create this directory and "cd" into it. -
  4. Extract the tar-file info2www-1.2.tar.Z -in this directory -
  5. Edit the info2www script and make the following changes: -
      -
    • Change the first line to use the path to where Perl is installed on -your system. -
    • Change the @INFOPATH array to contain the directory(-ies) where you keep -your GNU Info Node files. -
    • Change the %ALIAS associative array to map aliases the way you like. -
    • If the path to your info2www directory is different than -DocumentRoot/info2www then change the references to where the icons -are really located (relative to DocumentRoot).
      -You can even set one or more icon references to "" and that icon will not -be used! -
    • If you want to use your own local copy of this document then change -$DOCREF to point at your own URL for this document. -
    -
  6. Copy or make a link of info2www to your CGI script directory - -e.g. DocumentRoot/cgi-bin . -
  7. Include hyperlinks to the info2www CGI interface wherever you want in -your other hypertext documents. -
- -

Using info2www

-The info2www script should be called with 0 or 1 argument as follows: -
-
<A HREF="http://yourserver/your-cgi-dir/info2www"> -Directory</A> -
Access the default Info Node (DIR)Top

-

<A HREF="http://yourserver/your-cgi-dir/info2www?(w3)"> -W3</A> -
Access the Info Node (w3)Top

-

<A HREF="http://yourserver/your-cgi-dir/info2www?(gzip)Concept%20Index"> - -GZIP Concept Index</A> -
Access the Info Node (gzip)Concept%20Index

-

- -Enjoy! -
-
- -Roar Smith <lmdrsm@lmd.ericsson.se> - -
- + + info2www - The GNU Info Node to HTML Gateway + + + + + + + + Debian GNU/Linux

+ +

info2www - The GNU Info Node to HTML Gateway

+ + +

Introduction

+ + This is the info2www CGI gateway between GNU Info Nodes and the WWW.

+ + The info2www script makes your CGI compliant HTTP/1.0 or later server + a gateway to all that information you have "stacked away" in the + GNU Info Nodes (you know - the Info Nodes accessible from Emacs).

+ + The Info Nodes are parsed and formatted on the fly by info2www and present + hyperlinks to other Info Nodes that your WWW browser can use.

+ + The latest version of info2www is 1.2.2.9.

+ + +

Usage

+ + The info2www script should be called with zero or one argument as follows: + +
+
<A HREF="/cgi-bin/info2www">Directory</A> +
Access the default Info Node (DIR)Top

+ +

<A HREF="/cgi-bin/info2www?(fileutils)">fileutils</A> +
Access the Info Node (fileutils.info)Top

+ +

<A HREF="/cgi-bin/info2www?(gzip)Concept%20Index">GZIP Concept Index</A> +
Access the Info Node (gzip.info)Concept Index

+

+ +

+ + +

Copyright

+ + This program is in the Public Domain.

+ + +

Author

+ +
+ Roar Smith + <lmdrsm@lmd.ericsson.se> + +
+ + http://www-lmd.ericsson.se/~lmdrsm/lmdrsm.html (down) +
+ +

+ + +