Add LICENSE file so sourcehut doesn't complain
Add Debian/Ubuntu systemd stuff and simple cgi for debugging
Sync with latest openbsd changes
grab the version number from the RPM spec
bump RPM release after cherry-pick
Found this old local commit I hadn't pushed (213819a); it was 6.3-5 as
indicated in the changelog, but I've updated to 6.5 already.
%systemd_post has been fixed in 42.3/SLE-12-SP3
Require a version of systemd-rpm-macros with the fix instead of redefining
the macro ourselves.
sync with OpenBSD 6.5
Fix typo in patch 100.
The socket owner patch was integrated upstream. Changelog:
commit 73e38a72272cde1fb81f9b5919f1220a97dcf81f
Author: claudio <claudio@openbsd.org>
Date: Fri Oct 19 08:13:34 2018 +0000
When calculating the fd limit before accepting a new connection also
account for the inflight fds caused by the new connection. Without this
slowcgi could fail when close to the limit because FD_RESERVE is smaller
then FD_NEEDED.
OK florian@, tested by Kristaps Dzonsons
commit 83926339880de9648b94ba4943d1dbf509b83d99
Author: florian <florian@openbsd.org>
Date: Sun Aug 19 12:31:41 2018 +0000
Call daemon with 0 as first argument so that it changes the cwd to /.
It is not a problem in slowcgi since it calls chroot(2) and then
chdir(2) shortly afterwards but hopefully prevents copying code into
daemons where it does matter.
Problem first observed by dlg in ntpd(8) which keeps sitting in the
directory from where it was started which might for example prevent an
unmount.
Discussed with deraadt@
commit 8f6f64076bfc41acf34cd9f295a9b9fe606d8e73
Author: florian <florian@openbsd.org>
Date: Mon Aug 13 16:54:50 2018 +0000
Make the owner of fcgi socket configurable.
Andrew Daugherity (andrew.daugherity AT gmail) pointed out that this
is helpful for his port to linux. For example on openSUSE nginx and
Apache run as different users so a compile time default user won't cut
it.
Man page tweaks jmc@
While here, consistently log users at debug level; from Andrew.
commit 478c021afefd06d40fe5199b1435a68cbb9a79d2
Author: florian <florian@openbsd.org>
Date: Wed Aug 1 11:47:29 2018 +0000
Clarify that we chroot to the users home directory if -u is provided.
Pointed out by Andrew Daugherity (andrew.daugherity AT gmail), thanks!
Tweaks and OK jmc
update comments in service file for nginx user
default to the nginx user
Also change the default socket location, to make SELinux happy.
fetch latest upstream; -U socket_user patch
Man page update from OpenBSD CVS.
Replace my patch-001-socket_owner with one from the OpenBSD devs which
adds a -U socket_user option. The -u cgi_user option was apparently
never intended to change the socket owner.
Adjust other patches as needed.
fix systemd service
path should match RPM (/usr/sbin)
The -d option also enables debug messages, so switch to Type=forking.
minor spec file tweaks (fix some rpmlint nags)
add tarball export & build instructions
initital Linux port of OpenBSD slowcgi
built on openSUSE Leap 15.0