www-apps/gitea: Add ebuild for version 1.5.0.
Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
		
							parent
							
								
									6a7642b4ca
								
							
						
					
					
						commit
						23ffbe2749
					
				
					 9 changed files with 149 additions and 0 deletions
				
			
		
							
								
								
									
										4
									
								
								www-apps/gitea/files/app.ini
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								www-apps/gitea/files/app.ini
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,4 @@ | |||
| [log] | ||||
| MODE      = file | ||||
| LEVEL     = Info | ||||
| ROOT_PATH = /var/log/gitea | ||||
							
								
								
									
										2
									
								
								www-apps/gitea/files/gitea.confd
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								www-apps/gitea/files/gitea.confd
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,2 @@ | |||
| # arguments for gitea | ||||
| command_args="--config /var/lib/gitea/conf/app.ini" | ||||
							
								
								
									
										25
									
								
								www-apps/gitea/files/gitea.initd-r1
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								www-apps/gitea/files/gitea.initd-r1
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,25 @@ | |||
| #!/sbin/openrc-run | ||||
| # Copyright 2016-2018 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| 
 | ||||
| description="Gitea, a self-hosted Git service" | ||||
| pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"} | ||||
| user=${user:-git} | ||||
| group=${group:-git} | ||||
| 
 | ||||
| command="/usr/bin/gitea web" | ||||
| command_args="${command_args:--config /var/lib/gitea/conf/app.ini}" | ||||
| command_background="true" | ||||
| start_stop_daemon_args="--user ${user} --group ${group} \ | ||||
| 	-e GITEA_WORK_DIR=/var/lib/gitea | ||||
| 	--stdout /var/log/${SVCNAME}/${SVCNAME}.log \ | ||||
| 	--stderr /var/log/${SVCNAME}/${SVCNAME}.log" | ||||
| 
 | ||||
| depend() { | ||||
| 	need net | ||||
| 	after net | ||||
| } | ||||
| 
 | ||||
| start_pre() { | ||||
| 	checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}" | ||||
| } | ||||
							
								
								
									
										8
									
								
								www-apps/gitea/files/gitea.logrotated
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								www-apps/gitea/files/gitea.logrotated
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | |||
| /var/log/gitea/* { | ||||
| 	su git git | ||||
| 	missingok | ||||
| 	size 5M | ||||
| 	rotate 3 | ||||
| 	compress | ||||
| 	copytruncate | ||||
| } | ||||
							
								
								
									
										26
									
								
								www-apps/gitea/files/gitea.service
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								www-apps/gitea/files/gitea.service
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,26 @@ | |||
| [Unit] | ||||
| Description=Gitea service | ||||
| Documentation=https://gitea.io | ||||
| 
 | ||||
| AssertPathIsDirectory=/var/lib/gitea | ||||
| AssertPathIsReadWrite=/var/lib/gitea | ||||
| 
 | ||||
| After=network.target | ||||
| Requires=network.target | ||||
| After=mysqld.service | ||||
| Requires=mysqld.service | ||||
| 
 | ||||
| [Service] | ||||
| User=git | ||||
| Group=git | ||||
| 
 | ||||
| Environment="GITEA_CUSTOM=/var/lib/gitea" | ||||
| WorkingDirectory=/var/lib/gitea | ||||
| ExecStart=/usr/bin/gitea web -c /var/lib/gitea/conf/app.ini | ||||
| 
 | ||||
| Restart=always | ||||
| PrivateTmp=true | ||||
| Nice=5 | ||||
| 
 | ||||
| [Install] | ||||
| WantedBy=multi-user.target | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue