Saturday, September 10, 2022

Re: [patch] install gitea web files into /var/www/gitea

On 2022/09/11 00:29, aisha wrote:
> Hi,
> I've attached a patch which splits www/gitea into -main and -web packages.
>
> The -web package contains static files, images/css/js, which can be served by nginx without proxying.

You need an @pkgpath marker in PLIST-main so that updates work. Test by
placing just the two new packages in a directory, installing the old package,
PKG_PATH=/path/to/wherever doas pkh_add -u -Dunsigned

I wonder if it might be better to set PREFIX=/ and put everything in a
single package though... That is a bit non-stamdard but saves a lot of
messing around. What does anyone else think?

No comments:

Post a Comment