version bump www-apps/gitea-1.9.4
This commit is contained in:
		
							
								
								
									
										13
									
								
								www-apps/gitea/files/gitea-logflags.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								www-apps/gitea/files/gitea-logflags.patch
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| diff --git a/modules/log/flags.go b/modules/log/flags.go | ||||
| index 992fc62..5578a1b 100644 | ||||
| --- a/modules/log/flags.go | ||||
| +++ b/modules/log/flags.go | ||||
| @@ -31,7 +31,7 @@ const ( | ||||
|  	Lmedfile = Lshortfile | Llongfile | ||||
|   | ||||
|  	// LstdFlags is the initial value for the standard logger | ||||
| -	LstdFlags = Ldate | Ltime | Lmedfile | Lshortfuncname | Llevelinitial | ||||
| +	LstdFlags = Ldate | Ltime | Llevelinitial | ||||
|  ) | ||||
|   | ||||
|  var flagFromString = map[string]int{ | ||||
							
								
								
									
										46
									
								
								www-apps/gitea/files/gitea-mod-vendor.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								www-apps/gitea/files/gitea-mod-vendor.patch
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | ||||
| diff --git a/Makefile b/Makefile | ||||
| index 796a0e3..2c6a6ef 100644 | ||||
| --- a/Makefile | ||||
| +++ b/Makefile | ||||
| @@ -97,7 +97,7 @@ vet: | ||||
|   | ||||
|  .PHONY: generate | ||||
|  generate: | ||||
| -	GO111MODULE=on $(GO) generate $(PACKAGES) | ||||
| +	GO111MODULE=on $(GO) generate -mod=vendor $(PACKAGES) | ||||
|   | ||||
|  .PHONY: generate-swagger | ||||
|  generate-swagger: | ||||
| diff --git a/modules/options/options.go b/modules/options/options.go | ||||
| index 723dd54..62e8c04 100644 | ||||
| --- a/modules/options/options.go | ||||
| +++ b/modules/options/options.go | ||||
| @@ -5,7 +5,6 @@ | ||||
|  package options | ||||
|   | ||||
|  //go:generate go run -mod=vendor main.go | ||||
| -//go:generate go fmt bindata.go | ||||
|   | ||||
|  type directorySet map[string][]string | ||||
|   | ||||
| diff --git a/modules/public/public.go b/modules/public/public.go | ||||
| index 8362b42..df70275 100644 | ||||
| --- a/modules/public/public.go | ||||
| +++ b/modules/public/public.go | ||||
| @@ -18,7 +18,6 @@ import ( | ||||
|  ) | ||||
|   | ||||
|  //go:generate go run -mod=vendor main.go | ||||
| -//go:generate go fmt bindata.go | ||||
|   | ||||
|  // Options represents the available options to configure the macaron handler. | ||||
|  type Options struct { | ||||
| diff --git a/modules/templates/templates.go b/modules/templates/templates.go | ||||
| index e7fe3b2..af6bf01 100644 | ||||
| --- a/modules/templates/templates.go | ||||
| +++ b/modules/templates/templates.go | ||||
| @@ -5,4 +5,3 @@ | ||||
|  package templates | ||||
|   | ||||
|  //go:generate go run -mod=vendor main.go | ||||
| -//go:generate go fmt bindata.go | ||||
							
								
								
									
										14
									
								
								www-apps/gitea/files/gitea.confd-r1
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								www-apps/gitea/files/gitea.confd-r1
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| # Gitea configuration | ||||
| GITEA_CONF="/etc/gitea/app.ini" | ||||
|  | ||||
| # Gitea user | ||||
| GITEA_USER="git" | ||||
|  | ||||
| # Gitea group | ||||
| GITEA_GROUP="git" | ||||
|  | ||||
| # Gitea working directory | ||||
| GITEA_WORK_DIR="/var/lib/gitea" | ||||
|  | ||||
| # Gitea custom directory | ||||
| GITEA_CUSTOM="${GITEA_WORK_DIR}/custom" | ||||
							
								
								
									
										22
									
								
								www-apps/gitea/files/gitea.initd-r3
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								www-apps/gitea/files/gitea.initd-r3
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| #!/sbin/openrc-run | ||||
| # Copyright 2016-2019 Gentoo Authors | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
|  | ||||
| description="Gitea, a self-hosted Git service" | ||||
|  | ||||
| : ${GITEA_CONF:=/etc/gitea/app.ini} | ||||
| : ${GITEA_USER:=git} | ||||
| : ${GITEA_GROUP:=git} | ||||
| : ${GITEA_WORK_DIR:=/var/lib/gitea} | ||||
| : ${GITEA_CUSTOM:=${GITEA_WORK_DIR}/custom} | ||||
|  | ||||
| command="/usr/bin/gitea web" | ||||
| command_args="--config ${GITEA_CONF}" | ||||
| command_background="true" | ||||
| command_user="${GITEA_USER}:${GITEA_GROUP}" | ||||
| error_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.err" | ||||
| pidfile="/run/${RC_SVCNAME}.pid" | ||||
| required_files="${GITEA_CONF}" | ||||
| start_stop_daemon_args="-d ${GITEA_WORK_DIR}" | ||||
| start_stop_daemon_args="${start_stop_daemon_args} -e GITEA_WORK_DIR=${GITEA_WORK_DIR}" | ||||
| start_stop_daemon_args="${start_stop_daemon_args} -e GITEA_CUSTOM=${GITEA_CUSTOM}" | ||||
							
								
								
									
										34
									
								
								www-apps/gitea/files/gitea.service-r2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								www-apps/gitea/files/gitea.service-r2
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| [Unit] | ||||
| Description=Gitea service | ||||
| Documentation=https://docs.gitea.io/ | ||||
|  | ||||
| AssertPathIsDirectory=/var/lib/gitea | ||||
| AssertPathIsReadWrite=/var/lib/gitea | ||||
|  | ||||
| After=network.target | ||||
| Requires=network.target | ||||
| After=mysqld.service | ||||
| After=postgresql-9.3.service | ||||
| After=postgresql-9.4.service | ||||
| After=postgresql-9.5.service | ||||
| After=postgresql-9.6.service | ||||
| After=postgresql-10.service | ||||
| After=postgresql-11.service | ||||
| After=postgresql-12.service | ||||
| After=memcached.service | ||||
| After=redis.service | ||||
|  | ||||
| [Service] | ||||
| User=git | ||||
| Group=git | ||||
|  | ||||
| Environment="GITEA_WORK_DIR=/var/lib/gitea" "GITEA_CUSTOM=/var/lib/gitea/custom" | ||||
| WorkingDirectory=/var/lib/gitea | ||||
| ExecStart=/usr/bin/gitea web --config /etc/gitea/app.ini | ||||
|  | ||||
| Restart=always | ||||
| PrivateTmp=true | ||||
| Nice=5 | ||||
|  | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
		Reference in New Issue
	
	Block a user