Package-Name: lynx
Requires: ncurses|ncurses4
Suggests: openssl
Homepage: http://lynx.browser.org/
Source: http://lynx.isc.org/current//(lynx(\d+(\.\d+)+)rel(\.\w+)\.tar\.gz)/[\0-\377]*lynx(\d+(.\d+)+)rel(.\w+).tar.gz $1$3
Zap-Before-Install: 1
Repack:
	tar xzvfp "$(SOURCE)"
	mv lynx* lynx-"$(VERSION)"
Compile:
	INSTDIR=`cd "$(PREFIX)"/..;pwd` ; \
	if packager c openssl ; then SSL="--with-ssl='$$INSTDIR/openssl'" ; else SSL=--without-ssl ; fi ; \
	if packager c zlib ; then ZLIB=--with-zlib ; else ZLIB=--without-zlib ; fi ; \
	$(MAKE) -f ../Makefile configure CONFIGURE_OPTS="--with-screen=ncurses --enable-widec --enable-cjk --enable-japanese-utf8 --enable-file-upload --enable-gzip-help --disable-dired $$SSL $$ZLIB"
	perl -pi -e 's/-lncurses /-lncursesw /' makefile
	$(MAKE)
	rm -f "$(PREFIX)"/etc/lynx.{cfg,lss}
# FIXME: bug in configure doesn't set $(TAR) and friends
	$(MAKE) install install-help install-doc TAR_UP="tar cf -" TAR_DOWN="tar xvfp -"
Install:
	$(MAKE) instbin BIN=lynx
	$(MAKE) instetc ETC="lynx.cfg lynx.lss"
	$(MAKE) instman SECTION=1 MAN=lynx
Patch: <<EOT
--- ../lynx-2.8.5.1-orig/userdefs.h	2004-02-03 05:02:28 +0900
+++ userdefs.h	2004-06-07 17:26:07 +0900
@@ -296,7 +296,7 @@
  * Mappings in these global and personal files override any SUFFIX
  * definitions in lynx.cfg and built-in defaults from src/HTInit.c.
  */
-#define GLOBAL_EXTENSION_MAP "/usr/local/lib/mosaic/mime.types"
+#define GLOBAL_EXTENSION_MAP "/usr/share/mime.types"
 #define PERSONAL_EXTENSION_MAP ".mime.types"
 
 /**************************
@@ -306,7 +306,7 @@
  * Mappings in these global and personal files override any VIEWER
  * definitions in lynx.cfg and built-in defaults from src/HTInit.c.
  */
-#define GLOBAL_MAILCAP "/usr/local/lib/mosaic/mailcap"
+#define GLOBAL_MAILCAP "/usr/share/mailcap"
 #define PERSONAL_MAILCAP ".mailcap"
 
 /**************************
@@ -324,7 +324,7 @@
  * use any default viewers for image types.  Note that open is used as
  * the default for NeXT, instead of the XLOADIMAGE_COMMAND definition.
  */
-#define XLOADIMAGE_COMMAND "xli %s &"
+#define XLOADIMAGE_COMMAND NULL
 
 /**************************
  * For UNIX systems, SYSTEM_MAIL and SYSTEM_MAIL_FLAGS are set by the
@@ -512,7 +512,7 @@
  * with the Up-Arrow or Down-Arrow keys after entering the 'g'oto
  * command, whether or not a default is offered.
  */
-#define GOTOBUFFER	  FALSE
+#define GOTOBUFFER	  TRUE
 
 /*****************************
  * If FTP_PASSIVE is set to TRUE here or in lynx.cfg, ftp transfers will
@@ -591,7 +591,7 @@
  * if your system does not have utmp capabilities.  CHANGE THIS here
  * or in lynx.cfg.
  */
-#define LOCAL_DOMAIN "ukans.edu"
+#define LOCAL_DOMAIN "example.com"
 
 /********************************
 * The DEFAULT_CACHE_SIZE specifies the number of WWW documents to be
@@ -864,7 +864,7 @@
  *
  * The default defined here can be changed in lynx.cfg.
  */
-#define COLLAPSE_BR_TAGS TRUE
+#define COLLAPSE_BR_TAGS FALSE
 
 /********************************
  * If SET_COOKIES is set FALSE, Lynx will ignore Set-Cookie headers
@@ -1216,7 +1216,7 @@
  * If it is FALSE at startup of Lynx, the user can regulate it via the
  * 'o'ptions menu, and may save the preference in the RC file.
  */
-#define NO_DOT_FILES    TRUE  /* disallow access to dot files */
+#define NO_DOT_FILES    FALSE
 
 /********************************
  * If MAKE_LINKS_FOR_ALL_IMAGES is TRUE, all images will be given links
@@ -1506,7 +1506,7 @@
  * reason why I didn't support it fully is I think supporting it is not
  * required so much and I don't have an environment to test it. - TH
  */
-#define SUPPORT_MULTIBYTE_EDIT
+//#define SUPPORT_MULTIBYTE_EDIT
 #endif /* ! defined(NOT_ASCII) */
 
 /***************************** 
EOT

-/etc/lynx.cfg
-/etc/lynx.lss
/etc/lynx.cfg
/etc/lynx.lss
/pkg/lynx/
/usr/bin/lynx
/usr/man/man1/lynx.1.gz
