Klemens Nanni wrote (2023-01-07 16:04 CET):
> 07.01.2023 14:48, Stefan Hagen пишет:
> > Hi,
> > 
> > I've set up a Gitea Server and noticed two inaccuracies in the port.
> > 
> > 1. gitea sets up a post-receive hook which is used internally and 
> >    requires a bash. Without it, it errors out on the first repository 
> >    push.
> 
> OK kn
> 
> > 
> > 2. After setting up the socket path as described in the README, gitea 
> >    doesn't start anymore. The reason is the non existent path component. 
> >    The socket itself is created automatically. The path component is not.
> 
> See inline.
> 
> > +Create the socket path with the following command:
> > +# mkdir /var/www/run/gitea && chown _gitea /var/www/run/gitea
> 
> install -d -o _gitea /var/www/run/gitea
> 
> But can't you just @sample it in PLIST?
> Then it'll get created on update automatically.

pkg_add gitea sets up gitea to be reachable on port 3000.
No socket is used.

The MESSAGE describes how to switch the setup to a setup using httpd via
fastcgi. For this, the socket path is needed. So I described the info 
there too.

But actually, I don't see a reason for this directory at all.

I think we can remove it.

Best Regards,
Stefan

Index: Makefile
===================================================================
RCS file: /cvs/ports/www/gitea/Makefile,v
retrieving revision 1.86
diff -u -p -u -p -r1.86 Makefile
--- Makefile    23 Dec 2022 22:09:27 -0000      1.86
+++ Makefile    7 Jan 2023 15:47:40 -0000
@@ -3,6 +3,7 @@ COMMENT =               compact self-hosted Git servi
 VERSION =              1.17.4
 DISTNAME =             gitea-src-${VERSION}
 PKGNAME =              gitea-${VERSION}
+REVISION =             0
 
 MASTER_SITES =         
https://github.com/go-gitea/gitea/releases/download/v${VERSION}/
 
@@ -27,7 +28,8 @@ MODGO_LDFLAGS += -X code.gitea.io/gitea/
 MODGO_LDFLAGS += -X main.Version=${VERSION}
 MODGO_LDFLAGS += -X 'main.Tags=${GO_TAGS}'
 
-RUN_DEPENDS =          devel/git
+RUN_DEPENDS =          devel/git \
+                       shells/bash
 
 ALL_TARGET =           code.gitea.io/gitea
 WRKSRC =               ${MODGO_WORKSPACE}/src/${ALL_TARGET}
Index: pkg/README
===================================================================
RCS file: /cvs/ports/www/gitea/pkg/README,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 README
--- pkg/README  6 Mar 2022 11:05:26 -0000       1.6
+++ pkg/README  7 Jan 2023 15:47:40 -0000
@@ -43,7 +43,7 @@ Relevant configuration directives in ${S
                listen on $ext_addr tls port 443
                tls certificate "/etc/ssl/gitea.example.com.pem"
                tls key "/etc/ssl/private/gitea.example.com.key"
-               location "*" { fastcgi socket "/run/gitea/gitea.sock" }
+               location "*" { fastcgi socket "/run/gitea.sock" }
        }
 
 Relevant configuration directives in ${SYSCONFDIR}/gitea/app.ini:
@@ -52,7 +52,7 @@ Relevant configuration directives in ${S
        PROTOCOL               = fcgi+unix
        DOMAIN                 = gitea.example.com
        ROOT_URL               = https://%(DOMAIN)s/
-       HTTP_ADDR              = /var/www/run/gitea/gitea.sock
+       HTTP_ADDR              = /var/www/run/gitea.sock
        LOCAL_ROOT_URL         = %(ROOT_URL)s
 
 Customizing gitea

Reply via email to