16 Commits

Author SHA1 Message Date
fcambus
ff9df825da Update lynx to 2.8.9pl16. 2017-07-28 17:05:29 +00:00
fcambus
e86ab1ae14 Avoid parsing DOWNLOADER and PRINTER directives from lynx.cfg.
As a side note, there is no need to explicitely disable parsing UPLOADER
directives because we --disable-dired at configure time, nor EXTERNAL
directives as we do not build with --enable-externs.

OK mestre@, tb@
2017-07-07 10:17:28 +00:00
fcambus
40dfb8de1a Update lynx to 2.8.9pl13.
While there, amend our lynx.cfg patch to switch default site to HTTPS.
2017-04-30 12:08:32 +00:00
fcambus
d8e7df99a2 Update lynx to 2.8.9pl11.
OK sthen@
2016-11-25 15:58:55 +00:00
fcambus
8427005e5e Disable spawning an external viewer. On top of disabling the hardcoded
XLOADIMAGE_COMMAND value in userdefs.h, we also remove the possibility
of setting a custom value in lynx.cfg.

The ability to assign MIME types to external viewers via configuration
file (via the VIEWER variables) is also disabled.

OK tb@
2016-09-04 13:35:02 +00:00
tb
a4e7464812 Help lynx to live up to its no "proc" and no "exec" promises:
sthen@ found that the mailcap mechanism can spawn a viewer. Rename
the hardcoded /etc/mailcap and ~/.mailcap files to /dev/null and
disable the ability to undo that via a config file. lynx copes by
offering to download files with MIME types it can't handle itself.

fcambus found that "lynx index.html" + typing e spawns an editor.
Hardcode "no_editor = TRUE" before pledge() and tweak manpage.

Most of this is by fcambus (MAINTAINER).
/dev/null bit from me, based on a hint from sthen@.

ok sthen@ on previous version
2016-04-15 03:21:51 +00:00
tb
72193d0da3 Add pledge(2) support to lynx.
The heavy lifting and final touches were done by Frederic Cambus; this
version includes earlier patches, ideas and tweaks from daniel@ and me.

ok daniel@, patch and notes from Frederic Cambus (MAINTAINER)

Notes :
-------
The idea is to avoid using otherwise required 'getpw', 'proc', 'exec'
promises entirely. We achieve this by disabling a couple of features,
mostly removing obsolete stuff. While we are at it, we attempt to pave
the way to be able to remove even more promises in the future, and
reduce potential attack vectors.

We disable them either at compile time :

--disable-bibp-urls
--disable-dired
--disable-finger

Or by hardcoding boolean values to disable the features just before
calling pledge and entering main program loop :

no_exec = TRUE;
no_mail = TRUE;
no_shell = TRUE;

rlogin_ok = FALSE;
telnet_ok = FALSE;

Manpage has been updated to mention those restrictions.

Also, CFLAGS="-DNOUSERS" was added in the Makefile to disable getpwnam
and getpwuid.
2016-03-12 14:29:13 +00:00
dcoppa
4b4b44dc90 Update to lynx-2.8.9pl8
From new maintainer Frederic Cambus
2016-01-12 16:05:54 +00:00
daniel
fac3743537 Update lynx to 2.8.9dev.3; ok bcallah@ (MAINTAINER). 2015-01-15 01:15:11 +00:00
marc
e7a338bcf5 port no longer needed as lynx now part of standard OpenBSD release.
Change install to create link /usr/local/bin/lynx ==> /usr/bin/lynx
Change delete to remove the link.
1998-03-12 07:48:28 +00:00
gene
5d8a47eacc New patches that cope with our incarnation of curses better. Sorry, my system
dates back to 2.0 and looked good where it shouldn't have.
1998-01-19 21:13:22 +00:00
gene
4211cdc91e Get the build directory for libwww.a right. 1998-01-13 04:07:57 +00:00
gene
5fb7a01da9 Pretty much a regen in response to PR 386. We're backing away from the
rapidly-changing ac- series to the stable, lynx 2.7.2 release.  ac- shoudl
be in a lynx-current port.
Note that in the patches I pull some tricks with Makefiles that work _only_
because we are building out of variables set in bsd.port.mk.
1998-01-12 17:22:51 +00:00
martin
04bacd2801 Update to latest lynx 1997-12-29 21:42:43 +00:00
niklas
420aa9ae61 Deal with stupid syntax error 1997-12-21 11:49:13 +00:00
gene
51885ce24e Initial import of lynx with an OpenBSDified patch-aa 1997-11-18 02:25:41 +00:00