Created attachment 187528 [details] Update to 1.2.2, log console to syslog Update gitea to version 1.2.2 Bugfixes. Release notes: https://blog.gitea.io/2017/10/release-of-1.2.2/ Also start gitea with its stdout and stderr logged to syslog (daemon/debug by default) to aid in configuration debugging.
A commit references this bug: Author: tobik Date: Fri Oct 27 17:55:25 UTC 2017 New revision: 453018 URL: https://svnweb.freebsd.org/changeset/ports/453018 Log: www/gitea: Update to 1.2.2 Also start gitea with its stdout and stderr logged to syslog (daemon/debug by default) to aid in configuration debugging. Changes: https://blog.gitea.io/2017/10/release-of-1.2.2/ PR: 223283 Submitted by: stb@lassitu.de (maintainer) Changes: head/www/gitea/Makefile head/www/gitea/distinfo head/www/gitea/files/gitea.in
Committed. Thanks!
I'm reopening this since it breaks gitea on FreeBSD 10.x where daemon(8) doesn't have -l and -s. https://www.freebsd.org/cgi/man.cgi?query=daemon&apropos=0&sektion=0&manpath=FreeBSD+10.4-RELEASE+and+Ports&arch=default&format=html
Sorry about that, I'm on it.
Created attachment 187535 [details] Update rc script, bringing the port to 1.2.2_1 I believe this should fix the daemon invocation on systems prior to 11.1-RELEASE, where the new daemon(8) options for syslog where introduced (r317855).
Created attachment 187537 [details] gitea.diff
(In reply to stb from comment #5) > I believe this should fix the daemon invocation on systems prior to 11.1-RELEASE, where the new daemon(8) options for syslog where introduced (r317855). Yes, that's probably the most straightforward solution. I propose that we do the check at build time instead and change the rc script accordingly. See the attached patch for an attempt to do this. OSVERSION value from [1] by choosing the nearest date to [2]. [1] https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/versions-11.html [2] https://github.com/freebsd/freebsd/commit/29a843a8a2e5e9eaf7dbbee4927bdf924dc25bfb#diff-1203c653568cb06d91b7935d75f319ae
Happy to do it this way as well. I opted for shell to enable the logging options when the OS is upgraded, without the package being updated, but doing it from the build is fine by me.
A commit references this bug: Author: tobik Date: Sun Oct 29 07:55:34 UTC 2017 New revision: 453097 URL: https://svnweb.freebsd.org/changeset/ports/453097 Log: www/gitea: Fix rc script on FreeBSD 10.x/11.0 On FreeBSD 10.x/11.0 daemon(8) doesn't have -s,-l,-t, so starting gitea would fail. We partially revert the change from r453018 and use the old behavior on these versions and don't log stdout/stderr to syslog. PR: 223283 Approved by: stb@lassitu.de (maintainer) Changes: head/www/gitea/Makefile head/www/gitea/files/gitea.in