There are some bugs in current ebuild: Initial config file owned by root, thus gitea cannot write down its settings upon install. Because of wrong/incomplete sed substitutions in ebuild some settings in initial config are screwed (https://bugs.gentoo.org/612698#c4). Environment variable GITEA_WORK_DIR is unset (defaults to /usr/bin), leading to wrong configuration, gitea could try to create directories in /usr/bin and obviously fail. I tried to rework the ebuild to fix mentioned errors and to prevent new if upstream default config will be changed. Fixes: GITEA_WORK_DIR is set to /var/lib/gitea GITEA_CUSTOM will default to /var/lib/gitea/custom, as stated in upstream documentation. If no app.ini found, there will be created minimal app.ini, owned by git user. Upon install gitea will write down required settings with proper paths. Also, gitea will by default rotate logs, so logrotate.d configuration is not needed anymore, allowing user to control rotation via gitea config. If there are already app.ini in place, ebuild will warn user about ENV changes. Thanks. Reproducible: Always
Created attachment 509524 [details, diff] New ebuild
Created attachment 509526 [details] files/app.ini
Created attachment 509528 [details] gitea-1.3.1-r1.ebuild
Created attachment 509530 [details] files/gitea.initd-r1
Created attachment 509532 [details, diff] gitea-1.3.1-r1.ebuild.diff
Created attachment 509534 [details, diff] gitea.initd-r1.diff
Thanks! I hope I find some time this week to review it and add it. Would you be interested in proxy-maintaining gitea, Michael?
Well, I'm not using gitea, just wanted to test it :) But in general, I could maintain some packages, just need to read all these docs about how to be a proxy-maintainer, set up testing environment and to find some spare time ;)
I cross-link this one to https://bugs.gentoo.org/651498 @Michael, maybe you want to rebase your work on the 1.4.0 ebuild and we can work out a new updated version?
@Michael pls file a PR at github for your new ebuild It's a bit confusing: your mix of diffs and files ... etc The changes make sense to me but I am no full-time maintainer here at all so maybe someone else might have a more professional look.
Sorry, guys. Had no time at all. PR looks good ;)
Added in commit 7062b1979c463885eb37690519eccd51825e3a6b Author: Stefan G. Weichinger <office@oops.co.at> Date: Sat Jun 2 14:05:50 2018 +0200 www-apps/gitea: Version bump to 1.4.1 Package-Manager: Portage-2.3.40, Repoman-2.3.9