]> git.pld-linux.org Git - packages/lynx.git/blame - lynx-config.patch
- Encoding field is required by freedesktop.org desktop-entry specification
[packages/lynx.git] / lynx-config.patch
CommitLineData
d1f006ef 1diff -Nur lynx2-8-4.orig/configure.in lynx2-8-4/configure.in
398a1959
JB
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 @@
d1f006ef
JB
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
398a1959 13@@ -696,7 +696,7 @@
d1f006ef
JB
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
59822b20
JB
22diff -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 @@
1bc64cfa
AF
26 # lynx.cfg file.
27-# The default placement for this file is /usr/local/lib/lynx.cfg (Unix)
d1f006ef 28+# The default placement for this file is /etc/lynx.cfg (Unix)
1bc64cfa
AF
29 # or Lynx_Dir:lynx.cfg (VMS)
30 #
59822b20
JB
31 # $Format: "#PRCS LYNX_VERSION \"$ProjectVersion$\""$
32@@ -11,7 +11,7 @@
1bc64cfa
AF
33 # Definition pairs are of the form VARIABLE:DEFINITION
34 # NO spaces are allowed between the pair items.
35 #
b4bdc598 36-# If you do not have write access to /usr/local/lib you may change
d1f006ef 37+# If you do not have write access to /etc you may change
1bc64cfa
AF
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.
d1f006ef 41@@ -42,8 +42,8 @@
1bc64cfa
AF
42 #
43 # Then in ~/lynx.cfg:
44 #
6e9d7575 45-# INCLUDE:/usr/local/lib/lynx.cfg
d1f006ef
JB
46-# ^^^^^^^^^^^^^^^^^^^^^^^ or whatever is appropriate on your system
47+# INCLUDE:/etc/lynx.cfg
48+# ^^^^^^^^^^^^^ or whatever is appropriate on your system
6e9d7575 49 # and now your own tweaks.
50 #
d1f006ef
JB
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.browser.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 #
3d470ac9 65 #HELPFILE:http://www.subir.com/lynx/lynx_help/lynx_help_main.html
d1f006ef
JB
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
59822b20
JB
74diff -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
3d470ac9 77@@ -48,15 +48,15 @@
d1f006ef
JB
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
3d470ac9
TP
95 ##set the relative location of the WWW library Implementation directory,
96@@ -326,7 +326,7 @@
d1f006ef
JB
97 @-rm -f help_files.tmp
98
3d470ac9
TP
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
d1f006ef
JB
103 @LYNXCFG_MAKE@ @echo 'Making htmlized lynx.cfg'
104 @LYNXCFG_MAKE@ cd src && make LYReadCFG.i
398a1959 105@@ -438,12 +438,12 @@
d1f006ef
JB
106
107 uninstall \
108 uninstall-help ::
398a1959
JB
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)
d1f006ef
JB
111
112 uninstall \
113 uninstall-doc ::
398a1959
JB
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
d1f006ef
JB
117
118 $(BINDIR) $(MANDIR) $(LIBDIR) $(HELPDIR) $(DOCDIR) :
119 $(srcdir)/mkdirs.sh $@
120diff -Nur lynx2-8-4.orig/userdefs.h lynx2-8-4/userdefs.h
398a1959
JB
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
d1f006ef
JB
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 @@
3d470ac9 142 * http://www.subir.com/lynx/lynx_help/lynx_help_main.html
d1f006ef
JB
143 * This should be changed here or in lynx.cfg to the local path.
144 */
3d470ac9 145-#define HELPFILE "http://www.subir.com/lynx/lynx_help/lynx_help_main.html"
d1f006ef
JB
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.072914 seconds and 4 git commands to generate.