]> git.pld-linux.org Git - packages/lynx.git/blob - lynx-config.patch
- Linking with ncursesw instead of ncurses, so UTF-8 terminals
[packages/lynx.git] / lynx-config.patch
1 diff -Nur lynx2-8-4.orig/configure.in lynx2-8-4/configure.in
2 --- lynx2-8-4.orig/configure.in Sun Jun 10 16:24:29 2001
3 +++ lynx2-8-4/configure.in      Sun Jun 10 16:16:44 2001
4 @@ -434,7 +434,7 @@
5  cf_libdir=`echo $cf_libdir | sed -e s@'^NONE/'@$prefix/@ -e s@'^NONE/'@$ac_default_prefix/@`
6  
7  AC_MSG_CHECKING(for location of config-file)
8 -LYNX_CFG_FILE=$cf_libdir/lynx.cfg
9 +LYNX_CFG_FILE=$sysconfdir/lynx.cfg
10  AC_DEFINE_UNQUOTED(LYNX_CFG_FILE,"$LYNX_CFG_FILE")
11  AC_MSG_RESULT($LYNX_CFG_FILE)
12  
13 @@ -696,7 +696,7 @@
14         AC_MSG_RESULT(yes)
15  
16         AC_MSG_CHECKING(for location of style-sheet file)
17 -       LYNX_LSS_FILE=$cf_libdir/lynx.lss
18 +       LYNX_LSS_FILE=$datadir/lynx/lynx.lss
19         AC_DEFINE_UNQUOTED(LYNX_LSS_FILE,"$LYNX_LSS_FILE")
20         AC_MSG_RESULT($LYNX_LSS_FILE)
21         INSTALL_LSS=install-lss
22 diff -Nur lynx2-8-5.orig/lynx.cfg lynx2-8-5/lynx.cfg
23 --- lynx2-8-5.orig/lynx.cfg     Sun Jun 10 16:24:29 2001
24 +++ lynx2-8-5/lynx.cfg  Sun Jun 10 16:16:44 2001
25 @@ -1,5 +1,5 @@
26  # lynx.cfg file.
27 -# The default placement for this file is /usr/local/lib/lynx.cfg (Unix)
28 +# The default placement for this file is /etc/lynx.cfg (Unix)
29  #                                     or Lynx_Dir:lynx.cfg (VMS)
30  #
31  # $Format: "#PRCS LYNX_VERSION \"$ProjectVersion$\""$
32 @@ -11,7 +11,7 @@
33  # Definition pairs are of the form  VARIABLE:DEFINITION
34  # NO spaces are allowed between the pair items.
35  #
36 -#  If you do not have write access to /usr/local/lib you may change
37 +#  If you do not have write access to /etc you may change
38  #  the default location of this file in the userdefs.h file and recompile,
39  #  or specify its location on the command line with the "-cfg"
40  #  command line option.
41 @@ -42,8 +42,8 @@
42  #
43  # Then in ~/lynx.cfg:
44  #
45 -#   INCLUDE:/usr/local/lib/lynx.cfg
46 -#           ^^^^^^^^^^^^^^^^^^^^^^^ or whatever is appropriate on your system
47 +#   INCLUDE:/etc/lynx.cfg
48 +#           ^^^^^^^^^^^^^ or whatever is appropriate on your system
49  # and now your own tweaks.
50  #
51  # Starting with Lynx 2.8.2, the INCLUDE facility is yet more powerful.  You can
52 @@ -88,7 +88,8 @@
53  # Normally we expect you will connect to a remote site, e.g., the Lynx starting
54  # site:
55  #STARTFILE:http://lynx.isc.org/
56 -STARTFILE:file://localhost/usr/share/doc/HTML/index.html
57 +#STARTFILE:file://localhost/usr/share/doc/HTML/index.html
58 +STARTFILE:file://localhost/~/
59  #
60  # As an alternative, you may want to use a local URL.  A good choice for this is
61  # the user's home directory:
62 @@ -112,9 +113,8 @@
63  #   This should be changed to the local path.
64  #
65  #HELPFILE:http://www.subir.com/lynx/lynx_help/lynx_help_main.html
66 -.ex
67 -HELPFILE:file://localhost/usr/share/lynx/help/lynx_help_main.html
68 -
69 +# default in PLD is:
70 +#HELPFILE:file://localhost/usr/share/lynx/help/lynx_help_main.html.gz
71  
72  .h2 DEFAULT_INDEX_FILE
73  # DEFAULT_INDEX_FILE is the default file retrieved when the
74 diff -Nur lynx2-8-5.orig/makefile.in lynx2-8-5/makefile.in
75 --- lynx2-8-5.orig/makefile.in  Mon Apr  2 02:51:46 2001
76 +++ lynx2-8-5/makefile.in       Sun Jun 10 16:29:52 2001
77 @@ -48,15 +48,15 @@
78  MANDIR= $(DESTDIR)$(mandir)
79  
80  ## Where you want the lynx.cfg file installed
81 -libdir= @libdir@
82 +libdir= @sysconfdir@
83  LIBDIR= $(DESTDIR)$(libdir)
84  
85  ## Where you want the doc-files installed
86 -docdir= @libdir@/lynx_doc
87 +docdir= @datadir@/lynx_doc
88  DOCDIR= $(DESTDIR)$(docdir)
89  
90  ## Where you want the help-files installed
91 -helpdir= @libdir@/lynx_help
92 +helpdir= @datadir@/lynx/help
93  HELPDIR= $(DESTDIR)$(helpdir)
94  
95  ##set the relative location of the WWW library Implementation directory,
96 @@ -326,7 +326,7 @@
97         @-rm -f help_files.tmp
98  
99  install-help : help_files.sed $(HELPDIR)
100 -       - (cd $(HELPDIR) && WD=`pwd` && HEAD=`echo $$WD|sed -e 's!/lynx_help$$!!'` && test $$WD != $$HEAD && rm -fr *)
101 +       - (cd $(HELPDIR) && WD=`pwd` && HEAD=`echo $$WD|sed -e 's!/lynx/help$$!!'` && test $$WD != $$HEAD && rm -fr *)
102         test -d $(HELPDIR)/keystrokes || mkdir $(HELPDIR)/keystrokes
103  @LYNXCFG_MAKE@ @echo 'Making htmlized lynx.cfg'
104  @LYNXCFG_MAKE@ cd src && make LYReadCFG.i
105 @@ -438,12 +438,12 @@
106  
107  uninstall \
108  uninstall-help ::
109 -       -test -d $(HELPDIR) && WD=`cd $(HELPDIR) && pwd` && HEAD=`echo $$WD|sed -e 's!/lynx_help$$!!'` && test $$WD != $$HEAD && rm -rf $(HELPDIR)
110 +       -test -d $(HELPDIR) && WD=`cd $(HELPDIR) && pwd` && HEAD=`echo $$WD|sed -e 's!/lynx/help$$!!'` && test $$WD != $$HEAD && rm -rf $(HELPDIR)
111  
112  uninstall \
113  uninstall-doc ::
114         -test -d $(DOCDIR) && WD=`cd $(DOCDIR) && pwd` && HEAD=`echo $$WD|sed -e 's!/lynx_doc$$!!'` && test $$WD != $$HEAD && rm -rf $(DOCDIR)
115 -       -test -d $(HELPDIR) && WD=`cd $(HELPDIR) && pwd` && HEAD=`echo $$WD|sed -e 's!/lynx_help$$!!'` && test $$WD != $$HEAD && cd $(HELPDIR) && rm -f COPYING COPYHEADER
116 +       -test -d $(HELPDIR) && WD=`cd $(HELPDIR) && pwd` && HEAD=`echo $$WD|sed -e 's!/lynx/help$$!!'` && test $$WD != $$HEAD && cd $(HELPDIR) && rm -f COPYING COPYHEADER
117  
118  $(BINDIR) $(MANDIR) $(LIBDIR) $(HELPDIR) $(DOCDIR) :
119         $(srcdir)/mkdirs.sh $@
120 diff -Nur lynx2-8-4.orig/userdefs.h lynx2-8-4/userdefs.h
121 --- lynx2-8-4.orig/userdefs.h   Sun Jun 10 16:24:29 2001
122 +++ lynx2-8-4/userdefs.h        Sun Jun 10 16:16:44 2001
123 @@ -93,7 +93,7 @@
124   * mailcap files (see the examples in the samples directory).
125   */
126  #ifndef LYNX_CFG_FILE
127 -#define LYNX_CFG_FILE "/usr/share/lynx/lynx.cfg"
128 +#define LYNX_CFG_FILE "/etc/lynx.cfg"
129  #endif /* LYNX_CFG_FILE */
130  
131  /**************************
132 @@ -277,7 +277,7 @@
133  #ifdef DOSPATH
134  #define LYNX_CFG_FILE "./lynx.cfg"
135  #else
136 -#define LYNX_CFG_FILE "/usr/share/lynx/lynx.cfg"
137 +#define LYNX_CFG_FILE "/etc/lynx.cfg"
138  #endif /* DOSPATH */
139  #endif /* LYNX_CFG_FILE */
140  #endif /* HAVE_CONFIG_H */
141 @@ -478,7 +478,7 @@
142   * http://www.subir.com/lynx/lynx_help/lynx_help_main.html
143   *   This should be changed here or in lynx.cfg to the local path.
144   */
145 -#define HELPFILE "http://www.subir.com/lynx/lynx_help/lynx_help_main.html"
146 +#define HELPFILE "file://localhost/usr/share/lynx/help/lynx_help_main.html.gz"
147  /* #define HELPFILE "file://localhost/PATH_TO/lynx_help/lynx_help_main.html" */
148  
149  /*****************************
This page took 0.402719 seconds and 3 git commands to generate.