diff options
author | khorben <khorben@pkgsrc.org> | 2021-11-18 02:45:29 +0000 |
---|---|---|
committer | khorben <khorben@pkgsrc.org> | 2021-11-18 02:45:29 +0000 |
commit | 8fcb462e7a9feac846cfa60f146c79135c6b9744 (patch) | |
tree | c6f0d46b4893ea06fbba58370cb705e0e7b7a4ed /www | |
parent | 5b4c71824c65b9e6aab9596cfaf95ae5ef160b6b (diff) | |
download | pkgsrc-8fcb462e7a9feac846cfa60f146c79135c6b9744.tar.gz |
gitea: let the RC script work unprivileged
This takes advantage of the introduction of the SYSCONFBASE variable.
Tested on NetBSD/amd64.
While there, also fix a couple substitutions in the default configuration file
(app.ini).
Bumps PKGREVISION.
Diffstat (limited to 'www')
-rw-r--r-- | www/gitea/Makefile | 6 | ||||
-rw-r--r-- | www/gitea/files/app.ini.sample | 2 | ||||
-rw-r--r-- | www/gitea/files/gitea.sh | 8 |
3 files changed, 10 insertions, 6 deletions
diff --git a/www/gitea/Makefile b/www/gitea/Makefile index f4433536d21..36342950523 100644 --- a/www/gitea/Makefile +++ b/www/gitea/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.60 2021/11/05 20:02:49 bsiegert Exp $ +# $NetBSD: Makefile,v 1.61 2021/11/18 02:45:29 khorben Exp $ DISTNAME= gitea-1.13.4 -PKGREVISION= 10 +PKGREVISION= 11 MASTER_SITES= ${MASTER_SITE_GITHUB:=go-gitea/} CATEGORIES= www GITHUB_TAG= v${PKGVERSION_NOREV} @@ -74,7 +74,7 @@ SUBST_CLASSES+= fix-var SUBST_STAGE.fix-var= pre-configure SUBST_MESSAGE.fix-var= Replace some vars SUBST_FILES.fix-var= ${WRKDIR}/app.ini.sample -SUBST_VARS.fix-var= VARBASE GITEA_USER +SUBST_VARS.fix-var= PKG_SYSCONFDIR VARBASE GITEA_USER CONF_FILES_PERMS+= ${EGDIR}/app.ini.sample ${PKG_SYSCONFDIR}/conf/app.ini \ ${GITEA_USER} ${GITEA_GROUP} 0600 diff --git a/www/gitea/files/app.ini.sample b/www/gitea/files/app.ini.sample index 678e640bc5c..d3b0d7cc74a 100644 --- a/www/gitea/files/app.ini.sample +++ b/www/gitea/files/app.ini.sample @@ -17,7 +17,7 @@ # localhost. # # If you'd rather use the web-based installer, remove this conf/app.ini file -# and make %%PREFIX%%/etc/gitea/conf writeable to the git user. +# and make @PKG_SYSCONFDIR@/gitea/conf writeable to the @GITEA_USER@ user. APP_NAME = Gitea: Git with a cup of tea RUN_USER = @GITEA_USER@ diff --git a/www/gitea/files/gitea.sh b/www/gitea/files/gitea.sh index 529ba119719..f1e39404624 100644 --- a/www/gitea/files/gitea.sh +++ b/www/gitea/files/gitea.sh @@ -1,11 +1,15 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: gitea.sh,v 1.3 2021/03/01 23:47:09 khorben Exp $ +# $NetBSD: gitea.sh,v 1.4 2021/11/18 02:45:29 khorben Exp $ # # PROVIDE: gitea # REQUIRE: DAEMON +# +# You will need to set some variables in @SYSCONFBASE@/rc.conf to start gitea: +# +# gitea=YES -. /etc/rc.subr +$_rc_subr_loaded . @SYSCONFBASE@/rc.subr name="gitea" rcvar=${name} |