~marnold128/slowcgi-port

Add LICENSE file so sourcehut doesn't complain
Add Debian/Ubuntu systemd stuff and simple cgi for debugging
Sync with latest openbsd changes
Use LDLIBS instead in Makefile as it makes Ubuntu/Debian linker happy for some reason
See https://github.com/opensourcerouting/cannedbgp/issues/1#issuecomment-14883527
0fce0436 — Andrew Daugherity 3 years ago
grab the version number from the RPM spec
e5c27d36 — Andrew Daugherity 3 years ago
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.
213819ae — Andrew Daugherity 6 years ago
%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.
37ae31a9 — Andrew Daugherity 5 years ago
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
e4fcf750 — Andrew Daugherity 6 years ago
update comments in service file for nginx user
53bdae91 — Andrew Daugherity 6 years ago
default to the nginx user

Also change the default socket location, to make SELinux happy.
9c1f5320 — Andrew Daugherity 6 years ago
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.
9687c621 — Andrew Daugherity 6 years ago
RHEL/CentOS 7 support
81b073a8 — Andrew Daugherity 6 years ago
tabify spec file
24e189ea — Andrew Daugherity 6 years ago
fix systemd service

path should match RPM (/usr/sbin)
The -d option also enables debug messages, so switch to Type=forking.
f7c405cb — Andrew Daugherity 6 years ago
minor spec file tweaks (fix some rpmlint nags)
79928ca9 — Andrew Daugherity 6 years ago
add tarball export & build instructions
fbcbedda — Andrew Daugherity 6 years ago
initital Linux port of OpenBSD slowcgi

built on openSUSE Leap 15.0