summaryrefslogtreecommitdiffstats
path: root/debian/patches/lynxcfg.patch
blob: 643f0cd788f08a311b3f2f7fed8d5a6702ecd292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
Description: Modify the lynx.cfg to Debian system
Author: Atsuhito Kohda <kohda@debian.org>
Author: Denis Briand <debian@denis-briand.fr>
Author: Axel Beckert <abe@debian.org>
Forwarded: not-needed
Last-Update: 2020-07-27

--- a/lynx.cfg
+++ b/lynx.cfg
@@ -108,12 +108,13 @@
 #
 # Normally we expect you will connect to a remote site, e.g., the Lynx starting
 # site:
-STARTFILE:https://lynx.invisible-island.net/
+#STARTFILE:https://lynx.invisible-island.net/
 #
 # As an alternative, you may want to use a local URL.  A good choice for this is
 # the user's home directory:
 .ex
 #STARTFILE:file://localhost/~/
+STARTFILE:file://localhost/usr/share/doc/lynx/lynx_help/about_lynx.html.gz
 #
 # Your choice of STARTFILE should reflect your site's needs, and be a URL that
 # you can connect to reliably.  Otherwise users will become confused and think
@@ -132,9 +133,10 @@
 # This definition will be overridden if the "LYNX_HELPFILE" environment
 # variable has been set.
 #
-HELPFILE:https://lynx.invisible-island.net/lynx_help/lynx_help_main.html
+#HELPFILE:https://lynx.invisible-island.net/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-common/lynx_help/lynx_help_main.html
 
 .h2 DEFAULT_INDEX_FILE
 # DEFAULT_INDEX_FILE is the default file retrieved when the
@@ -454,7 +456,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
@@ -468,6 +470,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.
@@ -565,7 +568,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
@@ -617,7 +620,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.,
@@ -809,7 +812,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
@@ -997,8 +1000,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
@@ -1045,7 +1048,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
@@ -1066,7 +1069,7 @@
 #
 # The default ALWAYS_TRUSTED_EXEC rule is "none".
 #
-#ALWAYS_TRUSTED_EXEC:none
+ALWAYS_TRUSTED_EXEC:none
 
 .h2 TRUSTED_LYNXCGI
 # Unix:
@@ -1085,7 +1088,7 @@
 #
 # The default TRUSTED_LYNXCGI rule is "none".
 #
-#TRUSTED_LYNXCGI:none
+TRUSTED_LYNXCGI:none
 
 .h2 LYNXCGI_ENVIRONMENT
 # Unix:
@@ -1422,7 +1425,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
@@ -1869,7 +1872,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
 
@@ -2130,13 +2133,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
 
@@ -2271,6 +2274,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:
@@ -2374,13 +2379,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
@@ -3599,7 +3604,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
 
 .h2 SSL_CLIENT_CERT_FILE
@@ -3646,7 +3651,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
@@ -3821,6 +3826,22 @@
 # not support HTTP/1.0 which can be used by switching to the later protocol.
 #HTTP_PROTOCOL:1.0
 
+# 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/local.cfg
+INCLUDE:~/.lynx/colors:COLOR
+INCLUDE:~/.lynx/keymap:KEYMAP
+INCLUDE:~/.lynx/viewers:VIEWER
+INCLUDE:~/.lynx/external:EXTERNAL
+
 .h2 GUESS_SCHEME
 # When true, Lynx may fill in a missing "scheme" for URIs which you provide.
 # This is different from URL_DOMAIN_PREFIXES and URL_DOMAIN_SUFFIXES.