--- lynx-cur-2.8.8pre1.orig/debian/README.Debian
+++ lynx-cur-2.8.8pre1/debian/README.Debian
@@ -0,0 +1,58 @@
+lynx-cur for Debian
+----------------------
+
+Developemnet version of lynx with NLS support.
+
+* If you need SSL support based on OpenSSL, please try the followings: 
+1. modify debian/rules (uncomment the following line).
+   #SSL=ssl
+2. rebuild the package and install it.
+
+* In /etc/lynx-cur/lynx.cfg, we set
+
+EXTERNAL:ftp:w3m %s:TRUE
+EXTERNAL:file:w3m %s:TRUE
+EXTERNAL:http:w3m %s:TRUE
+EXTERNAL:http:wget %s:TRUE
+EXTERNAL:http:wget -r %s:TRUE
+EXTERNAL:ftp:netscape %s:TRUE
+EXTERNAL:file:netscape %s:TRUE
+EXTERNAL:http:netscape %s:TRUE
+
+which gives a popup menu when you press '.' or ',' for the current link 
+or page respectively,
+
+SUFFIX:.deb:application/octet-stream
+SUFFIX:.tgz:application/octet-stream
+
+and
+
+INCLUDE:~/.lynx/colors:COLOR
+INCLUDE:~/.lynx/keymap:KEYMAP
+INCLUDE:~/.lynx/viewers:VIEWER
+INCLUDE:~/.lynx/external:EXTERNAL
+
+the latter will enable you to alter options privately by the files
+~/.lynx/colors etc.
+
+* In /etc/lynx-cur/local.cfg, you may check the settings of
+
+STARTFILE:, NNTPSERVER:
+
+* In /etc/lynx-cur/lynx.cfg, you might want to modify the settings of
+
+LOCAL_DOMAIN:, SAVE_SPACE:
+
+* If you use always option "-use_mouse" then it may be useful to set
+alias lynx 'lynx -use_mouse'
+in appropriate file, for example .bashrc or .tcshrc
+
+* lynx will be in color mode but if this causes any troubles do:
+
+1) In Lynx Options Menu, set option "show color" as "NEVER"
+then the default is changed to monochrome.
+
+2) If you do not want to change default setting, then try
+lynx -nocolor
+
+ -- Atsuhito KOHDA <kohda@debian.org>, Wed,  7 Jul 1999 07:29:50 +0900
--- lynx-cur-2.8.8pre1.orig/debian/README.source
+++ lynx-cur-2.8.8pre1/debian/README.source
@@ -0,0 +1,4 @@
+The source package uses quilt for the modifications of the upstream source.
+If you want to change something it is best to use the quilt approach 
+as documented in 
+	/usr/share/doc/quilt/README.source
--- lynx-cur-2.8.8pre1.orig/debian/changelog
+++ lynx-cur-2.8.8pre1/debian/changelog
@@ -0,0 +1,1585 @@
+lynx-cur (2.8.8pre1-1) unstable; urgency=low
+
+  * New upstream release
+   - add clarification in manpage regarding -force_html option versus -dump
+     or -crawl.  (Closes: #254603, #295273)
+   - simplify file-URLs shown in reference list of -dump.  (Closes: #334787)
+   - improve manpage descriptions of -reload, -get_data and -post_data.
+     (Closes: #350853)
+   - modify the INFO page  (Closes: #398274)
+   - extend the "Bad HTML" warning feature to -dump option when the -stderr
+     option is also set (Closes: #398304)
+   - modify configuration of COLOR_STYLE value in lynx.cfg, allowing multiple
+     filenames to be specified and providing those as choices in the O'ptions
+     menu (Closes: #404893)
+   - correct search logic to match links which are wrapped on the right margin.
+     (Closes: #546264)
+   - add -list_inline option, which modifies -dump output to put links inline
+     with the text.  (Closes: #584080)
+   - improve warning message for GNUTLS_CERT_SIGNER_NOT_FOUND (Closes: #695653)
+   - minor change to Content-Length logic to work with Amazon's cookies
+     (Closes: #720541)
+   - ignore non-fatal return codes from gnutls_handshake  (Closes: #724812)
+  * Applied a patch to use dh_autotools-dev to update config.{sub,guess}
+    for new ports.  Thanks to Matthias Klose <doko AT debian DOT org>
+    (Closes: #729864)
+
+ -- Atsuhito Kohda <kohda@debian.org>  Mon, 02 Dec 2013 15:45:55 +0900
+
+lynx-cur (2.8.8dev.16-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Atsuhito Kohda <kohda@debian.org>  Fri, 02 Aug 2013 14:12:39 +0900
+
+lynx-cur (2.8.8dev.15-2) unstable; urgency=low
+
+  * Mark lynx-cur Multi-Arch: foreign.  Thanks to Colin Watson
+    <cjwatson AT ubuntu DOT com>  (Closes: #694904)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 18 Jan 2013 14:17:53 +0900
+
+lynx-cur (2.8.8dev.15-1) unstable; urgency=low
+
+  * New Upstream Release.
+   - Fixed a security bug, CVE-2012-5821: improve checking of certificates
+     in the gnutls_certificate_verify_peers2() by handling special case where
+     self-signed certificates should be reported (patch by Jamie Strandboge).
+     (Closes: #692443)
+   - revise nsl-fork logic for passing addrinfo and hostent data back
+     to eliminate fixed limit on the number of records to return
+     (Closes: #691904)
+   - corrected position of highlighting from search/whereis function when using
+     multibyte characters.  (Closes: #673385)
+  * Updated patches files in debian/patches.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed, 21 Nov 2012 21:54:10 +0900
+
+lynx-cur (2.8.8dev.14-1) unstable; urgency=low
+
+  * New Upstream Release.
+   - correct formatting of large file-sizes in directory listing
+     (Closes: #666213)
+   - fix an unbounded loop in restrictions_fun() which could cause a core dump
+     (Closes: #616107)
+   - limit downloaded files by Content-Length if any, to match behavior of IE,
+     Firefox and some other browsers; (Closes: #681214)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu, 23 Aug 2012 12:00:21 +0900
+
+lynx-cur (2.8.8dev.12-2) unstable; urgency=low
+
+  * Applied use-dpkg-buildflags.patch which added hardening flags for
+    makeuctb.  Thanks to Simon Ruderich <simon AT ruderich DOT org>
+    (Closes: #664656)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sun, 25 Mar 2012 19:46:44 +0900
+
+lynx-cur (2.8.8dev.12-1) unstable; urgency=low
+
+  * New Upstream Release.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu, 23 Feb 2012 16:07:22 +0900
+
+lynx-cur (2.8.8dev.11-1) unstable; urgency=low
+
+  * New Upstream Release.
+  * Simplified packaging a bit.  Now control-ssl was generated from
+    control-gnu.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 20 Feb 2012 11:44:17 +0900
+
+lynx-cur (2.8.8dev.10-1) unstable; urgency=low
+
+  * New Upstream Release.
+   - add "submit" and "reset" commands (Closes: #603645)
+   - modify check in HText_endForm (Closes: #603648)
+  * Modified packaging a bit so that it is easy to rebuild the package
+    which supports SSL based on OpenSSL (cf. README.Debian).
+  * Updated patches.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 14 Feb 2012 08:02:14 +0900
+
+lynx-cur (2.8.8dev.9-3) unstable; urgency=low
+
+  * Enabled hardened build flags.  Thanks to Moritz Muehlenhoff
+    <jmm AT debian.org>.  (Closes: #654097)
+  * Converted from dpatch to quilt.  Thanks to lintian.  Also cleaned up
+    some lintian warnings.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 03 Jan 2012 07:30:50 +0900
+
+lynx-cur (2.8.8dev.9-2) unstable; urgency=low
+
+  * Merging in unstable.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 21 Jun 2011 12:21:36 +0900
+
+lynx-cur (2.8.8dev.9-1) experimental; urgency=low
+
+  * New Upstream Release.  Updated patch-1.
+  * Yet continue to change packaging.
+    Removed unnecessary po-debconf from Build-Depends.
+    - now no alternatives for lynx.1  (Closes: #258858)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 13 Jun 2011 14:39:34 +0900
+
+lynx-cur (2.8.8dev.8-2) experimental; urgency=low
+
+  * New packaging.  So drastically changed packaging, this should go
+    experimental for test.
+    Provided only transition lynx-cur-wrapper so conflicted
+    with lynx-cur-wrapper (<< 2.8.8dev.8-2).
+    Removed update-alternatives of lynx from old lynx-cur and lynx-cur-wrapper
+    - not fiddling with local.cfg anymore.  (Closes: #515848, #607005, #627126)
+    - not used alternatives anymore. (Closes: #268925)
+    - made lynx-cur-wrapper as transition package.  (Closes: #293068, #619318)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 07 Jun 2011 13:10:45 +0900
+
+lynx-cur (2.8.8dev.8-1) unstable; urgency=low
+
+  * New Upstream Release.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed, 26 Jan 2011 13:21:26 +0900
+
+lynx-cur (2.8.8dev.7-1) unstable; urgency=low
+
+  * New Upstream Release.
+   - add PERSONAL_MAIL_NAME to options menu and .lynxrc (Closes: #603647)
+   - remind user how to cancel message (Closes: #292787)
+   - add HTML5_CHARSETS feature (Closes: #604466, #514897)
+   - add EXTERNAL_MENU feature to lynx.cfg (Closes: #603646)
+   - add check in getfile() when handling a "mailto:" url, to prevent it
+     when the user has requested a dump (Closes: #533308)
+   - makes RMDIR_PATH configurable (Closes: #604984)
+  * Replaced obsolete "netscape" to "x-www-brpwser" in patch-1
+    (Closes: #600693)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 13 Dec 2010 15:38:16 +0900
+
+lynx-cur (2.8.8dev.6-3) unstable; urgency=low
+
+  * Applied lynx2.8.8dev.6b.patch (by patches/patch-3)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 08 Nov 2010 21:23:34 +0900
+
+lynx-cur (2.8.8dev.6-2) unstable; urgency=low
+
+  * Applied lynx2.8.8dev.6a.patch (by patches/patch-3)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 08 Nov 2010 13:48:24 +0900
+
+lynx-cur (2.8.8dev.6-1) unstable; urgency=low
+
+  * New Upstream Release.
+   - amend change for Debian #514897 to exclude XML documents
+     (Closes: #592883)
+   - use HTParsePort() in a few places, e.g., HTFinger.c, to allow for IPv6
+     addresses with colons (Closes: #587330)
+   - add option -unique-urls (Closes: #586762)
+  * Updated patch-1 for a new upstream source.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 05 Nov 2010 16:05:27 +0900
+
+lynx-cur (2.8.8dev.5-1) unstable; urgency=high
+
+  * New upstream release.  This should fix a security bug so urgency=high.
+  * Fixed a security bug, CVE-2010-2810  (Closes: #594300)
+  * A fix for #592078 with patch-3 is not necessary so removed it.
+  * Some bugs forgotten to be closed.
+   - unable to reproduce. (Closes: #575922)
+   - a problem of gnutls. (Closes: #592718)
+   - if necessary, please reopen. (Closes: #490265)
+   - only a report of a patch for 2.8.7dev9-1.1 (Closes: #489360)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu, 26 Aug 2010 09:50:33 +0900
+
+lynx-cur (2.8.8dev.4-3) unstable; urgency=low
+
+  * Applied a patch from the upstream.  (Closes: #592078)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 09 Aug 2010 11:06:00 +0900
+
+lynx-cur (2.8.8dev.4-2) unstable; urgency=low
+
+  * Applied a patch from the upstream (Mon, 28 Jun 2010 20:32:58 -0400 (EDT)).
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 29 Jun 2010 09:44:13 +0900
+
+lynx-cur (2.8.8dev.4-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sat, 26 Jun 2010 12:19:47 +0900
+
+lynx-cur (2.8.8dev.3-3) unstable; urgency=low
+
+  * Fixed a problem of ssl connection by a patch from the upstream.
+    Closes: #579501
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu, 06 May 2010 10:48:26 +0900
+
+lynx-cur (2.8.8dev.3-2) unstable; urgency=low
+
+  * Fixed a small error in 2.8.8dev.3
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 27 Apr 2010 20:45:15 +0900
+
+lynx-cur (2.8.8dev.3-1) unstable; urgency=low
+
+  * New Upstream Release.
+   - modify print_wwwfile_to_fd() to add field values to the printed form
+     Closes: #574940
+   - correct a place where LYStrExtent2 was used where byte-count is needed
+     Closes: #561363
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 26 Apr 2010 15:22:19 +0900
+
+lynx-cur (2.8.8dev.2-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Dropped empty lynx-cur-wrapper.postrm
+  * Fix pending l10n issues. Debconf translations:
+    - Finnish (Esko Arajärvi).  Closes: #537446
+
+ -- Christian Perrier <bubulle@debian.org>  Fri, 19 Mar 2010 06:42:57 +0100
+
+lynx-cur (2.8.8dev.2-1) unstable; urgency=low
+
+  * New Upstream Release.
+   - modify trimming of URI in LYSetCookie() to eliminate trimming of 
+     final leaf  (Closes: #460108)
+  * Updated rules, control and patches files.
+  * Changed lynx.cfg and now we set LOCALE_CHARSET:TRUE
+  * Added libidn11-dev to Build-Depends to fix #541694  (Closes: #541694)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sun, 19 Dec 2009 20:04:44 +0900
+
+lynx-cur (2.8.8dev.1-1) unstable; urgency=low
+
+  * New Upstream Release.
+   - add optional support for IDNA using GNU libidn (Closes: #352596)
+   - ignore LEFT-TO-RIGHT-MARK (U+200E) in HTML files (Closes: #408835)
+   - correct check for return-value from gnutls_certificate_verify_peers2(),
+     which caused some sites to be treated as if they were version-1 X.509 CAs
+     (Closes: #231609)
+   - change compiled-in default for SYSLOG_REQUESTED_URLS to false.
+     (Closes: #537907)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 31 Aug 2009 20:04:44 +0900
+
+lynx-cur (2.8.7rel.1-1) unstable; urgency=low
+
+  * New Upstream Release.
+  * Linked against libbsd to fix a security problem.  (Closes: #532520)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed,  8 Jul 2009 21:08:12 +0900
+
+lynx-cur (2.8.7pre6-1) unstable; urgency=low
+
+  * New Upstream Release.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed, 24 Jun 2009 12:24:37 +0900
+
+lynx-cur (2.8.7pre5-1) unstable; urgency=low
+
+  * New Upstream Release.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sun,  7 Jun 2009 21:50:20 +0900
+
+lynx-cur (2.8.7pre4-1) unstable; urgency=low
+
+  * New Upstream Release.
+   - amend fix for Debian #388622  (Closes: #388622)
+   - suppress check for "disabled" attribute in a select, as a workaround
+     (Closes: #525934)
+   - accommodate (in)compatibility "feature" in HTML5 draft  (Closes: #514897)
+   - Sanitize build-dependencies.  Applied suggested patch which I forgot 
+     to do in former versions.  (Closes: #481767)
+  * Sanitize build-dependencies.  Removed exim4, bzip2, unzip, zip also.
+     There remain sharutils, telnet, openssh-client now.
+  * Uncomment SSL_CERT_FILE line in lynx.cfg  (Closes: #529482)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed, 27 May 2009 12:44:09 +0900
+
+lynx-cur (2.8.7pre2-1) unstable; urgency=low
+
+  * New Upstream Release.
+   - modify Lynx's DTD information.  (Closes: #398986)
+   - correct length of padding with underscores.  (Closes: #519199)
+   - fix a few cases where PUTC's intended for pretty-src would display in the
+     HTML view.  (Closes: #521489)
+  * Can use persistent cookies now but please edit /etc/lynx-cur/lynx.cfg
+    and make it looks as "PERSISTENT_COOKIES:TRUE"  (Closes: #426481)
+  * Updated patch-1 so it should be applied cleanly.
+  * Fixed typo in 2.8.7pre1-1 changelog.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 01 May 2009 13:02:04 +0900
+
+lynx-cur (2.8.7pre1-1) unstable; urgency=low
+
+  * New Upstream Release.
+  * Changed default setting in lynx.cfg "SHOW_CURSOR:TRUE" for test.
+    There could be more smart way however.  (Closes: #516726)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sun, 22 Mar 2009 18:14:38 +0900
+
+lynx-cur (2.8.7dev13-1) unstable; urgency=low
+
+  * New Upstream Release.
+  * Stopped to apply patches/patch-2 which was unnecessary anymore.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 02 Feb 2009 19:57:58 +0900
+
+lynx-cur (2.8.7dev12-2) unstable; urgency=low
+
+  * Fixed broken UTF-8 displaying in local files with dev12.
+    The patch is fetched from lynx-dev ML and stored in patches/patch-2.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 20 Jan 2009 09:50:51 +0900
+
+lynx-cur (2.8.7dev12-1) unstable; urgency=low
+
+  * New Upstream Release.
+  * Removed unnecessary patch-2 and updated patch-1
+  * Fixed Description, i.e. removed reference to lynx.  (Closes: #509929)
+  * It seemed I forgot to close #258859 which was fixed long time ago. 
+    (Closes: #258859)
+  * Clean up preinst a bit.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 02 Jan 2009 20:48:55 +0900
+
+lynx-cur (2.8.7dev11-2) unstable; urgency=low
+
+  * Fix HTFile.c with a patch of Thomas Dickey.  (Closes: #509321)
+  * Fix lynx.cur.wrapper so that it will read the default lynx.cfg
+    (Closes: #509411)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 23 Dec 2008 17:08:55 +0900
+
+lynx-cur (2.8.7dev11-1) unstable; urgency=low
+
+  * New Upstream Release (2.8.7dev11).  Also applied lynx2.8.7dev.11a.patch.
+  * A patch of Thomas Viehmann was merged in the upstream so removed it
+    from debian/patches/00list file.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu, 18 Dec 2008 22:03:36 +0900
+
+lynx-cur (2.8.7dev10-5) unstable; urgency=low
+
+  * Fixed postinst and now a handling of local.cfg should be correct.
+    (Closes: #492468) 
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sun, 23 Nov 2008 07:51:09 +0900
+
+lynx-cur (2.8.7dev10-4) unstable; urgency=low
+
+  * Oops, I overlooked Thomas Viehmann's upload and fix.  Sorry Thomas!
+  * Reduced Build-Dependency.  (Closes: #506210)
+  * Added Homepage in control.  (Closes: #506278)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 21 Nov 2008 09:02:02 +0900
+
+lynx-cur (2.8.7dev10-3) unstable; urgency=low
+
+  * Fixed postinst so that it didn't touch local.cfg if it wasn't a regular
+    file.  (Closes: #492468)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 26 Sep 2008 12:38:16 +0900
+
+lynx-cur (2.8.7dev10-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * fix src/tidy_tls.c X509_get_issuer_name to actually take the issuer
+    DN of the present certificate and not hope that it is the same as
+    taking the subject DN of the "next" certificate which
+    may or may not exist. Closes: #499945
+    This is debian/patches/patch-3.
+
+ -- Thomas Viehmann <tv@beamnet.de>  Fri, 03 Oct 2008 23:24:41 +0200
+
+lynx-cur (2.8.7dev10-2) unstable; urgency=low
+
+  * Installed new (dummy) lynx-cur-wrapper.postrm because an old version,
+    which was empty, caused an error.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu, 25 Sep 2008 08:11:00 +0900
+
+lynx-cur (2.8.7dev10-1) unstable; urgency=low
+
+  * New Upstream Release.
+   - modify initial active link in download-page (Closes: #376259)
+   - revise introductory comment written to ".lynxrc" (Closes: #461158)
+   - suppress computation in TrimmedLength() for source-view (Closes: #204515)
+   - adapt/extend parsdate.y from tin to improve parsing of cookie expiration
+     times (Closes: #480144)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed, 24 Sep 2008 11:55:24 +0900
+
+lynx-cur (2.8.7dev9-2) unstable; urgency=low
+
+  * Andreas' efforts keep this package in Debian.  Thanks Andreas Metzler.
+  * Debconf translations:
+    - Japanese. Closes: #493674
+    - Italian. Closes: #493959
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 02 Sep 2008 10:40:21 +0900
+
+lynx-cur (2.8.7dev9-1.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Downgrade priority of debconf question for homepage to "low".
+    Closes: #489489
+  * Disable debconf priority high note about existence of /etc/lynx.cfg. (Due
+    to debconf preconfiguration it would be shown even if upgrading the lynx
+    dummy package would correctly take care of the issue.) Closes: #489485
+  * Build with --enable-ipv6. (Regression from lynx package and release
+    target.) Closes: #489484,#480414
+
+ -- Andreas Metzler <ametzler@debian.org>  Sat, 12 Jul 2008 09:31:43 +0000
+
+lynx-cur (2.8.7dev9-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Remove local.cfg on purge instead of remove. Closes: #474928
+  * Revamp handling of debconf managed configuration file local.cfg as
+    described in debconf-devel(7).
+    Closes: #474926
+  * lynx-cur-wrapper: Simply ship the /etc/lynx-cur/lynx-??.cfg as dpkg
+    conffiles instead of generating (and removing) them in the
+    maintainerscripts. Closes: #481778,#481774
+  * Add a dummy package lynx, which switches from lynx to lynx-cur. The old
+    stable codebase (lynx) is dead; upstream suggest using the lynx-cur
+    releases.
+    Closes: #369386
+  * lynx-cur does not provide lynx anymore. It is not completely necessary
+    since the dummy package lynx pulls in lynx-cur. The provides broke
+    upgrades from lynx (installed ok) lynx-cur (deinstall ok config-files).
+
+ -- Andreas Metzler <ametzler@debian.org>  Sat, 05 Jul 2008 10:21:38 +0200
+
+lynx-cur (2.8.7dev9-1) unstable; urgency=low
+
+  * New Upstream Release.
+  * Resurrect "--with-gnutls" option because it doesn't cause any license
+    problem now.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon,  5 May 2008 21:33:42 +0900
+
+lynx-cur (2.8.7dev8-1) unstable; urgency=low
+
+  * New Upstream Release.
+  * Fixed Section field of doc-base file.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu, 13 Mar 2008 00:03:36 +0900
+
+lynx-cur (2.8.7dev7-4) unstable; urgency=low
+
+  * Stop linking to gnutls library because its license (GPLv3+) conflicts
+    with that of lynx itself (GPLv2).  (Closes: #468768)
+
+ -- Atsuhito KOHDA <kohda@pm.tokushima-u.ac.jp>  Mon, 10 Mar 2008 22:09:36 +0900
+
+lynx-cur (2.8.7dev7-3) unstable; urgency=low
+
+  * Changed "exim4-daemon-light | mail-transport-agent" in Build-Depends.
+  * Fixed wrong changelog entry of 2.8.7dev7-2; removed wrong statement 
+    referring to userdefs.h
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu, 20 Sep 2007 17:58:05 +0900
+
+lynx-cur (2.8.7dev7-2) unstable; urgency=low
+
+  * Oops, with pbuilder, there is no bzip2, etc. unless we set them in 
+    Build-Depends.  I noticed this with a bug report from Ivan Avramovic 
+    <iavramovic AT gmail DOT com>.  Thanks Ivan!
+    For later reference: Added in Build-Depends: zip, unzip, sharutils, 
+    bzip2, ncompress, telnet, openssh-client, exim4-daemon-light
+    This also should fix sendmail settings.  (Closes: #398004, #439070)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 24 Aug 2007 14:10:08 +0900
+
+lynx-cur (2.8.7dev7-1) unstable; urgency=low
+
+  * New Upstream Release.  (Closes: #428536)
+  * Follows the new menu hierarchy.
+  * Fixed lintian warnings (debian-rules-ignores-make-clean-error and
+    translated-default-field and also removed unnecessary COPYING.asc,
+    COPYHEADE.asc).
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 03 Aug 2007 10:03:48 +0900
+
+lynx-cur (2.8.7dev5-1) unstable; urgency=low
+
+  * New Upstream Release.
+  * Build with pbuilder for the first time.
+  * Removed patch-2 because upstream's makefile.in was refined.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sat, 19 May 2007 00:06:27 +0900
+
+lynx-cur (2.8.7dev4-2) unstable; urgency=low
+
+  * Added translations of debconf templates.  (Closes: #418900, #420212)
+   - nl.po, thanks to "cobaco (aka Bart Cornelis)" <cobaco _at_ skolelinux.no>
+   - pt.po, thanks to Miguel Figueiredo <elmig _at_ debianpt.org> and
+     Traduz - Portuguese Translation Team <traduz _at_ debianpt.org>.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 23 Apr 2007 07:16:20 +0900
+
+lynx-cur (2.8.7dev4-1) unstable; urgency=low
+
+  * New Upstream Release.  This version fixed the following (Closes: #396949)
+  * Updated patch-1, patch-2 for this version.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu, 16 Nov 2006 08:39:02 +0900
+
+lynx-cur (2.8.7dev2-1) unstable; urgency=low
+
+  * New Upstream Release.
+   - modify logic for reading PERSONAL_EXTENSION_MAP and PERSONAL_MAILCAP to
+     ensure that they are files that are controlled only by the user.  The
+     default values for these allow lynx to read configuration information
+     from the user's current directory at lynx's startup (Closes: #396949)
+  * Modified makefile.in slightly in order not scare people.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue,  7 Nov 2006 14:11:36 +0900
+
+lynx-cur (2.8.7dev1-1) unstable; urgency=low
+
+  * New Upstream Release.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 13 Oct 2006 09:48:33 +0900
+
+lynx-cur (2.8.6pre5-1) unstable; urgency=low
+
+  * New Upstream Release.
+  * Updated patch-1 to be appliable for the current lynx.cfg and 
+    about_lynx.html
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed,  4 Oct 2006 13:54:17 +0900
+
+lynx-cur (2.8.6pre4-1) unstable; urgency=low
+
+  * New Upstream Release.
+  * Oops, I forgot to update ca.po in the former package!
+    I updated certainly this time.  Sorry and thanks to Jordà Polo 
+    <jorda@ettin.org>  (Closes: #375969)
+  * Some bugs fixed already.
+   - Documented in manpage (Closes: #292393)
+   - 2006-05-29 (2.8.6dev.18)
+     * suppress OpenSSL URL from version message if it happens to be built 
+       using GNU TLS -TD (Closes: #336741)
+   - documented in the lynx_url_support.html file (Closes: #303084)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 22 Sep 2006 11:22:23 +0900
+
+lynx-cur (2.8.6pre3-1) unstable; urgency=low
+
+  * New Upstream Release.
+  - if the side-effect of getfile() is unneeded, we restore the link number
+    as well as the line number (Closes: #386561)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 11 Sep 2006 20:28:52 +0900
+
+lynx-cur (2.8.6pre2-1) unstable; urgency=low
+
+  * New Upstream Release.
+  - add -stderr option to write error messages when doing a -dump -or -source.
+    (Closes: #375736)
+  - ensure the number of "extra" blanks in a line is greater than zero before
+    attempting to perform text-justification (Closes: #363538)
+  - fix a sign-extension in alignment case-statement in split_line() 
+    (Closes: #360832, #372670)
+  * Upstream changed --enable-color-style enabled by default so I followed it.
+  * Updated translations of debconf templates.  Thanks to all.
+  - fr.po, Philippe Batailler <philippe.batailler@free.fr>
+  - cs.po, Miroslav Kure <kurem@upcase.inf.upol.cz>
+  - ru.po, Yuri Kozlov <kozlov.y@gmail.com>
+  - de.po, Jens Nachtigall <nachtigall@web.de>
+  - sv.po, Daniel Nylander <po@danielnylander.se>
+  - pt_BR.po, Andre Luis Lopes <andrelop@debian.org>
+  - vi.po, Clytie Siddall <clytie@riverland.net.au>
+  - es.po, David Martínez Moreno <ender@debian.org>
+  (Closes: #373615, #373998)
+  * There was no time to upload 2.8.6dev19 because 2.8.6pre2 was released
+    so soon.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon,  4 Sep 2006 11:04:25 +0900
+
+lynx-cur (2.8.6dev18-2.1) unstable; urgency=low
+
+  * Fixed rules more systematically.  I guess this could fix FTBFS bug.
+    (Closes: #372075)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 13 Jun 2006 23:48:34 +0900
+
+lynx-cur (2.8.6dev18-2) unstable; urgency=low
+
+  * Fixed rules (added -A option to dh_installdirs).  Thanks to 
+    Benjamin Seidenberg <astronut@dlgeek.net>
+    I'll fix this more systematically later.  (Closes: #372075)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 13 Jun 2006 10:08:10 +0900
+
+lynx-cur (2.8.6dev18-1) unstable; urgency=low
+
+  * New upstream release.
+  * Adapted Elimar Riesebieter packaging.  Thanks Elimar Riesebieter 
+    <riesebie@lxtec.de>  (Closes: #352507)
+   - Change short description in templates.
+   - Added debconf-updatepo to the clean target in rules.
+   - Changed version according to upstream version.
+   - Don't upgrade via patches anymore. Upstream tarball used.
+   - Introduced dpatch.
+   - Bumped Standard version -- no changes needed.
+   - Reworked rules
+     - introduced DH_OPTIONS
+     - Cleaned up
+   - Reworked bashism in debian/postinst.
+   - Set compatibility to 4 in debian/compat.
+   - Corrected fsf adress in copyright.
+   - patch-2 was included upstream some versions ago, so commented in
+     patches/00list.
+   - There should be no more "Unreversed patch detected!" in the buildlogs
+     anymore. This was because the patches where applied to the diff file.
+   - Should be (almost) lintian clean now.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sun,  4 Jun 2006 08:22:06 +0900
+
+lynx-cur (2.8.6-20) unstable; urgency=low
+
+  * Added "--enable-justify-elts" option and changed "JUSTIFY:TRUE" in lynx.cfg
+  * Reverted ncursesw again!  This fixed broken utf-8 support.
+    (Closes: #252856, #240069)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu,  2 Feb 2006 14:39:06 +0900
+
+lynx-cur (2.8.6-19) unstable; urgency=low
+
+  * This is of 2.8.6dev.17
+  - modify parsing of filename from Content-Disposition so that the name is not
+  truncated on embedded whitespace.  (Closes: #291716)
+  - fixes to source-view of ftp:// and file:// URLs, i.e., eliminate redundant
+  PRE's, add DOCTYPE and meta tags  (Closes: #347989)
+  - Upstream author taught us that a bug was fixed as a side-effect of
+  2.8.6dev.14 (modify initialization so that "cat options.txt | lynx - "
+  will allow interactive use).  (Closes: #284677)
+  * Oops, I mistyped dev version of a patch in 2.8.6-18.  Fixed.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 27 Jan 2006 08:10:54 +0900
+
+lynx-cur (2.8.6-18) unstable; urgency=low
+
+  * This is of 2.8.6dev.16
+  - print the contents of image maps, if any, at the end of a dump 
+  (Closes: #335593)
+  - fix off-by-one line calculation that allowed the last page to be blank
+  (Closes: #330413)
+  - strip unneeded "&nbsp;" from translation when building info page using
+  wide curses (Closes: #342877)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 19 Dec 2005 09:01:05 +0900
+
+lynx-cur (2.8.6-17) unstable; urgency=low
+
+  * This is of 2.8.6dev.15
+  * Corrected wrong dev number(dev.13 to dev.14) in 2.8.6-16
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 31 Oct 2005 21:07:59 +0900
+
+lynx-cur (2.8.6-16) unstable; urgency=low
+
+  * This is of 2.8.6dev.14 (closes: #334423)
+   - eliminate fixed-size buffers in LYExpandHostForURL() to guard against
+     buffer overflow resulting from too-long domain prefix/suffix data from
+     lynx.cfg (report by Ulf Harnhammar, CAN-2005-3120) -TD
+  * Added Swedish translation for debconf messages.  Thanks to Daniel Nylander
+    <yeager@lidkoping.net>  (closes: #332360)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 18 Oct 2005 08:27:39 +0900
+
+lynx-cur (2.8.6-15) unstable; urgency=low
+
+  * Updated Build-Dependency on libgnutls-dev.
+  * Fixed Dependency on debconf (with ${misc:Depends}) suggested by
+    Joey Hess <joeyh@debian.org>.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed,  3 Aug 2005 10:05:29 +0900
+
+lynx-cur (2.8.6-14) unstable; urgency=low
+
+  * This is of 2.8.6dev.13
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed,  8 Jun 2005 16:57:54 +0900
+
+lynx-cur (2.8.6-13) unstable; urgency=low
+
+  * This is of 2.8.6dev.12
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sun,  5 Jun 2005 08:18:01 +0900
+
+lynx-cur (2.8.6-12) unstable; urgency=low
+
+  * Added Vietnamese translation for debconf messages.  Thanks to Clytie 
+    Siddall <clytie@riverland.net.au>  (Closes: #309056)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 16 May 2005 11:28:40 +0900
+
+lynx-cur (2.8.6-11) unstable; urgency=low
+
+  * Corrected `head -n 1' instead of `head -1' in postinst.  Thanks to
+    Robert Luberda <robert@debian.org>  (Closes: #308845)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 13 May 2005 07:11:36 +0900
+
+lynx-cur (2.8.6-10) unstable; urgency=low
+
+  * Added Czech translation of debconf messages.  Thanks to Miroslav Kure 
+    <kurem@upcase.inf.upol.cz>  (Closes: #308026)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed, 11 May 2005 11:04:43 +0900
+
+lynx-cur (2.8.6-9) unstable; urgency=low
+
+  * This is of 2.8.6dev.11
+  * syslog'ing of URLs didn't seem to be an appropriate default setting and
+    it could be enabled with a setting in lynx.cfg or a command line option
+    if lynx was compiled with --enable-syslog.  So I decided to compile lynx 
+    with --enable-syslog but to set "SYSLOG_REQUESTED_URLS:FALSE" in lynx.cfg
+    You can enable it with a command line option "syslog-urls=on" or with
+    editting lynx.cfg appropriately.  (Closes: #288480)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu,  6 Jan 2005 11:10:15 +0900
+
+lynx-cur (2.8.6-8) unstable; urgency=low
+
+  * This is of 2.8.6dev.10
+  - syslog'ing of URLs was now an option in lynx.cfg or in command line.
+    (Closes:  #282739)
+  - fixed gap in title from newline. (Closes: #284679)
+  - fixed can't climb to the root directory.  (Closes: #285140)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon,  3 Jan 2005 11:05:58 +0900
+
+lynx-cur (2.8.6-7) unstable; urgency=low
+
+  * Fixed Build-Depends on libncurses5-dev (from wrong libncuresew5-dev).
+    (Closes: #282699)
+  * Removed duplicated changelog in 2.8.6-6
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed, 24 Nov 2004 09:35:06 +0900
+
+lynx-cur (2.8.6-6) unstable; urgency=low
+
+  * This is of 2.8.6dev.8
+  * Changed --with-screen option from ncursesw to ncurses because there
+    was a problem with ncursesw and the patches since 2.8.6dev6
+  * The followings were fixed with 2.8.6-5 which was not uploaded.
+   - modify template for temporary-directory name, adding "lynx" prefix 
+     (Closes: #267356)
+   - add -listonly option and -nonumbers option  (Closes: #255571)
+   - we should check #240069 and #254603
+  * Updated de.po  Thanks to Jens Nachtigall <nachtigall@web.de>
+    (Closes: #276902)
+  * Fixed lynx-cur.1; removed (misplaced) Japanese characters.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 19 Nov 2004 09:32:29 +0900
+
+lynx-cur (2.8.6-5) unstable; urgency=low
+
+  * This is of 2.8.6dev.7
+  * Fixed lynx-cur.1; removed (misplaced) Japanese characters.
+  * Changed options of configure a bit.
+   - added --enable-forms-options --enable-justify-elts --enable-partial
+     --enable-read-eta --enable-scrollbar --enable-syslog
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 18 Oct 2004 07:46:37 +0900
+
+lynx-cur (2.8.6-4) unstable; urgency=low
+
+  * Fixed dependency on libgnutls.  (Closes: #264755)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 10 Aug 2004 23:07:01 +0900
+
+lynx-cur (2.8.6-3) unstable; urgency=low
+
+  * This is of 2.8.6dev.5
+   - lynx accepts multiple URLs on the command line  (Closes: #177062)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu,  1 Jul 2004 10:05:58 +0900
+
+lynx-cur (2.8.6-2) unstable; urgency=low
+
+  * This is of 2.8.6dev.4
+   - refined Japanes and UTF-8 support with --enable-japanese-utf8 
+     configure option.
+   - fixed a problem of unable to reach google.
+
+ -- Atsuhito KOHDA <kohda@pm.tokushima-u.ac.jp>  Mon, 24 May 2004 11:21:14 +0900
+
+lynx-cur (2.8.6-1) unstable; urgency=low
+
+  * New upstream release.  This is of 2.8.6dev.3
+  * Added support for utf-8 to lynx-cur-wrapper experimentally.  It would
+    work only with mlterm at present.
+   - added handling of *.utf-8 in debian/lynx script.
+   - added code for lynx-utf.cfg in lynx-cur-wrapper.{postinst,postrm}
+  * Refine update-alternatives for /usr/bin/lynx; used --slave for manual page.
+   - renamed lynx.1 to lynx.cur.1 in rules.
+   - lowered the priority because lynx used priority 20
+  * Used update-alternatives for www-browser.  (Closes: #238803)
+   - modified lynx-cur{-wrapper}.{postinst,prerm}
+  * Fixed menu (according to lintian error).
+  * Removed non-used conffiles, docs.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu,  10 May 2004 13:22:29 +0900
+
+lynx-cur (2.8.5-20) unstable; urgency=low
+
+  * This is of 2.8.5pre5
+  * Updated po/da.po of upstream lynx-cur message catalogue. Thanks to Morten
+    Bo Johansen <mojo@image.dk>  (Closes: #230633)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed,  4 Feb 2004 09:47:57 +0900
+
+lynx-cur (2.8.5-19) unstable; urgency=low
+
+  * This is of 2.8.5pre4
+  * Improved long description a bit more.  Thanks to Florent Rougon 
+    <f.rougon@free.fr>
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu, 29 Jan 2004 09:58:08 +0900
+
+lynx-cur (2.8.5-18) unstable; urgency=low
+
+  * This is of 2.8.5pre3
+  * Improved the long description. (Closes: #229448)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sun, 25 Jan 2004 18:31:44 +0900
+
+lynx-cur (2.8.5-17) unstable; urgency=low
+
+  * Added support for nested-tables (experimentally).
+  * Changed --with-screen option from ncurses to ncursesw.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 23 Jan 2004 11:18:20 +0900
+
+lynx-cur (2.8.5-16) unstable; urgency=low
+
+  * This is of 2.8.5pre1 and 2.8.5pre2
+  * Updated copyright file.
+  * Cleaned up documents.  Now almost all documents would be in docs
+    and removed lynx_help/COPYHEADER under /usr/share/doc/lynx-cur
+    So we modified about_lynx.html correspondingly.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 19 Jan 2004 22:18:34 +0900
+
+lynx-cur (2.8.5-15) unstable; urgency=low
+
+  * This is of dev.17
+  * po/uk.po refused a patch so modified manually.  This was a side-effect
+    of CVS maintenance and never an original problem ;)
+  * Added HTTPS support with gnutls, but this was yet experimental.
+    (Closes: #205438)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 12 Jan 2004 20:12:17 +0900
+
+lynx-cur (2.8.5-14) unstable; urgency=low
+
+  * New/updated ru.po, thanks to Ilgiz Kalmetev <translator@ilgiz.pp.ru>
+    (Closes: #214373)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon,  6 Oct 2003 21:59:37 +0900
+
+lynx-cur (2.8.5-13) unstable; urgency=low
+
+  * Added pt_BR.po, thanks to Andre Luis Lopes <andrelop@debian.org>
+    (Closes: #197534)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sat, 21 Jun 2003 21:18:53 +0900
+
+lynx-cur (2.8.5-12) unstable; urgency=low
+
+  * This is of dev.16
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon,  2 Jun 2003 15:01:43 +0900
+
+lynx-cur (2.8.5-11) unstable; urgency=low
+
+  * Oops, I forgot to update!  This is of dev.15
+  * Fixed fr.po  (Closes: #190256)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu, 29 May 2003 16:25:53 +0900
+
+lynx-cur (2.8.5-10) unstable; urgency=low
+
+  * Removed ssl support because the licenses don't permit lynx with ssl.
+    (Closes: #187972)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon,  7 Apr 2003 21:00:53 +0900
+
+lynx-cur (2.8.5-9) unstable; urgency=low
+
+  * Updated fr.po, thanks to Philippe Batailler <philippe.batailler@free.fr>
+    (Closes: #186369)
+  * Now supported ssl.  I suspected Replaces: lynx, lynx-ssl seemed too strong
+    so removed it now.  (Closes: #186872)
+  * Fixed Build-Depends on debhelper with the correct version.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon,  7 Apr 2003 13:46:40 +0900
+
+lynx-cur (2.8.5-8) unstable; urgency=low
+
+  * Replaced templates.fr with the correct one, I hope.  Thanks to
+    Denis Barbier <barbier@debian.org>  (Closes: #183058)
+  * Changed default URL to www.debian.org
+  * Fixed config to avoid infinite loops.  Thanks to Robert Luberda 
+    <robert@debian.org>  (Closes: #183096)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon,  3 Mar 2003 07:28:43 +0900
+
+lynx-cur (2.8.5-7) unstable; urgency=low
+
+  * This is of dev.14
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu,  6 Feb 2003 08:16:00 +0900
+
+lynx-cur (2.8.5-6) unstable; urgency=low
+
+  * This is of dev.13
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 24 Jan 2003 10:30:16 +0900
+
+lynx-cur (2.8.5-5) unstable; urgency=low
+
+  * Moved lynx-cur-wrapper stuffs to binary-indep in rules.  (Closes: #174372)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 27 Dec 2002 12:23:23 +0900
+
+lynx-cur (2.8.5-4) unstable; urgency=low
+
+  * This is of dev.12 and this fixed memory leak problem!
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu, 19 Dec 2002 11:39:42 +0900
+
+lynx-cur (2.8.5-3.5) unstable; urgency=low
+
+  * This is of dev.11 (dev.10 was skipped in upstream)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon,  2 Dec 2002 17:01:52 +0900
+
+lynx-cur (2.8.5-3.4) unstable; urgency=low
+
+  * Fixed prerm so that "update-alternatives --remove" would not be called
+    at upgrade.
+  * Modified patch-1 according to modification of lynx.cfg with dev.9 patch.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon,  7 Oct 2002 12:58:42 +0900
+
+lynx-cur (2.8.5-3.3) unstable; urgency=low
+
+  * This is of dev.9
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon,  7 Oct 2002 10:24:12 +0900
+
+lynx-cur (2.8.5-3.2) unstable; urgency=low
+
+  * Fixed lintian warning; mv etc_lynx.cfg stuffs from postinst to config.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 24 Sep 2002 12:08:09 +0900
+
+lynx-cur (2.8.5-3.1) unstable; urgency=low
+
+  * Added support of gnome-terminal and jfbterm in lynx-cur-wrapper.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 13 Aug 2002 13:22:53 +0900
+
+lynx-cur (2.8.5-3) unstable; urgency=low
+
+  * Added new french translation of templates contributed by Philippe
+    Batailler  (closes: #151720)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sat,  6 Jul 2002 21:09:04 +0900
+
+lynx-cur (2.8.5-2.6) unstable; urgency=low
+
+  * This is of dev.8 and the patches of Hataguchi Takeshi was included
+    in dev.8 patch so we didn't apply patch-2 anymore.
+  * I reverted config.{guess,sub} to those of dev.8 because they were
+    updated and I believed this would not cause trouble with mips.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sun,  2 Jun 2002 08:56:40 +0900
+
+lynx-cur (2.8.5-2.5) unstable; urgency=low
+
+  * Added catalan translation of templates contributed by Antoni Bella
+    <bella5@teleline.es>  (closes: #139735)
+  * Applied the patch of Hataguchi Takeshi <patakuti@t3.rim.or.jp>
+    for hilighting problem found in lynx-dev (Sat, 9 Mar 2002); patch-2.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 26 Mar 2002 13:39:57 +0900
+
+lynx-cur (2.8.5-2.4) unstable; urgency=low
+
+  * Added --enable-default-colors to configure options.  Thanks to 
+    MATSUDA Yoh-ichi <matsuda@palnet.or.jp> for reporting this.
+  * Applied the patch of Hataguchi Takeshi <patakuti@t3.rim.or.jp>
+    for hilighting problem found in lynx-dev (Thu, 7 Feb 2002); patch-2.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 18 Feb 2002 17:03:58 +0900
+
+lynx-cur (2.8.5-2.3) unstable; urgency=low
+
+  * Replaced config.guess with that of autotools-dev so that lynx-cur
+    can be built in mips.  (closes: #131056)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sun, 27 Jan 2002 09:45:03 +0900
+
+lynx-cur (2.8.5-2.2) unstable; urgency=low
+
+  * This is of dev.7
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue,  8 Jan 2002 07:29:52 +0900
+
+lynx-cur (2.8.5-2.1) unstable; urgency=low
+
+  * This is of dev.6
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed,  2 Jan 2002 19:15:54 +0900
+
+lynx-cur (2.8.5-2) unstable; urgency=low
+
+  * This is of dev.5
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 20 Nov 2001 09:56:31 +0900
+
+lynx-cur (2.8.5-1.9) unstable; urgency=low
+
+  * This is of dev.4
+  * Used ncurses instead of slang.  This enables us to reduce a script lynx
+    substantially because we need not to fiddle with TERM any more.
+  * Added lynx-cur.1 to fix lintian error.
+  * Modified debian/config so that dpkg-reconfigure would work.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri,  9 Nov 2001 10:02:46 +0900
+
+lynx-cur (2.8.5-1.7) unstable; urgency=low
+
+  * Fixed lynx_help/about_lynx.html because we did not install "COPYING".
+  * Supported building with debugging information through the environment
+    variable `DEB_BUILD_OPTIONS'
+  * Also rewrote rules a bit substantially.
+  * Updated Standards-Version: 3.5.1
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed, 10 Oct 2001 10:35:58 +0900
+
+lynx-cur (2.8.5-1.4) unstable; urgency=low
+
+  * This is of dev.3
+  * Fixed Priority (optional to extra).  Conflict with lynx perhaps forced 
+    this, I guessed.
+  * Closed bug really this time.  (closes: #114387)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Sat,  6 Oct 2001 08:15:41 +0900
+
+lynx-cur (2.8.5-1.3) unstable; urgency=low
+
+  * Versioned up because of the former failure.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri,  5 Oct 2001 14:37:45 +0900
+
+lynx-cur (2.8.5-1.2) unstable; urgency=low
+
+  * Added russian translation of templates contributed by ilgiz kalmetev 
+    <i.kalmetev@bis.bashtelecom.ru>  (closes: #114387)
+  * Moved local.cfg.in from /etc/lynx-cur/ to doc/lynx-cur
+  * Added External application support to lynx.cfg, now you can see Tables
+    with w3m, for example, from lynx.
+  * Fixed lintian errors, updated Standards-Version: 3.2.1 and changed
+    debconf (>=0.5.00) in Depends field.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu,  4 Oct 2001 13:43:11 +0900
+
+lynx-cur (2.8.5-1.1) unstable; urgency=low
+
+  * This is of dev.2
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu, 16 Aug 2001 09:43:45 +0900
+
+lynx-cur (2.8.5-1) unstable; urgency=low
+
+  * New Upstream Release.  This is of 2.8.5dev.1 and same as 2.8.4rel.1a
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed, 25 Jul 2001 10:58:03 +0900
+
+lynx-cur (2.8.4-4) unstable; urgency=low
+
+  * This is of rel.1, that is, this is Lynx v2.8.4 release.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu, 19 Jul 2001 09:57:03 +0900
+
+lynx-cur (2.8.4-3.8) unstable; urgency=low
+
+  * This is of pre.5
+  * Fixed typos in this file (pre.3 -> pre.4 in 3.7, filed -> field in 3.5).
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 16 Jul 2001 09:03:05 +0900
+
+lynx-cur (2.8.4-3.7) unstable; urgency=low
+
+  * This is of pre.4
+  * Modified patch-1 to eliminate warnings after pre.3 (Debian specific).
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Wed, 11 Jul 2001 07:38:57 +0900
+
+lynx-cur (2.8.4-3.6) unstable; urgency=low
+
+  * This is of pre.3
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 10 Jul 2001 09:23:57 +0900
+
+lynx-cur (2.8.4-3.5) unstable; urgency=low
+
+  * This is of pre.2
+  * Added gettext to Build-Depends: field.  (closes: #100366)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon, 11 Jun 2001 14:46:22 +0900
+
+lynx-cur (2.8.4-3.4) unstable; urgency=low
+
+  * This is of dev.21 + pre.1
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon,  4 Jun 2001 07:39:27 +0900
+
+lynx-cur (2.8.4-3.3) unstable; urgency=low
+
+  * Added german translation of templates contributed by 
+    <Joerg.Rieger@informatik.med.uni-giessen.de>.  (closes: #94130)
+  * Changed deprecated 'isdefault' to 'seen' in debconf config.  This is
+    borrowed from lynx, thanks Matthew Danish <mdanish@andrew.cmu.edu>.
+  * Updated ja.po of http://www2.iro.umontreal.ca/~pinard/po/ (closes: #99091)
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Thu, 19 Apr 2001 10:03:03 +0900
+
+lynx-cur (2.8.4-3.2) unstable; urgency=low
+
+  * This is of dev.20 and this version wouldn't need curses lib any more.
+    (closes: #88089)
+  * Adopted spanish translation of templates contributed by 
+    Carlos Valdivia Yage <valyag@teleline.es>.  (closes: #92374)
+  * Refined handling of local.cfg a bit.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Mon,  2 Apr 2001 10:26:31 +0900
+
+lynx-cur (2.8.4-3.1) unstable; urgency=low
+
+  * This is of dev.19
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Tue, 27 Feb 2001 13:20:04 +0900
+
+lynx-cur (2.8.4-3) unstable; urgency=low
+
+  * Official Debian Release.  (closes: #85798)
+  * Standards-Version: 3.1.1, at least.
+
+ -- Atsuhito KOHDA <kohda@debian.org>  Fri, 16 Feb 2001 16:41:56 +0900
+
+lynx-cur (2.8.4-2.11) unstable; urgency=low
+
+  * This is of dev.18 and aims to merge Debian.
+  * Separates wrapper part to lynx-cur-wrapper.
+
+ -- Atsuhito KOHDA <kohda@pm.tokushima-u.ac.jp>  Mon, 12 Feb 2001 14:32:33 +0900
+
+lynx-cur (2.8.4-2.9) unstable; urgency=low
+
+  * This is of dev.16 and ja.po was included in original distribution now.
+  * Added docs/README.ssl
+
+ -- Atsuhito KOHDA <kohda@pm.tokushima-u.ac.jp>  Wed,  3 Jan 2001 09:21:56 +0900
+
+lynx-cur (2.8.4-2.8) unstable; urgency=low
+
+  * This is of dev.15 and we used lynx2.8.4dev.15.tar.bz2 instead of patch.
+  * Updated ja.po of PO-Revision-Date: 2000-10-11 09:47+09:00
+
+ -- Atsuhito KOHDA <kohda@pm.tokushima-u.ac.jp>  Sat, 23 Dec 2000 10:03:22 +0900
+
+lynx-cur (2.8.4-2.7) unstable; urgency=low
+
+  * This is of dev.14.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Sat,  4 Nov 2000 09:19:05 +0900
+
+lynx-cur (2.8.4-2.6) unstable; urgency=low
+
+  * This is of dev.13.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Thu, 26 Oct 2000 07:56:58 +0900
+
+lynx-cur (2.8.4-2.5) unstable; urgency=low
+
+  * This is of dev.11.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Thu, 19 Oct 2000 11:17:38 +0900
+
+lynx-cur (2.8.4-2.4) unstable; urgency=low
+
+  * This is of dev.10.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Fri, 22 Sep 2000 13:46:58 +0900
+
+lynx-cur (2.8.4-2.3) unstable; urgency=low
+
+  * This is of dev.9.  This fixes serious damage of dev.8.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Sat,  2 Sep 2000 08:59:18 +0900
+
+lynx-cur (2.8.4-2.2) unstable; urgency=low
+
+  * This is of dev.8 and refined version of multibyte character patch for 
+    status line by Takeshi Hataguchi <patakuti@t3.rim.or.jp> is merged now.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Fri, 25 Aug 2000 16:41:15 +0900
+
+lynx-cur (2.8.4-2.1) unstable; urgency=low
+
+  * Apply refined version of multibyte character patch for status line by 
+    Takeshi Hataguchi <patakuti@t3.rim.or.jp>
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Tue,  8 Aug 2000 11:36:23 +0900
+
+lynx-cur (2.8.4-2) unstable; urgency=low
+
+  * This is of dev.7 and multibyte character patch for status line by 
+    Takeshi Hataguchi <patakuti@t3.rim.or.jp> is merged now.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Fri,  4 Aug 2000 07:24:05 +0900
+
+lynx-cur (2.8.4-1.9) unstable; urgency=low
+
+  * This is of dev.6
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Tue, 18 Jul 2000 14:49:44 +0900
+
+lynx-cur (2.8.4-1.8) unstable; urgency=low
+
+  * Apply multibyte character patch for status line by Takeshi Hataguchi
+    <patakuti@t3.rim.or.jp>
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Sun,  9 Jul 2000 07:55:50 +0900
+
+lynx-cur (2.8.4-1.7) unstable; urgency=low
+
+  * Add --without-included-gettext to configure option.
+  * Refine post{inst,rm} and preinst.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Thu, 29 Jun 2000 11:27:42 +0900
+
+lynx-cur (2.8.4-1.6) unstable; urgency=low
+
+  * Add settings for da.po in lynx script, postinst etc. which I forgot
+    by mistake.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Tue, 27 Jun 2000 07:38:51 +0900
+
+lynx-cur (2.8.4-1.5) unstable; urgency=low
+
+  * This is of dev.4
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Sun, 25 Jun 2000 09:14:19 +0900
+
+lynx-cur (2.8.4-1.4) unstable; urgency=low
+
+  * Fix patch-1 so that warnings disappear in dev.3
+  * Updated ru.po and added da.po
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Thu,  8 Jun 2000 09:38:54 +0900
+
+lynx-cur (2.8.4-1.3) unstable; urgency=low
+
+  * This is of dev.3
+  * Disabled PREPEND_BASE_TO_SOURCE in default lynx.cfg as lynx of Debian
+    which I forgot in 1.1 (sorry).
+  * Updated ja.po ("PO-Revision-Date: 2000-05-29 09:47+09:00\n") which was
+    downloaded from;
+    http://www.iro.umontreal.ca/contrib/po/trans/ja/lynx-2.8.3.rel1.ja.po
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Tue, 23 May 2000 08:39:39 +0900
+
+lynx-cur (2.8.4-1.2) unstable; urgency=low
+
+  * Updated ja.po ("PO-Revision-Date: 2000-05-19 21:43+0900\n")
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Sun, 21 May 2000 08:38:15 +0900
+
+lynx-cur (2.8.4-1.1) unstable; urgency=low
+
+  * Refine lynx script according to the suggestions of Klaus Weide 
+    <kweide@enteract.com> and also of Kenshi Muto <kmuto@topstudio.co.jp>
+    and of "Ken N." <kenn@applause.nu>.  Thanks all.
+  * Use INCLUDE so that sizes of lynx-*.cfg etc. reduce according to the
+    suggestions of Klaus Weide <kweide@enteract.com>.
+  * Remove --enable-charset-choice from configure option, this is also
+    suggested by Klaus Weide <kweide@enteract.com>.
+  * Replace ja.po with that of Masayuki Hatta <masayuki-h@geocities.co.jp>.
+    Thanks Masayuki Hatta.
+  * Add configure options used in lynx of Debian.
+  * Disabled PREPEND_BASE_TO_SOURCE in default lynx.cfg as lynx of Debian.
+  * Add '-rm -f intl/libintl.h' to rules unless 2nd time debuild fails.
+  * Replace cs, de, fr, nl, pt_BR, ru, sl po files with lynx 2.8.3
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Thu, 18 May 2000 11:19:36 +0900
+
+lynx-cur (2.8.4-1) unstable; urgency=low
+
+  * New Upstream Release.  This is of dev.1
+  * Refine lynx script and post{inst, rm} so that they can be used both
+    lynx-ja and lynx-cur with little modification.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Sat,  6 May 2000 09:31:50 +0900
+
+lynx-cur (2.8.3-3.4) unstable; urgency=low
+
+  * This is of rel.1
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Mon, 24 Apr 2000 08:48:57 +0900
+
+lynx-cur (2.8.3-3.3) unstable; urgency=low
+
+  * This is of pre.7
+  * Delete SITE_DEFS="-DSUPPORT_MULTIBYTE_EDIT" from rules.  This is not
+    necessary any more.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Fri, 21 Apr 2000 11:55:31 +0900
+
+lynx-cur (2.8.3-3.2) unstable; urgency=low
+
+  * This is of pre.6 and the patch of Hataguchi Takeshi <patakuti@t3.rim.or.jp>
+    seems included.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Wed, 19 Apr 2000 10:45:16 +0900
+
+lynx-cur (2.8.3-3.1) unstable; urgency=low
+
+  * This is of pre.5
+  * Fix HELPFILE in lynx.cfg which is duplicated by mistake.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Sat, 15 Apr 2000 10:02:42 +0900
+
+lynx-cur (2.8.3-3) unstable; urgency=low
+
+  * This is of pre.4
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Wed, 12 Apr 2000 11:09:40 +0900
+
+lynx-cur (2.8.3-2.10) unstable; urgency=low
+
+  * This is of pre.3
+  * Apply the patch of Hataguchi Takeshi <patakuti@t3.rim.or.jp>
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Mon, 10 Apr 2000 07:44:41 +0900
+
+lynx-cur (2.8.3-2.9) unstable; urgency=low
+
+  * This is of pre.2
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Tue,  4 Apr 2000 09:16:00 +0900
+
+lynx-cur (2.8.3-2.8) unstable; urgency=low
+
+  * Add README.jp which was forgotten by accident.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Mon,  3 Apr 2000 07:18:25 +0900
+
+lynx-cur (2.8.3-2.7) unstable; urgency=low
+
+  * This is of pre.1
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Sun,  2 Apr 2000 15:19:02 +0900
+
+lynx-cur (2.8.3-2.6) unstable; urgency=low
+
+  * This is of dev.23
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Thu, 30 Mar 2000 17:39:14 +0900
+
+lynx-cur (2.8.3-2.5) unstable; urgency=low
+
+  * This is of dev.22
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Tue, 14 Mar 2000 12:47:13 +0900
+
+lynx-cur (2.8.3-2.4) unstable; urgency=low
+
+  * This is of dev.21
+  * Remove --enable-kanji following CHANGES.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Wed,  1 Mar 2000 10:09:04 +0900
+
+lynx-cur (2.8.3-2.3) frozen-jp unstable-jp; urgency=low
+
+  * This is of dev.20; this version seems to improve handling of Japanese text
+    so into frozen-jp too but might be final for frozen-jp.
+  * Add "--enable-charset-choice --enable-kanji --enable-cjk" to configure.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Fri, 25 Feb 2000 08:08:19 +0900
+
+lynx-cur (2.8.3-2.2) frozen-jp unstable-jp; urgency=low
+
+  * Add frozen-jp because this is BUG fix version of 2.8.3-1.9 which
+    is in frozen-jp.
+  * Change template of debconf a bit so that it will show an important
+    note on /etc/lynx.cnf to a user.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Sat, 19 Feb 2000 08:59:46 +0900
+
+lynx-cur (2.8.3-2.1) unstable; urgency=low
+
+  * Fix configure option for new location of lynx.cfg (with --libdir).
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Tue,  1 Feb 2000 07:42:20 +0900
+
+lynx-cur (2.8.3-2) unstable; urgency=low
+
+  * Add debconf support.
+  * Move lynx-*.cfg and lynx.cfg* into /etc/lynx-cur directory.
+    (close Bug#JP/1137)
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Wed, 26 Jan 2000 08:22:58 +0900
+
+lynx-cur (2.8.3-1.9) unstable; urgency=low
+
+  * This is of dev.18
+  * Update to Standards-Version: 3.0.0
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Tue, 11 Jan 2000 16:35:55 +0900
+
+lynx-cur (2.8.3-1.8) unstable; urgency=low
+
+  * This is of dev.17 and lynx.cfg changed much so we change postinst
+    to reduce lynx-*.cfg and lynx.cfg.*
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Thu, 16 Dec 1999 15:31:30 +0900
+
+lynx-cur (2.8.3-1.7) unstable; urgency=low
+
+  * This is of dev.16
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Sat, 11 Dec 1999 08:36:49 +0900
+
+lynx-cur (2.8.3-1.6) unstable; urgency=low
+
+  * This is of dev.15 and for unstable not for experimental as former one.
+  * Fix wrong lynx.cfg.blck because COLOR settings of original lynx.cfg of 
+    2.8.3 is quite different from that of 2.8.2
+  * Delete  --enable-default-colors configure option again.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Thu, 18 Nov 1999 15:26:39 +0900
+
+lynx-cur (2.8.3-1.5) experimental; urgency=low
+
+  * This is of dev.14
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Sun,  7 Nov 1999 09:09:45 +0900
+
+lynx-cur (2.8.3-1.4) experimental; urgency=low
+
+  * This is of dev.13
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Fri, 29 Oct 1999 14:58:27 +0900
+
+lynx-cur (2.8.3-1.3) experimental; urgency=low
+
+  * This is of dev.12
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Fri, 15 Oct 1999 08:19:06 +0900
+
+lynx-cur (2.8.3-1.2.9) experimental; urgency=low
+
+  * This is of dev.10
+  * Change dhelp to doc-base
+  * Remove COPYING and CHANGES from doc/lynx-cur/
+    and correspondingly change lynx_help/about_lynx.html
+  * Replace fr.po with that of 2.8.2
+	
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Mon,  4 Oct 1999 12:20:08 +0900
+
+lynx-cur (2.8.3-1.2.8) experimental; urgency=low
+
+  * This is of dev.9
+  * Fix wrong HELPFILE entry of lynx.cfg for gzip-help.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Wed, 15 Sep 1999 10:45:32 +0900
+
+lynx-cur (2.8.3-1.2.7) experimental; urgency=low
+
+  * This is of dev.8
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Sun, 29 Aug 1999 08:17:44 +0900
+
+lynx-cur (2.8.3-1.2.6) experimental; urgency=low
+
+  * This is of dev.6
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Sun, 15 Aug 1999 13:10:58 +0900
+
+lynx-cur (2.8.3-1.2.5) experimental; urgency=low
+
+  * Change wrong unstable to experimental.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Mon,  2 Aug 1999 08:08:18 +0900
+
+lynx-cur (2.8.3-1.2.4) unstable; urgency=low
+
+  * Fix script lynx for TERM of krxvt entry.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Sun,  1 Aug 1999 09:27:29 +0900
+
+lynx-cur (2.8.3-1.2.3) experimental; urgency=low
+
+  * This is of dev.5
+  * Use slang again and add -DSUPPORT_MULTIBYTE_EDIT to option of make
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Sat, 31 Jul 1999 09:13:23 +0900
+
+lynx-cur (2.8.3-1.2.2) experimental; urgency=low
+
+  * Use slang-ja instead of slang
+  * Move /usr/doc/lynx-cur to /usr/share/doc/lynx-cur as per the FHS
+    also /usr/man to /usr/share/man
+  * Remove duplicated update-menu and update-mime from post{inst,rm} because
+    dh_installmenu and dh_installmime created them.
+  * Add dhelp support
+  * Remove "unset TERMCAP" and "export COLORTERM=kterm" from kterm entry in
+    script lynx.
+  * Add lynx.cfg.dflt for default color and use option --enable-default-colors.
+  * Add include directive for private alternation of options.
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Fri, 16 Jul 1999 13:10:38 +0900
+
+lynx-cur (2.8.3-1.2) experimental; urgency=low
+
+  * This is of dev.4
+  * Add support of spanish, portguese and swedish but experimental.
+  * Refine script lynx a bit.
+  * Change de.po from original to http://www.slcc.edu/lynx/po/de.po
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Wed, 14 Jul 1999 16:47:48 +1000
+
+lynx-cur (2.8.3-1.1) experimental; urgency=low
+
+  * Modify script lynx slightly
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Thu,  8 Jul 1999 07:45:46 +1000
+
+lynx-cur (2.8.3-1) experimental; urgency=low
+
+  * Initial Release. This is of dev.3
+
+ -- Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp>  Wed, 23 Jun 1999 11:35:02 +1000
+
+Local variables:
+mode: debian-changelog
+End:
--- lynx-cur-2.8.8pre1.orig/debian/compat
+++ lynx-cur-2.8.8pre1/debian/compat
@@ -0,0 +1 @@
+7
--- lynx-cur-2.8.8pre1.orig/debian/control
+++ lynx-cur-2.8.8pre1/debian/control
@@ -0,0 +1,42 @@
+Source: lynx-cur
+Section: web
+Priority: extra
+Maintainer: Atsuhito KOHDA <kohda@debian.org>
+Homepage: http://lynx.isc.org/
+Build-Depends: debhelper (>= 7), quilt, libncursesw5-dev, libbz2-dev, zlib1g-dev, gettext, libgnutls-dev, sharutils, telnet, openssh-client, libbsd-dev, libidn11-dev, autotools-dev
+Standards-Version: 3.8.2
+
+Package: lynx-cur
+Architecture: any
+Multi-Arch: foreign
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Provides: www-browser, news-reader
+Conflicts: lynx (<< 2.8.7dev9-1.1), lynx-ssl, lynx-cur-wrapper (<< 2.8.8dev.8-2)
+Recommends: mime-support
+Description: Text-mode WWW Browser with NLS support (development version)
+ Lynx is a fully-featured World Wide Web (WWW) client for users running
+ cursor-addressable, character-cell display devices.
+ It is very fast and easy to use. It will display HTML documents
+ containing links to files residing on the local system,
+ as well as files residing on remote systems running Gopher, HTTP, FTP,
+ WAIS, and NNTP servers.
+ .
+ This package contains a development version of lynx.
+
+Package: lynx-cur-wrapper
+Section: oldlibs
+Architecture: all
+Multi-Arch: foreign
+Depends: lynx-cur (>= ${source:Version}), ${misc:Depends}
+Description: Wrapper for lynx-cur (transitional package)
+ This is a transitional package and can safely be removed; see the
+ lynx-cur package instead.
+
+Package: lynx
+Section: oldlibs
+Architecture: all
+Multi-Arch: foreign
+Depends: lynx-cur (>= ${source:Version}), ${misc:Depends}
+Description: Text-mode WWW Browser (transitional package)
+ This is a transitional package and can safely be removed; see the
+ lynx-cur package instead.
--- lynx-cur-2.8.8pre1.orig/debian/control-gnu
+++ lynx-cur-2.8.8pre1/debian/control-gnu
@@ -0,0 +1,42 @@
+Source: lynx-cur
+Section: web
+Priority: extra
+Maintainer: Atsuhito KOHDA <kohda@debian.org>
+Homepage: http://lynx.isc.org/
+Build-Depends: debhelper (>= 7), quilt, libncursesw5-dev, libbz2-dev, zlib1g-dev, gettext, libgnutls-dev, sharutils, telnet, openssh-client, libbsd-dev, libidn11-dev, autotools-dev
+Standards-Version: 3.8.2
+
+Package: lynx-cur
+Architecture: any
+Multi-Arch: foreign
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Provides: www-browser, news-reader
+Conflicts: lynx (<< 2.8.7dev9-1.1), lynx-ssl, lynx-cur-wrapper (<< 2.8.8dev.8-2)
+Recommends: mime-support
+Description: Text-mode WWW Browser with NLS support (development version)
+ Lynx is a fully-featured World Wide Web (WWW) client for users running
+ cursor-addressable, character-cell display devices.
+ It is very fast and easy to use. It will display HTML documents
+ containing links to files residing on the local system,
+ as well as files residing on remote systems running Gopher, HTTP, FTP,
+ WAIS, and NNTP servers.
+ .
+ This package contains a development version of lynx.
+
+Package: lynx-cur-wrapper
+Section: oldlibs
+Architecture: all
+Multi-Arch: foreign
+Depends: lynx-cur (>= ${source:Version}), ${misc:Depends}
+Description: Wrapper for lynx-cur (transitional package)
+ This is a transitional package and can safely be removed; see the
+ lynx-cur package instead.
+
+Package: lynx
+Section: oldlibs
+Architecture: all
+Multi-Arch: foreign
+Depends: lynx-cur (>= ${source:Version}), ${misc:Depends}
+Description: Text-mode WWW Browser (transitional package)
+ This is a transitional package and can safely be removed; see the
+ lynx-cur package instead.
--- lynx-cur-2.8.8pre1.orig/debian/copyright
+++ lynx-cur-2.8.8pre1/debian/copyright
@@ -0,0 +1,34 @@
+This package was debianized by Atsuhito KOHDA <kohda@debian.org> on
+Wed,  7 Jul 1999 07:29:50 +0900.
+
+It was downloaded from <http://lynx.isc.org/current/>
+
+Upstream Author: lynx-dev
+
+Copyright:
+
+== from COPYHEADER ==
+
+/* Copyright (C) 1995 University of Kansas.
+
+   This file is part of Lynx, a text-based WWW browser. 
+
+   Lynx is free software; you can redistribute it and/or modify it
+   under the terms of the GNU General Public License, version 2, as
+   published by the Free Software Foundation.
+
+   Lynx is distributed in the hope that it will be useful, but WITHOUT
+   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+   or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
+   License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+   Any licensing or usage questions should be directed to Michael
+   Grobe <grobe@ukans.edu>.
+*/
+
+On Debian GNU/Linux systems, the complete text of the GNU General Public 
+License can be found in the `/usr/share/common-licenses' directory.
--- lynx-cur-2.8.8pre1.orig/debian/dirs
+++ lynx-cur-2.8.8pre1/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- lynx-cur-2.8.8pre1.orig/debian/doc-base
+++ lynx-cur-2.8.8pre1/debian/doc-base
@@ -0,0 +1,10 @@
+Document: lynx-cur
+Title: Debian Lynx Manual
+Author: Michael Grobe <grobe@ukans.edu> et al.
+Abstract: This manual describes what lynx-cur is
+ and how it can be used on Debian systems.
+Section: Network/Web Browsing
+
+Format: HTML
+Index: /usr/share/doc/lynx-cur/lynx_help/lynx_help_main.html.gz
+Files: /usr/share/doc/lynx-cur/lynx_help/*.html.gz
--- lynx-cur-2.8.8pre1.orig/debian/local.cfg
+++ lynx-cur-2.8.8pre1/debian/local.cfg
@@ -0,0 +1,2 @@
+STARTFILE:http://www.debian.org/
+#NNTPSERVER:news.server.dom
--- lynx-cur-2.8.8pre1.orig/debian/lynx-cur-wrapper.preinst
+++ lynx-cur-2.8.8pre1/debian/lynx-cur-wrapper.preinst
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    install|upgrade)
+    if dpkg --compare-versions "$2" 'lt-nl' '2.8.8dev.8-2' ; then
+	update-alternatives --remove lynx /usr/bin/lynx-cur
+	update-alternatives --remove www-browser /usr/bin/lynx-cur
+    fi
+
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst 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
--- lynx-cur-2.8.8pre1.orig/debian/lynx.preinst
+++ lynx-cur-2.8.8pre1/debian/lynx.preinst
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+set -e
+
+# Inspired by
+# http://wiki.debian.org/DpkgConffileHandling
+# Remove a no-longer used conffile
+rm_or_moveconffile() {
+    PKGNAME="$1"
+    CONFFILE="$2"
+    NEWDIR="$3"
+    if [ -e "$CONFFILE" ]; then
+        md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
+        old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE '{s/ obsolete$//;s/.* //p}\"`"
+        if [ "$md5sum" != "$old_md5sum" ]; then
+	    test -e "$NEWDIR" || mkdir -m 755 -p "$NEWDIR"
+            echo "Obsolete conffile $CONFFILE has been modified by you." 1>&2
+	    if [ -e "$NEWDIR/`basename $CONFFILE`" ]; then
+	        echo "replacement conffile $NEWDIR/`basename $CONFFILE` already exists." 1>&2
+                echo "Saving as $CONFFILE.dpkg-bak ..." 1>&2
+                mv -f "$CONFFILE" "$CONFFILE".dpkg-bak
+            else
+                echo "Moving conffile $CONFFILE to new location $NEWDIR" 1>&2
+                mv -f "$CONFFILE" "$NEWDIR/"
+            fi
+        else
+            echo "Removing obsolete conffile $CONFFILE ..." 1>&2
+            rm -f "$CONFFILE"
+        fi
+    fi
+}
+
+
+
+case "$1" in
+    install|upgrade)
+    # Upgrading from a a real, non-dummy lynx package.
+    if dpkg --compare-versions "$2" 'lt-nl' '2.8.7dev9-1.1' ; then
+        update-alternatives --quiet --remove www-browser /usr/bin/lynx
+	update-alternatives --quiet --remove lynx /usr/bin/lynx.stable
+        rm_or_moveconffile lynx /etc/lynx.cfg /etc/lynx-cur
+        rm_or_moveconffile lynx /etc/lynx.lss /etc/lynx-cur
+    fi
+    ;;
+    *)
+esac
+
+#DEBHELPER#
--- lynx-cur-2.8.8pre1.orig/debian/lynx2.8.8dev.6a.patch
+++ lynx-cur-2.8.8pre1/debian/lynx2.8.8dev.6a.patch
@@ -0,0 +1,908 @@
+# patch by Thomas E. Dickey <dickey@invisible-island.net>
+# created  Mon Nov  1 23:11:54 UTC 2010
+# ------------------------------------------------------------------------------
+# CHANGES                                   |    9 +++-
+# PACKAGE/debian/changelog                  |    6 ++
+# PACKAGE/lynx.spec                         |    4 -
+# WWW/Library/Implementation/HTAABrow.h     |   43 ++++++++++----------
+# WWW/Library/Implementation/HTAAUtil.h     |    5 +-
+# WWW/Library/Implementation/HTFTP.c        |    4 -
+# WWW/Library/Implementation/HTFile.c       |    5 +-
+# WWW/Library/Implementation/HTFormat.h     |    8 ++-
+# WWW/Library/Implementation/HTNews.c       |    3 -
+# WWW/Library/Implementation/HTTCP.c        |    5 --
+# WWW/Library/Implementation/HTUtils.h      |   10 ++--
+# WWW/Library/Implementation/HTVMS_WaisUI.c |    6 +-
+# WWW/Library/Implementation/LYexit.h       |   22 +++++++---
+# WWW/Library/Implementation/tidy_tls.h     |    5 +-
+# WWW/Library/Implementation/www_tcp.h      |    9 ++--
+# lib/dirent.c                              |   27 +++++-------
+# lib/dirent.h                              |   59 +++++++++++++---------------
+# src/HTML.c                                |    6 +-
+# src/LYCurses.c                            |   10 +---
+# src/LYCurses.h                            |    4 -
+# src/LYForms.c                             |    4 -
+# src/LYLocal.c                             |   11 ++---
+# src/LYPrettySrc.c                         |    5 +-
+# src/LYSession.c                           |    9 ++--
+# src/LYUtils.c                             |   10 ++--
+# src/TRSTable.c                            |    5 +-
+# src/UCAuto.c                              |    4 -
+# src/UCdomap.c                             |    4 -
+# src/parsdate.h                            |    4 -
+# 29 files changed, 164 insertions(+), 142 deletions(-)
+# ------------------------------------------------------------------------------
+Index: CHANGES
+--- lynx2.8.8dev.6+/CHANGES	2010-10-04 08:19:06.000000000 +0000
++++ lynx2.8.8dev.6a/CHANGES	2010-11-01 21:30:42.000000000 +0000
+@@ -1,8 +1,15 @@
+--- $LynxId: CHANGES,v 1.508 2010/10/04 08:19:06 tom Exp $
++-- $LynxId: CHANGES,v 1.511 2010/11/01 21:30:42 tom Exp $
+ ===============================================================================
+ Changes since Lynx 2.8 release
+ ===============================================================================
+ 
++2010-11-01 (2.8.8dev.7)
++* restore \r to \n conversion in HTML_put_character(), broken in gcc warning
++  cleanup (report by FLWM) -TD
++* fix a double-free in make_argv() (report by FLWM) -TD
++* add a memset in RestoreSession(), fixes uninitialized memory reference for
++  the VLINK section -PBM
++
+ 2010-10-04 (2.8.8dev.6)
+ * amend change for Debian #514897 to exclude XML documents (Debian #592883) -TD
+ * use HTParsePort() in a few places, e.g., HTFinger.c, to allow for IPv6
+Index: PACKAGE/debian/changelog
+--- lynx2.8.8dev.6+/PACKAGE/debian/changelog	2010-09-19 16:22:57.000000000 +0000
++++ lynx2.8.8dev.6a/PACKAGE/debian/changelog	2010-11-01 21:32:09.000000000 +0000
+@@ -1,3 +1,9 @@
++lynx-dev (2.8.8dev.7) unstable; urgency=low
++
++  * changes for dev.7
++
++ -- Thomas E. Dickey <dickey@invisible-island.net>  Mon, 01 Nov 2010 17:32:06 -0400
++
+ lynx-dev (2.8.8dev.6) unstable; urgency=low
+ 
+   * add build-script for testing, adapted from Debian lynx-cur package.
+Index: PACKAGE/lynx.spec
+--- lynx2.8.8dev.6+/PACKAGE/lynx.spec	2010-09-21 23:18:23.000000000 +0000
++++ lynx2.8.8dev.6a/PACKAGE/lynx.spec	2010-11-01 21:31:25.000000000 +0000
+@@ -1,8 +1,8 @@
+-# $LynxId: lynx.spec,v 1.6 2010/09/21 23:18:23 tom Exp $
++# $LynxId: lynx.spec,v 1.7 2010/11/01 21:31:25 tom Exp $
+ Summary: A text-based Web browser
+ Name: lynx
+ Version: 2.8.8
+-Release: dev.6
++Release: dev.7
+ License: GPLv2
+ Group: Applications/Internet
+ Source: lynx%{version}%{release}.tgz
+Index: WWW/Library/Implementation/HTAABrow.h
+--- lynx2.8.8dev.6+/WWW/Library/Implementation/HTAABrow.h	2010-09-25 11:42:32.000000000 +0000
++++ lynx2.8.8dev.6a/WWW/Library/Implementation/HTAABrow.h	2010-10-27 00:13:53.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: HTAABrow.h,v 1.15 2010/09/25 11:42:32 tom Exp $
++ * $LynxId: HTAABrow.h,v 1.16 2010/10/27 00:13:53 tom Exp $
+  *
+  *                          BROWSER SIDE ACCESS AUTHORIZATION MODULE
+ 
+@@ -40,8 +40,7 @@
+ extern "C" {
+ #endif
+ /*
+-
+-Routines for Browser Side Recording of AA Info
++   Routines for Browser Side Recording of AA Info
+ 
+    Most of the browser-side AA is done by the following two functions (which are called
+    from file HTTP.c so the browsers using libwww only need to be linked with the new
+@@ -55,24 +54,26 @@
+       HTAA_shouldRetryWithAuth() determines whether to retry the request with AA or with a
+       new AA (in case username or password was misspelled).
+ 
+- *//* PUBLIC                                               HTAA_composeAuth()
+-   *
+-   *      COMPOSE THE ENTIRE AUTHORIZATION HEADER LINE IF WE
+-   *      ALREADY KNOW, THAT THE HOST MIGHT REQUIRE AUTHORIZATION
+-   *
+-   * ON ENTRY:
+-   *      hostname        is the hostname of the server.
+-   *      portnumber      is the portnumber in which the server runs.
+-   *      docname         is the pathname of the document (as in URL)
+-   *
+-   * ON EXIT:
+-   *      returns NULL, if no authorization seems to be needed, or
+-   *              if it is the entire Authorization: line, e.g.
+-   *
+-   *                 "Authorization: basic username:password"
+-   *
+-   *              As usual, this string is automatically freed.
+- */ extern char *HTAA_composeAuth(const char *hostname,
++ */
++/* PUBLIC                                               HTAA_composeAuth()
++ *
++ *      COMPOSE THE ENTIRE AUTHORIZATION HEADER LINE IF WE
++ *      ALREADY KNOW, THAT THE HOST MIGHT REQUIRE AUTHORIZATION
++ *
++ * ON ENTRY:
++ *      hostname        is the hostname of the server.
++ *      portnumber      is the portnumber in which the server runs.
++ *      docname         is the pathname of the document (as in URL)
++ *
++ * ON EXIT:
++ *      returns NULL, if no authorization seems to be needed, or
++ *              if it is the entire Authorization: line, e.g.
++ *
++ *                 "Authorization: basic username:password"
++ *
++ *              As usual, this string is automatically freed.
++ */
++    extern char *HTAA_composeAuth(const char *hostname,
+ 				  const int portnumber,
+ 				  const char *docname,
+ 				  int IsProxy);
+Index: WWW/Library/Implementation/HTAAUtil.h
+--- lynx2.8.8dev.6+/WWW/Library/Implementation/HTAAUtil.h	2010-06-17 00:36:04.000000000 +0000
++++ lynx2.8.8dev.6a/WWW/Library/Implementation/HTAAUtil.h	2010-10-27 00:09:52.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: HTAAUtil.h,v 1.12 2010/06/17 00:36:04 tom Exp $
++ * $LynxId: HTAAUtil.h,v 1.13 2010/10/27 00:09:52 tom Exp $
+  *
+  *                                            Utilities for the Authorization parts of libwww
+  *           COMMON PARTS OF AUTHORIZATION MODULE TO BOTH SERVER AND BROWSER
+@@ -48,7 +48,8 @@
+ #define MAX_FIELDNAME_LEN       16	/* @@ Longest field name in       */
+     /* protection setup file          */
+ #define MAX_PATHNAME_LEN        80	/* @@ Longest passwd/group file   */
+-/* pathname to allow               *//*
++/* pathname to allow               */
++/*
+ 
+    Datatype definitions
+ 
+Index: WWW/Library/Implementation/HTFTP.c
+--- lynx2.8.8dev.6+/WWW/Library/Implementation/HTFTP.c	2010-09-25 00:05:51.000000000 +0000
++++ lynx2.8.8dev.6a/WWW/Library/Implementation/HTFTP.c	2010-10-31 17:56:13.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: HTFTP.c,v 1.98 2010/09/25 00:05:51 tom Exp $
++ * $LynxId: HTFTP.c,v 1.99 2010/10/31 17:56:13 tom Exp $
+  *
+  *			File Transfer Protocol (FTP) Client
+  *			for a WorldWideWeb browser
+@@ -133,7 +133,7 @@
+ #elif defined(SYS_HPUX)
+ #  if defined(_XOPEN_SOURCE_EXTENDED) && defined(SO_PROTOTYPE)
+ #    define LY_SOCKLEN socklen_t
+-#  else				/* HPUX 10.20, etc. */
++#  else	/* HPUX 10.20, etc. */
+ #    define LY_SOCKLEN int
+ #  endif
+ #elif defined(SYS_TRU64)
+Index: WWW/Library/Implementation/HTFile.c
+--- lynx2.8.8dev.6+/WWW/Library/Implementation/HTFile.c	2010-09-24 08:52:55.000000000 +0000
++++ lynx2.8.8dev.6a/WWW/Library/Implementation/HTFile.c	2010-10-27 00:10:02.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: HTFile.c,v 1.126 2010/09/24 08:52:55 tom Exp $
++ * $LynxId: HTFile.c,v 1.127 2010/10/27 00:10:02 tom Exp $
+  *
+  *			File Access				HTFile.c
+  *			===========
+@@ -31,7 +31,8 @@
+ #define LONG_LIST		/* Define this for long style unix listings (ls -l),
+ 				   the actual style is configurable from lynx.cfg */
+ #endif
+-/* #define NO_PARENT_DIR_REFERENCE *//* Define this for no parent links */
++/* #define NO_PARENT_DIR_REFERENCE */
++/* Define this for no parent links */
+ #endif /* !VMS */
+ 
+ #if defined(DOSPATH)
+Index: WWW/Library/Implementation/HTFormat.h
+--- lynx2.8.8dev.6+/WWW/Library/Implementation/HTFormat.h	2010-09-25 11:42:03.000000000 +0000
++++ lynx2.8.8dev.6a/WWW/Library/Implementation/HTFormat.h	2010-10-27 00:13:53.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: HTFormat.h,v 1.32 2010/09/25 11:42:03 tom Exp $
++ * $LynxId: HTFormat.h,v 1.33 2010/10/27 00:13:53 tom Exp $
+  *
+  *                                            HTFormat: The format manager in the WWW Library
+  *                          MANAGE DIFFERENT DOCUMENT FORMATS
+@@ -44,7 +44,11 @@
+    useful for diagnostics, and for users who want to see the original, whatever
+    it is.
+ 
+-																	 *//* Internal ones *//* #define WWW_SOURCE HTAtom_for("www/source") *//* Whatever it was originally */ extern HTAtom *WWW_SOURCE;
++																	 */
++/* Internal ones */
++/* #define WWW_SOURCE HTAtom_for("www/source") */
++/* Whatever it was originally */
++    extern HTAtom *WWW_SOURCE;
+     /* calculated once, heavy used */
+ 
+ /*
+Index: WWW/Library/Implementation/HTNews.c
+--- lynx2.8.8dev.6+/WWW/Library/Implementation/HTNews.c	2010-09-25 00:42:40.000000000 +0000
++++ lynx2.8.8dev.6a/WWW/Library/Implementation/HTNews.c	2010-10-27 00:10:51.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: HTNews.c,v 1.66 2010/09/25 00:42:40 tom Exp $
++ * $LynxId: HTNews.c,v 1.67 2010/10/27 00:10:51 tom Exp $
+  *
+  *			NEWS ACCESS				HTNews.c
+  *			===========
+@@ -94,7 +94,6 @@
+ static int HTCanPost = FALSE;	/* Current POST permission */
+ static char response_text[LINE_LENGTH + 1];	/* Last response */
+ 
+-/* static HText *	HT;	*//* the new hypertext */
+ static HTStructured *target;	/* The output sink */
+ static HTStructuredClass targetClass;	/* Copy of fn addresses */
+ static HTStream *rawtarget = NULL;	/* The output sink for rawtext */
+Index: WWW/Library/Implementation/HTTCP.c
+--- lynx2.8.8dev.6+/WWW/Library/Implementation/HTTCP.c	2010-09-25 11:32:53.000000000 +0000
++++ lynx2.8.8dev.6a/WWW/Library/Implementation/HTTCP.c	2010-10-27 00:11:11.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: HTTCP.c,v 1.104 2010/09/25 11:32:53 tom Exp $
++ * $LynxId: HTTCP.c,v 1.105 2010/10/27 00:11:11 tom Exp $
+  *
+  *			Generic Communication Code		HTTCP.c
+  *			==========================
+@@ -77,9 +77,6 @@
+ unsigned long socks_bind_remoteAddr;	/* for long Rbind */
+ #endif /* SOCKS */
+ 
+-/* PUBLIC SockA HTHostAddress; *//* The internet address of the host */
+-					/* Valid after call to HTHostName() */
+-
+ /*	Encode INET status (as in sys/errno.h)			  inet_status()
+  *	------------------
+  *
+Index: WWW/Library/Implementation/HTUtils.h
+--- lynx2.8.8dev.6+/WWW/Library/Implementation/HTUtils.h	2010-09-25 15:32:56.000000000 +0000
++++ lynx2.8.8dev.6a/WWW/Library/Implementation/HTUtils.h	2010-10-27 00:08:52.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: HTUtils.h,v 1.102 2010/09/25 15:32:56 tom Exp $
++ * $LynxId: HTUtils.h,v 1.103 2010/10/27 00:08:52 tom Exp $
+  *
+  * Utility macros for the W3 code library
+  * MACROS FOR GENERAL USE
+@@ -157,12 +157,12 @@
+ #define LY_MAXPATH 256
+ #endif
+ 
+-#ifndef	GCC_NORETURN
+-#define	GCC_NORETURN		/* nothing */
++#ifndef GCC_NORETURN
++#define GCC_NORETURN		/* nothing */
+ #endif
+ 
+-#ifndef	GCC_UNUSED
+-#define	GCC_UNUSED		/* nothing */
++#ifndef GCC_UNUSED
++#define GCC_UNUSED		/* nothing */
+ #endif
+ 
+ #if defined(__GNUC__) && defined(_FORTIFY_SOURCE)
+Index: WWW/Library/Implementation/HTVMS_WaisUI.c
+--- lynx2.8.8dev.6+/WWW/Library/Implementation/HTVMS_WaisUI.c	2010-09-25 00:32:18.000000000 +0000
++++ lynx2.8.8dev.6a/WWW/Library/Implementation/HTVMS_WaisUI.c	2010-10-29 21:10:14.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: HTVMS_WaisUI.c,v 1.16 2010/09/25 00:32:18 tom Exp $
++ * $LynxId: HTVMS_WaisUI.c,v 1.17 2010/10/29 21:10:14 tom Exp $
+  *								HTVMS_WAISUI.c
+  *
+  *	Adaptation for Lynx by F.Macrides (macrides@sci.wfeb.edu)
+@@ -695,7 +695,7 @@
+ 		query->DatabaseNames = (char **) s_realloc((char *) query->DatabaseNames,
+ 							   (size_t) (sizeof(char
+ 									    *) *
+-								       (i + 2)));
++								     (i + 2)));
+ 
+ 	    query->DatabaseNames[i] = s_strdup(ptr);
+ 	    query->DatabaseNames[i + 1] = NULL;
+@@ -713,7 +713,7 @@
+ 		query->ElementSetNames = (char **) s_realloc((char *) query->ElementSetNames,
+ 							     (size_t) (sizeof(char
+ 									      *) *
+-								         (i + 2)));
++								       (i + 2)));
+ 
+ 	    query->ElementSetNames[i] = s_strdup(ptr);
+ 	    query->ElementSetNames[i + 1] = NULL;
+Index: WWW/Library/Implementation/LYexit.h
+--- lynx2.8.8dev.6+/WWW/Library/Implementation/LYexit.h	2005-01-02 23:49:58.000000000 +0000
++++ lynx2.8.8dev.6a/WWW/Library/Implementation/LYexit.h	2010-10-27 00:13:53.000000000 +0000
+@@ -39,15 +39,23 @@
+ #define exit(code) LYexit(code)
+ #define atexit LYatexit
+ #define ATEXITSIZE 50
++
+ /*
+  *	Data structures
+- *//*
+-   * Global variable declarations
+- *//*
+-   * Macros
+- *//*
+-   * Function declarations
+- */ extern void outofmem(const char *fname, const char *func);
++ */
++
++/*
++ * Global variable declarations
++ */
++
++/*
++ * Macros
++ */
++
++/*
++ * Function declarations
++ */
++    extern void outofmem(const char *fname, const char *func);
+     extern void reset_signals(void);
+     extern void exit_immediately(int status) GCC_NORETURN;
+     extern void LYexit(int status) GCC_NORETURN;
+Index: WWW/Library/Implementation/tidy_tls.h
+--- lynx2.8.8dev.6+/WWW/Library/Implementation/tidy_tls.h	2008-04-27 22:50:39.000000000 +0000
++++ lynx2.8.8dev.6a/WWW/Library/Implementation/tidy_tls.h	2010-10-27 00:07:26.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: tidy_tls.h,v 1.1 2008/04/27 22:50:39 tom Exp $
++ * $LynxId: tidy_tls.h,v 1.2 2010/10/27 00:07:26 tom Exp $
+  * Copyright 2008, Thomas E. Dickey
+  */
+ #ifndef TIDY_TLS_H
+@@ -103,7 +103,7 @@
+ /* use either SSL_VERIFY_NONE or SSL_VERIFY_PEER, the last 2 options
+  * are 'ored' with SSL_VERIFY_PEER if they are desired */
+ #define SSL_VERIFY_PEER			0x01
+-
++/* *INDENT-OFF* */
+ extern SSL *SSL_new(SSL_CTX * ctx);
+ extern SSL_CIPHER *SSL_get_current_cipher(SSL * ssl);
+ extern SSL_CTX *SSL_CTX_new(SSL_METHOD * method);
+@@ -134,5 +134,6 @@
+ extern void SSL_CTX_set_verify(SSL_CTX * ctx, int verify_mode, int (*verify_callback) (int, X509_STORE_CTX *));
+ extern void SSL_free(SSL * ssl);
+ extern void SSL_load_error_strings(void);
++/* *INDENT-ON* */
+ 
+ #endif /* TIDY_TLS_H */
+Index: WWW/Library/Implementation/www_tcp.h
+--- lynx2.8.8dev.6+/WWW/Library/Implementation/www_tcp.h	2010-09-25 16:24:45.000000000 +0000
++++ lynx2.8.8dev.6a/WWW/Library/Implementation/www_tcp.h	2010-10-31 17:56:16.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*                System dependencies in the W3 library
+- * $LynxId: www_tcp.h,v 1.45 2010/09/25 16:24:45 tom Exp $
++ * $LynxId: www_tcp.h,v 1.47 2010/10/31 17:56:16 tom Exp $
+  *
+                                    SYSTEM DEPENDENCIES
+ 
+@@ -159,7 +159,8 @@
+ /* For debugging
+ #include <assert.h>
+ #define   TOASCII(c) (assert((c)>=0 && (c)<256), un_IBM1047[c])
+-*//* for production */
++*/
++/* for production */
+ #define   TOASCII(c) (un_IBM1047[c])
+ 
+ #define FROMASCII(c) (IBM1047[c])
+@@ -746,10 +747,10 @@
+ 
+ # ifdef HAVE_LIMITS_H
+ #  include <limits.h>
+-# endif				/* HAVE_LIMITS_H */
++# endif	/* HAVE_LIMITS_H */
+ # if !defined(MAXINT) && defined(INT_MAX)
+ #  define MAXINT INT_MAX
+-# endif				/* !MAXINT && INT_MAX */
++# endif	/* !MAXINT && INT_MAX */
+ 
+ #else
+ 
+Index: lib/dirent.c
+Prereq:  1.4 
+--- lynx2.8.8dev.6+/lib/dirent.c	2009-03-11 00:31:33.000000000 +0000
++++ lynx2.8.8dev.6a/lib/dirent.c	2010-10-31 17:56:17.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: dirent.c,v 1.3 2009/03/11 00:31:33 tom Exp $
++ * $LynxId: dirent.c,v 1.4 2010/10/31 17:56:17 tom Exp $
+  *
+  * dir.c for MS-DOS by Samuel Lam <skl@van-bc.UUCP>, June/87 
+  */
+@@ -20,7 +20,6 @@
+  *    Changes made by Gordon Chaffee (chaffee@bugs-bunny.cs.berkeley.edu)
+  */
+ 
+-
+ /*Includes: 
+  *    crt 
+  */
+@@ -123,6 +122,7 @@
+ 	return NULL;
+     }
+     dirp = malloc(sizeof(DIR));
++
+     if (dirp == NULL) {
+ 	return dirp;
+     }
+@@ -153,7 +153,7 @@
+     }
+     do {
+ 	if (((dp = malloc(sizeof(struct _dircontents))) == NULL) ||
+-	     ((dp->_d_entry = malloc(strlen(s) + 1)) == NULL)) {
++	      ((dp->_d_entry = malloc(strlen(s) + 1)) == NULL)) {
+ 	    if (dp)
+ 		free(dp);
+ 	    free_dircontents(dirp->dd_contents);
+@@ -180,13 +180,13 @@
+     return opendirx(name, "*");
+ }
+ 
+-void closedir(DIR * dirp)
++void closedir(DIR *dirp)
+ {
+     free_dircontents(dirp->dd_contents);
+     free(dirp);
+ }
+ 
+-struct dirent *readdir(DIR * dirp)
++struct dirent *readdir(DIR *dirp)
+ {
+     /* static struct dirent dp; */
+     if (dirp->dd_cp == NULL)
+@@ -204,25 +204,23 @@
+     dirp->dd_cp = dirp->dd_cp->_d_next;
+     dirp->dd_loc++;
+ 
+-
+     return &dp;
+ }
+ 
+-void seekdir(DIR * dirp, long off)
++void seekdir(DIR *dirp, long off)
+ {
+     long i = off;
+     struct _dircontents *dp;
+ 
+     if (off >= 0) {
+-	for (dp = dirp->dd_contents; --i >= 0 && dp; dp = dp->_d_next);
++	for (dp = dirp->dd_contents; --i >= 0 && dp; dp = dp->_d_next) ;
+ 
+ 	dirp->dd_loc = off - (i + 1);
+ 	dirp->dd_cp = dp;
+     }
+ }
+ 
+-
+-long telldir(DIR * dirp)
++long telldir(DIR *dirp)
+ {
+     return dirp->dd_loc;
+ }
+@@ -263,14 +261,12 @@
+ }
+ /* end of getdirent() */
+ 
+-struct passwd *_cdecl
+- getpwnam(char *name)
++struct passwd *_cdecl getpwnam(char *name)
+ {
+     return NULL;
+ }
+ 
+-struct passwd *_cdecl
+- getpwuid(int uid)
++struct passwd *_cdecl getpwuid(int uid)
+ {
+     return NULL;
+ }
+@@ -280,8 +276,7 @@
+     return 0;
+ }
+ 
+-void _cdecl
+- endpwent(void)
++void _cdecl endpwent(void)
+ {
+ }
+ 
+Index: lib/dirent.h
+Prereq:  2.0 
+--- lynx2.8.8dev.6+/lib/dirent.h	1999-07-14 16:44:55.000000000 +0000
++++ lynx2.8.8dev.6a/lib/dirent.h	2010-10-31 17:56:17.000000000 +0000
+@@ -14,43 +14,40 @@
+  *  changed d_name to char * instead of array, removed non-std extensions 
+  *  
+  *  Cleanup, other hackery, Summer '92, Brian Moran , brianmo@microsoft.com 
+- */ 
++ */
+ 
+ #ifndef _DIRENT
+ #define _DIRENT
+ 
+ #include <direct.h>
+ 
+-struct dirent 
+-{ 
+-    ino_t    d_ino;                   /* a bit of a farce */ 
+-    short    d_reclen;                /* more farce */ 
+-    short    d_namlen;                /* length of d_name */ 
+-    char    *d_name;
+-}; 
+- 
+-struct _dircontents 
+-{ 
+-    char *_d_entry; 
+-    struct _dircontents *_d_next; 
+-}; 
+- 
+-typedef struct _dirdesc 
+-{ 
+-    int  dd_id;			   /* uniquely identify each open directory*/ 
+-    long dd_loc;			/* where we are in directory entry */ 
+-    struct _dircontents *dd_contents;	/* pointer to contents of dir */ 
+-    struct _dircontents *dd_cp;		/* pointer to current position */ 
+-} 
+-DIR; 
+- 
+-extern DIR *opendir(char *); 
+-extern struct dirent *readdir(DIR *); 
+-extern void seekdir(DIR *, long); 
+-extern long telldir(DIR *); 
+-extern void closedir(DIR *); 
+-#define rewinddir(dirp) seekdir(dirp, 0L) 
++struct dirent {
++    ino_t d_ino;		/* a bit of a farce */
++    short d_reclen;		/* more farce */
++    short d_namlen;		/* length of d_name */
++    char *d_name;
++};
++
++struct _dircontents {
++    char *_d_entry;
++    struct _dircontents *_d_next;
++};
++
++typedef struct _dirdesc {
++    int dd_id;			/* uniquely identify each open directory */
++    long dd_loc;		/* where we are in directory entry */
++    struct _dircontents *dd_contents;	/* pointer to contents of dir */
++    struct _dircontents *dd_cp;	/* pointer to current position */
++} DIR;
++
++extern DIR *opendir(char *);
++extern struct dirent *readdir(DIR *);
++extern void seekdir(DIR *, long);
++extern long telldir(DIR *);
++extern void closedir(DIR *);
++
++#define rewinddir(dirp) seekdir(dirp, 0L)
+ 
+ #endif /* _DIRENT */
+ 
+-/* end of dirent.h */ 
++/* end of dirent.h */
+Index: src/HTML.c
+--- lynx2.8.8dev.6+/src/HTML.c	2010-09-25 17:00:36.000000000 +0000
++++ lynx2.8.8dev.6a/src/HTML.c	2010-11-01 22:19:09.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: HTML.c,v 1.146 2010/09/25 17:00:36 tom Exp $
++ * $LynxId: HTML.c,v 1.148 2010/11/01 22:19:09 tom Exp $
+  *
+  *		Structured stream to Rich hypertext converter
+  *		============================================
+@@ -312,8 +312,10 @@
+ 	return;
+     }
+     me->lastraw = c;
+-    if (c == '\r')
++    if (c == '\r') {
+ 	c = '\n';
++	uc = UCH(c);
++    }
+ 
+     /*
+      * Handle SGML_LITTERAL tags that have HTChunk elements.  - FM
+Index: src/LYCurses.c
+--- lynx2.8.8dev.6+/src/LYCurses.c	2010-09-25 00:48:03.000000000 +0000
++++ lynx2.8.8dev.6a/src/LYCurses.c	2010-10-31 17:56:18.000000000 +0000
+@@ -1,4 +1,4 @@
+-/* $LynxId: LYCurses.c,v 1.156 2010/09/25 00:48:03 tom Exp $ */
++/* $LynxId: LYCurses.c,v 1.158 2010/10/31 17:56:18 tom Exp $ */
+ #include <HTUtils.h>
+ #include <HTAlert.h>
+ 
+@@ -1138,7 +1138,7 @@
+ 	   when the keypad is switched on, some keybindings may be overriden. */
+ 	keypad(LYwin, TRUE);
+ 	keypad_on = 1;
+-#  endif			/* HAVE_KEYPAD */
++#  endif /* HAVE_KEYPAD */
+ 
+ 	if (-1 == lynx_initialize_keymaps()) {
+ 	    endwin();
+@@ -1245,8 +1245,6 @@
+ #endif /* __DJGPP__ */
+ #endif /* not VMS */
+ 
+-/* nonl();   *//* seems to slow things down */
+-
+ #ifdef VMS
+     crmode();
+     raw();
+@@ -1488,7 +1486,7 @@
+ 
+ #ifdef __DJGPP__
+     ScreenClear();
+-#elif !defined(PDCURSES)	/* some flavor of win32?  */
++#elif !defined(PDCURSES) /* some flavor of win32?  */
+     clrscr();
+ #endif /* win32 */
+ 
+@@ -1781,7 +1779,7 @@
+ 	    wbkgd(my_subwindow, (chtype) (b | ' '));
+ 	}
+ 	LynxWChangeStyle(my_subwindow, s_menu_bg, STACK_OFF);
+-#elif defined(HAVE_GETBKGD)	/* not defined in ncurses 1.8.7 */
++#elif defined(HAVE_GETBKGD) /* not defined in ncurses 1.8.7 */
+ 	wbkgd(my_subwindow, getbkgd(LYwin));
+ #endif
+ #endif
+Index: src/LYCurses.h
+--- lynx2.8.8dev.6+/src/LYCurses.h	2010-10-04 08:56:09.000000000 +0000
++++ lynx2.8.8dev.6a/src/LYCurses.h	2010-10-31 17:56:18.000000000 +0000
+@@ -1,4 +1,4 @@
+-/* $LynxId: LYCurses.h,v 1.86 2010/10/04 08:56:09 tom Exp $ */
++/* $LynxId: LYCurses.h,v 1.87 2010/10/31 17:56:18 tom Exp $ */
+ #ifndef LYCURSES_H
+ #define LYCURSES_H
+ 
+@@ -260,7 +260,7 @@
+ #  include <LYGCurses.h>
+ #  else
+ #   include <curses.h>		/* everything else */
+-# endif				/* VMS && __GNUC__ */
++# endif	/* VMS && __GNUC__ */
+ #endif /* HAVE_CONFIG_H */
+ 
+ /*
+Index: src/LYForms.c
+--- lynx2.8.8dev.6+/src/LYForms.c	2010-09-24 09:40:44.000000000 +0000
++++ lynx2.8.8dev.6a/src/LYForms.c	2010-10-31 17:56:18.000000000 +0000
+@@ -1,4 +1,4 @@
+-/* $LynxId: LYForms.c,v 1.86 2010/09/24 09:40:44 tom Exp $ */
++/* $LynxId: LYForms.c,v 1.87 2010/10/31 17:56:18 tom Exp $ */
+ #include <HTUtils.h>
+ #include <HTCJK.h>
+ #include <HTTP.h>
+@@ -528,7 +528,7 @@
+ 		MyEdit.dirty = TRUE;
+ 	    }
+ 	} else
+-#  endif			/* NCURSES || PDCURSES */
++#  endif /* NCURSES || PDCURSES */
+ #endif /* USE_MOUSE */
+ 
+ 	{
+Index: src/LYLocal.c
+--- lynx2.8.8dev.6+/src/LYLocal.c	2010-09-25 16:26:16.000000000 +0000
++++ lynx2.8.8dev.6a/src/LYLocal.c	2010-11-01 08:46:02.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: LYLocal.c,v 1.112 2010/09/25 16:26:16 tom Exp $
++ * $LynxId: LYLocal.c,v 1.114 2010/11/01 08:46:02 tom Exp $
+  *
+  *  Routines to manipulate the local filesystem.
+  *  Written by: Rick Mallett, Carleton University
+@@ -386,6 +386,7 @@
+     va_list ap;
+ 
+     va_start(ap, command);
++    result[0] = 0;
+     StrAllocCopy(result[argc++], command);
+     do {
+ 	result[argc] = 0;
+@@ -1756,7 +1757,7 @@
+ 	    }
+ 	    return buffer;
+ 	}
+-#  endif			/* OK_GZIP */
++#  endif /* OK_GZIP */
+ 	if ((arg = match_op("UNTAR_Z", line)) != 0) {
+ #define FMT_UNTAR_Z "cd %s; %s %s |  %s %s %s"
+ 	    if ((program = HTGetProgramPath(ppZCAT)) != NULL) {
+@@ -1781,7 +1782,7 @@
+ 	    HTEndParam(&buffer, FMT_UNTAR, 4);
+ 	    return buffer;
+ 	}
+-# endif				/* !ARCHIVE_ONLY */
++# endif	/* !ARCHIVE_ONLY */
+ 
+ # ifdef OK_GZIP
+ 	if ((arg = match_op("TAR_GZ", line)) != 0) {
+@@ -1800,7 +1801,7 @@
+ 	    }
+ 	    return buffer;
+ 	}
+-# endif				/* OK_GZIP */
++# endif	/* OK_GZIP */
+ 
+ 	if ((arg = match_op("TAR_Z", line)) != 0) {
+ #define FMT_TAR_Z "cd %s; %s %s %s %s | %s >%s%s"
+@@ -1882,7 +1883,7 @@
+ 	}
+ 	return buffer;
+     }
+-# endif				/* !ARCHIVE_ONLY */
++# endif	/* !ARCHIVE_ONLY */
+ #endif /* OK_ZIP */
+ 
+     if ((arg = match_op("COMPRESS", line)) != 0) {
+Index: src/LYPrettySrc.c
+--- lynx2.8.8dev.6+/src/LYPrettySrc.c	2010-09-24 22:06:29.000000000 +0000
++++ lynx2.8.8dev.6a/src/LYPrettySrc.c	2010-10-27 00:15:12.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: LYPrettySrc.c,v 1.24 2010/09/24 22:06:29 tom Exp $
++ * $LynxId: LYPrettySrc.c,v 1.25 2010/10/27 00:15:12 tom Exp $
+  *
+  * HTML source syntax highlighting
+  * by Vlad Harchev <hvv@hippo.ru>
+@@ -159,7 +159,8 @@
+ 	int n = tag->number_of_attributes;
+ 	attr *attrs = tag->attributes;
+ 
+-/*.... *//* this is not implemented though it's easy */
++/*.... */
++/* this is not implemented though it's easy */
+ #  endif
+ 
+ 	hcode = hash_code_aggregate_char('.', hcode);
+Index: src/LYSession.c
+--- lynx2.8.8dev.6+/src/LYSession.c	2008-07-02 21:24:27.000000000 +0000
++++ lynx2.8.8dev.6a/src/LYSession.c	2010-10-31 18:15:33.000000000 +0000
+@@ -1,4 +1,4 @@
+-/* $LynxId: LYSession.c,v 1.6 2008/07/02 21:24:27 Paul.B.Mahol Exp $ */
++/* $LynxId: LYSession.c,v 1.7 2010/10/31 18:15:33 Paul.B.Mahol Exp $ */
+ 
+ #include <LYSession.h>
+ 
+@@ -63,11 +63,12 @@
+     DocInfo doc;
+     VisitedLink *vl;
+     int i = 0;
+-    short errors = 10;		/* how many syntax errors are allowed in */
+-
+-    /* session file before aborting. */
++    short errors = 10;		/* how many syntax errors are allowed in
++				 * session file before aborting. */
+     char *value1, *value2, *rsline, *linktext, *rslevel;
+ 
++    memset(&doc, 0, sizeof(doc));
++
+     /*
+      * This should be done only once, here:  iff USE_SESSIONS is defined or: 
+      * in mainloop(), otherwise history entries are lost
+Index: src/LYUtils.c
+--- lynx2.8.8dev.6+/src/LYUtils.c	2010-10-04 09:00:23.000000000 +0000
++++ lynx2.8.8dev.6a/src/LYUtils.c	2010-10-31 17:56:21.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: LYUtils.c,v 1.204 2010/10/04 09:00:23 tom Exp $
++ * $LynxId: LYUtils.c,v 1.205 2010/10/31 17:56:21 tom Exp $
+  */
+ #include <HTUtils.h>
+ #include <HTTCP.h>
+@@ -2978,9 +2978,9 @@
+ #  else
+ #   ifdef HAVE_TERMIO_H
+ #    include <termio.h>
+-#   endif			/* HAVE_TERMIO_H */
+-#  endif			/* HAVE_TERMIOS_H */
+-# endif				/* TERMIO_AND_TERMIOS */
++#   endif /* HAVE_TERMIO_H */
++#  endif /* HAVE_TERMIOS_H */
++# endif	/* TERMIO_AND_TERMIOS */
+ #endif /* TERMIO_AND_CURSES */
+ 
+ void size_change(int sig GCC_UNUSED)
+@@ -7574,7 +7574,7 @@
+     return 0;
+ }
+ 
+-#  endif			/* !defined(WIN_EX) && defined(HAVE_POPEN) */
++#  endif /* !defined(WIN_EX) && defined(HAVE_POPEN) */
+ 
+ #endif /* __EMX__ */
+ 
+Index: src/TRSTable.c
+--- lynx2.8.8dev.6+/src/TRSTable.c	2010-09-25 12:47:08.000000000 +0000
++++ lynx2.8.8dev.6a/src/TRSTable.c	2010-10-27 00:15:10.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: TRSTable.c,v 1.28 2010/09/25 12:47:08 tom Exp $
++ * $LynxId: TRSTable.c,v 1.29 2010/10/27 00:15:10 tom Exp $
+  *		Simple table object
+  *		===================
+  * Authors
+@@ -1322,7 +1322,8 @@
+ 	}
+ 
+ 	/* Fake </TR> at BOL */
+-/* Stbl_finishCellInTable(lineno, 0, 0); *//* Needed? */
++	/* Stbl_finishCellInTable(lineno, 0, 0); */
++	/* Needed? */
+ 
+ 	/* Fake <TR> at BOL */
+ 	if (Stbl_addRowToTable(me, al, lineno) < 0) {
+Index: src/UCAuto.c
+--- lynx2.8.8dev.6+/src/UCAuto.c	2010-09-25 00:51:53.000000000 +0000
++++ lynx2.8.8dev.6a/src/UCAuto.c	2010-10-31 17:56:21.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: UCAuto.c,v 1.45 2010/09/25 00:51:53 tom Exp $
++ * $LynxId: UCAuto.c,v 1.46 2010/10/31 17:56:21 tom Exp $
+  *
+  *  This file contains code for changing the Linux console mode.
+  *  Currently some names for font files are hardwired in here.
+@@ -788,7 +788,7 @@
+     CTRACE((tfp, "Display font set to '%s'.\n", name));
+     return ord;
+ }
+-#  endif			/* __EMX__ */
++#  endif /* __EMX__ */
+ 
+ int Switch_Display_Charset(const int ord, const enum switch_display_charset_t really)
+ {
+Index: src/UCdomap.c
+--- lynx2.8.8dev.6+/src/UCdomap.c	2010-09-25 15:31:34.000000000 +0000
++++ lynx2.8.8dev.6a/src/UCdomap.c	2010-10-31 17:56:22.000000000 +0000
+@@ -1,5 +1,5 @@
+ /*
+- * $LynxId: UCdomap.c,v 1.86 2010/09/25 15:31:34 tom Exp $
++ * $LynxId: UCdomap.c,v 1.87 2010/10/31 17:56:22 tom Exp $
+  *
+  *  UCdomap.c
+  *  =========
+@@ -2171,7 +2171,7 @@
+     CTRACE((tfp, "Found %i.\n", ret));
+     return ret;
+ }
+-#  endif			/* __EMX__ */
++#  endif /* __EMX__ */
+ #endif /* CAN_AUTODETECT_DISPLAY_CHARSET */
+ #endif /* EXP_CHARTRANS_AUTOSWITCH */
+ 
+Index: src/parsdate.h
+--- lynx2.8.8dev.6+/src/parsdate.h	2008-06-29 23:23:45.000000000 +0000
++++ lynx2.8.8dev.6a/src/parsdate.h	2010-10-31 17:56:22.000000000 +0000
+@@ -1,4 +1,4 @@
+-/* $LynxId: parsdate.h,v 1.1 2008/06/29 23:23:45 tom Exp $ */
++/* $LynxId: parsdate.h,v 1.2 2010/10/31 17:56:22 tom Exp $ */
+ #ifndef PARSDATE_H
+ #define PARSDATE_H
+ 
+@@ -7,7 +7,7 @@
+ #endif
+ #include <LYUtils.h>
+ #define ARRAY_SIZE(array)       ((int) (sizeof(array) / sizeof(array[0])))
+-     typedef struct _TIMEINFO {
++    typedef struct _TIMEINFO {
+ 	time_t time;
+ 	long usec;
+ 	long tzone;
--- lynx-cur-2.8.8pre1.orig/debian/menu
+++ lynx-cur-2.8.8pre1/debian/menu
@@ -0,0 +1,2 @@
+?package(lynx-cur):needs="text" section="Applications/Network/Web Browsing"\
+  title="Lynx-cur" command="lynx"
--- lynx-cur-2.8.8pre1.orig/debian/mime
+++ lynx-cur-2.8.8pre1/debian/mime
@@ -0,0 +1,2 @@
+text/html; /usr/bin/lynx -force_html %s; needsterminal; description=HTML Text; nametemplate=%s.html; priority=3
+text/html; /usr/bin/lynx -dump -force_html %s; copiousoutput; description=HTML Text; nametemplate=%s.html; priority=2
--- lynx-cur-2.8.8pre1.orig/debian/patches/aboutlynx.patch
+++ lynx-cur-2.8.8pre1/debian/patches/aboutlynx.patch
@@ -0,0 +1,19 @@
+#! /bin/sh -e
+##
+## Modify about_lynx.html for Debian package
+
+--- ./lynx_help/about_lynx.html.orgl	Tue Oct  9 12:34:06 2001
++++ ./lynx_help/about_lynx.html	Tue Oct  9 12:35:16 2001
+@@ -60,9 +60,9 @@
+   Kansas. However most of the release (and corresponding copyright)
+   is the work of developers on the <a href=
+   "#lynx-dev_list"><em>lynx-dev mailing list</em></a>. It is
+-  distributed <a href="COPYHEADER">without restrictions on usage or
+-  redistribution</a> under the <a href="COPYING">GNU General Public
+-  License (Version 2)</a>.</p>
++  distributed without restrictions on usage or
++  redistribution under the GNU General Public
++  License (Version 2).</p>
+ 
+   <p>Lynx was built over an early version of the Common Code
+   Library developed by the CERN WWW Project. That code is
--- lynx-cur-2.8.8pre1.orig/debian/patches/lynxcfg.patch
+++ lynx-cur-2.8.8pre1/debian/patches/lynxcfg.patch
@@ -0,0 +1,207 @@
+#! /bin/sh -e
+##
+## DP: Modify the lynx.cfg to Debian system
+
+--- ./lynx.cfg.orig	2010-06-26 12:06:05.000000000 +0900
++++ ./lynx.cfg	2010-06-26 14:13:18.000000000 +0900
+@@ -90,7 +90,7 @@
+ #
+ # Normally we expect you will connect to a remote site, e.g., the Lynx starting
+ # site:
+-STARTFILE:http://lynx.isc.org/
++#STARTFILE:http://lynx.isc.org/
+ #
+ # As an alternative, you may want to use a local URL.  A good choice for this is
+ # the user's home directory:
+@@ -114,9 +114,10 @@
+ # This definition will be overridden if the "LYNX_HELPFILE" environment
+ # variable has been set.
+ #
+-HELPFILE:http://lynx.isc.org/release/lynx2-8-7/lynx_help/lynx_help_main.html
++#HELPFILE:http://lynx.isc.org/release/lynx2-8-7/lynx_help/lynx_help_main.html
+ .ex
+-#HELPFILE:file://localhost/PATH_TO/lynx_help/lynx_help_main.html
++##HELPFILE:file://localhost/PATH_TO/lynx_help/lynx_help_main.html
++HELPFILE:file://localhost/usr/share/doc/lynx-cur/lynx_help/lynx_help_main.html
+ 
+ .h2 DEFAULT_INDEX_FILE
+ # DEFAULT_INDEX_FILE is the default file retrieved when the
+@@ -436,7 +437,7 @@
+ # Find RFC 1345 at
+ .url http://tools.ietf.org/html/rfc1345
+ #
+-#CHARACTER_SET:iso-8859-1
++CHARACTER_SET:iso-8859-1
+ 
+ .h2 LOCALE_CHARSET
+ # LOCALE_CHARSET overrides CHARACTER_SET if true, using the current locale to
+@@ -447,6 +448,7 @@
+ # happens to give useful values, but other implementations are not guaranteed
+ # to do this.
+ #LOCALE_CHARSET:FALSE
++LOCALE_CHARSET:TRUE
+ 
+ .h2 HTML5_CHARSETS
+ # HTML5_CHARSETS is an alternative to ASSUME_CHARSET and ASSUME_LOCAL_CHARSET.
+@@ -544,7 +546,7 @@
+ # compatibility problems with other browsers, see also PREPEND_BASE_TO_SOURCE.
+ # Note that the prepending is not done for -source dumps.
+ #
+-#PREPEND_CHARSET_TO_SOURCE:TRUE
++PREPEND_CHARSET_TO_SOURCE:FALSE
+ 
+ .h2 NCR_IN_BOOKMARKS
+ # NCR_IN_BOOKMARKS:TRUE allows you to save 8-bit characters in bookmark titles
+@@ -596,7 +598,7 @@
+ # the 'o'ptions menu and save that preference in their RC file.
+ # This may be a comma-separated list of languages in decreasing preference.
+ #
+-#PREFERRED_LANGUAGE:en
++PREFERRED_LANGUAGE:en
+ 
+ .h2 PREFERRED_CHARSET
+ # PREFERRED_CHARSET specifies the character set in MIME notation (e.g.,
+@@ -788,7 +790,7 @@
+ # 'o'ptions menu and saved in the RC file, and always can be toggled
+ # via the -show_cursor command line switch.
+ #
+-#SHOW_CURSOR:FALSE
++SHOW_CURSOR:TRUE
+ 
+ .h2 UNDERLINE_LINKS
+ # UNDERLINE_LINKS controls whether links are underlined by default, or shown
+@@ -973,8 +975,8 @@
+ # executed.  This is much less dangerous than enabling all execution
+ # links, but can still be dangerous.
+ #
+-#LOCAL_EXECUTION_LINKS_ALWAYS_ON:FALSE
+-#LOCAL_EXECUTION_LINKS_ON_BUT_NOT_REMOTE:FALSE
++LOCAL_EXECUTION_LINKS_ALWAYS_ON:FALSE
++LOCAL_EXECUTION_LINKS_ON_BUT_NOT_REMOTE:FALSE
+ 
+ .h2 TRUSTED_EXEC
+ # If LOCAL_EXECUTION_LINK_ON_BUT_NOT_REMOTE is TRUE, and no TRUSTED_EXEC
+@@ -1021,7 +1023,7 @@
+ # as well (i.e., they will only be able to access lynxexec or lynxprog
+ # URLs which meet any ALWAYS_TRUSTED_EXEC rules).
+ #
+-#TRUSTED_EXEC:none
++TRUSTED_EXEC:none
+ 
+ .h2 ALWAYS_TRUSTED_EXEC
+ # If EXEC_LINKS was defined, any lynxexec or lynxprog URL can be made
+@@ -1042,7 +1044,7 @@
+ #
+ # The default ALWAYS_TRUSTED_EXEC rule is "none".
+ #
+-#ALWAYS_TRUSTED_EXEC:none
++ALWAYS_TRUSTED_EXEC:none
+ 
+ .h2 TRUSTED_LYNXCGI
+ # Unix:
+@@ -1061,7 +1063,7 @@
+ #
+ # The default TRUSTED_LYNXCGI rule is "none".
+ #
+-#TRUSTED_LYNXCGI:none
++TRUSTED_LYNXCGI:none
+ 
+ .h2 LYNXCGI_ENVIRONMENT
+ # Unix:
+@@ -1381,7 +1383,7 @@
+ # The default is FALSE, so that the feature needs to be enabled here
+ # explicitly if you want it.
+ #
+-#PERSISTENT_COOKIES:FALSE
++PERSISTENT_COOKIES:FALSE
+ 
+ .h2 COOKIE_FILE
+ # COOKIE_FILE is the default file from which persistent cookies are read
+@@ -1828,7 +1830,7 @@
+ # and not forced TRUE, the user can regulate it via the 'o'ptions menu (and
+ # may save the preference in the RC file).
+ #
+-#NO_DOT_FILES:TRUE
++NO_DOT_FILES:FALSE
+ 
+ .h1 Internal Behavior
+ 
+@@ -2093,13 +2095,13 @@
+ #
+ # Unix:
+ # ====
+-#GLOBAL_EXTENSION_MAP:/usr/local/lib/mosaic/mime.types
++GLOBAL_EXTENSION_MAP:/etc/mime.types
+ # VMS:
+ # ===
+ #GLOBAL_EXTENSION_MAP:Lynx_Dir:mime.types
+ #
+ #	Unix (sought in user's home directory):
+-#PERSONAL_EXTENSION_MAP:.mime.types
++PERSONAL_EXTENSION_MAP:.mime.types
+ #	VMS (sought in user's sys$login directory):
+ #PERSONAL_EXTENSION_MAP:mime.types
+ 
+@@ -2234,6 +2236,8 @@
+ #SUFFIX:.dms:application/x-dms
+ #SUFFIX:.html:text/html
+ #SUFFIX:.txt:text/plain
++SUFFIX:.tgz:application/octet-stream
++SUFFIX:.deb:application/octet-stream
+ 
+ .h2 XLOADIMAGE_COMMAND
+ # VMS:
+@@ -2337,13 +2341,13 @@
+ #
+ # Unix:
+ # ====
+-#GLOBAL_MAILCAP:/usr/local/lib/mosaic/mailcap
++GLOBAL_MAILCAP:/etc/mailcap
+ # VMS:
+ # ===
+ #GLOBAL_MAILCAP:Lynx_Dir:mailcap
+ #
+ # 	Sought in user's home (Unix) or sys$login (VMS) directory.
+-#PERSONAL_MAILCAP:.mailcap
++PERSONAL_MAILCAP:.mailcap
+ 
+ .h2 PREFERRED_MEDIA_TYPES
+ # When doing a GET, lynx lists the MIME types which it knows how to present
+@@ -3531,7 +3535,7 @@
+ # should accept, in case the $SSL_CERT_FILE environment variable is not set,
+ # e.g.,
+ #
+-#SSL_CERT_FILE:/etc/ssl/certs/ca-certificates.crt
++SSL_CERT_FILE:/etc/ssl/certs/ca-certificates.crt
+ #SSL_CERT_FILE:NULL
+ 
+ .h1 Appearance
+@@ -3555,7 +3559,7 @@
+ 
+ .h2 SYSLOG_REQUESTED_URLS
+ # Log the requested URLs using the syslog interface.
+-#SYSLOG_REQUESTED_URLS:TRUE
++SYSLOG_REQUESTED_URLS:FALSE
+ 
+ .h2 SYSLOG_TEXT
+ # Add the given text to calls made to syslog, to distinguish Lynx from other
+@@ -3665,3 +3669,19 @@
+ # asserts that the feature could actually result in inappropriate resubmission
+ # of form content.
+ #TRACK_INTERNAL_LINKS:FALSE
++
++# external
++EXTERNAL:ftp:w3m %s:TRUE
++EXTERNAL:file:w3m %s:TRUE
++EXTERNAL:http:w3m %s:TRUE
++EXTERNAL:http:wget %s:TRUE
++EXTERNAL:http:wget -r %s:TRUE
++EXTERNAL:ftp:x-www-browser %s:TRUE
++EXTERNAL:file:x-www-browser %s:TRUE
++EXTERNAL:http:x-www-browser %s:TRUE
++# include
++INCLUDE:/etc/lynx-cur/local.cfg
++INCLUDE:~/.lynx/colors:COLOR
++INCLUDE:~/.lynx/keymap:KEYMAP
++INCLUDE:~/.lynx/viewers:VIEWER
++INCLUDE:~/.lynx/external:EXTERNAL
--- lynx-cur-2.8.8pre1.orig/debian/patches/series
+++ lynx-cur-2.8.8pre1/debian/patches/series
@@ -0,0 +1,3 @@
+lynxcfg.patch
+aboutlynx.patch
+use-dpkg-buildflags.patch
--- lynx-cur-2.8.8pre1.orig/debian/patches/use-dpkg-buildflags.patch
+++ lynx-cur-2.8.8pre1/debian/patches/use-dpkg-buildflags.patch
@@ -0,0 +1,18 @@
+Description: Use build flags from environment (dpkg-buildflags).
+ Necessary for hardening flags.
+ .
+ *_BUILD flags don't contain the flags from the environment, but only local
+ additions.
+Index: lynx-cur-2.8.8dev.12/src/chrtrans/makefile.in
+===================================================================
+--- lynx-cur-2.8.8dev.12.orig/src/chrtrans/makefile.in	2012-03-19 16:50:15.072775970 +0100
++++ lynx-cur-2.8.8dev.12/src/chrtrans/makefile.in	2012-03-19 16:51:46.744779460 +0100
+@@ -123,7 +123,7 @@
+ C_SRC		= $(OBJS:$o=.c)
+ 
+ $(MAKEUCTB) : $(OBJS)
+-	$(BUILD_CC) $(CC_OPTS) $(BUILD_LDFLAGS) -o $@ $(OBJS) $(INTLLIB) $(BUILD_LIBS)
++	$(BUILD_CC) $(CC_OPTS) $(LDFLAGS) $(BUILD_LDFLAGS) -o $@ $(OBJS) $(INTLLIB) $(BUILD_LIBS)
+ 
+ makeuctb$o : $(srcdir)/UCkd.h $(srcdir)/makeuctb.c
+ 
--- lynx-cur-2.8.8pre1.orig/debian/postinst
+++ lynx-cur-2.8.8pre1/debian/postinst
@@ -0,0 +1,22 @@
+#!/bin/sh
+# postinst script for lynx-beta
+pack=lynx-cur
+cnfdir=/etc/${pack}
+CONFIGFILE=${cnfdir}/local.cfg
+
+set -e
+
+if [ "$1" != configure ]; then exit 0; fi
+
+update-alternatives --install /usr/bin/www-browser www-browser \
+       /usr/bin/lynx 40 \
+       --slave /usr/share/man/man1/www-browser.1.gz www-browser.1.gz \
+       /usr/share/man/man1/lynx.1.gz
+
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- lynx-cur-2.8.8pre1.orig/debian/postrm
+++ lynx-cur-2.8.8pre1/debian/postrm
@@ -0,0 +1,16 @@
+#! /bin/sh
+# postrm script for lynx-cur
+pack=lynx-cur
+cnfdir=/etc/${pack}
+
+set -e
+
+if [ "$1" = "purge" ]; then
+    rm -f ${cnfdir}/local.cfg
+fi
+
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
--- lynx-cur-2.8.8pre1.orig/debian/preinst
+++ lynx-cur-2.8.8pre1/debian/preinst
@@ -0,0 +1,29 @@
+#!/bin/sh
+pack=lynx-cur
+
+set -e
+
+case "$1" in
+    install|upgrade)
+    if dpkg --compare-versions "$2" 'lt-nl' '2.8.8dev.8-2' ; then
+	update-alternatives --remove lynx /usr/bin/lynx.cur
+	update-alternatives --remove www-browser /usr/bin/lynx.cur
+    fi
+
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst 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
--- lynx-cur-2.8.8pre1.orig/debian/prerm
+++ lynx-cur-2.8.8pre1/debian/prerm
@@ -0,0 +1,26 @@
+#! /bin/sh
+# prerm script for lynx-cur
+#
+# see: dh_installdeb(1)
+
+set -e
+
+case "$1" in
+    remove|deconfigure)
+	update-alternatives --remove www-browser /usr/bin/lynx
+#	update-alternatives --remove lynx /usr/bin/lynx
+        ;;
+    failed-upgrade|upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- lynx-cur-2.8.8pre1.orig/debian/rules
+++ lynx-cur-2.8.8pre1/debian/rules
@@ -0,0 +1,188 @@
+#!/usr/bin/make -f
+#-*- makefile -*-
+# Made with the aid of dh_make, by Craig Small
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+# Some lines taken from debmake, by Christoph Lameter.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# Uncomment this to turn on debug mode.
+#export DEB_BUILD_OPTIONS="debug nostrip"
+
+SSL=gnu
+# uncomment the next line if you want openssl version
+#SSL=ssl
+
+export DH_OPTIONS=
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+DEBOP=--enable-debug
+else
+DEBOP=
+endif
+
+PACKAGE		:= $(shell dpkg-parsechangelog| 		\
+			sed -n 's/^Source: \(.*\)$$/\1/p')
+DSTDIR		:= $(CURDIR)/debian/$(PACKAGE)
+BINDIR          := $(DSTDIR)/usr/bin
+DOCDIR		:= $(DSTDIR)/usr/share/doc/$(PACKAGE)
+SUBPACK		:= $(PACKAGE)-wrapper
+SUBDIR		:= $(CURDIR)/debian/$(SUBPACK)
+
+include /usr/share/quilt/quilt.make
+
+configure: configure-$(SSL)
+configure-gnu: configure-stamp
+configure-ssl: configure-stamp-ssl
+
+configure-stamp: patch
+	cp -f debian/control-gnu debian/control
+	dh_testdir
+	# Add here commands to configure the package.
+	dh_autotools-dev_updateconfig
+	env cf_cv_SYSTEM_MAIL=/usr/sbin/sendmail \
+	COMPRESS=/usr/bin/compress BZIP2=/bin/bzip2 UNZIP=/usr/bin/unzip \
+	ZIP=/usr/bin/zip \
+	LIBS="-lbsd" \
+	./configure $(shell dpkg-buildflags --export=configure) --prefix=/usr --libexecdir=/usr/lib \
+	--sysconfdir=/etc/lynx-cur --localstatedir=/var \
+	--libdir=/etc/lynx-cur --enable-8bit-toupper --enable-externs \
+	--enable-nsl-fork --enable-cgi-links --enable-exec-links \
+	--enable-exec-scripts --enable-persistent-cookies --enable-nls \
+	--enable-gzip-help --enable-prettysrc --enable-source-cache \
+	--enable-cjk --enable-default-colors --enable-nested-tables \
+	--enable-japanese-utf8 --enable-ipv6 \
+        --enable-forms-options --enable-justify-elts --enable-partial \
+        --enable-read-eta --enable-scrollbar --enable-syslog \
+	--with-zlib --with-bzlib --without-included-gettext \
+	--with-screen=ncursesw --enable-justify-elts \
+	--with-gnutls=/usr --enable-persistent-cookies \
+	${DEBOP}
+#	--with-nss-compat --with-gnutls=/usr --enable-gnutls-compat 
+#	--enable-color-style --enable-charset-choice --enable-font-switch
+
+	touch configure-stamp
+
+configure-stamp-ssl: patch
+	sed -e "s/libgnutls-dev/libssl-dev/" debian/control-gnu > debian/control-ssl && \
+	cp -f debian/control-ssl debian/control
+	dh_testdir
+	# Add here commands to configure the package.
+	dh_autotools-dev_updateconfig
+	env cf_cv_SYSTEM_MAIL=/usr/sbin/sendmail \
+	COMPRESS=/usr/bin/compress BZIP2=/bin/bzip2 UNZIP=/usr/bin/unzip \
+	ZIP=/usr/bin/zip \
+	LIBS="-lbsd" \
+	./configure $(shell dpkg-buildflags --export=configure) --prefix=/usr --libexecdir=/usr/lib \
+	--sysconfdir=/etc/lynx-cur --localstatedir=/var \
+	--libdir=/etc/lynx-cur --enable-8bit-toupper --enable-externs \
+	--enable-nsl-fork --enable-cgi-links --enable-exec-links \
+	--enable-exec-scripts --enable-persistent-cookies --enable-nls \
+	--enable-gzip-help --enable-prettysrc --enable-source-cache \
+	--enable-cjk --enable-default-colors --enable-nested-tables \
+	--enable-japanese-utf8 --enable-ipv6 \
+        --enable-forms-options --enable-justify-elts --enable-partial \
+        --enable-read-eta --enable-scrollbar --enable-syslog \
+	--with-zlib --with-bzlib --without-included-gettext \
+	--with-screen=ncursesw --enable-justify-elts \
+	--with-ssl --enable-persistent-cookies \
+	${DEBOP}
+#	--with-nss-compat --with-gnutls=/usr --enable-gnutls-compat 
+#	--enable-color-style --enable-charset-choice --enable-font-switch
+
+	touch configure-stamp-ssl
+
+build: build-arch 
+build-arch: configure build-stamp
+build-indep: 
+build-stamp:
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+
+	touch build-stamp
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp configure-stamp-ssl
+	rm -f debian/control-ssl
+
+	# Add here commands to clean up after the build process.
+	[ ! -f makefile ] || $(MAKE) distclean
+	#-rm -f intl/libintl.h
+
+	dh_autotools-dev_restoreconfig
+	dh_clean
+
+#install: install-indep install-arch
+install-indep:
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs -i
+
+install-arch:
+	dh_testdir
+	dh_testroot
+	dh_prep -s 
+	dh_installdirs -s
+#	chmod +x scripts/*.sh
+	# Add here commands to install the package into debian/$(package).
+	$(MAKE) install-full prefix=$(DSTDIR)/usr \
+	libdir=$(DSTDIR)/etc/$(PACKAGE) \
+	sysconfdir=$(DSTDIR)/etc/$(PACKAGE) docdir=$(DOCDIR) \
+	helpdir=$(DOCDIR)/lynx_help \
+	mandir=$(DSTDIR)/usr/share/man/man1
+	cd $(DOCDIR) ; rm -rf samples test
+	cd $(DOCDIR) ; rm -f COPYING lynx_help/COPYING lynx_help/COPYHEADER \
+		CHANGES COPYING.asc COPYHEADER.asc
+#	cd $(DSTDIR)/usr/share/man/man1 ; mv lynx.1 lynx.cur.1
+
+# Build architecture-independent files here.
+# for lynx-cur-wrapper
+binary-indep: DH_OPTIONS=-i
+binary-indep: install-indep
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+#	dh_installman debian/lynx-cur.1
+	dh_installchangelogs
+	dh_install
+	dh_link
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture-dependent files here.
+binary-arch: DH_OPTIONS=-a
+binary-arch: install-arch
+	dh_testdir
+	dh_testroot
+	dh_installdebconf
+	dh_installdocs debian/README.source
+	dh_installmenu
+	dh_installmime
+	dh_installchangelogs CHANGES
+	dh_install
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+source diff:                                                                  
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary
