added draft ebuild for www-apps/gitlab-git-http-server-0.2.9
This commit is contained in:
		
							parent
							
								
									db6817cdb3
								
							
						
					
					
						commit
						3eea63bf44
					
				
					 5 changed files with 96 additions and 0 deletions
				
			
		|  | @ -0,0 +1,12 @@ | |||
| diff --git a/Makefile b/Makefile
 | ||||
| index f6456e1..c25e29e 100644
 | ||||
| --- a/Makefile
 | ||||
| +++ b/Makefile
 | ||||
| @@ -1,5 +1,5 @@
 | ||||
| -PREFIX=/usr/local
 | ||||
| -VERSION=$(shell git describe)-$(shell date -u +%Y%m%d.%H%M%S)
 | ||||
| +PREFIX=${DESTDIR}/usr
 | ||||
| +VERSION=0.2.9-$(shell date -u +%Y%m%d.%H%M%S)
 | ||||
|   | ||||
|  gitlab-git-http-server: main.go githandler.go | ||||
|  	go build -ldflags "-X main.Version ${VERSION}" -o gitlab-git-http-server | ||||
|  | @ -0,0 +1,10 @@ | |||
| AUTH_BACKEND=http://localhost:8080 | ||||
| LISTEN_ADDR=localhost:8181 | ||||
| LISTEN_NETWORK=tcp | ||||
| LISTEN_UMASK=022 | ||||
| PPROF_LISTEN_ADDRESS= | ||||
| 
 | ||||
| GIT_REPO_PATH=/var/lib/git/repositories | ||||
| 
 | ||||
| RUNAS_USER=gitlab_git_http_server | ||||
| RUNAS_GROUP=${RUNAS_USER} | ||||
|  | @ -0,0 +1,9 @@ | |||
| #!/sbin/runscript | ||||
| 
 | ||||
| start() { | ||||
| 	ebegin "Starting gitlab-git-http-server" | ||||
| 	start-stop-daemon --start --exec /usr/bin/gitlab-git-http-server --pidfile /run/gitlab-git-http-server.pid \ | ||||
| 	--make-pidfile --user ${RUNAS_USER}:${RUNAS_GROUP} \ | ||||
| 	-- -authBackend=${AUTH_BACKEND} -listenAddr=${LISTEN_ADDR} -listenNetwork=${LISTEN_NETWORK} -listenUmask=${LISTEN_UMASK} \ | ||||
| 	-pprofListenAddr=${PPROF_LISTEN_ADDR} ${GIT_REPO_PATH} | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue