Commit Graph

946 Commits

Author SHA1 Message Date
Omar Polo 24232204eb update depends 2022-09-10 12:24:39 +00:00
Omar Polo 934f957f29 remove unused entrypoint field
ventige of the cgi support (and lack of url rewriting)
2022-09-10 10:22:24 +00:00
Omar Polo 7bb80ca90d don't count twice the failing tests on gmid crash 2022-09-10 10:12:50 +00:00
Omar Polo edc5ca667d properly initialize the TAILQs at vhost creation 2022-09-10 10:12:37 +00:00
Omar Polo 2025e96d97 drop cgi vestiges from the struct host
The `env' list is no longer used since CGI scripts were removed
2022-09-10 09:48:30 +00:00
Omar Polo cd5826b8ba retire the deprecated `mime' and `map' config options 2022-09-10 09:43:57 +00:00
Omar Polo aa9543b9fd make the mime types fixed-sized too 2022-09-10 09:40:05 +00:00
Omar Polo 7277bb7dc2 make config fields `chroot' and `user' fixed-size 2022-09-10 09:21:09 +00:00
Omar Polo aae8f6bf2b change the flags to be consistent with other OpenBSD daemons
-d is `debug' (run in the foreground)
 -f to load the configuration file

adjust regress and contrib accordingly
2022-09-08 21:34:29 +00:00
Omar Polo 3eabd37fe7 adjust install/uninstall target
gmid.1 was moved as gmid.8 and now we have `ge' too
2022-09-08 21:18:04 +00:00
Omar Polo 9b15e4c628 move gmid to the eight section of the manual 2022-09-08 21:15:02 +00:00
Omar Polo 7f03b52bd6 shim for __dead 2022-09-08 20:51:13 +00:00
Omar Polo f7c6f7155a sync 2022-09-08 20:45:19 +00:00
Omar Polo a5fb2593a9 adjust regress to use `ge' for the old configless test 2022-09-08 20:45:12 +00:00
Omar Polo 32fbc47803 drop the configless mode from gmid; now it's provided by `ge' 2022-09-08 20:44:35 +00:00
Omar Polo 0126d91d1d add ge: gemini export! 2022-09-07 20:47:33 +00:00
Omar Polo 7600099513 optionally disable the sandbox on some systems
The FreeBSD and Linux' sandbox can't deal with `fastcgi' and `proxy'
configuration rules: new sockets needs to be opened and it's either
impossible (the former) or a huge pain in the arse (the latter).

The sandbox is still always used in case only static files are served.
2022-09-06 16:40:38 +00:00
Omar Polo 36e6e793a1 gc FILE_EXECUTABLE 2022-09-06 16:25:10 +00:00
Omar Polo 1ab7c96bb3 gc sandbox_executor_process 2022-09-06 16:24:45 +00:00
Omar Polo d29a2ee224 get rid of the CGI support
I really want to get rid of the `executor' process hack for CGI scripts
and its escalation to allow fastcgi and proxying to work on non-OpenBSD.

This drops the CGI support and the `executor' process entirely and is
the first step towards gmid 2.0.  It also allows to have more secure
defaults.

On non-OpenBSD systems this means that the sandbox will be deactivated
as soon as fastcgi or proxying are used: you can't open sockets under
FreeBSD' capsicum(4) and I don't want to go thru the pain of making it
work under linux' seccomp/landlock.  Patches are always welcome however.

For folks using CGI scripts (hey, I'm one of you!) not all hope is lost:
fcgiwrap or OpenBSD' slowcgi(8) are ways to run CGI scripts as they were
FastCGI applications.

fixes for the documentation and to the non-OpenBSD sandboxes will
follow.
2022-09-06 16:11:09 +00:00
Omar Polo 5df699d1ab count ran/failed tests number 2022-08-29 16:44:07 +00:00
Omar Polo 39ad4b8d7f sync 2022-07-07 18:19:34 +00:00
Omar Polo bd2eb09520 call tzset(3) to fix times in logs
reported by Karl Jeacle, thanks!
2022-07-07 18:15:06 +00:00
Omar Polo 93124fce99 mention Anna' patch too 2022-07-07 08:57:28 +00:00
Omar Polo 9ac625870e mention the removal of the rc file 2022-07-07 08:56:23 +00:00
Omar Polo ddd291dd7c mention the 1.8.4 release 2022-07-07 08:55:32 +00:00
Omar Polo de8dc03c4d sync 2022-07-07 08:54:26 +00:00
Omar Polo be97b57fc8 don't set d_reclen
It's not actually used and doesn't seem to be available on DragonflyBSD
(at least) judging from the patching in dports:

f66bf875f7
2022-07-07 08:54:26 +00:00
Omar Polo 2573332d7f don't hardcode urls; use TREE 'macro' 2022-07-07 08:54:26 +00:00
Anna “CyberTailor” 07fbbf0610 include contrib/ in dist 2022-07-07 10:38:49 +02:00
Omar Polo 3bba4fc55f remove the OpenBSD' rc file
now that gmid is packaged on OpenBSD the rc file is maintained in the
ports tree.
2022-07-04 19:22:08 +00:00
Omar Polo f759119d2f bump version 2022-07-04 19:18:39 +00:00
Omar Polo f3f4543119 don't hardcode version numbers 2022-07-04 19:18:30 +00:00
Omar Polo b48eb0db52 add missing manpage for gg 2022-07-04 15:04:46 +00:00
Omar Polo 1f6de7491c changes for 1.8.4 2022-07-04 14:51:39 +00:00
Omar Polo 1670b5f3ae mention the codeberg mirror too 2022-07-04 14:48:18 +00:00
Omar Polo c6fb44edd8 remove mentions of the precompiled binaries 2022-07-04 14:48:10 +00:00
Omar Polo d45d5306e3 fix test_auto_index 2022-07-04 14:33:45 +00:00
Omar Polo 0d823f229d sync 2022-07-04 14:31:20 +00:00
Omar Polo 543f4a66fe add a trailing / for dirs in the directory index. 2022-07-04 14:31:17 +00:00
Omar Polo 5734723f92 typo 2022-07-04 14:09:52 +00:00
Omar Polo 870063d344 include Makefile.depend too 2022-07-04 13:53:51 +00:00
Omar Polo 7fc52d5104 add an example configure.local based on mandoc-portable' one 2022-07-04 13:44:53 +00:00
Omar Polo 96e3c01314 refactor the makefile / configure
steal more (good) stuff from mandoc-portable :)
2022-07-04 13:44:38 +00:00
Omar Polo 225686d7fd fix getprogname shim
HAVE_PROGRAM_INVOCATION_SHORT_NAME is always defined; look at wether
it's zero or not.
2022-07-04 13:43:27 +00:00
Omar Polo a3ebbccb8e the install target ought to depend on gg too 2022-07-04 09:52:44 +00:00
Omar Polo a555e0d67b copyright years 2022-07-04 09:48:39 +00:00
Omar Polo cb2b85512c add proper copyrights
was a mistake on my part and a leftover from the first iterations.
Initially I only stole a few bits, that's why the comment but not the
copyright, but then i threwed out and restarted using oconfigure.
Then the configure script has its own independent changes, but need to
give attribution nevertheless.
2022-07-04 09:43:51 +00:00
Omar Polo 617ae38546 add some more regress for the encodings 2022-07-04 09:36:55 +00:00
Omar Polo 475205fa0f check for the expected page in test_auto_index
not just the number of lines, check the full page!
2022-07-04 09:36:31 +00:00