pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/gitea



Module Name:    pkgsrc
Committed By:   khorben
Date:           Wed Mar 23 23:41:14 UTC 2022

Modified Files:
        pkgsrc/www/gitea: Makefile
        pkgsrc/www/gitea/files: gitea.sh

Log Message:
gitea: minor fix to the RC script

This sets the working directory to / before issuing commands to Gitea.
Fix from the pgsql script; it addresses the following issue when
managing Gitea:

  # /etc/rc.d/gitea restart
  Stopping gitea.
  sh: Cannot determine current working directory
  Starting gitea.
  sh: Cannot determine current working directory

(and then Gitea not starting again)

Bumps PKGREVISION.

During freeze, but leaf package AFAICT.

Tested on NetBSD/amd64.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 pkgsrc/www/gitea/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/www/gitea/files/gitea.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/gitea/Makefile
diff -u pkgsrc/www/gitea/Makefile:1.67 pkgsrc/www/gitea/Makefile:1.68
--- pkgsrc/www/gitea/Makefile:1.67      Mon Mar  7 09:14:13 2022
+++ pkgsrc/www/gitea/Makefile   Wed Mar 23 23:41:14 2022
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.67 2022/03/07 09:14:13 bsiegert Exp $
+# $NetBSD: Makefile,v 1.68 2022/03/23 23:41:14 khorben Exp $
 
 DISTNAME=      gitea-1.16.1
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=go-gitea/}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    www
 GITHUB_TAG=    v${PKGVERSION_NOREV}
 

Index: pkgsrc/www/gitea/files/gitea.sh
diff -u pkgsrc/www/gitea/files/gitea.sh:1.4 pkgsrc/www/gitea/files/gitea.sh:1.5
--- pkgsrc/www/gitea/files/gitea.sh:1.4 Thu Nov 18 02:45:29 2021
+++ pkgsrc/www/gitea/files/gitea.sh     Wed Mar 23 23:41:14 2022
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: gitea.sh,v 1.4 2021/11/18 02:45:29 khorben Exp $
+# $NetBSD: gitea.sh,v 1.5 2022/03/23 23:41:14 khorben Exp $
 #
 # PROVIDE: gitea
 # REQUIRE: DAEMON
@@ -25,5 +25,7 @@ gitea_env="${gitea_env} USER=@GITEA_USER
 gitea_user="@GITEA_USER@"
 gitea_group="@GITEA_GROUP@"
 
+cd /
+
 load_rc_config $name
 run_rc_command "$1"



Home | Main Index | Thread Index | Old Index